]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
* g++.dg/other/anon5.C: Skip on mips-sgi-irix*.
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
1c710c3c
DJ
79fi
80
81
5213506e
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
87264276
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 228 else
5213506e
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
1c710c3c 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
1c710c3c 263
5213506e
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
1c710c3c 410
2aeb72e9
DD
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 417
1c710c3c 418
5213506e
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
0b0dc272 519
1c710c3c
DJ
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
632e2a07 581GOC_FOR_TARGET
5213506e
RW
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
607config_shell
608WINDRES_FOR_BUILD
609WINDMC_FOR_BUILD
610RANLIB_FOR_BUILD
611NM_FOR_BUILD
612LD_FOR_BUILD
613LDFLAGS_FOR_BUILD
632e2a07 614GOC_FOR_BUILD
5213506e
RW
615GFORTRAN_FOR_BUILD
616GCJ_FOR_BUILD
617DLLTOOL_FOR_BUILD
618CXX_FOR_BUILD
619CXXFLAGS_FOR_BUILD
620CFLAGS_FOR_BUILD
621CC_FOR_BUILD
622AS_FOR_BUILD
623AR_FOR_BUILD
aae29963 624target_configdirs
5213506e 625configdirs
5213506e 626build_configdirs
5213506e
RW
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
ffedf511
RW
634target_configargs
635host_configargs
636build_configargs
e12c4094 637BUILD_CONFIG
5213506e
RW
638CXXFLAGS_FOR_TARGET
639CFLAGS_FOR_TARGET
640DEBUG_PREFIX_CFLAGS_FOR_TARGET
641SYSROOT_CFLAGS_FOR_TARGET
642stage1_languages
d7f09764 643extra_host_libiberty_configure_flags
5213506e
RW
644clooginc
645clooglibs
646pplinc
647ppllibs
5213506e 648poststage1_ldflags
ed2eaa9f 649poststage1_libs
5213506e
RW
650stage1_libs
651stage1_ldflags
652extra_mpc_mpfr_configure_flags
653extra_mpc_gmp_configure_flags
654extra_mpfr_configure_flags
655gmpinc
656gmplibs
657do_compare
658GNATMAKE
659GNATBIND
660ac_ct_CXX
661CXXFLAGS
662CXX
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670target_subdir
671host_subdir
672build_subdir
673build_libsubdir
87264276
PB
674AWK
675SED
5213506e
RW
676LN_S
677LN
678INSTALL_DATA
679INSTALL_SCRIPT
680INSTALL_PROGRAM
681target_os
682target_vendor
683target_cpu
684target
685host_os
686host_vendor
687host_cpu
688host
689target_noncanonical
690host_noncanonical
691build_noncanonical
692build_os
693build_vendor
694build_cpu
695build
696TOPLEVEL_CONFIGURE_ARGUMENTS
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files='serialization_dependencies
736host_makefile_frag
737target_makefile_frag
738alphaieee_frag
739ospace_frag'
740ac_user_opts='
741enable_option_checking
742with_build_libsubdir
743enable_gold
21539e2e 744enable_ld
87e6d9dc
TB
745enable_libquadmath
746enable_libquadmath_support
5213506e
RW
747enable_libada
748enable_libssp
749enable_build_with_cxx
750with_mpc
751with_mpc_include
752with_mpc_lib
753with_mpfr_dir
754with_mpfr
755with_mpfr_include
756with_mpfr_lib
757with_gmp_dir
758with_gmp
759with_gmp_include
760with_gmp_lib
761with_host_libstdcxx
762with_stage1_ldflags
763with_stage1_libs
5213506e 764with_boot_libs
ed2eaa9f 765with_boot_ldflags
5213506e
RW
766with_ppl
767with_ppl_include
768with_ppl_lib
769enable_ppl_version_check
770with_cloog
771with_cloog_include
772with_cloog_lib
f16e2237 773enable_cloog_backend
5213506e 774enable_cloog_version_check
d7f09764 775enable_lto
5213506e
RW
776enable_stage1_languages
777enable_objc_gc
778with_build_sysroot
779with_debug_prefix_map
780enable_bootstrap
5646b7b9 781with_build_config
5213506e
RW
782enable_serial_configure
783with_build_time_tools
784enable_maintainer_mode
785enable_stage1_checking
786enable_werror
5213506e
RW
787'
788 ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796CXX
797CXXFLAGS
798CCC
ffedf511
RW
799build_configargs
800host_configargs
801target_configargs
5213506e
RW
802AR
803AS
804DLLTOOL
805LD
806LIPO
807NM
808RANLIB
809STRIP
810WINDRES
811WINDMC
812OBJCOPY
813OBJDUMP
814CC_FOR_TARGET
815CXX_FOR_TARGET
816GCC_FOR_TARGET
817GCJ_FOR_TARGET
818GFORTRAN_FOR_TARGET
632e2a07 819GOC_FOR_TARGET
5213506e
RW
820AR_FOR_TARGET
821AS_FOR_TARGET
822DLLTOOL_FOR_TARGET
823LD_FOR_TARGET
824LIPO_FOR_TARGET
825NM_FOR_TARGET
826OBJDUMP_FOR_TARGET
827RANLIB_FOR_TARGET
828STRIP_FOR_TARGET
829WINDRES_FOR_TARGET
830WINDMC_FOR_TARGET'
831
671aa708
NN
832
833# Initialize some variables set by options.
1c710c3c
DJ
834ac_init_help=
835ac_init_version=false
5213506e
RW
836ac_unrecognized_opts=
837ac_unrecognized_sep=
671aa708
NN
838# The variables have the same names as the options, with
839# dashes changed to underlines.
1c710c3c 840cache_file=/dev/null
671aa708 841exec_prefix=NONE
671aa708 842no_create=
671aa708
NN
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
671aa708
NN
851verbose=
852x_includes=NONE
853x_libraries=NONE
1c710c3c
DJ
854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 860# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
5213506e
RW
864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
671aa708
NN
866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
671aa708
NN
869includedir='${prefix}/include'
870oldincludedir='/usr/include'
5213506e
RW
871docdir='${datarootdir}/doc/${PACKAGE}'
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
79c06341 880
671aa708 881ac_prev=
5213506e 882ac_dashdash=
671aa708
NN
883for ac_option
884do
671aa708
NN
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
5213506e 887 eval $ac_prev=\$ac_option
671aa708
NN
888 ac_prev=
889 continue
890 fi
79c06341 891
5213506e
RW
892 case $ac_option in
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *) ac_optarg=yes ;;
895 esac
671aa708
NN
896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
5213506e
RW
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
671aa708
NN
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 906 bindir=$ac_optarg ;;
671aa708
NN
907
908 -build | --build | --buil | --bui | --bu)
1c710c3c 909 ac_prev=build_alias ;;
671aa708 910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 911 build_alias=$ac_optarg ;;
671aa708
NN
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
671aa708 922
5213506e 923 -datadir | --datadir | --datadi | --datad)
671aa708 924 ac_prev=datadir ;;
5213506e 925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 926 datadir=$ac_optarg ;;
671aa708 927
5213506e
RW
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
671aa708 935 -disable-* | --disable-*)
5213506e 936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 937 # Reject names that are not valid shell variable names.
5213506e
RW
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944"enable_$ac_useropt"
945"*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
671aa708
NN
960
961 -enable-* | --enable-*)
5213506e 962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 963 # Reject names that are not valid shell variable names.
5213506e
RW
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970"enable_$ac_useropt"
971"*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
2aeb72e9 974 esac
5213506e 975 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
1c710c3c 984 exec_prefix=$ac_optarg ;;
671aa708
NN
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
1c710c3c
DJ
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
671aa708
NN
996
997 -host | --host | --hos | --ho)
1c710c3c 998 ac_prev=host_alias ;;
671aa708 999 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1000 host_alias=$ac_optarg ;;
671aa708 1001
5213506e
RW
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
671aa708
NN
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1013 includedir=$ac_optarg ;;
671aa708
NN
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1018 infodir=$ac_optarg ;;
671aa708
NN
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1023 libdir=$ac_optarg ;;
671aa708
NN
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1030 libexecdir=$ac_optarg ;;
671aa708 1031
5213506e
RW
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
671aa708 1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1038 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1042 localstatedir=$ac_optarg ;;
671aa708
NN
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1047 mandir=$ac_optarg ;;
671aa708
NN
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1054 | --no-cr | --no-c | -n)
671aa708
NN
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1068 oldincludedir=$ac_optarg ;;
671aa708
NN
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1073 prefix=$ac_optarg ;;
671aa708
NN
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1080 program_prefix=$ac_optarg ;;
671aa708
NN
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1087 program_suffix=$ac_optarg ;;
671aa708
NN
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1104 program_transform_name=$ac_optarg ;;
671aa708 1105
5213506e
RW
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
671aa708
NN
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1c710c3c 1124 sbindir=$ac_optarg ;;
671aa708
NN
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1c710c3c 1135 sharedstatedir=$ac_optarg ;;
671aa708
NN
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1c710c3c 1140 site=$ac_optarg ;;
671aa708
NN
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1145 srcdir=$ac_optarg ;;
671aa708
NN
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1152 sysconfdir=$ac_optarg ;;
671aa708
NN
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1155 ac_prev=target_alias ;;
671aa708 1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1157 target_alias=$ac_optarg ;;
671aa708
NN
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1c710c3c
DJ
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
671aa708
NN
1164
1165 -with-* | --with-*)
5213506e 1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1167 # Reject names that are not valid shell variable names.
5213506e
RW
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174"with_$ac_useropt"
1175"*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
2aeb72e9 1178 esac
5213506e 1179 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1180
1181 -without-* | --without-*)
5213506e 1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1183 # Reject names that are not valid shell variable names.
5213506e
RW
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
671aa708
NN
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1206 x_includes=$ac_optarg ;;
671aa708
NN
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1213 x_libraries=$ac_optarg ;;
671aa708 1214
5213506e
RW
1215 -*) as_fn_error "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information."
671aa708
NN
1217 ;;
1218
1c710c3c
DJ
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
5213506e
RW
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1227 export $ac_envvar ;;
1228
671aa708 1229 *)
1c710c3c 1230 # FIXME: should be removed in autoconf 3.0.
5213506e 1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1235 ;;
1236
1237 esac
1238done
1239
1240if test -n "$ac_prev"; then
1c710c3c 1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1242 as_fn_error "missing argument to $ac_option"
af71363e 1243fi
af71363e 1244
5213506e
RW
1245if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1250 esac
5213506e 1251fi
2aeb72e9 1252
5213506e
RW
1253# Check all directory arguments for consistency.
1254for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
2aeb72e9 1258do
5213506e
RW
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
2aeb72e9 1267 case $ac_val in
5213506e
RW
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1270 esac
5213506e 1271 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1272done
1273
1c710c3c
DJ
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
0b0dc272 1280
1c710c3c
DJ
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
5213506e 1285 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1286 If a cross compiler is detected then cross compile mode will be used." >&2
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290fi
1291
1292ac_tool_prefix=
1293test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295test "$silent" = yes && exec 6>/dev/null
671aa708 1296
671aa708 1297
5213506e
RW
1298ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299ac_ls_di=`ls -di .` &&
1300ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error "working directory cannot be determined"
1302test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error "pwd does not report name of working directory"
1304
1305
671aa708
NN
1306# Find the source files, if location was not specified.
1307if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
5213506e
RW
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315$as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
671aa708 1333 srcdir=$ac_confdir
5213506e 1334 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1335 srcdir=..
1336 fi
1337else
1338 ac_srcdir_defaulted=no
1339fi
5213506e
RW
1340if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1343fi
1344ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1347 pwd)`
1348# When building in place, set srcdir=.
1349if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351fi
1352# Remove unnecessary trailing slashes from srcdir.
1353# Double slashes in file names in object file debugging info
1354# mess up M-x gdb in Emacs.
1355case $srcdir in
1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357esac
87841584
AM
1358case $srcdir in
1359 *" "*)
1360 as_fn_error "path to source, $srcdir, contains spaces"
1361 ;;
1362esac
ac9e6043
RW
1363ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1364
5213506e
RW
1365for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370done
1c710c3c
DJ
1371
1372#
1373# Report the --help message.
1374#
1375if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379\`configure' configures this package to adapt to many kinds of systems.
1380
1381Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386Defaults for the options are specified in brackets.
1387
1388Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
1c710c3c
DJ
1399Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1401 [$ac_default_prefix]
1c710c3c 1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1403 [PREFIX]
1c710c3c
DJ
1404
1405By default, \`make install' will install all the files in
1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408for instance \`--prefix=\$HOME'.
1409
1410For better control, use the options below.
1411
1412Fine tuning of the installation directories:
5213506e
RW
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1432_ACEOF
1433
1434 cat <<\_ACEOF
1435
1436Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445_ACEOF
1446fi
1447
1448if test -n "$ac_init_help"; then
1449
1450 cat <<\_ACEOF
1451
1452Optional Features:
5213506e 1453 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e
MK
1456 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1457 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1458 --disable-libquadmath do not build libquadmath directory
1459 --disable-libquadmath-support
1460 disable libquadmath support for Fortran
30b74385
RW
1461 --enable-libada build libada directory
1462 --enable-libssp build libssp directory
00020c16 1463 --enable-build-with-cxx build with C++ compiler instead of C compiler
d789184e 1464 --disable-ppl-version-check disable check for PPL version
39986460
TG
1465 --enable-cloog-backend[=BACKEND]
1466 set the CLooG BACKEND used to either isl, ppl or
1467 ppl-legacy (default)
d32ef397
AS
1468 --disable-cloog-version-check
1469 disable check for CLooG version
d7f09764 1470 --enable-lto enable link time optimization support
30b74385 1471 --enable-stage1-languages[=all] choose additional languages to build during
1c710c3c 1472 stage1. Mostly useful for compiler development.
30b74385
RW
1473 --enable-objc-gc enable use of Boehm's garbage collector with the
1474 GNU Objective-C runtime
1475 --enable-bootstrap enable bootstrapping [yes if native build]
1476 --enable-serial-[{host,target,build}-]configure
1477 force sequential configuration of
1c710c3c 1478 sub-packages for the host, target or build
30b74385 1479 machine, or all sub-packages
1c710c3c
DJ
1480 --enable-maintainer-mode enable make rules and dependencies not useful
1481 (and sometimes confusing) to the casual installer
30b74385
RW
1482 --enable-stage1-checking[=all] choose additional checking for stage1
1483 of the compiler
1c710c3c
DJ
1484 --enable-werror enable -Werror in bootstrap stage2 and later
1485
1486Optional Packages:
1487 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1488 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1489 --with-build-libsubdir=DIR Directory where to find libraries for build system
acd26225
KG
1490 --with-mpc=PATH specify prefix directory for installed MPC package.
1491 Equivalent to --with-mpc-include=PATH/include
1492 plus --with-mpc-lib=PATH/lib
1493 --with-mpc-include=PATH
1494 specify directory for installed MPC include files
1495 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1496 --with-mpfr-dir=PATH this option has been REMOVED
1497 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1c710c3c
DJ
1498 Equivalent to --with-mpfr-include=PATH/include
1499 plus --with-mpfr-lib=PATH/lib
1500 --with-mpfr-include=PATH
30b74385
RW
1501 specify directory for installed MPFR include files
1502 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1503 --with-gmp-dir=PATH this option has been REMOVED
1504 --with-gmp=PATH specify prefix directory for the installed GMP package.
1c710c3c
DJ
1505 Equivalent to --with-gmp-include=PATH/include
1506 plus --with-gmp-lib=PATH/lib
30b74385
RW
1507 --with-gmp-include=PATH specify directory for installed GMP include files
1508 --with-gmp-lib=PATH specify directory for the installed GMP library
f38095f3
JM
1509 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1510 when linking with PPL
00020c16
ILT
1511 --with-stage1-ldflags=FLAGS Linker flags for stage1
1512 -with-stage1-libs=LIBS Libraries for stage1
00020c16 1513 --with-boot-libs=LIBS Libraries for stage2 and later
ed2eaa9f 1514 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
f8bf9252
SP
1515 --with-ppl=PATH Specify prefix directory for the installed PPL package
1516 Equivalent to --with-ppl-include=PATH/include
1517 plus --with-ppl-lib=PATH/lib
1518 --with-ppl-include=PATH Specify directory for installed PPL include files
1519 --with-ppl-lib=PATH Specify the directory for the installed PPL library
d32ef397
AS
1520 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1521 package. Equivalent to
1522 --with-cloog-include=PATH/include plus
1523 --with-cloog-lib=PATH/lib
1524 --with-cloog-include=PATH
1525 Specify directory for installed CLooG include files
1526 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1527 library
30b74385 1528 --with-build-sysroot=SYSROOT
1c710c3c 1529 use sysroot as the system root during the build
c8aea42c
PB
1530 --with-debug-prefix-map='A=B C=D ...'
1531 map A to B, C to D ... in debug information
5646b7b9
AO
1532--with-build-config='NAME NAME2...'
1533 Use config/NAME.mk build configuration
30b74385 1534 --with-build-time-tools=PATH
1c710c3c 1535 use given path to find target tools during the build
1c710c3c
DJ
1536
1537Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
5213506e
RW
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1545 CXX C++ compiler command
1546 CXXFLAGS C++ compiler flags
ffedf511
RW
1547 build_configargs
1548 additional configure arguments for build directories
1549 host_configargs
1550 additional configure arguments for host directories
1551 target_configargs
1552 additional configure arguments for target directories
278a7a38
AO
1553 AR AR for the host
1554 AS AS for the host
1555 DLLTOOL DLLTOOL for the host
1556 LD LD for the host
1557 LIPO LIPO for the host
1558 NM NM for the host
1559 RANLIB RANLIB for the host
1560 STRIP STRIP for the host
1561 WINDRES WINDRES for the host
901119ae 1562 WINDMC WINDMC for the host
278a7a38
AO
1563 OBJCOPY OBJCOPY for the host
1564 OBJDUMP OBJDUMP for the host
1565 CC_FOR_TARGET
1566 CC for the target
1567 CXX_FOR_TARGET
1568 CXX for the target
1569 GCC_FOR_TARGET
1570 GCC for the target
1571 GCJ_FOR_TARGET
1572 GCJ for the target
1573 GFORTRAN_FOR_TARGET
1574 GFORTRAN for the target
632e2a07
ILT
1575 GOC_FOR_TARGET
1576 GOC for the target
278a7a38
AO
1577 AR_FOR_TARGET
1578 AR for the target
1579 AS_FOR_TARGET
1580 AS for the target
1581 DLLTOOL_FOR_TARGET
1582 DLLTOOL for the target
1583 LD_FOR_TARGET
1584 LD for the target
1585 LIPO_FOR_TARGET
1586 LIPO for the target
1587 NM_FOR_TARGET
1588 NM for the target
1589 OBJDUMP_FOR_TARGET
1590 OBJDUMP for the target
1591 RANLIB_FOR_TARGET
1592 RANLIB for the target
1593 STRIP_FOR_TARGET
1594 STRIP for the target
1595 WINDRES_FOR_TARGET
1596 WINDRES for the target
901119ae
KT
1597 WINDMC_FOR_TARGET
1598 WINDMC for the target
1c710c3c
DJ
1599
1600Use these variables to override the choices made by `configure' or to help
1601it to find libraries and programs with nonstandard names/locations.
1602
5213506e 1603Report bugs to the package provider.
1c710c3c 1604_ACEOF
5213506e 1605ac_status=$?
1c710c3c
DJ
1606fi
1607
1608if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
1c710c3c 1610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1611 test -d "$ac_dir" ||
1612 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1613 continue
1c710c3c
DJ
1614 ac_builddir=.
1615
5213506e
RW
1616case "$ac_dir" in
1617.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618*)
1619 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1620 # A ".." for each directory in $ac_dir_suffix.
1621 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625 esac ;;
1626esac
1627ac_abs_top_builddir=$ac_pwd
1628ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629# for backward compatibility:
1630ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1631
1632case $srcdir in
5213506e 1633 .) # We are building in place.
1c710c3c 1634 ac_srcdir=.
5213506e
RW
1635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1638 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1641 *) # Relative name.
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1645esac
5213506e
RW
1646ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1647
1648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1654 echo &&
1655 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1656 else
5213506e
RW
1657 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1658 fi || ac_status=$?
1659 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1660 done
1661fi
1662
5213506e 1663test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1664if $ac_init_version; then
1665 cat <<\_ACEOF
5213506e
RW
1666configure
1667generated by GNU Autoconf 2.64
1c710c3c 1668
5213506e 1669Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1670This configure script is free software; the Free Software Foundation
1671gives unlimited permission to copy, distribute and modify it.
1672_ACEOF
5213506e 1673 exit
0b0dc272 1674fi
5213506e
RW
1675
1676## ------------------------ ##
1677## Autoconf initialization. ##
1678## ------------------------ ##
1679
1680# ac_fn_c_try_compile LINENO
1681# --------------------------
1682# Try to compile conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_c_try_compile ()
1684{
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext
1687 if { { ac_try="$ac_compile"
1688case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_compile") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest.$ac_objext; then :
1706 ac_retval=0
1707else
1708 $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712fi
1713 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714 return $ac_retval
1715
1716} # ac_fn_c_try_compile
1717
1718# ac_fn_cxx_try_compile LINENO
1719# ----------------------------
1720# Try to compile conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_cxx_try_compile ()
1722{
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext
1725 if { { ac_try="$ac_compile"
1726case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_cxx_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.$ac_objext; then :
1744 ac_retval=0
1745else
1746 $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=1
1750fi
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 return $ac_retval
1753
1754} # ac_fn_cxx_try_compile
1755
1756# ac_fn_c_try_link LINENO
1757# -----------------------
1758# Try to link conftest.$ac_ext, and return whether this succeeded.
1759ac_fn_c_try_link ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest$ac_exeext
1763 if { { ac_try="$ac_link"
1764case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769$as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1776 fi
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 $as_test_x conftest$ac_exeext
1784 }; then :
1785 ac_retval=0
1786else
1787 $as_echo "$as_me: failed program was:" >&5
1788sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=1
1791fi
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798 return $ac_retval
1799
1800} # ac_fn_c_try_link
1801cat >config.log <<_ACEOF
1c710c3c
DJ
1802This file contains any messages produced by compilers while
1803running configure, to aid debugging if configure makes a mistake.
1804
1805It was created by $as_me, which was
5213506e 1806generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1807
1808 $ $0 $@
1809
1810_ACEOF
5213506e 1811exec 5>>config.log
1c710c3c
DJ
1812{
1813cat <<_ASUNAME
1814## --------- ##
1815## Platform. ##
1816## --------- ##
1817
1818hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1819uname -m = `(uname -m) 2>/dev/null || echo unknown`
1820uname -r = `(uname -r) 2>/dev/null || echo unknown`
1821uname -s = `(uname -s) 2>/dev/null || echo unknown`
1822uname -v = `(uname -v) 2>/dev/null || echo unknown`
1823
1824/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1825/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1826
1827/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1828/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1829/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1830/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1831/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1832/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1833/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1834
1835_ASUNAME
1836
1837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838for as_dir in $PATH
1839do
1840 IFS=$as_save_IFS
1841 test -z "$as_dir" && as_dir=.
5213506e
RW
1842 $as_echo "PATH: $as_dir"
1843 done
1844IFS=$as_save_IFS
1c710c3c
DJ
1845
1846} >&5
1847
1848cat >&5 <<_ACEOF
1849
1850
1851## ----------- ##
1852## Core tests. ##
1853## ----------- ##
1854
1855_ACEOF
1856
1857
1858# Keep a trace of the command line.
1859# Strip out --no-create and --no-recursion so they do not pile up.
1860# Strip out --silent because we don't want to record it for future runs.
1861# Also quote any args containing shell meta-characters.
1862# Make two passes to allow for proper duplicate-argument suppression.
1863ac_configure_args=
1864ac_configure_args0=
1865ac_configure_args1=
1c710c3c
DJ
1866ac_must_keep_next=false
1867for ac_pass in 1 2
1868do
1869 for ac_arg
1870 do
1871 case $ac_arg in
1872 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1873 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1874 | -silent | --silent | --silen | --sile | --sil)
1875 continue ;;
5213506e
RW
1876 *\'*)
1877 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1878 esac
1879 case $ac_pass in
5213506e 1880 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1881 2)
5213506e 1882 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1883 if test $ac_must_keep_next = true; then
1884 ac_must_keep_next=false # Got value, back to normal.
1885 else
1886 case $ac_arg in
1887 *=* | --config-cache | -C | -disable-* | --disable-* \
1888 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1889 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1890 | -with-* | --with-* | -without-* | --without-* | --x)
1891 case "$ac_configure_args0 " in
1892 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1893 esac
1894 ;;
1895 -* ) ac_must_keep_next=true ;;
1896 esac
1897 fi
5213506e 1898 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1899 ;;
1900 esac
1901 done
1902done
5213506e
RW
1903{ ac_configure_args0=; unset ac_configure_args0;}
1904{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1905
1906# When interrupted or exit'd, cleanup temporary files, and complete
1907# config.log. We remove comments because anyway the quotes in there
1908# would cause problems or look ugly.
5213506e
RW
1909# WARNING: Use '\'' to represent an apostrophe within the trap.
1910# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1911trap 'exit_status=$?
1912 # Save into config.log some information that might help in debugging.
1913 {
1914 echo
1915
1916 cat <<\_ASBOX
1917## ---------------- ##
1918## Cache variables. ##
1919## ---------------- ##
1920_ASBOX
1921 echo
1922 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1923(
1924 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1925 eval ac_val=\$$ac_var
1926 case $ac_val in #(
1927 *${as_nl}*)
1928 case $ac_var in #(
1929 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1930$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1931 esac
1932 case $ac_var in #(
1933 _ | IFS | as_nl) ;; #(
1934 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1935 *) { eval $ac_var=; unset $ac_var;} ;;
1936 esac ;;
1937 esac
1938 done
1c710c3c 1939 (set) 2>&1 |
5213506e
RW
1940 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1941 *${as_nl}ac_space=\ *)
1c710c3c 1942 sed -n \
5213506e
RW
1943 "s/'\''/'\''\\\\'\'''\''/g;
1944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1945 ;; #(
1c710c3c 1946 *)
5213506e 1947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 1948 ;;
5213506e
RW
1949 esac |
1950 sort
1951)
1c710c3c
DJ
1952 echo
1953
1954 cat <<\_ASBOX
1955## ----------------- ##
1956## Output variables. ##
1957## ----------------- ##
1958_ASBOX
1959 echo
1960 for ac_var in $ac_subst_vars
1961 do
5213506e
RW
1962 eval ac_val=\$$ac_var
1963 case $ac_val in
1964 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1965 esac
1966 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1967 done | sort
1968 echo
1969
1970 if test -n "$ac_subst_files"; then
1971 cat <<\_ASBOX
5213506e
RW
1972## ------------------- ##
1973## File substitutions. ##
1974## ------------------- ##
1c710c3c
DJ
1975_ASBOX
1976 echo
1977 for ac_var in $ac_subst_files
1978 do
5213506e
RW
1979 eval ac_val=\$$ac_var
1980 case $ac_val in
1981 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982 esac
1983 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1984 done | sort
1985 echo
1986 fi
1987
1988 if test -s confdefs.h; then
1989 cat <<\_ASBOX
1990## ----------- ##
1991## confdefs.h. ##
1992## ----------- ##
1993_ASBOX
1994 echo
5213506e 1995 cat confdefs.h
1c710c3c
DJ
1996 echo
1997 fi
1998 test "$ac_signal" != 0 &&
5213506e
RW
1999 $as_echo "$as_me: caught signal $ac_signal"
2000 $as_echo "$as_me: exit $exit_status"
1c710c3c 2001 } >&5
5213506e
RW
2002 rm -f core *.core core.conftest.* &&
2003 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2004 exit $exit_status
5213506e 2005' 0
1c710c3c 2006for ac_signal in 1 2 13 15; do
5213506e 2007 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2008done
2009ac_signal=0
2010
2011# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2012rm -f -r conftest* confdefs.h
2013
2014$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2015
2016# Predefined preprocessor variables.
2017
2018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_NAME "$PACKAGE_NAME"
2020_ACEOF
2021
1c710c3c
DJ
2022cat >>confdefs.h <<_ACEOF
2023#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2024_ACEOF
2025
1c710c3c
DJ
2026cat >>confdefs.h <<_ACEOF
2027#define PACKAGE_VERSION "$PACKAGE_VERSION"
2028_ACEOF
0b0dc272 2029
1c710c3c
DJ
2030cat >>confdefs.h <<_ACEOF
2031#define PACKAGE_STRING "$PACKAGE_STRING"
2032_ACEOF
2033
1c710c3c
DJ
2034cat >>confdefs.h <<_ACEOF
2035#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2036_ACEOF
2037
5213506e
RW
2038cat >>confdefs.h <<_ACEOF
2039#define PACKAGE_URL "$PACKAGE_URL"
2040_ACEOF
2041
1c710c3c
DJ
2042
2043# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2044# Prefer an explicitly selected file to automatically selected ones.
2045ac_site_file1=NONE
2046ac_site_file2=NONE
2047if test -n "$CONFIG_SITE"; then
2048 ac_site_file1=$CONFIG_SITE
2049elif test "x$prefix" != xNONE; then
2050 ac_site_file1=$prefix/share/config.site
2051 ac_site_file2=$prefix/etc/config.site
2052else
2053 ac_site_file1=$ac_default_prefix/share/config.site
2054 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2055fi
5213506e
RW
2056for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2057do
2058 test "x$ac_site_file" = xNONE && continue
671aa708 2059 if test -r "$ac_site_file"; then
5213506e
RW
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2061$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2062 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2063 . "$ac_site_file"
2064 fi
2065done
2066
2067if test -r "$cache_file"; then
1c710c3c
DJ
2068 # Some versions of bash will fail to source /dev/null (special
2069 # files actually), so we avoid doing that.
2070 if test -f "$cache_file"; then
5213506e
RW
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2072$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2073 case $cache_file in
5213506e
RW
2074 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2075 *) . "./$cache_file";;
1c710c3c
DJ
2076 esac
2077 fi
671aa708 2078else
5213506e
RW
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2080$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2081 >$cache_file
2082fi
2083
2084# Check that the precious variables saved in the cache have kept the same
2085# value.
2086ac_cache_corrupted=false
5213506e 2087for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2088 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2089 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2090 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2091 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2092 case $ac_old_set,$ac_new_set in
2093 set,)
5213506e
RW
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2095$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2096 ac_cache_corrupted=: ;;
2097 ,set)
5213506e
RW
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2099$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2100 ac_cache_corrupted=: ;;
2101 ,);;
2102 *)
2103 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2104 # differences in whitespace do not lead to failure.
2105 ac_old_val_w=`echo x $ac_old_val`
2106 ac_new_val_w=`echo x $ac_new_val`
2107 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2109$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2110 ac_cache_corrupted=:
2111 else
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2113$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2114 eval $ac_var=\$ac_old_val
2115 fi
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2117$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2119$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2120 fi;;
2121 esac
2122 # Pass precious variables to config.status.
2123 if test "$ac_new_set" = set; then
2124 case $ac_new_val in
5213506e 2125 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2126 *) ac_arg=$ac_var=$ac_new_val ;;
2127 esac
2128 case " $ac_configure_args " in
2129 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2130 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2131 esac
2132 fi
2133done
2134if $ac_cache_corrupted; then
5213506e
RW
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2138$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2139 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2140fi
5213506e
RW
2141## -------------------- ##
2142## Main body of script. ##
2143## -------------------- ##
671aa708 2144
2aeb72e9
DD
2145ac_ext=c
2146ac_cpp='$CPP $CPPFLAGS'
2147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2149ac_compiler_gnu=$ac_cv_c_compiler_gnu
2150
1c710c3c
DJ
2151
2152
2153
1c710c3c
DJ
2154
2155
0115d4a3 2156
1c710c3c 2157
ad33ff57
RW
2158
2159progname=$0
2160# if PWD already has a value, it is probably wrong.
2161if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2162
2163# Export original configure arguments for use by sub-configures.
2164# Quote arguments with shell meta charatcers.
2165TOPLEVEL_CONFIGURE_ARGUMENTS=
2166set -- "$progname" "$@"
2167for ac_arg
2168do
2169 case "$ac_arg" in
2170 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2171 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2172 # if the argument is of the form -foo=baz, quote the baz part only
2173 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2174 *) ;;
2175 esac
2176 # Add the quoted argument to the list.
2177 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2178done
2179if test "$silent" = yes; then
2180 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2181fi
2182# Remove the initial space we just introduced and, as these will be
2183# expanded by make, quote '$'.
2184TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2185
1c710c3c
DJ
2186
2187# Find the build, host, and target systems.
671aa708 2188ac_aux_dir=
5213506e
RW
2189for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2190 for ac_t in install-sh install.sh shtool; do
2191 if test -f "$ac_dir/$ac_t"; then
2192 ac_aux_dir=$ac_dir
2193 ac_install_sh="$ac_aux_dir/$ac_t -c"
2194 break 2
2195 fi
2196 done
671aa708
NN
2197done
2198if test -z "$ac_aux_dir"; then
5213506e 2199 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2200fi
5213506e
RW
2201
2202# These three variables are undocumented and unsupported,
2203# and are intended to be withdrawn in a future Autoconf release.
2204# They can cause serious problems if a builder's source tree is in a directory
2205# whose full name contains unusual characters.
2206ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2207ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2208ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2209
671aa708 2210
1c710c3c 2211# Make sure we can run config.sub.
5213506e
RW
2212$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2213 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2214
2215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2216$as_echo_n "checking build system type... " >&6; }
2217if test "${ac_cv_build+set}" = set; then :
2218 $as_echo_n "(cached) " >&6
2219else
2220 ac_build_alias=$build_alias
2221test "x$ac_build_alias" = x &&
2222 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2223test "x$ac_build_alias" = x &&
2224 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2225ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2226 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2227
2228fi
2229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2230$as_echo "$ac_cv_build" >&6; }
2231case $ac_cv_build in
2232*-*-*) ;;
2233*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2234esac
1c710c3c 2235build=$ac_cv_build
5213506e
RW
2236ac_save_IFS=$IFS; IFS='-'
2237set x $ac_cv_build
2238shift
2239build_cpu=$1
2240build_vendor=$2
2241shift; shift
2242# Remember, the first character of IFS is used to create $*,
2243# except with old shells:
2244build_os=$*
2245IFS=$ac_save_IFS
2246case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2247
671aa708 2248
1c710c3c
DJ
2249 case ${build_alias} in
2250 "") build_noncanonical=${build} ;;
2251 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2252esac
2253
2254
af71363e 2255
1c710c3c
DJ
2256 case ${host_alias} in
2257 "") host_noncanonical=${build_noncanonical} ;;
2258 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2259esac
2260
af71363e 2261
1c710c3c
DJ
2262
2263 case ${target_alias} in
2264 "") target_noncanonical=${host_noncanonical} ;;
2265 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2266esac
2267
af71363e 2268
1c710c3c
DJ
2269
2270
2271test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2272 test "$program_prefix$program_suffix$program_transform_name" = \
2273 NONENONEs,x,x, &&
1c710c3c 2274 program_transform_name=s,y,y,
af71363e 2275
5213506e
RW
2276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2277$as_echo_n "checking host system type... " >&6; }
2278if test "${ac_cv_host+set}" = set; then :
2279 $as_echo_n "(cached) " >&6
af71363e 2280else
5213506e
RW
2281 if test "x$host_alias" = x; then
2282 ac_cv_host=$ac_cv_build
2283else
2284 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2285 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2286fi
1c710c3c 2287
af71363e 2288fi
5213506e
RW
2289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2290$as_echo "$ac_cv_host" >&6; }
2291case $ac_cv_host in
2292*-*-*) ;;
2293*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2294esac
1c710c3c 2295host=$ac_cv_host
5213506e
RW
2296ac_save_IFS=$IFS; IFS='-'
2297set x $ac_cv_host
2298shift
2299host_cpu=$1
2300host_vendor=$2
2301shift; shift
2302# Remember, the first character of IFS is used to create $*,
2303# except with old shells:
2304host_os=$*
2305IFS=$ac_save_IFS
2306case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2307
2308
5213506e
RW
2309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2310$as_echo_n "checking target system type... " >&6; }
2311if test "${ac_cv_target+set}" = set; then :
2312 $as_echo_n "(cached) " >&6
1c710c3c 2313else
5213506e
RW
2314 if test "x$target_alias" = x; then
2315 ac_cv_target=$ac_cv_host
2316else
2317 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2318 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2319fi
1c710c3c
DJ
2320
2321fi
5213506e
RW
2322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2323$as_echo "$ac_cv_target" >&6; }
2324case $ac_cv_target in
2325*-*-*) ;;
2326*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2327esac
1c710c3c 2328target=$ac_cv_target
5213506e
RW
2329ac_save_IFS=$IFS; IFS='-'
2330set x $ac_cv_target
2331shift
2332target_cpu=$1
2333target_vendor=$2
2334shift; shift
2335# Remember, the first character of IFS is used to create $*,
2336# except with old shells:
2337target_os=$*
2338IFS=$ac_save_IFS
2339case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2340
2341
2342# The aliases save the names the user supplied, while $host etc.
2343# will get canonicalized.
2344test -n "$target_alias" &&
2345 test "$program_prefix$program_suffix$program_transform_name" = \
2346 NONENONEs,x,x, &&
2347 program_prefix=${target_alias}-
5213506e 2348
671aa708 2349test "$program_prefix" != NONE &&
5213506e 2350 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2351# Use a double $ so make ignores it.
2352test "$program_suffix" != NONE &&
5213506e
RW
2353 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2354# Double any \ or $.
1c710c3c 2355# By default was `s,x,x', remove it if useless.
5213506e
RW
2356ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2357program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2358
671aa708
NN
2359
2360
775956d0
NN
2361# Get 'install' or 'install-sh' and its variants.
2362# Find a good install program. We prefer a C program (faster),
2363# so one script is as good as another. But avoid the broken or
2364# incompatible versions:
2365# SysV /etc/install, /usr/sbin/install
2366# SunOS /usr/etc/install
2367# IRIX /sbin/install
2368# AIX /bin/install
1c710c3c 2369# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2370# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2371# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2372# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2373# OS/2's system install, which has a completely different semantic
775956d0 2374# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2375# Reject install programs that cannot install multiple files.
5213506e
RW
2376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2377$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2378if test -z "$INSTALL"; then
5213506e
RW
2379if test "${ac_cv_path_install+set}" = set; then :
2380 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2381else
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
5213506e
RW
2387 # Account for people who put trailing slashes in PATH elements.
2388case $as_dir/ in #((
2389 ./ | .// | /[cC]/* | \
1c710c3c 2390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2391 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2392 /usr/ucb/* ) ;;
2393 *)
2394 # OSF1 and SCO ODT 3.0 have their own names for install.
2395 # Don't use installbsd from OSF since it installs stuff as root
2396 # by default.
2397 for ac_prog in ginstall scoinst install; do
2398 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2399 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2400 if test $ac_prog = install &&
1c710c3c 2401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2402 # AIX install. It has an incompatible calling convention.
2403 :
1c710c3c
DJ
2404 elif test $ac_prog = install &&
2405 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2406 # program-specific install script used by HP pwplus--don't use.
2407 :
775956d0 2408 else
38d24731
RW
2409 rm -rf conftest.one conftest.two conftest.dir
2410 echo one > conftest.one
2411 echo two > conftest.two
2412 mkdir conftest.dir
2413 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2414 test -s conftest.one && test -s conftest.two &&
2415 test -s conftest.dir/conftest.one &&
2416 test -s conftest.dir/conftest.two
2417 then
2418 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2419 break 3
2420 fi
775956d0
NN
2421 fi
2422 fi
2423 done
1c710c3c
DJ
2424 done
2425 ;;
2426esac
5213506e
RW
2427
2428 done
2429IFS=$as_save_IFS
1c710c3c 2430
38d24731 2431rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2432
2433fi
2434 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2435 INSTALL=$ac_cv_path_install
775956d0 2436 else
38d24731
RW
2437 # As a last resort, use the slow shell script. Don't cache a
2438 # value for INSTALL within a source directory, because that will
775956d0 2439 # break other packages using the cache if that directory is
38d24731 2440 # removed, or if the value is a relative name.
1c710c3c 2441 INSTALL=$ac_install_sh
775956d0
NN
2442 fi
2443fi
5213506e
RW
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2445$as_echo "$INSTALL" >&6; }
775956d0
NN
2446
2447# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2448# It thinks the first close brace ends the variable substitution.
2449test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2450
1c710c3c 2451test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2452
2453test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2454
5213506e
RW
2455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2456$as_echo_n "checking whether ln works... " >&6; }
2457if test "${acx_cv_prog_LN+set}" = set; then :
2458 $as_echo_n "(cached) " >&6
ad6717df
PB
2459else
2460 rm -f conftestdata_t
2461echo >conftestdata_f
2462if ln conftestdata_f conftestdata_t 2>/dev/null
2463then
2464 acx_cv_prog_LN=ln
2465else
2466 acx_cv_prog_LN=no
2467fi
2468rm -f conftestdata_f conftestdata_t
2469
2470fi
2471if test $acx_cv_prog_LN = no; then
2472 LN="cp"
5213506e
RW
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2474$as_echo "no, using $LN" >&6; }
ad6717df
PB
2475else
2476 LN="$acx_cv_prog_LN"
5213506e
RW
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2478$as_echo "yes" >&6; }
ad6717df
PB
2479fi
2480
5213506e
RW
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2482$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2483LN_S=$as_ln_s
2484if test "$LN_S" = "ln -s"; then
5213506e
RW
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2486$as_echo "yes" >&6; }
fb0103e5 2487else
5213506e
RW
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2489$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2490fi
2491
87264276
PB
2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2493$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2494if test "${ac_cv_path_SED+set}" = set; then :
2495 $as_echo_n "(cached) " >&6
2496else
2497 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2498 for ac_i in 1 2 3 4 5 6 7; do
2499 ac_script="$ac_script$as_nl$ac_script"
2500 done
2501 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2502 { ac_script=; unset ac_script;}
2503 if test -z "$SED"; then
2504 ac_path_SED_found=false
2505 # Loop through the user's path and test for each of PROGNAME-LIST
2506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507for as_dir in $PATH
2508do
2509 IFS=$as_save_IFS
2510 test -z "$as_dir" && as_dir=.
2511 for ac_prog in sed gsed; do
2512 for ac_exec_ext in '' $ac_executable_extensions; do
2513 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2514 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2515# Check for GNU ac_path_SED and select it if it is found.
2516 # Check for GNU $ac_path_SED
2517case `"$ac_path_SED" --version 2>&1` in
2518*GNU*)
2519 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2520*)
2521 ac_count=0
2522 $as_echo_n 0123456789 >"conftest.in"
2523 while :
2524 do
2525 cat "conftest.in" "conftest.in" >"conftest.tmp"
2526 mv "conftest.tmp" "conftest.in"
2527 cp "conftest.in" "conftest.nl"
2528 $as_echo '' >> "conftest.nl"
2529 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2531 as_fn_arith $ac_count + 1 && ac_count=$as_val
2532 if test $ac_count -gt ${ac_path_SED_max-0}; then
2533 # Best one so far, save it but keep looking for a better one
2534 ac_cv_path_SED="$ac_path_SED"
2535 ac_path_SED_max=$ac_count
2536 fi
2537 # 10*(2^10) chars as input seems more than enough
2538 test $ac_count -gt 10 && break
2539 done
2540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2541esac
2542
2543 $ac_path_SED_found && break 3
2544 done
2545 done
2546 done
2547IFS=$as_save_IFS
2548 if test -z "$ac_cv_path_SED"; then
2549 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2550 fi
2551else
2552 ac_cv_path_SED=$SED
2553fi
2554
2555fi
2556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2557$as_echo "$ac_cv_path_SED" >&6; }
2558 SED="$ac_cv_path_SED"
2559 rm -f conftest.sed
2560
2561for ac_prog in gawk mawk nawk awk
2562do
2563 # Extract the first word of "$ac_prog", so it can be a program name with args.
2564set dummy $ac_prog; ac_word=$2
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2566$as_echo_n "checking for $ac_word... " >&6; }
2567if test "${ac_cv_prog_AWK+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569else
2570 if test -n "$AWK"; then
2571 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2572else
2573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2580 ac_cv_prog_AWK="$ac_prog"
2581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584done
2585 done
2586IFS=$as_save_IFS
2587
2588fi
2589fi
2590AWK=$ac_cv_prog_AWK
2591if test -n "$AWK"; then
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2593$as_echo "$AWK" >&6; }
2594else
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2596$as_echo "no" >&6; }
2597fi
2598
2599
2600 test -n "$AWK" && break
2601done
2602
775956d0 2603
79c06341 2604### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
2605### If we are on Windows, search for the shell. This will permit people
2606### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2607### without also having to set CONFIG_SHELL. This code will work when
2608### using bash, which sets OSTYPE.
2609case "${OSTYPE}" in
2610*win32*)
671aa708
NN
2611 if test x${CONFIG_SHELL} = x ; then
2612 if test ! -f /bin/sh ; then
2613 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
2614 CONFIG_SHELL=${SHELL}
2615 export CONFIG_SHELL
2616 else
2617 for prog in sh sh.exe bash bash.exe; do
2618 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2619 for dir in $PATH; do
2620 test -z "$dir" && dir=.
2621 if test -f $dir/$prog; then
2622 CONFIG_SHELL=$dir/$prog
2623 export CONFIG_SHELL
2624 break
2625 fi
2626 done
2627 IFS="$save_ifs"
2628 test -n "${CONFIG_SHELL}" && break
2629 done
2630 fi
2631 fi
2632 fi
2633 ;;
2634esac
2635
2636config_shell=${CONFIG_SHELL-/bin/sh}
2637
671aa708 2638moveifchange=${srcdir}/move-if-change
79c06341 2639
ee6a22df
L
2640srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2641
2642# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2643# a relative path.
2644if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2645 INSTALL="${srcpwd}/install-sh -c"
2646fi
2647
671aa708
NN
2648# Set srcdir to "." if that's what it is.
2649# This is important for multilib support.
2650pwd=`${PWDCMD-pwd}`
671aa708
NN
2651if test "${pwd}" = "${srcpwd}" ; then
2652 srcdir=.
79c06341
JL
2653fi
2654
671aa708 2655topsrcdir=$srcpwd
5d4a5ee6 2656
671aa708 2657extra_host_args=
afabd8e6 2658
671aa708
NN
2659### To add a new directory to the tree, first choose whether it is a target
2660### or a host dependent tool. Then put it into the appropriate list
2661### (library or tools, host or target), doing a dependency sort.
79c06341 2662
1c710c3c 2663# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2664# configdirs, or target_configdirs; see the serialization section below.
79c06341 2665
1c710c3c
DJ
2666# Dependency sorting is only needed when *configuration* must be done in
2667# a particular order. In all cases a dependency should be specified in
671aa708 2668# the Makefile, whether or not it's implicitly specified here.
79c06341 2669
671aa708
NN
2670# Double entries in build_configdirs, configdirs, or target_configdirs may
2671# cause circular dependencies and break everything horribly.
79c06341 2672
23f6b2f9
PB
2673# these library is used by various programs built for the build
2674# environment
2675#
2676build_libs="build-libiberty"
2677
2678# these tools are built for the build environment
71b5d516 2679build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2680
671aa708
NN
2681# these libraries are used by various programs built for the host environment
2682#
f61428ed 2683host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
671aa708 2684
671aa708
NN
2685# these tools are built for the host environment
2686# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2687# know that we are building the simulator.
2688# binutils, gas and ld appear in that order because it makes sense to run
2689# "make check" in that particular order.
38e3d868 2690# If --enable-gold is used, "gold" may replace "ld".
8c32c9f0 2691host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
671aa708
NN
2692
2693# libgcj represents the runtime libraries only used by gcj.
2694libgcj="target-libffi \
671aa708
NN
2695 target-zlib \
2696 target-qthreads \
2697 target-libjava"
2698
2699# these libraries are built for the target environment, and are built after
2700# the host libraries and the host tools (which may be a cross compiler)
2701#
291f172e
DJ
2702target_libraries="target-libgcc \
2703 target-libiberty \
671aa708
NN
2704 target-libgloss \
2705 target-newlib \
6d3b5aea 2706 target-libgomp \
cb543528 2707 target-libstdc++-v3 \
6de9cd9a 2708 target-libmudflap \
77008252 2709 target-libssp \
1ec601bf 2710 target-libquadmath \
6de9cd9a 2711 target-libgfortran \
7cd0cf9c 2712 target-boehm-gc \
77d187bc 2713 ${libgcj} \
d9cdb878 2714 target-libobjc \
632e2a07
ILT
2715 target-libada \
2716 target-libgo"
671aa708 2717
4dbda6f0
NN
2718# these tools are built using the target libraries, and are intended to
2719# run only in the target environment
671aa708 2720#
4dbda6f0 2721# note: any program that *uses* libraries that are in the "target_libraries"
671aa708
NN
2722# list belongs in this list. those programs are also very likely
2723# candidates for the "native_only" list which follows
2724#
97286f7f 2725target_tools="target-examples target-groff target-gperf target-rda"
79c06341 2726
671aa708 2727################################################################################
79c06341 2728
671aa708
NN
2729## All tools belong in one of the four categories, and are assigned above
2730## We assign ${configdirs} this way to remove all embedded newlines. This
2731## is important because configure will choke if they ever get through.
2732## ${configdirs} is directories we build using the host tools.
2733## ${target_configdirs} is directories we build using the target tools.
671aa708 2734configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2735target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2736build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2737
ac9e6043
RW
2738
2739
671aa708 2740################################################################################
79c06341 2741
671aa708 2742srcname="gnu development package"
79c06341 2743
671aa708
NN
2744# This gets set non-empty for some net releases of packages.
2745appdirs=""
79c06341 2746
671aa708
NN
2747# Define is_cross_compiler to save on calls to 'test'.
2748is_cross_compiler=
2749if test x"${host}" = x"${target}" ; then
2750 is_cross_compiler=no
79c06341 2751else
671aa708 2752 is_cross_compiler=yes
1c710c3c 2753fi
79c06341 2754
b4acb5ef 2755# Find the build and target subdir names.
8b87bb96 2756
2e9e6f68
DJ
2757# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2758# have matching libraries, they should use host libraries: Makefile.tpl
2759# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2760# However, they still use the build modules, because the corresponding
2761# host modules (e.g. bison) are only built for the host when bootstrap
2762# finishes. So:
2763# - build_subdir is where we find build modules, and never changes.
2764# - build_libsubdir is where we find build libraries, and can be overridden.
2765
2766# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2767build_subdir="build-${build_noncanonical}"
1c710c3c 2768
5213506e
RW
2769# Check whether --with-build-libsubdir was given.
2770if test "${with_build_libsubdir+set}" = set; then :
2771 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2772else
2773 build_libsubdir="$build_subdir"
5213506e
RW
2774fi
2775
215c351a
PB
2776# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2777if ( test $srcdir = . && test -d gcc ) \
2778 || test -d $srcdir/../host-${host_noncanonical}; then
2779 host_subdir="host-${host_noncanonical}"
2780else
2781 host_subdir=.
2782fi
8b87bb96
NN
2783# No prefix.
2784target_subdir=${target_noncanonical}
1c710c3c 2785
0db770bd
RW
2786# Be sure to cover against remnants of an in-tree build.
2787if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2788 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2789Use a pristine source tree when building in a separate tree" "$LINENO" 5
2790fi
79c06341 2791
671aa708
NN
2792# Skipdirs are removed silently.
2793skipdirs=
2794# Noconfigdirs are removed loudly.
2795noconfigdirs=""
79c06341 2796
671aa708
NN
2797use_gnu_ld=
2798# Make sure we don't let GNU ld be added if we didn't want it.
2799if test x$with_gnu_ld = xno ; then
2800 use_gnu_ld=no
5afab7ad 2801 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2802fi
2803
671aa708
NN
2804use_gnu_as=
2805# Make sure we don't let GNU as be added if we didn't want it.
2806if test x$with_gnu_as = xno ; then
2807 use_gnu_as=no
2808 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2809fi
2810
d7f09764
DN
2811use_included_zlib=
2812# Make sure we don't let ZLIB be added if we didn't want it.
2813if test x$with_system_zlib = xyes ; then
2814 use_included_zlib=no
2815 noconfigdirs="$noconfigdirs zlib"
2816fi
2817
1c710c3c 2818# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2819# it's not even worth trying to configure, much less build, that tool.
79c06341 2820
671aa708
NN
2821case ${with_x} in
2822 yes | "") ;; # the default value for this tree is that X11 is available
2823 no)
b4f96efe 2824 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2825 # We won't be able to build gdbtk without X.
1c710c3c 2826 enable_gdbtk=no
671aa708
NN
2827 ;;
2828 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2829esac
79c06341 2830
671aa708 2831# Some tools are only suitable for building in a "native" situation.
1c710c3c 2832# Remove these if host!=target.
9e299237 2833native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
79c06341 2834
671aa708
NN
2835# Similarly, some are only suitable for cross toolchains.
2836# Remove these if host=target.
2837cross_only="target-libgloss target-newlib target-opcodes"
2838
2839case $is_cross_compiler in
2840 no) skipdirs="${skipdirs} ${cross_only}" ;;
2841 yes) skipdirs="${skipdirs} ${native_only}" ;;
2842esac
79c06341 2843
671aa708
NN
2844# If both --with-headers and --with-libs are specified, default to
2845# --without-newlib.
ee6a22df
L
2846if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2847 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2848 if test x"${with_newlib}" = x ; then
2849 with_newlib=no
2850 fi
79c06341
JL
2851fi
2852
671aa708
NN
2853# Recognize --with-newlib/--without-newlib.
2854case ${with_newlib} in
2855 no) skipdirs="${skipdirs} target-newlib" ;;
2856 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2857esac
79c06341 2858
21539e2e
MK
2859# Handle --enable-gold, --enable-ld.
2860# --disable-gold [--enable-ld]
2861# Build only ld. Default option.
9580395f
L
2862# --enable-gold [--enable-ld]
2863# Build both gold and ld. Install gold as "ld.gold", install ld
2864# as "ld.bfd" and "ld".
2865# --enable-gold=default [--enable-ld]
21539e2e
MK
2866# Build both gold and ld. Install gold as "ld.gold" and "ld",
2867# install ld as "ld.bfd".
2868# --enable-gold[=default] --disable-ld
2869# Build only gold, which is then installed as both "ld.gold" and "ld".
2870# --enable-gold --enable-ld=default
9580395f
L
2871# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2872# and ld.bfd).
21539e2e
MK
2873# In other words, ld is default
2874# --enable-gold=default --enable-ld=default
2875# Error.
2876
2877default_ld=
5213506e
RW
2878# Check whether --enable-gold was given.
2879if test "${enable_gold+set}" = set; then :
2880 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2881else
2882 ENABLE_GOLD=no
5213506e
RW
2883fi
2884
21539e2e
MK
2885case "${ENABLE_GOLD}" in
2886 yes|default)
38e3d868
RM
2887 # Check for ELF target.
2888 is_elf=no
2889 case "${target}" in
2890 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2891 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2892 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2893 case "${target}" in
2894 *-*-linux*aout* | *-*-linux*oldld*)
2895 ;;
2896 *)
2897 is_elf=yes
2898 ;;
2899 esac
2900 esac
2901
2902 if test "$is_elf" = "yes"; then
2903 # Check for target supported by gold.
5afab7ad 2904 case "${target}" in
38e3d868 2905 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
21539e2e
MK
2906 configdirs="$configdirs gold"
2907 if test x${ENABLE_GOLD} = xdefault; then
2908 default_ld=gold
2909 fi
38e3d868 2910 ENABLE_GOLD=yes
5afab7ad
ILT
2911 ;;
2912 esac
38e3d868
RM
2913 fi
2914 ;;
2915 no)
2916 ;;
2917 *)
2918 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2919 ;;
21539e2e
MK
2920esac
2921
2922# Check whether --enable-ld was given.
2923if test "${enable_ld+set}" = set; then :
2924 enableval=$enable_ld; ENABLE_LD=$enableval
2925else
2926 ENABLE_LD=yes
2927fi
2928
2929
2930case "${ENABLE_LD}" in
2931 default)
9580395f 2932 if test x${default_ld} != x; then
21539e2e
MK
2933 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2934 fi
2935 ;;
2936 yes)
2937 ;;
2938 no)
2939 if test x${ENABLE_GOLD} != xyes; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2941$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2942 fi
2943 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2944 ;;
2945 *)
2946 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2947 ;;
2948esac
5afab7ad 2949
671aa708 2950# Configure extra directories which are host specific
79c06341 2951
671aa708
NN
2952case "${host}" in
2953 *-cygwin*)
2954 configdirs="$configdirs libtermcap" ;;
2955esac
79c06341 2956
4fab7234
HPN
2957# A target can indicate whether a language isn't supported for some reason.
2958# Only spaces may be used in this macro; not newlines or tabs.
2959unsupported_languages=
2960
1c710c3c 2961# Remove more programs from consideration, based on the host or
671aa708
NN
2962# target this usually means that a port of the program doesn't
2963# exist yet.
ec8d6ddc 2964
671aa708
NN
2965case "${host}" in
2966 hppa*64*-*-*)
2967 noconfigdirs="$noconfigdirs byacc"
2968 ;;
f2a0e225 2969 i[3456789]86-*-vsta)
b4f96efe 2970 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
671aa708 2971 ;;
f2a0e225 2972 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
b4f96efe 2973 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
3aa83176 2974 ;;
95af8923
KT
2975 x86_64-*-mingw*)
2976 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2977 ;;
f2a0e225 2978 i[3456789]86-*-mingw32*)
b4f96efe 2979 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
b91f0a41 2980 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
3aa83176 2981 ;;
f2a0e225 2982 i[3456789]86-*-beos*)
b4f96efe 2983 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
3aa83176 2984 ;;
671aa708 2985 *-*-cygwin*)
a22c2d8d 2986 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
671aa708
NN
2987 ;;
2988 *-*-netbsd*)
a22c2d8d 2989 noconfigdirs="$noconfigdirs rcs"
671aa708
NN
2990 ;;
2991 ppc*-*-pe)
b4f96efe 2992 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
671aa708
NN
2993 ;;
2994 powerpc-*-beos*)
b4f96efe 2995 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
671aa708 2996 ;;
671aa708 2997esac
ec8d6ddc 2998
6de9cd9a 2999
87e6d9dc
TB
3000# Check whether --enable-libquadmath was given.
3001if test "${enable_libquadmath+set}" = set; then :
3002 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3003else
3004 ENABLE_LIBQUADMATH=yes
3005fi
3006
3007if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3008 noconfigdirs="$noconfigdirs target-libquadmath"
3009fi
3010
3011
3012# Check whether --enable-libquadmath-support was given.
3013if test "${enable_libquadmath_support+set}" = set; then :
3014 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3015else
3016 ENABLE_LIBQUADMATH_SUPPORT=yes
3017fi
3018
3019enable_libquadmath_support=
3020if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3021 enable_libquadmath_support=no
3022fi
3023
3024
5213506e
RW
3025# Check whether --enable-libada was given.
3026if test "${enable_libada+set}" = set; then :
3027 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3028else
3029 ENABLE_LIBADA=yes
5213506e
RW
3030fi
3031
d9cdb878 3032if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3033 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3034fi
3035
5213506e
RW
3036# Check whether --enable-libssp was given.
3037if test "${enable_libssp+set}" = set; then :
3038 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3039else
3040 ENABLE_LIBSSP=yes
5213506e
RW
3041fi
3042
ef0087a7 3043
671aa708
NN
3044# Save it here so that, even in case of --enable-libgcj, if the Java
3045# front-end isn't enabled, we still get libgcj disabled.
3046libgcj_saved=$libgcj
3047case $enable_libgcj in
3048yes)
3049 # If we reset it here, it won't get added to noconfigdirs in the
3050 # target-specific build rules, so it will be forcibly enabled
3051 # (unless the Java language itself isn't enabled).
3052 libgcj=
3053 ;;
3054no)
3055 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3056 # Don't disable libffi, though, other languages use it.
3057 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3058 # Clear libgcj_saved so that even if java is enabled libffi won't be
3059 # built.
3060 libgcj_saved=
671aa708
NN
3061 ;;
3062esac
ec8d6ddc 3063
6de9cd9a 3064
27079765
AH
3065# Disable libmudflap on some systems.
3066if test x$enable_libmudflap = x ; then
dfcada9a 3067 case "${target}" in
416ac4d4 3068 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3069 # Enable libmudflap by default in GNU and friends.
dfcada9a 3070 ;;
a3e8d8b4
LR
3071 *-*-freebsd*)
3072 # Enable libmudflap by default in FreeBSD.
3073 ;;
dfcada9a
MM
3074 *)
3075 # Disable it by default everywhere else.
3076 noconfigdirs="$noconfigdirs target-libmudflap"
3077 ;;
3078 esac
27079765 3079fi
6de9cd9a 3080
27079765
AH
3081# Disable libgomp on non POSIX hosted systems.
3082if test x$enable_libgomp = x ; then
953ff289
DN
3083 # Enable libgomp by default on hosted POSIX systems.
3084 case "${target}" in
416ac4d4 3085 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
3086 ;;
3087 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3088 ;;
04879af3 3089 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 3090 ;;
cac90078 3091 *-*-darwin* | *-*-aix*)
953ff289
DN
3092 ;;
3093 *)
3094 noconfigdirs="$noconfigdirs target-libgomp"
3095 ;;
3096 esac
27079765 3097fi
953ff289 3098
c03353e2
RIL
3099# Default libgloss CPU subdirectory.
3100libgloss_dir="$target_cpu"
6de9cd9a 3101
671aa708
NN
3102case "${target}" in
3103 *-*-chorusos)
cb253473 3104 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3105 ;;
75eeae1a 3106 powerpc-*-darwin*)
e1514c3f 3107 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3108 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3109 ;;
354ebf88
RW
3110 i[3456789]86-*-darwin*)
3111 noconfigdirs="$noconfigdirs ld gprof"
3112 noconfigdirs="$noconfigdirs sim target-rda"
3113 ;;
3114 x86_64-*-darwin[912]*)
0db3a858
TG
3115 noconfigdirs="$noconfigdirs ld gas gprof"
3116 noconfigdirs="$noconfigdirs sim target-rda"
3117 ;;
42c1cd8a
AT
3118 *-*-darwin*)
3119 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3120 noconfigdirs="$noconfigdirs sim target-rda"
3121 noconfigdirs="$noconfigdirs ${libgcj}"
3122 ;;
671aa708 3123 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 3124 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3125 ;;
c3f84f61 3126 *-*-freebsd*)
6de9cd9a
DN
3127 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3128 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3129 && test -f /usr/local/include/gmp.h; then
3130 with_gmp=/usr/local
3131 fi
3132
3133 # Skip some stuff that's unsupported on some FreeBSD configurations.
3134 case "${target}" in
3135 i*86-*-*) ;;
3136 alpha*-*-*) ;;
f3f623ae 3137 x86_64-*-*) ;;
6de9cd9a 3138 *)
cb253473 3139 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
3140 ;;
3141 esac
3142 ;;
ef4e7569
US
3143 *-*-kaos*)
3144 # Remove unsupported stuff on all kaOS configurations.
cb253473 3145 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
ef4e7569
US
3146 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3147 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3148 noconfigdirs="$noconfigdirs target-libgloss"
3149 ;;
671aa708
NN
3150 *-*-netbsd*)
3151 # Skip some stuff on all NetBSD configurations.
3152 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3153
3154 # Skip some stuff that's unsupported on some NetBSD configurations.
3155 case "${target}" in
3156 i*86-*-netbsdelf*) ;;
0590b963 3157 arm*-*-netbsdelf*) ;;
671aa708 3158 *)
cb253473 3159 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3160 ;;
3161 esac
3162 ;;
61fec9ff 3163 *-*-netware*)
cb253473 3164 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
671aa708
NN
3165 ;;
3166 *-*-rtems*)
e4522f78 3167 skipdirs="${skipdirs} target-libiberty"
cb253473 3168 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3169 ;;
a8ba31f2
EC
3170 # The tpf target doesn't support gdb yet.
3171 *-*-tpf*)
cb253473 3172 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
a8ba31f2 3173 ;;
5785c0ed 3174 *-*-uclinux*)
cb253473 3175 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 3176 ;;
671aa708 3177 *-*-vxworks*)
cb253473 3178 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
3179 ;;
3180 alpha*-dec-osf*)
3181 # ld works, but does not support shared libraries.
3182 # newlib is not 64 bit ready. I'm not sure about fileutils.
3183 # gas doesn't generate exception information.
3184 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3185 ;;
3186 alpha*-*-*vms*)
8406cb62 3187 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708
NN
3188 ;;
3189 alpha*-*-linux*)
3190 # newlib is not 64 bit ready
3191 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3192 ;;
671aa708
NN
3193 alpha*-*-*)
3194 # newlib is not 64 bit ready
cb253473 3195 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3196 ;;
33952f6f 3197 am33_2.0-*-linux*)
cb253473 3198 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 3199 ;;
671aa708 3200 sh-*-linux*)
cb253473 3201 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 3202 ;;
671aa708 3203 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 3204 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3205 noconfigdirs="$noconfigdirs target-examples"
3206 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
b4f96efe 3207 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3208 noconfigdirs="$noconfigdirs expect dejagnu"
3209 # the C++ libraries don't build on top of CE's C libraries
cb543528 3210 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708
NN
3211 noconfigdirs="$noconfigdirs target-newlib"
3212 case "${host}" in
3213 *-*-cygwin*) ;; # keep gdb and readline
aa9c3ab4 3214 *) noconfigdirs="$noconfigdirs gdb readline"
671aa708
NN
3215 ;;
3216 esac
c03353e2 3217 libgloss_dir=wince
671aa708
NN
3218 ;;
3219 arc-*-*)
cb253473 3220 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3221 ;;
ee6a22df 3222 arm-semi-aof )
ee6a22df 3223 ;;
671aa708 3224 arm-*-coff | strongarm-*-coff | xscale-*-coff)
cb253473 3225 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3226 libgloss_dir=arm
671aa708 3227 ;;
b3f8d95d 3228 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
671aa708 3229 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
c03353e2 3230 libgloss_dir=arm
671aa708 3231 ;;
077fc835 3232 arm*-*-linux-gnueabi)
c4e9bf2b 3233 noconfigdirs="$noconfigdirs target-qthreads"
1c00b503
PB
3234 case ${with_newlib} in
3235 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3236 esac
c03353e2 3237 libgloss_dir=arm
077fc835 3238 ;;
972974fc 3239 arm*-*-symbianelf*)
cb253473 3240 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 3241 libgloss_dir=arm
972974fc 3242 ;;
671aa708 3243 arm-*-pe*)
cb253473 3244 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3245 ;;
671aa708 3246 thumb-*-coff)
cb253473 3247 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3248 ;;
3249 thumb-*-elf)
cb253473 3250 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3251 ;;
671aa708 3252 thumb-*-pe)
cb253473 3253 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3254 ;;
3255 arm-*-riscix*)
cb253473 3256 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
3257 ;;
3258 avr-*-*)
ac3949d9 3259 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 3260 ;;
6b65a26d 3261 bfin-*-*)
1c3c9f12 3262 unsupported_languages="$unsupported_languages java"
fb701687 3263 noconfigdirs="$noconfigdirs target-boehm-gc"
61efc800 3264 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
3265 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3266 fi
3267 ;;
671aa708 3268 c4x-*-* | tic4x-*-*)
cb253473 3269 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3270 ;;
3271 c54x*-*-* | tic54x-*-*)
cb253473 3272 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 3273 ;;
c993ae60
SR
3274 cr16-*-*)
3275 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3276 ;;
40d64b5a 3277 cris-*-* | crisv32-*-*)
4fab7234 3278 unsupported_languages="$unsupported_languages java"
40d64b5a 3279 case "${target}" in
c2e0d3a9 3280 *-*-aout)
7f26dfa3 3281 unsupported_languages="$unsupported_languages fortran"
4fab7234 3282 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
d062cd48
HPN
3283 *-*-elf) # See PR46792 regarding target-libffi.
3284 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 3285 *-*-linux*)
789ec619 3286 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 3287 *)
7f26dfa3 3288 unsupported_languages="$unsupported_languages fortran"
cb253473 3289 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 3290 esac
c03353e2 3291 libgloss_dir=cris
671aa708 3292 ;;
25b656e7 3293 crx-*-*)
cb253473 3294 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
25b656e7 3295 ;;
671aa708 3296 d10v-*-*)
cb253473 3297 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3298 ;;
3299 d30v-*-*)
cb253473 3300 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708 3301 ;;
c03353e2
RIL
3302 ep9312-*-elf | ep9312-*-coff)
3303 libgloss_dir=arm
3304 ;;
671aa708 3305 fr30-*-elf*)
cb253473 3306 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
3307 ;;
3308 frv-*-*)
cb253473 3309 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3310 ;;
55f2d967
AG
3311 moxie-*-*)
3312 noconfigdirs="$noconfigdirs ${libgcj}"
3313 noconfigdirs="$noconfigdirs gprof"
3314 ;;
671aa708 3315 h8300*-*-*)
cb253473 3316 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3317 ;;
3318 h8500-*-*)
cb253473 3319 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3320 ;;
ee6a22df 3321 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3322 ;;
671aa708
NN
3323 hppa*64*-*-linux* | parisc*64*-*-linux*)
3324 # In this case, it's because the hppa64-linux target is for
3325 # the kernel only at this point and has no libc, and thus no
3326 # headers, crt*.o, etc., all of which are needed by these.
3327 noconfigdirs="$noconfigdirs target-zlib"
3328 ;;
3e732ba0
JDA
3329 parisc*-*-linux* | hppa*-*-linux*)
3330 ;;
671aa708 3331 hppa*-*-*elf* | \
671aa708
NN
3332 hppa*-*-lites* | \
3333 hppa*-*-openbsd* | \
3334 hppa*64*-*-*)
cb253473 3335 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3336 ;;
2a332582
JDA
3337 hppa*-hp-hpux11*)
3338 noconfigdirs="$noconfigdirs ld shellutils"
3339 ;;
c03353e2
RIL
3340 hppa*-*-pro*)
3341 libgloss_dir=pa
3342 ;;
671aa708
NN
3343 hppa*-*-*)
3344 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3345 # build on HP-UX 10.20.
cb253473 3346 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
671aa708 3347 ;;
fb87ad5d 3348 i960-*-*)
cb253473 3349 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 3350 ;;
671aa708
NN
3351 ia64*-*-elf*)
3352 # No gdb support yet.
b4f96efe 3353 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
671aa708
NN
3354 ;;
3355 ia64*-**-hpux*)
5a2931d1
JB
3356 # No ld support yet.
3357 noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
671aa708 3358 ;;
52535a64
DR
3359 ia64*-*-*vms*)
3360 # No gdb or ld support yet.
3361 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3362 ;;
ee6a22df 3363 i370-*-opened*)
ee6a22df 3364 ;;
f2a0e225 3365 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 3366 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3367 libgloss_dir=i386
671aa708 3368 ;;
f2a0e225 3369 i[3456789]86-*-linux*)
671aa708
NN
3370 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3371 # not build java stuff by default.
3372 case "${target}" in
3373 *-*-*libc1*)
cb253473 3374 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
3375 esac
3376
3377 # This section makes it possible to build newlib natively on linux.
3378 # If we are using a cross compiler then don't configure newlib.
3379 if test x${is_cross_compiler} != xno ; then
3aa83176 3380 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
3381 fi
3382 noconfigdirs="$noconfigdirs target-libgloss"
3383 # If we are not using a cross compiler, do configure newlib.
3384 # Note however, that newlib will only be configured in this situation
3385 # if the --with-newlib option has been given, because otherwise
3386 # 'target-newlib' will appear in skipdirs.
3387 ;;
ef4c4300
KT
3388 i[3456789]86-w64-mingw*)
3389 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3390 ;;
3391 i[3456789]86-*-mingw*)
b91f0a41
CV
3392 target_configdirs="$target_configdirs target-winsup"
3393 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3394 ;;
95af8923 3395 x86_64-*-mingw*)
95af8923 3396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
1c710c3c 3397 ;;
671aa708
NN
3398 *-*-cygwin*)
3399 target_configdirs="$target_configdirs target-libtermcap target-winsup"
449223af 3400 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
801e2270 3401 # always build newlib if winsup directory is present.
b91f0a41 3402 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3403 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3404 elif test -d "$srcdir/newlib"; then
b91f0a41 3405 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3406 fi
1c710c3c 3407 ;;
ee6a22df
L
3408 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3409 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
ee6a22df 3410 ;;
f2a0e225 3411 i[3456789]86-*-pe)
cb253473 3412 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3413 ;;
f2a0e225 3414 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3415 # The linker does not yet know about weak symbols in COFF,
3416 # and is not configured to handle mixed ELF and COFF.
cb253473 3417 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 3418 ;;
f2a0e225 3419 i[3456789]86-*-sco*)
cb253473 3420 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3421 ;;
f2a0e225 3422 i[3456789]86-*-solaris2*)
671aa708
NN
3423 noconfigdirs="$noconfigdirs target-libgloss"
3424 ;;
f2a0e225 3425 i[3456789]86-*-sysv4*)
cb253473 3426 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3427 ;;
f2a0e225 3428 i[3456789]86-*-beos*)
cb253473 3429 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 3430 ;;
d1f8db0c
PB
3431 i[3456789]86-*-rdos*)
3432 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3433 ;;
fb87ad5d 3434 m32r-*-*)
cb253473 3435 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 3436 ;;
671aa708 3437 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
cb253473 3438 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
c03353e2 3439 libgloss_dir=m68hc11
671aa708
NN
3440 ;;
3441 m68k-*-elf*)
cb253473 3442 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3443 ;;
3444 m68k-*-coff*)
cb253473 3445 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3446 ;;
c03353e2
RIL
3447 m68*-*-* | fido-*-*)
3448 libgloss_dir=m68k
3449 ;;
671aa708
NN
3450 mcore-*-pe*)
3451 # The EPOC C++ environment does not support exceptions or rtti,
3452 # and so building libstdc++-v3 tends not to always work.
3453 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3454 ;;
3455 mmix-*-*)
4fab7234 3456 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 3457 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
3458 ;;
3459 mn10200-*-*)
cb253473 3460 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3461 ;;
3462 mn10300-*-*)
cb253473 3463 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3464 ;;
ab34901f 3465 mt-*-*)
79dd769c
AH
3466 noconfigdirs="$noconfigdirs sim"
3467 ;;
539b4d11
HS
3468 picochip-*-*)
3469 noconfigdirs="$noconfigdirs target-libiberty"
3470 ;;
671aa708
NN
3471 powerpc-*-aix*)
3472 # copied from rs6000-*-* entry
a891a473 3473 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3474 ;;
3475 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3476 target_configdirs="$target_configdirs target-winsup"
cb253473 3477 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
671aa708
NN
3478 # always build newlib.
3479 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3480 ;;
3481 # This is temporary until we can link against shared libraries
3482 powerpcle-*-solaris*)
cb253473 3483 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
c03353e2 3484 libgloss_dir=rs6000
671aa708
NN
3485 ;;
3486 powerpc-*-beos*)
cb253473 3487 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 3488 ;;
671aa708 3489 powerpc-*-eabi)
cb253473 3490 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3491 libgloss_dir=rs6000
ee6a22df
L
3492 ;;
3493 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 3494 libgloss_dir=rs6000
671aa708 3495 ;;
671aa708 3496 rs6000-*-lynxos*)
cb253473 3497 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
3498 ;;
3499 rs6000-*-aix*)
a891a473 3500 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3501 ;;
3502 rs6000-*-*)
cb253473 3503 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
3504 ;;
3505 m68k-apollo-*)
cb253473 3506 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 3507 ;;
ca9fe997 3508 microblaze*)
80920132 3509 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
ca9fe997 3510 ;;
d9dced13
RS
3511 mips*-sde-elf*)
3512 skipdirs="$skipdirs target-libiberty"
3513 noconfigdirs="$noconfigdirs ${libgcj}"
3514 if test x$with_newlib = xyes; then
3515 noconfigdirs="$noconfigdirs gprof"
3516 fi
3517 libgloss_dir=mips
3518 ;;
671aa708 3519 mips*-*-irix5*)
cb253473 3520 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
3521 ;;
3522 mips*-*-irix6*)
671aa708
NN
3523 # Linking libjava exceeds command-line length limits on at least
3524 # IRIX 6.2, but not on IRIX 6.5.
3525 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3526 # <oldham@codesourcery.com>
cb253473 3527 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3528 ;;
671aa708 3529 mips*-*-bsd*)
cb253473 3530 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3531 ;;
671aa708
NN
3532 mips*-*-linux*)
3533 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3534 ;;
3535 mips*-*-*)
cb253473 3536 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 3537 libgloss_dir=mips
671aa708
NN
3538 ;;
3539 romp-*-*)
cb253473 3540 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 3541 ;;
669f01d8 3542 sh-*-* | sh64-*-*)
671aa708 3543 case "${host}" in
f2a0e225
KC
3544 i[3456789]86-*-vsta) ;; # don't add gprof back in
3545 i[3456789]86-*-go32*) ;; # don't add gprof back in
3546 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
671aa708
NN
3547 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3548 esac
ea2002ba
CB
3549 case "${target}" in
3550 sh*-*-elf)
3551 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3552 *)
3553 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3554 esac
671aa708 3555 ;;
c03353e2
RIL
3556 sparclet-*-aout* | sparc86x-*-*)
3557 libgloss_dir=sparc
3558 ;;
671aa708 3559 sparc-*-elf*)
cb253473 3560 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3561 ;;
3562 sparc64-*-elf*)
cb253473 3563 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3564 libgloss_dir=sparc
671aa708
NN
3565 ;;
3566 sparclite-*-*)
cb253473 3567 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3568 libgloss_dir=sparc
671aa708
NN
3569 ;;
3570 sparc-*-sunos4*)
cb253473 3571 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3572 if test x${is_cross_compiler} != xno ; then
3573 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3574 else
3575 use_gnu_ld=no
3576 fi
3577 ;;
bba5e0ca 3578 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 3579 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 3580 ;;
671aa708
NN
3581 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3582 ;;
b42f0d7e
JM
3583 tic6x-*-*)
3584 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3585 ;;
671aa708 3586 v810-*-*)
cb253473 3587 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708 3588 ;;
223a9d64 3589 v850*-*-*)
d4c1abb3 3590 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3591 ;;
3592 vax-*-vms)
cb253473 3593 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
3594 ;;
3595 vax-*-*)
cb253473 3596 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3597 ;;
aa12a573 3598 xtensa*-*-*)
cb253473 3599 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 3600 ;;
671aa708 3601 ip2k-*-*)
cb253473 3602 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 3603 ;;
416ac4d4 3604 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
3605 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3606 ;;
3607 *-*-lynxos*)
cb253473 3608 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 3609 ;;
671aa708 3610 *-*-*)
cb253473 3611 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3612 ;;
3613esac
79c06341 3614
671aa708
NN
3615# If we aren't building newlib, then don't build libgloss, since libgloss
3616# depends upon some newlib header files.
3617case "${noconfigdirs}" in
3618 *target-libgloss*) ;;
3619 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3620esac
3621
671aa708
NN
3622# Work in distributions that contain no compiler tools, like Autoconf.
3623tentative_cc=""
3624host_makefile_frag=/dev/null
3625if test -d ${srcdir}/config ; then
3626case "${host}" in
3627 m68k-hp-hpux*)
3628 # Avoid "too much defining" errors from HPUX compiler.
3629 tentative_cc="cc -Wp,-H256000"
3630 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3631 # If it's HP/UX ar, this should be harmless.
3632 RANLIB="ar ts"
3633 ;;
3634 m68k-apollo-sysv*)
3635 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3636 ;;
3637 m68k-apollo-bsd*)
3638 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3639 # chokes on bfd, the compiler won't let you assign integers to enums, and
3640 # other problems. Defining CC to gcc is a questionable way to say "don't use
3641 # the apollo compiler" (the preferred version of GCC could be called cc,
3642 # or whatever), but I'm not sure leaving CC as cc is any better...
3643 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3644 # Used to have BISON=yacc.
3645 tentative_cc=gcc
3646 ;;
3647 m88k-dg-dgux*)
3648 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
671aa708
NN
3649 ;;
3650 m88k-harris-cxux*)
3651 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3652 tentative_cc="cc -Xa"
3653 host_makefile_frag="config/mh-cxux"
3654 ;;
3655 m88k-motorola-sysv*)
3656 ;;
3657 mips*-dec-ultrix*)
3658 tentative_cc="cc -Wf,-XNg1000"
3659 host_makefile_frag="config/mh-decstation"
3660 ;;
3661 mips*-nec-sysv4*)
3662 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3663 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3664 host_makefile_frag="config/mh-necv4"
3665 ;;
3666 mips*-sgi-irix4*)
3667 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3668 # environment. Also bump switch table size so that cp-parse will
3669 # compile. Bump string length limit so linker builds.
3670 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3671 ;;
3672 mips*-*-sysv4*)
3673 host_makefile_frag="config/mh-sysv4"
3674 ;;
3675 mips*-*-sysv*)
3676 # This is for a MIPS running RISC/os 4.52C.
3677
3678 # This is needed for GDB, but needs to be in the top-level make because
3679 # if a library is compiled with the bsd headers and gets linked with the
3680 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3681 # a different size).
3682 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3683 # known except to select the sysv environment. Could we use /proc instead?
3684 # These "sysv environments" and "bsd environments" often end up being a pain.
3685 #
3686 # This is not part of CFLAGS because perhaps not all C compilers have this
3687 # option.
3688 tentative_cc="cc -systype sysv"
3689 ;;
3690 i370-ibm-opened*)
3691 tentative_cc="c89"
3692 ;;
f2a0e225 3693 i[3456789]86-*-sysv5*)
671aa708
NN
3694 host_makefile_frag="config/mh-sysv5"
3695 ;;
f2a0e225 3696 i[3456789]86-*-dgux*)
671aa708
NN
3697 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3698 host_makefile_frag="config/mh-dgux386"
3699 ;;
f2a0e225 3700 i[3456789]86-ncr-sysv4.3*)
671aa708
NN
3701 # The MetaWare compiler will generate a copyright message unless you
3702 # turn it off by adding the -Hnocopyr flag.
3703 tentative_cc="cc -Hnocopyr"
3704 ;;
f2a0e225 3705 i[3456789]86-ncr-sysv4*)
671aa708
NN
3706 # for an NCR 3000 (i486/SVR4) system.
3707 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3708 # This compiler not only emits obnoxious copyright messages every time
3709 # you run it, but it chokes and dies on a whole bunch of GNU source
3710 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3711 tentative_cc="/usr/ccs/ATT/cc"
3712 host_makefile_frag="config/mh-ncr3000"
3713 ;;
f2a0e225 3714 i[3456789]86-*-sco3.2v5*)
671aa708 3715 ;;
f2a0e225 3716 i[3456789]86-*-sco*)
671aa708
NN
3717 # The native C compiler botches some simple uses of const. Unfortunately,
3718 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3719 tentative_cc="cc -Dconst="
3720 host_makefile_frag="config/mh-sco"
3721 ;;
f2a0e225 3722 i[3456789]86-*-udk*)
671aa708
NN
3723 host_makefile_frag="config/mh-sysv5"
3724 ;;
f2a0e225 3725 i[3456789]86-*-solaris2*)
671aa708
NN
3726 host_makefile_frag="config/mh-sysv4"
3727 ;;
f2a0e225 3728 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3729 host_makefile_frag="config/mh-djgpp"
3730 ;;
3731 *-cygwin*)
2a79c47f 3732
5213506e
RW
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3734$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3735echo a >cygwin-cat-check
e25a8c82 3736if test `cat cygwin-cat-check` = a ; then
2a79c47f 3737 rm cygwin-cat-check
5213506e
RW
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3739$as_echo "yes" >&6; }
2a79c47f
NC
3740else
3741 rm cygwin-cat-check
5213506e
RW
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743$as_echo "no" >&6; }
3744 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3745 Please either mount the build directory in binary mode or run the following
3746 commands before running any configure script:
3747set -o igncr
3748export SHELLOPTS
5213506e 3749 " "$LINENO" 5
2a79c47f
NC
3750fi
3751
671aa708
NN
3752 host_makefile_frag="config/mh-cygwin"
3753 ;;
c53a18d3 3754 *-mingw*)
1f5a6b84 3755 host_makefile_frag="config/mh-mingw"
95af8923 3756 ;;
671aa708
NN
3757 *-interix*)
3758 host_makefile_frag="config/mh-interix"
3759 ;;
3760 vax-*-ultrix2*)
3761 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3762 tentative_cc=gcc
3763 ;;
3764 *-*-solaris2*)
3765 host_makefile_frag="config/mh-solaris"
3766 ;;
3767 m68k-sun-sunos*)
3768 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3769 # without overflowing the jump tables (-J says to use a 32 bit table)
3770 tentative_cc="cc -J"
3771 ;;
efd41714 3772 hppa*-hp-hpux10*)
671aa708 3773 tentative_cc="cc -Wp,-H256000"
efd41714 3774 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3775 ;;
efd41714
PB
3776 hppa*-hp-hpux* | hppa*-*-hiux*)
3777 tentative_cc="cc -Wp,-H256000"
3778 host_makefile_frag="config/mh-pa"
3779 ;;
3780 hppa*-*)
3781 host_makefile_frag="config/mh-pa"
3782 ;;
3783 *-hp-hpux* | *-*-hiux*)
671aa708
NN
3784 tentative_cc="cc -Wp,-H256000"
3785 ;;
3786 rs6000-*-lynxos*)
3787 # /bin/cc is less than useful for our purposes. Always use GCC
3788 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3789 host_makefile_frag="config/mh-lynxrs6k"
3790 ;;
d8ed14ce
IS
3791 *-*-darwin*)
3792 host_makefile_frag="config/mh-darwin"
be8fff81 3793 ;;
d19bca38
PB
3794 powerpc-*-aix*)
3795 host_makefile_frag="config/mh-ppc-aix"
3796 ;;
3797 rs6000-*-aix*)
3798 host_makefile_frag="config/mh-ppc-aix"
3799 ;;
671aa708
NN
3800 *-*-lynxos*)
3801 # /bin/cc is less than useful for our purposes. Always use GCC
3802 tentative_cc="/bin/gcc"
3803 ;;
3804 *-*-sysv4*)
3805 host_makefile_frag="config/mh-sysv4"
3806 ;;
95c53c62
RS
3807 # This is placed last to prevent interfering with the cases above.
3808 i[3456789]86-*-*)
3809 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3810 host_makefile_frag="config/mh-x86omitfp"
3811 ;;
671aa708
NN
3812esac
3813fi
3814
55ffb5ed
NN
3815# If we aren't going to be using gcc, see if we can extract a definition
3816# of CC from the fragment.
3817# Actually, use the 'pre-extracted' version above.
3818if test -z "${CC}" && test "${build}" = "${host}" ; then
3819 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3820 found=
3821 for dir in $PATH; do
3822 test -z "$dir" && dir=.
3823 if test -f $dir/gcc; then
3824 found=yes
3825 break
3826 fi
3827 done
3828 IFS="$save_ifs"
3829 if test -z "${found}" && test -n "${tentative_cc}" ; then
3830 CC=$tentative_cc
3831 fi
3832fi
3833
3834if test "${build}" != "${host}" ; then
0999159b
PB
3835 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3836 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3837 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3838 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3839 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3840 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3841 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3842 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3843 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3844 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3845 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3846 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3847 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3848else
3849 AR_FOR_BUILD="\$(AR)"
3850 AS_FOR_BUILD="\$(AS)"
fb0103e5 3851 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3852 CXX_FOR_BUILD="\$(CXX)"
3853 GCJ_FOR_BUILD="\$(GCJ)"
3854 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3855 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3856 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3857 LD_FOR_BUILD="\$(LD)"
3858 NM_FOR_BUILD="\$(NM)"
3859 RANLIB_FOR_BUILD="\$(RANLIB)"
3860 WINDRES_FOR_BUILD="\$(WINDRES)"
3861 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3862fi
3863
3864ac_ext=c
1c710c3c
DJ
3865ac_cpp='$CPP $CPPFLAGS'
3866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868ac_compiler_gnu=$ac_cv_c_compiler_gnu
3869if test -n "$ac_tool_prefix"; then
3870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3871set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873$as_echo_n "checking for $ac_word... " >&6; }
3874if test "${ac_cv_prog_CC+set}" = set; then :
3875 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3876else
3877 if test -n "$CC"; then
3878 ac_cv_prog_CC="$CC" # Let the user override the test.
3879else
3880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881for as_dir in $PATH
3882do
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
5213506e
RW
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3889 break 2
3890 fi
3891done
5213506e
RW
3892 done
3893IFS=$as_save_IFS
1c710c3c
DJ
3894
3895fi
3896fi
3897CC=$ac_cv_prog_CC
3898if test -n "$CC"; then
5213506e
RW
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3900$as_echo "$CC" >&6; }
1c710c3c 3901else
5213506e
RW
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903$as_echo "no" >&6; }
1c710c3c
DJ
3904fi
3905
5213506e 3906
1c710c3c
DJ
3907fi
3908if test -z "$ac_cv_prog_CC"; then
3909 ac_ct_CC=$CC
fb0103e5
RG
3910 # Extract the first word of "gcc", so it can be a program name with args.
3911set dummy gcc; ac_word=$2
5213506e
RW
3912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913$as_echo_n "checking for $ac_word... " >&6; }
3914if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3915 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3916else
3917 if test -n "$ac_ct_CC"; then
3918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3919else
3920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH
3922do
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
5213506e
RW
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3927 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3929 break 2
3930 fi
3931done
5213506e
RW
3932 done
3933IFS=$as_save_IFS
1c710c3c
DJ
3934
3935fi
3936fi
3937ac_ct_CC=$ac_cv_prog_ac_ct_CC
3938if test -n "$ac_ct_CC"; then
5213506e
RW
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3940$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3941else
5213506e
RW
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943$as_echo "no" >&6; }
1c710c3c
DJ
3944fi
3945
5213506e
RW
3946 if test "x$ac_ct_CC" = x; then
3947 CC=""
3948 else
3949 case $cross_compiling:$ac_tool_warned in
3950yes:)
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3953ac_tool_warned=yes ;;
3954esac
3955 CC=$ac_ct_CC
3956 fi
1c710c3c
DJ
3957else
3958 CC="$ac_cv_prog_CC"
3959fi
3960
3961if test -z "$CC"; then
5213506e
RW
3962 if test -n "$ac_tool_prefix"; then
3963 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3964set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966$as_echo_n "checking for $ac_word... " >&6; }
3967if test "${ac_cv_prog_CC+set}" = set; then :
3968 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3969else
3970 if test -n "$CC"; then
3971 ac_cv_prog_CC="$CC" # Let the user override the test.
3972else
1c710c3c
DJ
3973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974for as_dir in $PATH
3975do
3976 IFS=$as_save_IFS
3977 test -z "$as_dir" && as_dir=.
5213506e
RW
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3980 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3982 break 2
3983 fi
3984done
5213506e
RW
3985 done
3986IFS=$as_save_IFS
1c710c3c 3987
0b0dc272 3988fi
0b0dc272 3989fi
1c710c3c 3990CC=$ac_cv_prog_CC
af71363e 3991if test -n "$CC"; then
5213506e
RW
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3993$as_echo "$CC" >&6; }
2aeb72e9 3994else
5213506e
RW
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996$as_echo "no" >&6; }
2aeb72e9
DD
3997fi
3998
2aeb72e9 3999
5213506e 4000 fi
1c710c3c 4001fi
55ffb5ed
NN
4002if test -z "$CC"; then
4003 # Extract the first word of "cc", so it can be a program name with args.
4004set dummy cc; ac_word=$2
5213506e
RW
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006$as_echo_n "checking for $ac_word... " >&6; }
4007if test "${ac_cv_prog_CC+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4009else
4010 if test -n "$CC"; then
4011 ac_cv_prog_CC="$CC" # Let the user override the test.
4012else
0b0dc272 4013 ac_prog_rejected=no
1c710c3c
DJ
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
DJ
4021 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4022 ac_prog_rejected=yes
4023 continue
4024 fi
4025 ac_cv_prog_CC="cc"
5213506e 4026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4027 break 2
4028 fi
4029done
5213506e
RW
4030 done
4031IFS=$as_save_IFS
1c710c3c 4032
55ffb5ed
NN
4033if test $ac_prog_rejected = yes; then
4034 # We found a bogon in the path, so make sure we never use it.
4035 set dummy $ac_cv_prog_CC
4036 shift
1c710c3c 4037 if test $# != 0; then
55ffb5ed
NN
4038 # We chose a different compiler from the bogus one.
4039 # However, it has the same basename, so the bogon will be chosen
4040 # first if we set CC to just the basename; use the full file name.
4041 shift
1c710c3c 4042 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
4043 fi
4044fi
4045fi
4046fi
1c710c3c 4047CC=$ac_cv_prog_CC
55ffb5ed 4048if test -n "$CC"; then
5213506e
RW
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4050$as_echo "$CC" >&6; }
55ffb5ed 4051else
5213506e
RW
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053$as_echo "no" >&6; }
55ffb5ed
NN
4054fi
4055
5213506e 4056
1c710c3c
DJ
4057fi
4058if test -z "$CC"; then
4059 if test -n "$ac_tool_prefix"; then
5213506e 4060 for ac_prog in cl.exe
1c710c3c
DJ
4061 do
4062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4063set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4065$as_echo_n "checking for $ac_word... " >&6; }
4066if test "${ac_cv_prog_CC+set}" = set; then :
4067 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4068else
4069 if test -n "$CC"; then
4070 ac_cv_prog_CC="$CC" # Let the user override the test.
4071else
1c710c3c
DJ
4072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073for as_dir in $PATH
4074do
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
5213506e
RW
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4079 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 4080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4081 break 2
4082 fi
4083done
5213506e
RW
4084 done
4085IFS=$as_save_IFS
1c710c3c 4086
55ffb5ed
NN
4087fi
4088fi
1c710c3c 4089CC=$ac_cv_prog_CC
55ffb5ed 4090if test -n "$CC"; then
5213506e
RW
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4092$as_echo "$CC" >&6; }
a4b9e93e 4093else
5213506e
RW
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095$as_echo "no" >&6; }
fb0103e5 4096fi
af71363e 4097
5213506e 4098
1c710c3c
DJ
4099 test -n "$CC" && break
4100 done
af71363e 4101fi
1c710c3c
DJ
4102if test -z "$CC"; then
4103 ac_ct_CC=$CC
5213506e 4104 for ac_prog in cl.exe
1c710c3c
DJ
4105do
4106 # Extract the first word of "$ac_prog", so it can be a program name with args.
4107set dummy $ac_prog; ac_word=$2
5213506e
RW
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4109$as_echo_n "checking for $ac_word... " >&6; }
4110if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4111 $as_echo_n "(cached) " >&6
0b0dc272 4112else
1c710c3c
DJ
4113 if test -n "$ac_ct_CC"; then
4114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 4115else
1c710c3c
DJ
4116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117for as_dir in $PATH
4118do
4119 IFS=$as_save_IFS
4120 test -z "$as_dir" && as_dir=.
5213506e
RW
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4123 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 4124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4125 break 2
4126 fi
4127done
5213506e
RW
4128 done
4129IFS=$as_save_IFS
1c710c3c 4130
af71363e
AS
4131fi
4132fi
1c710c3c
DJ
4133ac_ct_CC=$ac_cv_prog_ac_ct_CC
4134if test -n "$ac_ct_CC"; then
5213506e
RW
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4136$as_echo "$ac_ct_CC" >&6; }
fb0103e5 4137else
5213506e
RW
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4139$as_echo "no" >&6; }
af71363e 4140fi
0b0dc272 4141
5213506e 4142
1c710c3c
DJ
4143 test -n "$ac_ct_CC" && break
4144done
4145
5213506e
RW
4146 if test "x$ac_ct_CC" = x; then
4147 CC=""
4148 else
4149 case $cross_compiling:$ac_tool_warned in
4150yes:)
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4153ac_tool_warned=yes ;;
4154esac
4155 CC=$ac_ct_CC
4156 fi
1c710c3c
DJ
4157fi
4158
4159fi
4160
4161
5213506e
RW
4162test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4163$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4164as_fn_error "no acceptable C compiler found in \$PATH
4165See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4166
4167# Provide some information about the compiler.
5213506e
RW
4168$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4169set X $ac_compile
4170ac_compiler=$2
4171for ac_option in --version -v -V -qversion; do
4172 { { ac_try="$ac_compiler $ac_option >&5"
4173case "(($ac_try" in
4174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4175 *) ac_try_echo=$ac_try;;
4176esac
4177eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4178$as_echo "$ac_try_echo"; } >&5
4179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4180 ac_status=$?
5213506e
RW
4181 if test -s conftest.err; then
4182 sed '10a\
4183... rest of stderr output deleted ...
4184 10q' conftest.err >conftest.er1
4185 cat conftest.er1 >&5
4186 rm -f conftest.er1 conftest.err
4187 fi
4188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189 test $ac_status = 0; }
4190done
1c710c3c 4191
5213506e 4192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4193/* end confdefs.h. */
4194
4195int
4196main ()
4197{
4198
4199 ;
4200 return 0;
4201}
4202_ACEOF
4203ac_clean_files_save=$ac_clean_files
5213506e 4204ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4205# Try to create an executable without -o first, disregard a.out.
4206# It will help us diagnose broken compilers, and finding out an intuition
4207# of exeext.
5213506e
RW
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4209$as_echo_n "checking for C compiler default output file name... " >&6; }
4210ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4211
4212# The possible output files:
4213ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4214
4215ac_rmfiles=
4216for ac_file in $ac_files
4217do
4218 case $ac_file in
4219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4220 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4221 esac
4222done
4223rm -f $ac_rmfiles
4224
4225if { { ac_try="$ac_link_default"
4226case "(($ac_try" in
4227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228 *) ac_try_echo=$ac_try;;
4229esac
4230eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4231$as_echo "$ac_try_echo"; } >&5
4232 (eval "$ac_link_default") 2>&5
1c710c3c 4233 ac_status=$?
5213506e
RW
4234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4235 test $ac_status = 0; }; then :
4236 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4237# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4238# in a Makefile. We should not override ac_cv_exeext if it was cached,
4239# so that the user can short-circuit this test for compilers unknown to
4240# Autoconf.
4241for ac_file in $ac_files ''
1c710c3c
DJ
4242do
4243 test -f "$ac_file" || continue
4244 case $ac_file in
5213506e 4245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4246 ;;
4247 [ab].out )
4248 # We found the default executable, but exeext='' is most
4249 # certainly right.
4250 break;;
4251 *.* )
5213506e
RW
4252 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4253 then :; else
4254 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4255 fi
4256 # We set ac_cv_exeext here because the later test for it is not
4257 # safe: cross compilers may not add the suffix if given an `-o'
4258 # argument, so we may need to know it at that point already.
4259 # Even if this section looks crufty: it has the advantage of
4260 # actually working.
1c710c3c
DJ
4261 break;;
4262 * )
4263 break;;
4264 esac
4265done
5213506e
RW
4266test "$ac_cv_exeext" = no && ac_cv_exeext=
4267
1c710c3c 4268else
5213506e
RW
4269 ac_file=''
4270fi
4271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4272$as_echo "$ac_file" >&6; }
4273if test -z "$ac_file"; then :
4274 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4275sed 's/^/| /' conftest.$ac_ext >&5
4276
5213506e
RW
4277{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4279{ as_fn_set_status 77
4280as_fn_error "C compiler cannot create executables
4281See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4282fi
1c710c3c 4283ac_exeext=$ac_cv_exeext
1c710c3c 4284
5213506e 4285# Check that the compiler produces executables we can run. If not, either
1c710c3c 4286# the compiler is broken, or we cross compile.
5213506e
RW
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4288$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4289# If not cross compiling, check that we can run a simple program.
4290if test "$cross_compiling" != yes; then
4291 if { ac_try='./$ac_file'
5213506e
RW
4292 { { case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297$as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_try") 2>&5
1c710c3c 4299 ac_status=$?
5213506e
RW
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }; }; then
1c710c3c
DJ
4302 cross_compiling=no
4303 else
4304 if test "$cross_compiling" = maybe; then
4305 cross_compiling=yes
4306 else
5213506e
RW
4307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4309as_fn_error "cannot run C compiled programs.
1c710c3c 4310If you meant to cross compile, use \`--host'.
5213506e 4311See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4312 fi
4313 fi
4314fi
5213506e
RW
4315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4316$as_echo "yes" >&6; }
1c710c3c 4317
5213506e 4318rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4319ac_clean_files=$ac_clean_files_save
5213506e 4320# Check that the compiler produces executables we can run. If not, either
1c710c3c 4321# the compiler is broken, or we cross compile.
5213506e
RW
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4323$as_echo_n "checking whether we are cross compiling... " >&6; }
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4325$as_echo "$cross_compiling" >&6; }
4326
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4328$as_echo_n "checking for suffix of executables... " >&6; }
4329if { { ac_try="$ac_link"
4330case "(($ac_try" in
4331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4332 *) ac_try_echo=$ac_try;;
4333esac
4334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4335$as_echo "$ac_try_echo"; } >&5
4336 (eval "$ac_link") 2>&5
1c710c3c 4337 ac_status=$?
5213506e
RW
4338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4339 test $ac_status = 0; }; then :
1c710c3c
DJ
4340 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4341# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4342# work properly (i.e., refer to `conftest.exe'), while it won't with
4343# `rm'.
4344for ac_file in conftest.exe conftest conftest.*; do
4345 test -f "$ac_file" || continue
4346 case $ac_file in
5213506e 4347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4349 break;;
4350 * ) break;;
4351 esac
4352done
af71363e 4353else
5213506e
RW
4354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4356as_fn_error "cannot compute suffix of executables: cannot compile and link
4357See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4358fi
1c710c3c 4359rm -f conftest$ac_cv_exeext
5213506e
RW
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4361$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4362
4363rm -f conftest.$ac_ext
4364EXEEXT=$ac_cv_exeext
4365ac_exeext=$EXEEXT
5213506e
RW
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4367$as_echo_n "checking for suffix of object files... " >&6; }
4368if test "${ac_cv_objext+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
1c710c3c 4370else
5213506e 4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4372/* end confdefs.h. */
4373
4374int
4375main ()
4376{
4377
4378 ;
4379 return 0;
4380}
4381_ACEOF
4382rm -f conftest.o conftest.obj
5213506e
RW
4383if { { ac_try="$ac_compile"
4384case "(($ac_try" in
4385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4386 *) ac_try_echo=$ac_try;;
4387esac
4388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4389$as_echo "$ac_try_echo"; } >&5
4390 (eval "$ac_compile") 2>&5
1c710c3c 4391 ac_status=$?
5213506e
RW
4392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; }; then :
4394 for ac_file in conftest.o conftest.obj conftest.*; do
4395 test -f "$ac_file" || continue;
1c710c3c 4396 case $ac_file in
5213506e 4397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4398 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4399 break;;
4400 esac
4401done
4402else
5213506e 4403 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4404sed 's/^/| /' conftest.$ac_ext >&5
4405
5213506e
RW
4406{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4408as_fn_error "cannot compute suffix of object files: cannot compile
4409See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4410fi
1c710c3c
DJ
4411rm -f conftest.$ac_cv_objext conftest.$ac_ext
4412fi
5213506e
RW
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4414$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4415OBJEXT=$ac_cv_objext
4416ac_objext=$OBJEXT
5213506e
RW
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4418$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4419if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4420 $as_echo_n "(cached) " >&6
1c710c3c 4421else
5213506e 4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4423/* end confdefs.h. */
4424
4425int
4426main ()
4427{
4428#ifndef __GNUC__
4429 choke me
4430#endif
4431
4432 ;
4433 return 0;
4434}
4435_ACEOF
5213506e 4436if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4437 ac_compiler_gnu=yes
4438else
5213506e 4439 ac_compiler_gnu=no
1c710c3c 4440fi
5213506e 4441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4442ac_cv_c_compiler_gnu=$ac_compiler_gnu
4443
4444fi
5213506e
RW
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4446$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4447if test $ac_compiler_gnu = yes; then
4448 GCC=yes
4449else
4450 GCC=
4451fi
1c710c3c
DJ
4452ac_test_CFLAGS=${CFLAGS+set}
4453ac_save_CFLAGS=$CFLAGS
5213506e
RW
4454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4455$as_echo_n "checking whether $CC accepts -g... " >&6; }
4456if test "${ac_cv_prog_cc_g+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4458else
4459 ac_save_c_werror_flag=$ac_c_werror_flag
4460 ac_c_werror_flag=yes
4461 ac_cv_prog_cc_g=no
4462 CFLAGS="-g"
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4464/* end confdefs.h. */
4465
4466int
4467main ()
4468{
4469
4470 ;
4471 return 0;
4472}
4473_ACEOF
5213506e 4474if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4475 ac_cv_prog_cc_g=yes
4476else
5213506e
RW
4477 CFLAGS=""
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479/* end confdefs.h. */
4480
4481int
4482main ()
4483{
4484
4485 ;
4486 return 0;
4487}
4488_ACEOF
4489if ac_fn_c_try_compile "$LINENO"; then :
4490
4491else
4492 ac_c_werror_flag=$ac_save_c_werror_flag
4493 CFLAGS="-g"
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495/* end confdefs.h. */
af71363e 4496
5213506e
RW
4497int
4498main ()
4499{
4500
4501 ;
4502 return 0;
4503}
4504_ACEOF
4505if ac_fn_c_try_compile "$LINENO"; then :
4506 ac_cv_prog_cc_g=yes
4507fi
4508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4509fi
5213506e 4510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4511fi
5213506e
RW
4512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 ac_c_werror_flag=$ac_save_c_werror_flag
4514fi
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4516$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4517if test "$ac_test_CFLAGS" = set; then
1c710c3c 4518 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4519elif test $ac_cv_prog_cc_g = yes; then
4520 if test "$GCC" = yes; then
4521 CFLAGS="-g -O2"
4522 else
4523 CFLAGS="-g"
4524 fi
4525else
4526 if test "$GCC" = yes; then
4527 CFLAGS="-O2"
4528 else
4529 CFLAGS=
4530 fi
4531fi
5213506e
RW
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4533$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4534if test "${ac_cv_prog_cc_c89+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
1c710c3c 4536else
5213506e 4537 ac_cv_prog_cc_c89=no
1c710c3c 4538ac_save_CC=$CC
5213506e 4539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4540/* end confdefs.h. */
4541#include <stdarg.h>
4542#include <stdio.h>
4543#include <sys/types.h>
4544#include <sys/stat.h>
4545/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4546struct buf { int x; };
4547FILE * (*rcsopen) (struct buf *, struct stat *, int);
4548static char *e (p, i)
4549 char **p;
4550 int i;
4551{
4552 return p[i];
4553}
4554static char *f (char * (*g) (char **, int), char **p, ...)
4555{
4556 char *s;
4557 va_list v;
4558 va_start (v,p);
4559 s = g (p, va_arg (v,int));
4560 va_end (v);
4561 return s;
4562}
4563
4564/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4565 function prototypes and stuff, but not '\xHH' hex character constants.
4566 These don't provoke an error unfortunately, instead are silently treated
5213506e 4567 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4569 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4570 that's true only with -std. */
1c710c3c
DJ
4571int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4572
5213506e
RW
4573/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4574 inside strings and character constants. */
4575#define FOO(x) 'x'
4576int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4577
1c710c3c
DJ
4578int test (int i, double x);
4579struct s1 {int (*f) (int a);};
4580struct s2 {int (*f) (double a);};
4581int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4582int argc;
4583char **argv;
4584int
4585main ()
4586{
4587return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4588 ;
4589 return 0;
4590}
4591_ACEOF
5213506e
RW
4592for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4593 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4594do
4595 CC="$ac_save_CC $ac_arg"
5213506e
RW
4596 if ac_fn_c_try_compile "$LINENO"; then :
4597 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4598fi
5213506e
RW
4599rm -f core conftest.err conftest.$ac_objext
4600 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4601done
5213506e 4602rm -f conftest.$ac_ext
1c710c3c
DJ
4603CC=$ac_save_CC
4604
4605fi
5213506e
RW
4606# AC_CACHE_VAL
4607case "x$ac_cv_prog_cc_c89" in
4608 x)
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4610$as_echo "none needed" >&6; } ;;
4611 xno)
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4613$as_echo "unsupported" >&6; } ;;
1c710c3c 4614 *)
5213506e
RW
4615 CC="$CC $ac_cv_prog_cc_c89"
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4617$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4618esac
5213506e 4619if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4620
2aeb72e9
DD
4621fi
4622
2aeb72e9
DD
4623ac_ext=c
4624ac_cpp='$CPP $CPPFLAGS'
4625ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627ac_compiler_gnu=$ac_cv_c_compiler_gnu
4628
5213506e 4629ac_ext=cpp
2aeb72e9
DD
4630ac_cpp='$CXXCPP $CPPFLAGS'
4631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4634if test -z "$CXX"; then
4635 if test -n "$CCC"; then
4636 CXX=$CCC
4637 else
4638 if test -n "$ac_tool_prefix"; then
4639 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4640 do
4641 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4642set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644$as_echo_n "checking for $ac_word... " >&6; }
4645if test "${ac_cv_prog_CXX+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4647else
4648 if test -n "$CXX"; then
4649 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4650else
4651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
5213506e
RW
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4658 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4660 break 2
4661 fi
4662done
5213506e
RW
4663 done
4664IFS=$as_save_IFS
55ffb5ed 4665
c3a86da9
DJ
4666fi
4667fi
4668CXX=$ac_cv_prog_CXX
4669if test -n "$CXX"; then
5213506e
RW
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4671$as_echo "$CXX" >&6; }
c3a86da9 4672else
5213506e
RW
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674$as_echo "no" >&6; }
c3a86da9
DJ
4675fi
4676
5213506e 4677
c3a86da9
DJ
4678 test -n "$CXX" && break
4679 done
4680fi
4681if test -z "$CXX"; then
4682 ac_ct_CXX=$CXX
5213506e 4683 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4684do
4685 # Extract the first word of "$ac_prog", so it can be a program name with args.
4686set dummy $ac_prog; ac_word=$2
5213506e
RW
4687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4688$as_echo_n "checking for $ac_word... " >&6; }
4689if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4690 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4691else
4692 if test -n "$ac_ct_CXX"; then
4693 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4694else
4695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696for as_dir in $PATH
4697do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
5213506e
RW
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4702 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4704 break 2
4705 fi
4706done
5213506e
RW
4707 done
4708IFS=$as_save_IFS
c3a86da9
DJ
4709
4710fi
4711fi
4712ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4713if test -n "$ac_ct_CXX"; then
5213506e
RW
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4715$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4716else
5213506e
RW
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718$as_echo "no" >&6; }
c3a86da9
DJ
4719fi
4720
5213506e 4721
c3a86da9
DJ
4722 test -n "$ac_ct_CXX" && break
4723done
c3a86da9 4724
5213506e
RW
4725 if test "x$ac_ct_CXX" = x; then
4726 CXX="g++"
4727 else
4728 case $cross_compiling:$ac_tool_warned in
4729yes:)
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4731$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4732ac_tool_warned=yes ;;
4733esac
4734 CXX=$ac_ct_CXX
4735 fi
c3a86da9
DJ
4736fi
4737
5213506e
RW
4738 fi
4739fi
c3a86da9 4740# Provide some information about the compiler.
5213506e
RW
4741$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4742set X $ac_compile
4743ac_compiler=$2
4744for ac_option in --version -v -V -qversion; do
4745 { { ac_try="$ac_compiler $ac_option >&5"
4746case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749esac
4750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4751$as_echo "$ac_try_echo"; } >&5
4752 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4753 ac_status=$?
5213506e
RW
4754 if test -s conftest.err; then
4755 sed '10a\
4756... rest of stderr output deleted ...
4757 10q' conftest.err >conftest.er1
4758 cat conftest.er1 >&5
4759 rm -f conftest.er1 conftest.err
4760 fi
4761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4762 test $ac_status = 0; }
4763done
c3a86da9 4764
5213506e
RW
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4766$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4767if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
c3a86da9 4769else
5213506e 4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4771/* end confdefs.h. */
4772
4773int
4774main ()
4775{
4776#ifndef __GNUC__
4777 choke me
4778#endif
4779
4780 ;
4781 return 0;
4782}
4783_ACEOF
5213506e 4784if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4785 ac_compiler_gnu=yes
4786else
5213506e 4787 ac_compiler_gnu=no
c3a86da9 4788fi
5213506e 4789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4790ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4791
4792fi
5213506e
RW
4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4794$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4795if test $ac_compiler_gnu = yes; then
4796 GXX=yes
4797else
4798 GXX=
4799fi
c3a86da9
DJ
4800ac_test_CXXFLAGS=${CXXFLAGS+set}
4801ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4803$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4804if test "${ac_cv_prog_cxx_g+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806else
4807 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4808 ac_cxx_werror_flag=yes
4809 ac_cv_prog_cxx_g=no
4810 CXXFLAGS="-g"
4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4812/* end confdefs.h. */
4813
4814int
4815main ()
4816{
4817
4818 ;
4819 return 0;
4820}
4821_ACEOF
5213506e 4822if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4823 ac_cv_prog_cxx_g=yes
4824else
5213506e
RW
4825 CXXFLAGS=""
4826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4827/* end confdefs.h. */
5213506e 4828
c3a86da9
DJ
4829int
4830main ()
4831{
5213506e 4832
c3a86da9
DJ
4833 ;
4834 return 0;
4835}
4836_ACEOF
5213506e 4837if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4838
5213506e
RW
4839else
4840 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4841 CXXFLAGS="-g"
4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4843/* end confdefs.h. */
5213506e 4844
c3a86da9
DJ
4845int
4846main ()
4847{
5213506e 4848
c3a86da9
DJ
4849 ;
4850 return 0;
4851}
4852_ACEOF
5213506e
RW
4853if ac_fn_cxx_try_compile "$LINENO"; then :
4854 ac_cv_prog_cxx_g=yes
11a67599 4855fi
5213506e
RW
4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857fi
4858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859fi
4860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4861 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4862fi
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4864$as_echo "$ac_cv_prog_cxx_g" >&6; }
4865if test "$ac_test_CXXFLAGS" = set; then
4866 CXXFLAGS=$ac_save_CXXFLAGS
4867elif test $ac_cv_prog_cxx_g = yes; then
4868 if test "$GXX" = yes; then
4869 CXXFLAGS="-g -O2"
4870 else
4871 CXXFLAGS="-g"
4872 fi
4873else
4874 if test "$GXX" = yes; then
4875 CXXFLAGS="-O2"
4876 else
4877 CXXFLAGS=
4878 fi
c3a86da9 4879fi
c3a86da9
DJ
4880ac_ext=c
4881ac_cpp='$CPP $CPPFLAGS'
4882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884ac_compiler_gnu=$ac_cv_c_compiler_gnu
4885
4886
4887# We must set the default linker to the linker used by gcc for the correct
4888# operation of libtool. If LD is not defined and we are using gcc, try to
4889# set the LD default to the ld used by gcc.
4890if test -z "$LD"; then
4891 if test "$GCC" = yes; then
4892 case $build in
4893 *-*-mingw*)
4894 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4895 *)
4896 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4897 esac
4898 case $gcc_prog_ld in
4899 # Accept absolute paths.
4900 [\\/]* | [A-Za-z]:[\\/]*)
4901 LD="$gcc_prog_ld" ;;
4902 esac
4903 fi
23f6b2f9
PB
4904fi
4905
23f6b2f9
PB
4906
4907
55ffb5ed 4908
1c710c3c
DJ
4909if test -n "$ac_tool_prefix"; then
4910 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4911set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913$as_echo_n "checking for $ac_word... " >&6; }
4914if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4916else
4917 if test -n "$GNATBIND"; then
4918 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4919else
1c710c3c
DJ
4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921for as_dir in $PATH
4922do
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
5213506e
RW
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4927 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4929 break 2
4930 fi
4931done
5213506e
RW
4932 done
4933IFS=$as_save_IFS
1c710c3c 4934
55ffb5ed
NN
4935fi
4936fi
1c710c3c 4937GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4938if test -n "$GNATBIND"; then
5213506e
RW
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4940$as_echo "$GNATBIND" >&6; }
55ffb5ed 4941else
5213506e
RW
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943$as_echo "no" >&6; }
55ffb5ed
NN
4944fi
4945
5213506e 4946
1c710c3c 4947fi
55ffb5ed 4948if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4949 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4950 # Extract the first word of "gnatbind", so it can be a program name with args.
4951set dummy gnatbind; ac_word=$2
5213506e
RW
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953$as_echo_n "checking for $ac_word... " >&6; }
4954if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
55ffb5ed 4956else
1c710c3c
DJ
4957 if test -n "$ac_ct_GNATBIND"; then
4958 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4959else
1c710c3c
DJ
4960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961for as_dir in $PATH
4962do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
5213506e
RW
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4967 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4969 break 2
4970 fi
4971done
5213506e
RW
4972 done
4973IFS=$as_save_IFS
1c710c3c 4974
55ffb5ed
NN
4975fi
4976fi
1c710c3c
DJ
4977ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4978if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4980$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 4981else
5213506e
RW
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983$as_echo "no" >&6; }
55ffb5ed
NN
4984fi
4985
5213506e
RW
4986 if test "x$ac_ct_GNATBIND" = x; then
4987 GNATBIND="no"
4988 else
4989 case $cross_compiling:$ac_tool_warned in
4990yes:)
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993ac_tool_warned=yes ;;
4994esac
4995 GNATBIND=$ac_ct_GNATBIND
4996 fi
55ffb5ed 4997else
1c710c3c 4998 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4999fi
5000
1c710c3c
DJ
5001if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 5003set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005$as_echo_n "checking for $ac_word... " >&6; }
5006if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
5305be7e
RG
5008else
5009 if test -n "$GNATMAKE"; then
5010 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5011else
1c710c3c
DJ
5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
5213506e
RW
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5019 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5021 break 2
5022 fi
5023done
5213506e
RW
5024 done
5025IFS=$as_save_IFS
1c710c3c 5026
5305be7e
RG
5027fi
5028fi
1c710c3c 5029GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 5030if test -n "$GNATMAKE"; then
5213506e
RW
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5032$as_echo "$GNATMAKE" >&6; }
5305be7e 5033else
5213506e
RW
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035$as_echo "no" >&6; }
5305be7e
RG
5036fi
5037
5213506e 5038
1c710c3c 5039fi
5305be7e 5040if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 5041 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
5042 # Extract the first word of "gnatmake", so it can be a program name with args.
5043set dummy gnatmake; ac_word=$2
5213506e
RW
5044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5045$as_echo_n "checking for $ac_word... " >&6; }
5046if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5305be7e 5048else
1c710c3c
DJ
5049 if test -n "$ac_ct_GNATMAKE"; then
5050 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 5051else
1c710c3c
DJ
5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
5054do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5213506e
RW
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 5059 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
5061 break 2
5062 fi
5063done
5213506e
RW
5064 done
5065IFS=$as_save_IFS
1c710c3c 5066
5305be7e
RG
5067fi
5068fi
1c710c3c
DJ
5069ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5070if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5072$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 5073else
5213506e
RW
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075$as_echo "no" >&6; }
5305be7e
RG
5076fi
5077
5213506e
RW
5078 if test "x$ac_ct_GNATMAKE" = x; then
5079 GNATMAKE="no"
5080 else
5081 case $cross_compiling:$ac_tool_warned in
5082yes:)
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5084$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5085ac_tool_warned=yes ;;
5086esac
5087 GNATMAKE=$ac_ct_GNATMAKE
5088 fi
5305be7e 5089else
1c710c3c 5090 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
5091fi
5092
5213506e
RW
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5094$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5095if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
55ffb5ed
NN
5097else
5098 cat >conftest.adb <<EOF
5099procedure conftest is begin null; end conftest;
5100EOF
5101acx_cv_cc_gcc_supports_ada=no
5102# There is a bug in old released versions of GCC which causes the
5103# driver to exit successfully when the appropriate language module
5104# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5105# Therefore we must check for the error message as well as an
5106# unsuccessful exit.
1db673ca
RO
5107# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5108# given a .adb file, but produce no object file. So we must check
5109# if an object file was really produced to guard against this.
55ffb5ed 5110errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 5111if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 5112 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
5113fi
5114rm -f conftest.*
5115fi
5213506e
RW
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5117$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 5118
5305be7e 5119if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
5120 have_gnat=yes
5121else
5122 have_gnat=no
5123fi
5124
5213506e
RW
5125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5126$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5127if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5128 $as_echo_n "(cached) " >&6
a76494aa
PB
5129else
5130 echo abfoo >t1
5131 echo cdfoo >t2
5132 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
5133 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5134 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5135 :
5136 else
5137 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5138 fi
5139 fi
a76494aa
PB
5140 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5141 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 5142 :
a76494aa
PB
5143 else
5144 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5145 fi
5146 fi
5147 rm t1 t2
5148
5149fi
5213506e
RW
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5151$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5152do_compare="$gcc_cv_prog_cmp_skip"
5153
5154
55ffb5ed 5155
00020c16 5156# See if we are building gcc with C++.
5213506e
RW
5157# Check whether --enable-build-with-cxx was given.
5158if test "${enable_build_with_cxx+set}" = set; then :
5159 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
00020c16
ILT
5160else
5161 ENABLE_BUILD_WITH_CXX=no
5213506e
RW
5162fi
5163
00020c16 5164
592c90ff
KG
5165# Used for setting $lt_cv_objdir
5166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5167$as_echo_n "checking for objdir... " >&6; }
5168if test "${lt_cv_objdir+set}" = set; then :
5169 $as_echo_n "(cached) " >&6
5170else
5171 rm -f .libs 2>/dev/null
5172mkdir .libs 2>/dev/null
5173if test -d .libs; then
5174 lt_cv_objdir=.libs
5175else
5176 # MS-DOS does not allow filenames that begin with a dot.
5177 lt_cv_objdir=_libs
5178fi
5179rmdir .libs 2>/dev/null
5180fi
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5182$as_echo "$lt_cv_objdir" >&6; }
5183objdir=$lt_cv_objdir
5184
5185
5186
5187
5188
5189cat >>confdefs.h <<_ACEOF
5190#define LT_OBJDIR "$lt_cv_objdir/"
5191_ACEOF
5192
5193
5194
acd26225 5195# Check for GMP, MPFR and MPC
3a5729ea 5196gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5197gmpinc=
e69bf64b 5198have_gmp=no
acd26225
KG
5199
5200# Specify a location for mpc
5201# check for this first so it ends up on the link line before mpfr.
5202
5213506e
RW
5203# Check whether --with-mpc was given.
5204if test "${with_mpc+set}" = set; then :
5205 withval=$with_mpc;
5206fi
acd26225 5207
acd26225 5208
9965e3cd 5209# Check whether --with-mpc-include was given.
5213506e
RW
5210if test "${with_mpc_include+set}" = set; then :
5211 withval=$with_mpc_include;
5212fi
acd26225 5213
acd26225 5214
9965e3cd 5215# Check whether --with-mpc-lib was given.
5213506e
RW
5216if test "${with_mpc_lib+set}" = set; then :
5217 withval=$with_mpc_lib;
5218fi
acd26225 5219
acd26225
KG
5220
5221if test "x$with_mpc" != x; then
3a5729ea
KG
5222 gmplibs="-L$with_mpc/lib $gmplibs"
5223 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5224fi
5225if test "x$with_mpc_include" != x; then
3a5729ea 5226 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5227fi
5228if test "x$with_mpc_lib" != x; then
3a5729ea 5229 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5230fi
5231if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5232 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5233 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5234 # Do not test the mpc version. Assume that it is sufficient, since
5235 # it is in the source tree, and the library has not been built yet
5236 # but it would be included on the link line in the version check below
5237 # hence making the test fail.
3a5729ea 5238 have_gmp=yes
acd26225 5239fi
e69bf64b 5240
bebf829d
PB
5241# Specify a location for mpfr
5242# check for this first so it ends up on the link line before gmp.
1c710c3c 5243
5213506e
RW
5244# Check whether --with-mpfr-dir was given.
5245if test "${with_mpfr_dir+set}" = set; then :
5246 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5247Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5248fi
5249
bebf829d
PB
5250
5251
5213506e
RW
5252# Check whether --with-mpfr was given.
5253if test "${with_mpfr+set}" = set; then :
5254 withval=$with_mpfr;
5255fi
1c710c3c 5256
bebf829d 5257
9965e3cd 5258# Check whether --with-mpfr-include was given.
5213506e
RW
5259if test "${with_mpfr_include+set}" = set; then :
5260 withval=$with_mpfr_include;
5261fi
1c710c3c 5262
8a877c9c 5263
9965e3cd 5264# Check whether --with-mpfr-lib was given.
5213506e
RW
5265if test "${with_mpfr_lib+set}" = set; then :
5266 withval=$with_mpfr_lib;
5267fi
8a877c9c 5268
bebf829d
PB
5269
5270if test "x$with_mpfr" != x; then
5271 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5272 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5273fi
8a877c9c 5274if test "x$with_mpfr_include" != x; then
3a5729ea 5275 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5276fi
5277if test "x$with_mpfr_lib" != x; then
5278 gmplibs="-L$with_mpfr_lib $gmplibs"
5279fi
e69bf64b 5280if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
592c90ff 5281 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
e69bf64b 5282 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
592c90ff 5283 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
e69bf64b
PB
5284 # Do not test the mpfr version. Assume that it is sufficient, since
5285 # it is in the source tree, and the library has not been built yet
5286 # but it would be included on the link line in the version check below
5287 # hence making the test fail.
5288 have_gmp=yes
5289fi
bebf829d 5290
6de9cd9a 5291# Specify a location for gmp
1c710c3c 5292
5213506e
RW
5293# Check whether --with-gmp-dir was given.
5294if test "${with_gmp_dir+set}" = set; then :
5295 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5296Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5297fi
5298
6de9cd9a 5299
6de9cd9a 5300
5213506e
RW
5301# Check whether --with-gmp was given.
5302if test "${with_gmp+set}" = set; then :
5303 withval=$with_gmp;
5304fi
1c710c3c 5305
6de9cd9a 5306
9965e3cd 5307# Check whether --with-gmp-include was given.
5213506e
RW
5308if test "${with_gmp_include+set}" = set; then :
5309 withval=$with_gmp_include;
5310fi
1c710c3c 5311
8a877c9c 5312
9965e3cd 5313# Check whether --with-gmp-lib was given.
5213506e
RW
5314if test "${with_gmp_lib+set}" = set; then :
5315 withval=$with_gmp_lib;
5316fi
8a877c9c
KG
5317
5318
6de9cd9a 5319
bebf829d
PB
5320if test "x$with_gmp" != x; then
5321 gmplibs="-L$with_gmp/lib $gmplibs"
5322 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5323fi
8a877c9c
KG
5324if test "x$with_gmp_include" != x; then
5325 gmpinc="-I$with_gmp_include $gmpinc"
5326fi
5327if test "x$with_gmp_lib" != x; then
5328 gmplibs="-L$with_gmp_lib $gmplibs"
5329fi
e69bf64b 5330if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5331 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5332 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5333 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5334 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e69bf64b
PB
5335 # Do not test the gmp version. Assume that it is sufficient, since
5336 # it is in the source tree, and the library has not been built yet
5337 # but it would be included on the link line in the version check below
5338 # hence making the test fail.
5339 have_gmp=yes
5340fi
6de9cd9a 5341
d943d7c4 5342if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5343 have_gmp=yes
5344 saved_CFLAGS="$CFLAGS"
5345 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5346 # Check for the recommended and required versions of GMP.
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5348$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5349
5350cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5351/* end confdefs.h. */
5352#include "gmp.h"
5353int
5354main ()
5355{
5356
5357 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5358 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5359 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5360 choke me
5361 #endif
5362
5363 ;
5364 return 0;
5365}
5366_ACEOF
5367if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5369/* end confdefs.h. */
362c6d2f 5370#include <gmp.h>
1c710c3c
DJ
5371int
5372main ()
5373{
6de9cd9a 5374
362c6d2f
KG
5375 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5376 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5377 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5378 choke me
5379 #endif
1c710c3c
DJ
5380
5381 ;
5382 return 0;
5383}
5384_ACEOF
5213506e
RW
5385if ac_fn_c_try_compile "$LINENO"; then :
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5387$as_echo "yes" >&6; }
362c6d2f
KG
5388else
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5390$as_echo "buggy but acceptable" >&6; }
5391fi
5392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5393else
5213506e
RW
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5396fi
5213506e 5397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5398
acd26225 5399 # If we have GMP, check the MPFR version.
e69bf64b 5400 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5401 # Check for the recommended and required versions of MPFR.
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5403$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5405/* end confdefs.h. */
70ec446f 5406#include <gmp.h>
e69bf64b 5407 #include <mpfr.h>
1c710c3c
DJ
5408int
5409main ()
5410{
e48d66a9 5411
a3337ea2 5412 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
5413 choke me
5414 #endif
1c710c3c
DJ
5415
5416 ;
5417 return 0;
5418}
5419_ACEOF
5213506e
RW
5420if ac_fn_c_try_compile "$LINENO"; then :
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5422/* end confdefs.h. */
a3993f33 5423#include <gmp.h>
e69bf64b 5424 #include <mpfr.h>
1c710c3c
DJ
5425int
5426main ()
5427{
a3993f33 5428
362c6d2f 5429 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5430 choke me
5431 #endif
acd26225
KG
5432
5433 ;
5434 return 0;
5435}
5436_ACEOF
5213506e
RW
5437if ac_fn_c_try_compile "$LINENO"; then :
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5439$as_echo "yes" >&6; }
acd26225 5440else
5213506e
RW
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5442$as_echo "buggy but acceptable" >&6; }
acd26225 5443fi
5213506e 5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5445else
5213506e
RW
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447$as_echo "no" >&6; }; have_gmp=no
acd26225 5448fi
5213506e 5449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5450 fi
5451
5452 # Check for the MPC header version.
3a5729ea 5453 if test x"$have_gmp" = xyes ; then
362c6d2f 5454 # Check for the recommended and required versions of MPC.
5213506e
RW
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5456$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5458/* end confdefs.h. */
5459#include <mpc.h>
5460int
5461main ()
5462{
5463
362c6d2f
KG
5464 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5465 choke me
5466 #endif
5467
5468 ;
5469 return 0;
5470}
5471_ACEOF
5472if ac_fn_c_try_compile "$LINENO"; then :
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474/* end confdefs.h. */
5475#include <mpc.h>
5476int
5477main ()
5478{
5479
5480 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5481 choke me
5482 #endif
5483
5484 ;
5485 return 0;
5486}
5487_ACEOF
5213506e
RW
5488if ac_fn_c_try_compile "$LINENO"; then :
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5490$as_echo "yes" >&6; }
362c6d2f
KG
5491else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5493$as_echo "buggy but acceptable" >&6; }
5494fi
5495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5496else
5213506e 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5498$as_echo "no" >&6; }; have_gmp=no
acd26225 5499fi
5213506e 5500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5501 fi
5502
5503 # Now check the MPFR library.
5504 if test x"$have_gmp" = xyes; then
5505 saved_LIBS="$LIBS"
5506 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5508$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5510/* end confdefs.h. */
3a5729ea 5511#include <mpc.h>
acd26225
KG
5512int
5513main ()
5514{
5515
5516 mpfr_t n;
5517 mpfr_t x;
3a5729ea 5518 mpc_t c;
acd26225
KG
5519 int t;
5520 mpfr_init (n);
5521 mpfr_init (x);
5522 mpfr_atan2 (n, n, x, GMP_RNDN);
5523 mpfr_erfc (n, x, GMP_RNDN);
5524 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5525 mpfr_clear(n);
5526 mpfr_clear(x);
5527 mpc_init2 (c, 53);
5528 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5529 mpc_cosh (c, c, MPC_RNDNN);
5530 mpc_pow (c, c, c, MPC_RNDNN);
5531 mpc_acosh (c, c, MPC_RNDNN);
5532 mpc_clear (c);
1c710c3c
DJ
5533
5534 ;
5535 return 0;
5536}
5537_ACEOF
5213506e
RW
5538if ac_fn_c_try_link "$LINENO"; then :
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5540$as_echo "yes" >&6; }
1c710c3c 5541else
5213506e
RW
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5544fi
5213506e
RW
5545rm -f core conftest.err conftest.$ac_objext \
5546 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5547 LIBS="$saved_LIBS"
5548 fi
5549
e69bf64b 5550 CFLAGS="$saved_CFLAGS"
6de9cd9a 5551
362c6d2f
KG
5552# The library versions listed in the error message below should match
5553# the HARD-minimums enforced above.
e69bf64b 5554 if test x$have_gmp != xyes; then
362c6d2f 5555 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
3a5729ea
KG
5556Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5557their locations. Source code for these libraries can be found at
5558their respective hosting sites as well as at
5559ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5560http://gcc.gnu.org/install/prerequisites.html for additional info. If
5561you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5562make sure that you have installed both the libraries and the header
5563files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5564 fi
70ec446f
KG
5565fi
5566
acd26225
KG
5567# Flags needed for both GMP, MPFR and/or MPC.
5568
5569
6de9cd9a
DN
5570
5571
5572
9e3eba15 5573
f38095f3
JM
5574# Allow host libstdc++ to be specified for static linking with PPL.
5575
5213506e
RW
5576# Check whether --with-host-libstdcxx was given.
5577if test "${with_host_libstdcxx+set}" = set; then :
5578 withval=$with_host_libstdcxx;
5579fi
f38095f3 5580
f38095f3
JM
5581
5582case $with_host_libstdcxx in
5583 no|yes)
5213506e 5584 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5585 ;;
5586esac
f8bf9252 5587
00020c16
ILT
5588# Linker flags to use for stage1 or when not boostrapping.
5589
5213506e
RW
5590# Check whether --with-stage1-ldflags was given.
5591if test "${with_stage1_ldflags+set}" = set; then :
5592 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5593 stage1_ldflags=
5594 else
5595 stage1_ldflags=$withval
5596 fi
5597else
5598 stage1_ldflags=
5213506e
RW
5599fi
5600
00020c16
ILT
5601
5602
5603# Libraries to use for stage1 or when not bootstrapping.
5604
5213506e
RW
5605# Check whether --with-stage1-libs was given.
5606if test "${with_stage1_libs+set}" = set; then :
5607 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5608 stage1_libs=
5609 else
5610 stage1_libs=$withval
5611 fi
5612else
5613 stage1_libs=$with_host_libstdcxx
5213506e
RW
5614fi
5615
00020c16
ILT
5616
5617
00020c16
ILT
5618# Libraries to use for stage2 and later builds. This defaults to the
5619# argument passed to --with-host-libstdcxx.
5620
5213506e
RW
5621# Check whether --with-boot-libs was given.
5622if test "${with_boot_libs+set}" = set; then :
5623 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5624 poststage1_libs=
5625 else
5626 poststage1_libs=$withval
5627 fi
5628else
00020c16 5629 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5630fi
5631
00020c16
ILT
5632
5633
ed2eaa9f
ILT
5634# Linker flags to use for stage2 and later builds.
5635
5636# Check whether --with-boot-ldflags was given.
5637if test "${with_boot_ldflags+set}" = set; then :
5638 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5639 poststage1_ldflags=
5640 else
5641 poststage1_ldflags=$withval
5642 fi
5643else
5644 poststage1_ldflags=
bec93d73
ILT
5645 # In stages 2 and 3, default to linking libstdc++ and libgcc
5646 # statically. But if the user explicitly specified the libraries to
5647 # use, trust that they are doing what they want.
5648 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5649 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5650 fi
5651fi
5652
5653
5654
f8bf9252 5655# Check for PPL
00020c16 5656ppllibs=" -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5657pplinc=
5658
5659
5213506e
RW
5660# Check whether --with-ppl was given.
5661if test "${with_ppl+set}" = set; then :
5662 withval=$with_ppl;
5213506e 5663fi
f8bf9252 5664
f8bf9252 5665
9965e3cd 5666# Check whether --with-ppl-include was given.
5213506e
RW
5667if test "${with_ppl_include+set}" = set; then :
5668 withval=$with_ppl_include;
5669fi
5670
f8bf9252 5671
9965e3cd 5672# Check whether --with-ppl-lib was given.
5213506e
RW
5673if test "${with_ppl_lib+set}" = set; then :
5674 withval=$with_ppl_lib;
5675fi
f8bf9252 5676
f8bf9252 5677
53095c56
SP
5678case $with_ppl in
5679 no)
5680 ppllibs=
5681 ;;
f61428ed 5682 "" | yes)
ad0abd3c 5683 ;;
53095c56 5684 *)
00020c16 5685 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
53095c56 5686 pplinc="-I$with_ppl/include $pplinc"
53095c56
SP
5687 ;;
5688esac
f8bf9252
SP
5689if test "x$with_ppl_include" != x; then
5690 pplinc="-I$with_ppl_include $pplinc"
5691fi
5692if test "x$with_ppl_lib" != x; then
00020c16 5693 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
f8bf9252
SP
5694fi
5695if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
592c90ff 5696 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
f61428ed
AO
5697 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5698 enable_ppl_version_check=no
f8bf9252
SP
5699fi
5700
5213506e
RW
5701# Check whether --enable-ppl-version-check was given.
5702if test "${enable_ppl_version_check+set}" = set; then :
5703 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
d789184e
SP
5704else
5705 ENABLE_PPL_CHECK=yes
5213506e
RW
5706fi
5707
f8bf9252 5708
ad0abd3c 5709if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
d789184e
SP
5710 saved_CFLAGS="$CFLAGS"
5711 CFLAGS="$CFLAGS $pplinc $gmpinc"
f1af9e5f
SP
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5713$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
5213506e 5714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5715/* end confdefs.h. */
5716#include "ppl_c.h"
5717int
5718main ()
5719{
5720
f1af9e5f 5721 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
d789184e
SP
5722 choke me
5723 #endif
f8bf9252
SP
5724
5725 ;
5726 return 0;
5727}
5728_ACEOF
5213506e
RW
5729if ac_fn_c_try_compile "$LINENO"; then :
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5731$as_echo "yes" >&6; }
f8bf9252 5732else
5213506e 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ed3a56f3 5734$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
f8bf9252 5735fi
5213506e 5736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e
SP
5737 CFLAGS="$saved_CFLAGS"
5738fi
5739
5740# Flags needed for PPL
5741
5742
f8bf9252 5743
f8bf9252 5744
d789184e 5745# Check for CLOOG
d32ef397 5746
d789184e
SP
5747
5748
5213506e
RW
5749# Check whether --with-cloog was given.
5750if test "${with_cloog+set}" = set; then :
5751 withval=$with_cloog;
5213506e
RW
5752fi
5753
d789184e 5754
9965e3cd 5755# Check whether --with-cloog-include was given.
5213506e
RW
5756if test "${with_cloog_include+set}" = set; then :
5757 withval=$with_cloog_include;
5758fi
d789184e 5759
d789184e 5760
9965e3cd 5761# Check whether --with-cloog-lib was given.
5213506e
RW
5762if test "${with_cloog_lib+set}" = set; then :
5763 withval=$with_cloog_lib;
5764fi
d789184e 5765
d789184e 5766
f16e2237
TG
5767 # Check whether --enable-cloog-backend was given.
5768if test "${enable_cloog_backend+set}" = set; then :
5769 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5770 cloog_backend=isl
5771 elif test "x${enableval}" = "xppl"; then
5772 cloog_backend=ppl
5773 else
5774 cloog_backend=ppl-legacy
5775 fi
5776else
5777 cloog_backend=ppl-legacy
5778fi
5779
d32ef397
AS
5780 # Check whether --enable-cloog-version-check was given.
5781if test "${enable_cloog_version_check+set}" = set; then :
5782 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5783else
5784 ENABLE_CLOOG_CHECK=yes
5785fi
5786
5787
5788 # Initialize clooglibs and clooginc.
5789 case $with_cloog in
5790 no)
5791 clooglibs=
5792 clooginc=
5793 ;;
5794 "" | yes)
5795 ;;
5796 *)
5797 clooglibs="-L$with_cloog/lib"
5798 clooginc="-I$with_cloog/include"
5799 ;;
5800 esac
5801 if test "x${with_cloog_include}" != x ; then
5802 clooginc="-I$with_cloog_include"
5803 fi
5804 if test "x${with_cloog_lib}" != x; then
5805 clooglibs="-L$with_cloog_lib"
5806 fi
5807
5808
5809
5810
5811
17e72e5d 5812if test "x$with_ppl" = "xno"; then
ad0abd3c
RG
5813 with_cloog=no
5814fi
d32ef397
AS
5815if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5816 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5817 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5818 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5819fi
5820if test "x$with_cloog" != "xno"; then
ad0abd3c 5821
d32ef397
AS
5822
5823
5824 _cloog_saved_CFLAGS=$CFLAGS
5825 _cloog_saved_CPPFLAGS=$CPPFLAGS
5826 _cloog_saved_LDFLAGS=$LDFLAGS
5827 _cloog_saved_LIBS=$LIBS
5828
d32ef397
AS
5829 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5830
f16e2237 5831 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
0bb52d68 5832 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
f16e2237
TG
5833 LDFLAGS="${LDFLAGS} ${clooglibs}"
5834
5835 case $cloog_backend in
5836 "ppl-legacy")
5837 CFLAGS="${CFLAGS} ${pplinc}"
5838 LDFLAGS="${LDFLAGS} ${ppllibs}"
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5840$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
d32ef397
AS
5841if test "${gcc_cv_cloog_type+set}" = set; then :
5842 $as_echo_n "(cached) " >&6
5843else
5844 LIBS="-lcloog ${_cloog_saved_LIBS}"
f16e2237 5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5846/* end confdefs.h. */
0bb52d68 5847#include "cloog/cloog.h"
d32ef397
AS
5848int
5849main ()
5850{
0bb52d68
TG
5851#ifndef CLOOG_PPL_BACKEND
5852 choke me
5853 #endif
d32ef397
AS
5854 ;
5855 return 0;
5856}
5857_ACEOF
5858if ac_fn_c_try_link "$LINENO"; then :
5859 gcc_cv_cloog_type="PPL Legacy"
5860else
f16e2237
TG
5861 gcc_cv_cloog_type=no
5862fi
5863rm -f core conftest.err conftest.$ac_objext \
5864 conftest$ac_exeext conftest.$ac_ext
5865fi
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5867$as_echo "$gcc_cv_cloog_type" >&6; }
5868 ;;
5869 "isl")
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5871$as_echo_n "checking for installed CLooG ISL... " >&6; }
5872if test "${gcc_cv_cloog_type+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5874else
5875 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5877/* end confdefs.h. */
0bb52d68 5878#include "cloog/cloog.h"
d32ef397
AS
5879int
5880main ()
5881{
5882cloog_version ()
5883 ;
5884 return 0;
5885}
5886_ACEOF
5887if ac_fn_c_try_link "$LINENO"; then :
f16e2237
TG
5888 gcc_cv_cloog_type="ISL"
5889else
5890 gcc_cv_cloog_type=no
5891fi
5892rm -f core conftest.err conftest.$ac_objext \
5893 conftest$ac_exeext conftest.$ac_ext
5894fi
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5896$as_echo "$gcc_cv_cloog_type" >&6; }
5897 ;;
5898 "ppl")
5899 CFLAGS="${CFLAGS} ${pplinc}"
5900 LDFLAGS="${LDFLAGS} ${ppllibs}"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5902$as_echo_n "checking for installed CLooG PPL... " >&6; }
5903if test "${gcc_cv_cloog_type+set}" = set; then :
5904 $as_echo_n "(cached) " >&6
d32ef397
AS
5905else
5906 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
f16e2237 5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5908/* end confdefs.h. */
0bb52d68 5909#include "cloog/cloog.h"
f16e2237 5910 #include "cloog/ppl/cloog.h"
d32ef397
AS
5911int
5912main ()
5913{
5914cloog_version ()
5915 ;
5916 return 0;
5917}
5918_ACEOF
5919if ac_fn_c_try_link "$LINENO"; then :
f16e2237 5920 gcc_cv_cloog_type="PPL"
d32ef397
AS
5921else
5922 gcc_cv_cloog_type=no
d789184e 5923fi
d32ef397
AS
5924rm -f core conftest.err conftest.$ac_objext \
5925 conftest$ac_exeext conftest.$ac_ext
d789184e 5926fi
d32ef397
AS
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5928$as_echo "$gcc_cv_cloog_type" >&6; }
f16e2237
TG
5929 ;;
5930 *)
5931 gcc_cv_cloog_type=""
5932 esac
5213506e 5933
d32ef397
AS
5934 case $gcc_cv_cloog_type in
5935 "PPL Legacy")
0bb52d68 5936 clooginc="${clooginc}"
d32ef397
AS
5937 clooglibs="${clooglibs} -lcloog"
5938 cloog_org=no
5939 ;;
5940 "ISL")
5941 clooginc="${clooginc} ${_cloogorginc}"
5942 clooglibs="${clooglibs} -lcloog-isl"
5943 cloog_org=yes
5944 ;;
5945 "PPL")
5946 clooginc="${clooginc} ${_cloogorginc}"
5947 clooglibs="${clooglibs} -lcloog-ppl"
5948 cloog_org=yes
5949 ;;
5950 *)
5951 clooglibs=
5952 clooginc=
5953 cloog_org=
5954 ;;
5955 esac
d789184e 5956
d32ef397
AS
5957 LIBS=$_cloog_saved_LIBS
5958 CFLAGS=$_cloog_saved_CFLAGS
5959 CPPFLAGS=$_cloog_saved_CPPFLAGS
5960 LDFLAGS=$_cloog_saved_LDFLAGS
5961
5962
5963
5964
5965
5966 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5967 _cloog_saved_CFLAGS=$CFLAGS
5968 _cloog_saved_LDFLAGS=$LDFLAGS
5969
5970 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
27882098 5971 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
d32ef397
AS
5972
5973 if test "${cloog_org}" = yes ; then
aba2b02e
TG
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5975$as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
d32ef397
AS
5976if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5977 $as_echo_n "(cached) " >&6
5978else
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980/* end confdefs.h. */
5981#include "cloog/cloog.h"
5982int
5983main ()
5984{
5985#if CLOOG_VERSION_MAJOR != 0 \
5986 || CLOOG_VERSION_MINOR != 14 \
5987 || CLOOG_VERSION_REVISION < 0
5988 choke me
5989 #endif
5990 ;
5991 return 0;
5992}
5993_ACEOF
5994if ac_fn_c_try_compile "$LINENO"; then :
5995 gcc_cv_cloog_ct_0_14_0=yes
5996else
5997 gcc_cv_cloog_ct_0_14_0=no
5998fi
5999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000fi
6001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
6002$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
6003 elif test "${cloog_org}" = no ; then
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
f264ed56 6005$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
d32ef397
AS
6006if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6008else
5213506e 6009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
6010/* end confdefs.h. */
6011#include "cloog/cloog.h"
6012int
6013main ()
6014{
d32ef397
AS
6015#if CLOOG_VERSION_MAJOR != 0 \
6016 || CLOOG_VERSION_MINOR != 15 \
6017 || CLOOG_VERSION_REVISION < 5
6018 choke me
6019 #endif
f8bf9252
SP
6020 ;
6021 return 0;
6022}
6023_ACEOF
0333b9a6
SP
6024if ac_fn_c_try_compile "$LINENO"; then :
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026/* end confdefs.h. */
6027#include "cloog/cloog.h"
6028int
6029main ()
6030{
d32ef397
AS
6031#if CLOOG_VERSION_MAJOR != 0 \
6032 || CLOOG_VERSION_MINOR != 15 \
6033 || CLOOG_VERSION_REVISION < 9
6034 choke me
6035 #endif
0333b9a6
SP
6036 ;
6037 return 0;
6038}
6039_ACEOF
5213506e 6040if ac_fn_c_try_compile "$LINENO"; then :
d32ef397 6041 gcc_cv_cloog_ct_0_15_5=yes
0333b9a6 6042else
d32ef397 6043 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
0333b9a6
SP
6044fi
6045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f8bf9252 6046else
d32ef397 6047 gcc_cv_cloog_ct_0_15_5=no
f8bf9252 6048fi
5213506e 6049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e 6050fi
d32ef397
AS
6051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6052$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6053 fi
6054
6055 CFLAGS=$_cloog_saved_CFLAGS
6056 LDFLAGS=$_cloog_saved_LDFLAGS
6057 fi
f8bf9252 6058
f8bf9252
SP
6059
6060
6061
d32ef397
AS
6062
6063
6064
6065 if test "x${with_cloog}" != x \
6066 || test "x${with_cloog_include}" != x \
6067 || test "x${with_cloog_lib}" != x ; then
6068 graphite_requested=yes
6069 else
6070 graphite_requested=no
6071 fi
6072
6073
6074
6075 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6076 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6077 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6078 clooglibs=
6079 clooginc=
6080 fi
6081
6082 if test "${graphite_requested}" = yes \
6083 && test "x${clooglibs}" = x \
6084 && test "x${clooginc}" = x ; then
6085
6086 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6087 fi
6088
6089
6090fi
6091
d7f09764
DN
6092# Check for LTO support.
6093# Check whether --enable-lto was given.
6094if test "${enable_lto+set}" = set; then :
6095 enableval=$enable_lto; enable_lto=$enableval
6096else
6097 enable_lto=yes; default_enable_lto=yes
6098fi
6099
6100
7413962d 6101
9a02962b
DK
6102
6103
6104target_elf=no
6105case $target in
6106 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6107 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
6108 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6109 target_elf=no
6110 ;;
6111 *)
6112 target_elf=yes
6113 ;;
6114esac
6115
6116if test $target_elf = yes; then :
48215350
DK
6117 # ELF platforms build the lto-plugin always.
6118 build_lto_plugin=yes
9a02962b 6119
9a02962b
DK
6120else
6121 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6122 case $target in
1cd0b716 6123 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
48215350 6124 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6125 *) enable_lto=no ;;
6126 esac
9a02962b 6127 else
db50fe7d
IS
6128 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6129 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6130 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6131 # warn during gcc/ subconfigure; unless you're bootstrapping with
6132 # -flto it won't be needed until after installation anyway.
6133 case $target in
1cd0b716 6134 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6135 *) if test x"$enable_lto" = x"yes"; then
6136 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6137 fi
6138 ;;
6139 esac
6140 fi
1cd0b716 6141 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6142 # Build it unless LTO was explicitly disabled.
1cd0b716 6143 case $target in
48215350 6144 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6145 *) ;;
6146 esac
48215350 6147
9a02962b
DK
6148fi
6149
d7f09764 6150
f8bf9252 6151
1e0f07d3 6152# By default, C is the only stage 1 language.
e1888513 6153stage1_languages=,c,
2805b53a 6154
00020c16 6155# Target libraries that we bootstrap.
ad1e5170 6156bootstrap_target_libs=,target-libgcc,
00020c16 6157
55ffb5ed
NN
6158# Figure out what language subdirectories are present.
6159# Look if the user specified --enable-languages="..."; if not, use
6160# the environment variable $LANGUAGES if defined. $LANGUAGES might
6161# go away some day.
6162# NB: embedded tabs in this IF block -- do not untabify
6163if test -d ${srcdir}/gcc; then
6164 if test x"${enable_languages+set}" != xset; then
6165 if test x"${LANGUAGES+set}" = xset; then
6166 enable_languages="${LANGUAGES}"
6167 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6168 else
6169 enable_languages=all
6170 fi
6171 else
6172 if test x"${enable_languages}" = x ||
6173 test x"${enable_languages}" = xyes;
6174 then
6175 echo configure.in: --enable-languages needs at least one language argument 1>&2
6176 exit 1
6177 fi
6178 fi
6179 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6180
7f26dfa3
FXC
6181 # 'f95' is the old name for the 'fortran' language. We issue a warning
6182 # and make the substitution.
6183 case ,${enable_languages}, in
6184 *,f95,*)
6185 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6186 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6187 ;;
6188 esac
6189
55ffb5ed
NN
6190 # First scan to see if an enabled language requires some other language.
6191 # We assume that a given config-lang.in will list all the language
6192 # front ends it requires, even if some are required indirectly.
6193 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6194 case ${lang_frag} in
6195 ..) ;;
6196 # The odd quoting in the next line works around
6197 # an apparent bug in bash 1.12 on linux.
6198 ${srcdir}/gcc/[*]/config-lang.in) ;;
6199 *)
69ecd18f
ILT
6200 # From the config-lang.in, get $language, $lang_requires, and
6201 # $lang_requires_boot_languages.
55ffb5ed
NN
6202 language=
6203 lang_requires=
69ecd18f 6204 lang_requires_boot_languages=
55ffb5ed 6205 . ${lang_frag}
69ecd18f 6206 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6207 case ,${enable_languages}, in
6208 *,$other,*) ;;
6209 *,all,*) ;;
6210 *,$language,*)
6211 echo " \`$other' language required by \`$language'; enabling" 1>&2
6212 enable_languages="${enable_languages},${other}"
6213 ;;
6214 esac
6215 done
69ecd18f
ILT
6216 for other in ${lang_requires_boot_languages} ; do
6217 if test "$other" != "c"; then
6218 case ,${enable_stage1_languages}, in
6219 *,$other,*) ;;
6220 *,all,*) ;;
6221 *)
6222 case ,${enable_languages}, in
6223 *,$language,*)
6224 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6225 enable_stage1_languages="$enable_stage1_languages,${other}"
6226 ;;
6227 esac
6228 ;;
6229 esac
6230 fi
6231 done
55ffb5ed
NN
6232 ;;
6233 esac
6234 done
6235
e1888513 6236 new_enable_languages=,c,
d7f09764
DN
6237
6238 # If LTO is enabled, add the LTO front end.
6239 extra_host_libiberty_configure_flags=
6240 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6241 case ,${enable_languages}, in
6242 *,lto,*) ;;
6243 *) enable_languages="${enable_languages},lto" ;;
6244 esac
1cd0b716 6245 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6246 configdirs="$configdirs lto-plugin"
6247 extra_host_libiberty_configure_flags=--enable-shared
6248 fi
6249 fi
6250
6251
55ffb5ed 6252 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6253 potential_languages=,c,
55ffb5ed 6254
4da3b0f8
ILT
6255 enabled_target_libs=
6256 disabled_target_libs=
6257
55ffb5ed
NN
6258 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6259 case ${lang_frag} in
6260 ..) ;;
6261 # The odd quoting in the next line works around
6262 # an apparent bug in bash 1.12 on linux.
6263 ${srcdir}/gcc/[*]/config-lang.in) ;;
6264 *)
1c710c3c 6265 # From the config-lang.in, get $language, $target_libs,
2805b53a 6266 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6267 language=
6268 target_libs=
6269 lang_dirs=
1546bb64 6270 subdir_requires=
e1888513
PB
6271 boot_language=no
6272 build_by_default=yes
55ffb5ed 6273 . ${lang_frag}
e1888513
PB
6274 if test x${language} = x; then
6275 echo "${lang_frag} doesn't set \$language." 1>&2
6276 exit 1
6277 fi
6278
f61428ed
AO
6279 if test "$language" = "c++" \
6280 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
00020c16
ILT
6281 boot_language=yes
6282 fi
6283
e1888513
PB
6284 case ,${enable_languages}, in
6285 *,${language},*)
55ffb5ed
NN
6286 # Language was explicitly selected; include it.
6287 add_this_lang=yes
6288 ;;
e1888513
PB
6289 *,all,*)
6290 # 'all' was selected, select it if it is a default language
6291 add_this_lang=${build_by_default}
55ffb5ed
NN
6292 ;;
6293 *)
6294 add_this_lang=no
6295 ;;
6296 esac
6de9cd9a 6297
1546bb64 6298 # Disable languages that need other directories if these aren't available.
95695ad3 6299 for i in $subdir_requires; do
b6348cb3 6300 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6301 case ,${enable_languages}, in
6302 *,${language},*)
6303 # Specifically requested language; tell them.
5213506e 6304 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6305 ;;
6306 *)
6307 # Silently disable.
e1888513 6308 add_this_lang=unsupported
1546bb64
PB
6309 ;;
6310 esac
6311 done
6312
e1888513
PB
6313 # Disable Ada if no preexisting GNAT is available.
6314 case ,${enable_languages},:${language}:${have_gnat} in
6315 *,${language},*:ada:no)
6316 # Specifically requested language; tell them.
5213506e 6317 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6318 ;;
6319 *:ada:no)
6320 # Silently disable.
6321 add_this_lang=unsupported
6322 ;;
6323 esac
6324
4fab7234
HPN
6325 # Disable a language that is unsupported by the target.
6326 case " $unsupported_languages " in
6327 *" $language "*)
e1888513 6328 add_this_lang=unsupported
4fab7234
HPN
6329 ;;
6330 esac
6331
6de9cd9a 6332 case $add_this_lang in
e1888513 6333 unsupported)
55ffb5ed 6334 # Remove language-dependent dirs.
4da3b0f8
ILT
6335 disabled_target_libs="$disabled_target_libs $target_libs"
6336 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6337 ;;
e1888513
PB
6338 no)
6339 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6340 disabled_target_libs="$disabled_target_libs $target_libs"
6341 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6342 potential_languages="${potential_languages}${language},"
6343 ;;
6344 yes)
6345 new_enable_languages="${new_enable_languages}${language},"
6346 potential_languages="${potential_languages}${language},"
2805b53a 6347 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6348 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6349 case "${boot_language}:,$enable_stage1_languages," in
6350 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6351 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6352 case ",$stage1_languages," in
6353 *,$language,* | ,yes, | ,all,) ;;
6354 *) stage1_languages="${stage1_languages}${language}," ;;
6355 esac
00020c16
ILT
6356 # We need to bootstrap any supporting libraries.
6357 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6358 ;;
6359 esac
6360 ;;
55ffb5ed
NN
6361 esac
6362 ;;
6363 esac
6364 done
6365
4da3b0f8
ILT
6366 # Add target libraries which are only needed for disabled languages
6367 # to noconfigdirs.
6368 if test -n "$disabled_target_libs"; then
6369 for dir in $disabled_target_libs; do
6370 case " $enabled_target_libs " in
6371 *" ${dir} "*) ;;
6372 *) noconfigdirs="$noconfigdirs $dir" ;;
6373 esac
6374 done
6375 fi
6376
5213506e
RW
6377 # Check whether --enable-stage1-languages was given.
6378if test "${enable_stage1_languages+set}" = set; then :
6379 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6380 ,no,|,,)
6381 # Set it to something that will have no effect in the loop below
6382 enable_stage1_languages=c ;;
6383 ,yes,)
6384 enable_stage1_languages=`echo $new_enable_languages | \
6385 sed -e "s/^,//" -e "s/,$//" ` ;;
6386 *,all,*)
6387 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6388 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6389 esac
6390
6391 # Add "good" languages from enable_stage1_languages to stage1_languages,
6392 # while "bad" languages go in missing_languages. Leave no duplicates.
6393 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6394 case $potential_languages in
6395 *,$i,*)
6396 case $stage1_languages in
6397 *,$i,*) ;;
6398 *) stage1_languages="$stage1_languages$i," ;;
6399 esac ;;
6400 *)
6401 case $missing_languages in
6402 *,$i,*) ;;
6403 *) missing_languages="$missing_languages$i," ;;
6404 esac ;;
6405 esac
6406 done
5213506e
RW
6407fi
6408
e1888513
PB
6409
6410 # Remove leading/trailing commas that were added for simplicity
6411 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6412 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6413 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6414 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6415
55ffb5ed 6416 if test "x$missing_languages" != x; then
5213506e 6417 as_fn_error "
0cf085e4 6418The following requested languages could not be built: ${missing_languages}
5213506e 6419Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6420 fi
55ffb5ed
NN
6421 if test "x$new_enable_languages" != "x$enable_languages"; then
6422 echo The following languages will be built: ${new_enable_languages}
e1888513 6423 enable_languages="$new_enable_languages"
55ffb5ed 6424 fi
e1888513 6425
1c710c3c 6426
b2eaac4a 6427 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6428fi
6429
27079765
AH
6430# Handle --disable-<component> generically.
6431for dir in $configdirs $build_configdirs $target_configdirs ; do
6432 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6433 varname=`echo $dirname | sed -e s/+/_/g`
6434 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6435 noconfigdirs="$noconfigdirs $dir"
6436 fi
6437done
6438
7cd0cf9c 6439# Check for Boehm's garbage collector
5213506e
RW
6440# Check whether --enable-objc-gc was given.
6441if test "${enable_objc_gc+set}" = set; then :
6442 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6443 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6444 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6445 ;;
6446esac
5213506e
RW
6447fi
6448
7cd0cf9c
DA
6449
6450# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6451case ,${enable_languages},:${enable_objc_gc} in
6452 *,objc,*:yes)
7cd0cf9c
DA
6453 # Keep target-boehm-gc if requested for Objective-C.
6454 ;;
7cd0cf9c 6455 *)
2a79fd67
DA
6456 # Otherwise remove target-boehm-gc depending on target-libjava.
6457 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6458 noconfigdirs="$noconfigdirs target-boehm-gc"
6459 fi
7cd0cf9c
DA
6460 ;;
6461esac
6462
ee6a22df
L
6463# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6464# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6465# If we have the source for $noconfigdirs entries, add them to $notsupp.
6466
6467notsupp=""
6468for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6469 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6470 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6472 if test -r $srcdir/$dirname/configure ; then
6473 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 true
6475 else
6476 notsupp="$notsupp $dir"
6477 fi
6478 fi
6479 fi
ee6a22df
L
6480 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6481 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6482 if test -r $srcdir/$dirname/configure ; then
6483 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484 true
6485 else
6486 notsupp="$notsupp $dir"
6487 fi
6488 fi
6489 fi
55ffb5ed
NN
6490 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6491 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6492 if test -r $srcdir/$dirname/configure ; then
6493 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6494 true
6495 else
6496 notsupp="$notsupp $dir"
6497 fi
6498 fi
6499 fi
6500done
6501
6502# Sometimes the tools are distributed with libiberty but with no other
6503# libraries. In that case, we don't want to build target-libiberty.
54fdc474 6504# Don't let libgcc imply libiberty either.
55ffb5ed 6505if test -n "${target_configdirs}" ; then
54fdc474 6506 libgcc=
55ffb5ed
NN
6507 others=
6508 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
6509 if test "$i" = "libgcc"; then
6510 libgcc=target-libgcc
6511 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
6512 if test -r $srcdir/$i/configure ; then
6513 others=yes;
6514 break;
6515 fi
6516 fi
6517 done
6518 if test -z "${others}" ; then
54fdc474 6519 target_configdirs=$libgcc
55ffb5ed
NN
6520 fi
6521fi
6522
6523# Quietly strip out all directories which aren't configurable in this tree.
6524# This relies on all configurable subdirectories being autoconfiscated, which
6525# is now the case.
23f6b2f9
PB
6526build_configdirs_all="$build_configdirs"
6527build_configdirs=
6528for i in ${build_configdirs_all} ; do
1c710c3c 6529 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6530 if test -f ${srcdir}/$j/configure ; then
6531 build_configdirs="${build_configdirs} $i"
6532 fi
6533done
6534
55ffb5ed
NN
6535configdirs_all="$configdirs"
6536configdirs=
6537for i in ${configdirs_all} ; do
6538 if test -f ${srcdir}/$i/configure ; then
6539 configdirs="${configdirs} $i"
6540 fi
6541done
23f6b2f9 6542
55ffb5ed
NN
6543target_configdirs_all="$target_configdirs"
6544target_configdirs=
6545for i in ${target_configdirs_all} ; do
1c710c3c 6546 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6547 if test -f ${srcdir}/$j/configure ; then
6548 target_configdirs="${target_configdirs} $i"
6549 fi
6550done
6551
6552# Produce a warning message for the subdirs we can't configure.
6553# This isn't especially interesting in the Cygnus tree, but in the individual
6554# FSF releases, it's important to let people know when their machine isn't
6555# supported by the one or two programs in a package.
6556
6557if test -n "${notsupp}" && test -z "${norecursion}" ; then
6558 # If $appdirs is non-empty, at least one of those directories must still
6559 # be configured, or we error out. (E.g., if the gas release supports a
6560 # specified target in some subdirs but not the gas subdir, we shouldn't
6561 # pretend that all is well.)
6562 if test -n "$appdirs" ; then
6563 for dir in $appdirs ; do
6564 if test -r $dir/Makefile.in ; then
6565 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6566 appdirs=""
6567 break
6568 fi
23f6b2f9 6569 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6570 appdirs=""
6571 break
6572 fi
6573 fi
6574 done
6575 if test -n "$appdirs" ; then
6576 echo "*** This configuration is not supported by this package." 1>&2
6577 exit 1
6578 fi
6579 fi
6580 # Okay, some application will build, or we don't care to check. Still
6581 # notify of subdirs not getting built.
6582 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6583 echo " ${notsupp}" 1>&2
6584 echo " (Any other directories should still work fine.)" 1>&2
6585fi
6586
6587case "$host" in
6588 *msdosdjgpp*)
6589 enable_gdbtk=no ;;
6590esac
6591
c3a86da9
DJ
6592# To find our prefix, in gcc_cv_tool_prefix.
6593
6594# The user is always right.
6595if test "${PATH_SEPARATOR+set}" != set; then
6596 echo "#! /bin/sh" >conf$$.sh
6597 echo "exit 0" >>conf$$.sh
6598 chmod +x conf$$.sh
6599 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6600 PATH_SEPARATOR=';'
6601 else
6602 PATH_SEPARATOR=:
6603 fi
6604 rm -f conf$$.sh
6605fi
6606
6607
6608
6609if test "x$exec_prefix" = xNONE; then
6610 if test "x$prefix" = xNONE; then
6611 gcc_cv_tool_prefix=$ac_default_prefix
6612 else
6613 gcc_cv_tool_prefix=$prefix
6614 fi
6615else
6616 gcc_cv_tool_prefix=$exec_prefix
6617fi
6618
6619# If there is no compiler in the tree, use the PATH only. In any
6620# case, if there is no compiler in the tree nobody should use
6621# AS_FOR_TARGET and LD_FOR_TARGET.
6622if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6623 gcc_version=`cat $srcdir/gcc/BASE-VER`
6624 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6625 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6626 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6627 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6628 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6629 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6630else
6631 gcc_cv_tool_dirs=
6632fi
6633
6634if test x$build = x$target && test -n "$md_exec_prefix"; then
6635 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6636fi
6637
6638
6639
55ffb5ed
NN
6640copy_dirs=
6641
1c710c3c 6642
5213506e
RW
6643# Check whether --with-build-sysroot was given.
6644if test "${with_build_sysroot+set}" = set; then :
6645 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6646 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6647 fi
6648else
6649 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6650fi
526635cb
MM
6651
6652
c8aea42c 6653
5213506e
RW
6654
6655# Check whether --with-debug-prefix-map was given.
6656if test "${with_debug_prefix_map+set}" = set; then :
6657 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6658 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6659 for debug_map in $withval; do
6660 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6661 done
6662 fi
6663else
6664 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6665fi
6666
c8aea42c
PB
6667
6668
1c8bd6a3
PB
6669# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6670# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6671# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6672# We want to ensure that TARGET libraries (which we know are built with
6673# gcc) are built with "-O2 -g", so include those options when setting
6674# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6675if test "x$CFLAGS_FOR_TARGET" = x; then
6676 CFLAGS_FOR_TARGET=$CFLAGS
6677 case " $CFLAGS " in
6678 *" -O2 "*) ;;
6679 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6680 esac
6681 case " $CFLAGS " in
6682 *" -g "* | *" -g3 "*) ;;
6683 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6684 esac
6685fi
6686
6687
6688if test "x$CXXFLAGS_FOR_TARGET" = x; then
6689 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6690 case " $CXXFLAGS " in
6691 *" -O2 "*) ;;
6692 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6693 esac
6694 case " $CXXFLAGS " in
6695 *" -g "* | *" -g3 "*) ;;
6696 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6697 esac
6698fi
6699
6700
55ffb5ed
NN
6701# Handle --with-headers=XXX. If the value is not "yes", the contents of
6702# the named directory are copied to $(tooldir)/sys-include.
6703if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6704 if test x${is_cross_compiler} = xno ; then
6705 echo 1>&2 '***' --with-headers is only supported when cross compiling
6706 exit 1
6707 fi
6708 if test x"${with_headers}" != xyes ; then
c3a86da9 6709 x=${gcc_cv_tool_prefix}
1c710c3c 6710 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6711 fi
6712fi
6713
6714# Handle --with-libs=XXX. If the value is not "yes", the contents of
6715# the name directories are copied to $(tooldir)/lib. Multiple directories
6716# are permitted.
6717if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6718 if test x${is_cross_compiler} = xno ; then
6719 echo 1>&2 '***' --with-libs is only supported when cross compiling
6720 exit 1
6721 fi
6722 if test x"${with_libs}" != xyes ; then
6723 # Copy the libraries in reverse order, so that files in the first named
6724 # library override files in subsequent libraries.
c3a86da9 6725 x=${gcc_cv_tool_prefix}
55ffb5ed 6726 for l in ${with_libs}; do
1c710c3c 6727 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6728 done
6729 fi
6730fi
6731
d7f09764 6732# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6733#
6734# This is done by determining whether or not the appropriate directory
6735# is available, and by checking whether or not specific configurations
6736# have requested that this magic not happen.
1c710c3c
DJ
6737#
6738# The command line options always override the explicit settings in
e8b05380
PB
6739# configure.in, and the settings in configure.in override this magic.
6740#
1c710c3c 6741# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6742# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6743# --without-gnu-ld options for the configure script. Similarly, if
6744# the default is to use the included zlib and you don't want to do that,
6745# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6746
6747if test x${use_gnu_as} = x &&
6748 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6749 with_gnu_as=yes
6750 extra_host_args="$extra_host_args --with-gnu-as"
6751fi
6752
6753if test x${use_gnu_ld} = x &&
5afab7ad 6754 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6755 with_gnu_ld=yes
6756 extra_host_args="$extra_host_args --with-gnu-ld"
6757fi
6758
d7f09764
DN
6759if test x${use_included_zlib} = x &&
6760 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6761 :
6762else
6763 with_system_zlib=yes
6764 extra_host_args="$extra_host_args --with-system-zlib"
6765fi
6766
e8b05380
PB
6767# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6768# can detect this case.
6769
6770if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6771 with_newlib=yes
6772 extra_host_args="$extra_host_args --with-newlib"
6773fi
6774
55ffb5ed
NN
6775# Handle ${copy_dirs}
6776set fnord ${copy_dirs}
6777shift
6778while test $# != 0 ; do
6779 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6780 :
6781 else
6782 echo Copying $1 to $2
6783
6784 # Use the install script to create the directory and all required
6785 # parent directories.
6786 if test -d $2 ; then
6787 :
6788 else
6789 echo >config.temp
6790 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6791 fi
6792
6793 # Copy the directory, assuming we have tar.
6794 # FIXME: Should we use B in the second tar? Not all systems support it.
6795 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6796
6797 # It is the responsibility of the user to correctly adjust all
6798 # symlinks. If somebody can figure out how to handle them correctly
6799 # here, feel free to add the code.
6800
6801 echo $1 > $2/COPIED
6802 fi
6803 shift; shift
6804done
6805
e8b05380
PB
6806# Determine a target-dependent exec_prefix that the installed
6807# gcc will search in. Keep this list sorted by triplet, with
6808# the *-*-osname triplets last.
6809md_exec_prefix=
6810case "${target}" in
6811 alpha*-*-*vms*)
6812 md_exec_prefix=/gnu/lib/gcc-lib
6813 ;;
30b74385 6814 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6815 md_exec_prefix=/dev/env/DJDIR/bin
6816 ;;
30b74385 6817 i[34567]86-*-sco3.2v5*)
e8b05380
PB
6818 if test $with_gnu_as = yes; then
6819 md_exec_prefix=/usr/gnu/bin
6820 else
6821 md_exec_prefix=/usr/ccs/bin/elf
6822 fi
6823 ;;
6824
6825 mn10300-*-* | \
6826 powerpc-*-chorusos* | \
6827 powerpc*-*-eabi* | \
6828 powerpc*-*-sysv* | \
6829 powerpc*-*-kaos* | \
6830 s390x-ibm-tpf*)
6831 md_exec_prefix=/usr/ccs/bin
6832 ;;
6833 sparc64-*-elf*)
6834 ;;
6835 v850*-*-*)
6836 md_exec_prefix=/usr/ccs/bin
6837 ;;
aa12a573 6838 xtensa*-*-elf*)
e8b05380
PB
6839 ;;
6840
6841 *-*-beos* | \
6842 *-*-elf* | \
6843 *-*-hpux* | \
6844 *-*-netware* | \
6845 *-*-nto-qnx* | \
6846 *-*-rtems* | \
6847 *-*-solaris2* | \
30b74385 6848 *-*-sysv[45]* | \
e8b05380
PB
6849 *-*-vxworks* | \
6850 *-wrs-windiss)
6851 md_exec_prefix=/usr/ccs/bin
6852 ;;
6853esac
6854
671aa708
NN
6855extra_arflags_for_target=
6856extra_nmflags_for_target=
6857extra_ranlibflags_for_target=
6858target_makefile_frag=/dev/null
6859case "${target}" in
3e19841a
PB
6860 mep*-*-*)
6861 target_makefile_frag="config/mt-mep"
6862 ;;
58e24147
AM
6863 spu-*-*)
6864 target_makefile_frag="config/mt-spu"
6865 ;;
4bf6c438
RS
6866 mips*-sde-elf*)
6867 target_makefile_frag="config/mt-sde"
6868 ;;
1ec3b87b
RS
6869 mipsisa*-*-elfoabi*)
6870 target_makefile_frag="config/mt-mips-elfoabi"
6871 ;;
08d0963a
RS
6872 mips*-*-*linux* | mips*-*-gnu*)
6873 target_makefile_frag="config/mt-mips-gnu"
6874 ;;
61fec9ff 6875 *-*-netware*)
671aa708
NN
6876 target_makefile_frag="config/mt-netware"
6877 ;;
416ac4d4 6878 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6879 target_makefile_frag="config/mt-gnu"
671aa708
NN
6880 ;;
6881 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6882 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6883 # commands to handle both 32-bit and 64-bit objects. These flags are
6884 # harmless if we're using GNU nm or ar.
6885 extra_arflags_for_target=" -X32_64"
6886 extra_nmflags_for_target=" -B -X32_64"
6887 ;;
0aeb3cc6
JH
6888 *-*-darwin[3-9]*)
6889 # ranlib before Darwin10 requires the -c flag to look at common symbols.
671aa708
NN
6890 extra_ranlibflags_for_target=" -c"
6891 ;;
6892 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6893 target_makefile_frag="config/mt-wince"
6894 ;;
6895esac
6896
6897alphaieee_frag=/dev/null
6898case $target in
6899 alpha*-*-*)
6900 # This just makes sure to use the -mieee option to build target libs.
6901 # This should probably be set individually by each library.
6902 alphaieee_frag="config/mt-alphaieee"
6903 ;;
6904esac
6905
6906# If --enable-target-optspace always use -Os instead of -O2 to build
6907# the target libraries, similarly if it is not specified, use -Os
6908# on selected platforms.
6909ospace_frag=/dev/null
6910case "${enable_target_optspace}:${target}" in
6911 yes:*)
6912 ospace_frag="config/mt-ospace"
6913 ;;
6914 :d30v-*)
6915 ospace_frag="config/mt-d30v"
6916 ;;
6917 :m32r-* | :d10v-* | :fr30-*)
6918 ospace_frag="config/mt-ospace"
6919 ;;
6920 no:* | :*)
6921 ;;
6922 *)
6923 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6924 ;;
6925esac
6926
671aa708
NN
6927# Default to using --with-stabs for certain targets.
6928if test x${with_stabs} = x ; then
6929 case "${target}" in
89a95129 6930 mips*-*-irix[56]*)
671aa708
NN
6931 ;;
6932 mips*-*-* | alpha*-*-osf*)
6933 with_stabs=yes;
6934 extra_host_args="${extra_host_args} --with-stabs"
6935 ;;
6936 esac
6937fi
6938
6939# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6940# them automatically.
6941case "${host}" in
1c710c3c 6942 hppa*64*-*-hpux11*)
671aa708
NN
6943 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6944 ;;
6945esac
6946
671aa708
NN
6947# Some systems (e.g., one of the i386-aix systems the gas testers are
6948# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6949tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6950build_tooldir=${tooldir}
6951
671aa708
NN
6952# Create a .gdbinit file which runs the one in srcdir
6953# and tells GDB to look there for source files.
6954
6955if test -r ${srcdir}/.gdbinit ; then
6956 case ${srcdir} in
6957 .) ;;
6958 *) cat > ./.gdbinit <<EOF
6959# ${NO_EDIT}
6960dir ${srcdir}
6961dir .
6962source ${srcdir}/.gdbinit
6963EOF
6964 ;;
6965 esac
6966fi
6967
671aa708
NN
6968# Make sure that the compiler is able to generate an executable. If it
6969# can't, we are probably in trouble. We don't care whether we can run the
6970# executable--we might be using a cross compiler--we only care whether it
6971# can be created. At this point the main configure script has set CC.
6972we_are_ok=no
6973echo "int main () { return 0; }" > conftest.c
6974${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6975if test $? = 0 ; then
6976 if test -s conftest || test -s conftest.exe ; then
6977 we_are_ok=yes
6978 fi
1c710c3c 6979fi
671aa708
NN
6980case $we_are_ok in
6981 no)
6982 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6983 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6984 rm -f conftest*
6985 exit 1
6986 ;;
6987esac
6988rm -f conftest*
6989
6990# The Solaris /usr/ucb/cc compiler does not appear to work.
6991case "${host}" in
6992 sparc-sun-solaris2*)
6993 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6994 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6995 could_use=
6996 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6997 if test -d /opt/cygnus/bin ; then
6998 if test "$could_use" = "" ; then
6999 could_use="/opt/cygnus/bin"
7000 else
7001 could_use="$could_use or /opt/cygnus/bin"
7002 fi
7003 fi
7004 if test "$could_use" = "" ; then
7005 echo "Warning: compilation may fail because you're using"
7006 echo "/usr/ucb/cc. You should change your PATH or CC "
7007 echo "variable and rerun configure."
7008 else
7009 echo "Warning: compilation may fail because you're using"
7010 echo "/usr/ucb/cc, when you should use the C compiler from"
7011 echo "$could_use. You should change your"
7012 echo "PATH or CC variable and rerun configure."
7013 fi
7014 fi
7015 ;;
7016esac
7017
d89f0ad6 7018# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
7019case "${host}" in
7020 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
256f7136 7021 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 7022 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
7023 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7024esac
7025
d89f0ad6
AL
7026# On systems where the dynamic library environment variable is PATH,
7027# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7028# built executables to PATH.
7029if test "$RPATH_ENVVAR" = PATH; then
7030 GCC_SHLIB_SUBDIR=/shlib
7031else
7032 GCC_SHLIB_SUBDIR=
7033fi
7034
671aa708
NN
7035# Record target_configdirs and the configure arguments for target and
7036# build configuration in Makefile.
7037target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 7038build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 7039
ad1e5170
JR
7040# If we are building libgomp, bootstrap it.
7041if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7042 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7043fi
7044
671aa708
NN
7045# Determine whether gdb needs tk/tcl or not.
7046# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7047# and in that case we want gdb to be built without tk. Ugh!
7048# In fact I believe gdb is the *only* package directly dependent on tk,
7049# so we should be able to put the 'maybe's in unconditionally and
7050# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7051# 100% sure that that's safe though.
e914a571 7052
b4f96efe 7053gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
7054case "$enable_gdbtk" in
7055 no)
7056 GDB_TK="" ;;
e914a571
AC
7057 yes)
7058 GDB_TK="${gdb_tk}" ;;
671aa708 7059 *)
e914a571
AC
7060 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7061 # distro. Eventually someone will fix this and move Insight, nee
7062 # gdbtk to a separate directory.
7063 if test -d ${srcdir}/gdb/gdbtk ; then
7064 GDB_TK="${gdb_tk}"
7065 else
7066 GDB_TK=""
7067 fi
7068 ;;
671aa708 7069esac
ef9db8d5
DJ
7070CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7071INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 7072
60975492 7073# Strip out unwanted targets.
8b87bb96
NN
7074
7075# While at that, we remove Makefiles if we were started for recursive
7076# configuration, so that the top-level Makefile reconfigures them,
7077# like we used to do when configure itself was recursive.
8b87bb96 7078
3e54529c
RW
7079# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7080# but now we're fixing up the Makefile ourselves with the additional
7081# commands passed to AC_CONFIG_FILES. Use separate variables
7082# extrasub-{build,host,target} not because there is any reason to split
7083# the substitutions up that way, but only to remain below the limit of
7084# 99 commands in a script, for HP-UX sed.
7085# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 7086
5213506e
RW
7087# Check whether --enable-bootstrap was given.
7088if test "${enable_bootstrap+set}" = set; then :
7089 enableval=$enable_bootstrap;
f516a7da 7090else
ce521a9c 7091 enable_bootstrap=default
5213506e
RW
7092fi
7093
f516a7da 7094
ce521a9c
PB
7095# Issue errors and warnings for invalid/strange bootstrap combinations.
7096case "$configdirs" in
7097 *gcc*) have_compiler=yes ;;
7098 *) have_compiler=no ;;
7099esac
7100
7101case "$have_compiler:$host:$target:$enable_bootstrap" in
7102 *:*:*:no) ;;
7103
1ca26cd2 7104 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
7105 # and we are in a native configuration.
7106 yes:$build:$build:default)
1ca26cd2 7107 enable_bootstrap=yes ;;
ce521a9c
PB
7108
7109 *:*:*:default)
7110 enable_bootstrap=no ;;
7111
7112 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 7113 yes:$build:$build:yes)
ce521a9c
PB
7114 ;;
7115
7116 # Other configurations, but we have a compiler. Assume the user knows
7117 # what he's doing.
2d309510 7118 yes:*:*:yes)
5213506e
RW
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7120$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
7121 ;;
7122
7123 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 7124 no:*:*:yes)
5213506e 7125 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ce521a9c
PB
7126
7127 # Fail if wrong command line
7128 *)
5213506e 7129 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
ce521a9c
PB
7130 ;;
7131esac
7132
ca6d0d62
RW
7133case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7134 *,c++,*:yes:yes) ;;
7135 *:yes:yes)
7136 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7137 ;;
7138esac
7139
79cd2b23
RW
7140case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7141 yes:yes:*\ gold\ *:*,c++,*) ;;
7142 yes:yes:*\ gold\ *:*)
7143 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7144 ;;
7145esac
7146
ce521a9c 7147# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 7148case $enable_bootstrap in
f516a7da 7149 yes)
e12c4094
AO
7150 bootstrap_suffix=bootstrap
7151 BUILD_CONFIG=bootstrap-debug
7152 ;;
f516a7da 7153 no)
e12c4094
AO
7154 bootstrap_suffix=no-bootstrap
7155 BUILD_CONFIG=
7156 ;;
f516a7da
PB
7157esac
7158
e12c4094
AO
7159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7160$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
7161
7162
7163# Check whether --with-build-config was given.
7164if test "${with_build_config+set}" = set; then :
7165 withval=$with_build_config; case $with_build_config in
7166 yes) with_build_config= ;;
7167 no) with_build_config= BUILD_CONFIG= ;;
7168 esac
7169fi
7170
7171
e12c4094
AO
7172if test "x${with_build_config}" != x; then
7173 BUILD_CONFIG=$with_build_config
7174else
7175 case $BUILD_CONFIG in
7176 bootstrap-debug)
7177 if echo "int f (void) { return 0; }" > conftest.c &&
7178 ${CC} -c conftest.c &&
7179 mv conftest.o conftest.o.g0 &&
7180 ${CC} -c -g conftest.c &&
7181 mv conftest.o conftest.o.g &&
615c8ffa 7182 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
7183 :
7184 else
7185 BUILD_CONFIG=
7186 fi
7187 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7188 ;;
7189 esac
7190fi
7191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7192$as_echo "$BUILD_CONFIG" >&6; }
7193
7194
3e54529c 7195extrasub_build=
23f6b2f9 7196for module in ${build_configdirs} ; do
5607edfd
PB
7197 if test -z "${no_recursion}" \
7198 && test -f ${build_subdir}/${module}/Makefile; then
7199 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7200 rm -f ${build_subdir}/${module}/Makefile
7201 fi
3e54529c 7202 extrasub_build="$extrasub_build
5607edfd
PB
7203/^@if build-$module\$/d
7204/^@endif build-$module\$/d
7205/^@if build-$module-$bootstrap_suffix\$/d
7206/^@endif build-$module-$bootstrap_suffix\$/d"
7207done
3e54529c 7208extrasub_host=
5607edfd 7209for module in ${configdirs} ; do
a6fbc1e2 7210 if test -z "${no_recursion}"; then
f063a9ed 7211 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7212 if test -f ${file}; then
7213 echo 1>&2 "*** removing ${file} to force reconfigure"
7214 rm -f ${file}
7215 fi
7216 done
5607edfd 7217 fi
3e54529c 7218 extrasub_host="$extrasub_host
5607edfd
PB
7219/^@if $module\$/d
7220/^@endif $module\$/d
7221/^@if $module-$bootstrap_suffix\$/d
7222/^@endif $module-$bootstrap_suffix\$/d"
7223done
3e54529c 7224extrasub_target=
5607edfd
PB
7225for module in ${target_configdirs} ; do
7226 if test -z "${no_recursion}" \
7227 && test -f ${target_subdir}/${module}/Makefile; then
7228 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7229 rm -f ${target_subdir}/${module}/Makefile
7230 fi
00020c16
ILT
7231
7232 # We only bootstrap target libraries listed in bootstrap_target_libs.
7233 case $bootstrap_target_libs in
7234 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7235 *) target_bootstrap_suffix=no-bootstrap ;;
7236 esac
7237
3e54529c 7238 extrasub_target="$extrasub_target
5607edfd
PB
7239/^@if target-$module\$/d
7240/^@endif target-$module\$/d
00020c16
ILT
7241/^@if target-$module-$target_bootstrap_suffix\$/d
7242/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7243done
7244
3e54529c
RW
7245# Do the final fixup along with target modules.
7246extrasub_target="$extrasub_target
60975492 7247/^@if /,/^@endif /d"
671aa708
NN
7248
7249# Create the serialization dependencies. This uses a temporary file.
7250
5213506e
RW
7251# Check whether --enable-serial-configure was given.
7252if test "${enable_serial_configure+set}" = set; then :
7253 enableval=$enable_serial_configure;
7254fi
ade82b16
AO
7255
7256
bf1d3e81
NN
7257case ${enable_serial_configure} in
7258 yes)
7259 enable_serial_build_configure=yes
7260 enable_serial_host_configure=yes
7261 enable_serial_target_configure=yes
7262 ;;
7263esac
7264
671aa708
NN
7265# These force 'configure's to be done one at a time, to avoid problems
7266# with contention over a shared config.cache.
7267rm -f serdep.tmp
ade82b16 7268echo '# serdep.tmp' > serdep.tmp
671aa708 7269olditem=
bf1d3e81 7270test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7271for item in ${build_configdirs} ; do
7272 case ${olditem} in
7273 "") ;;
ade82b16 7274 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7275 esac
7276 olditem=${item}
7277done
7278olditem=
bf1d3e81 7279test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7280for item in ${configdirs} ; do
7281 case ${olditem} in
7282 "") ;;
ade82b16 7283 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7284 esac
7285 olditem=${item}
7286done
7287olditem=
bf1d3e81 7288test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7289for item in ${target_configdirs} ; do
7290 case ${olditem} in
7291 "") ;;
ade82b16 7292 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7293 esac
7294 olditem=${item}
7295done
7296serialization_dependencies=serdep.tmp
7297
7298
ade82b16 7299# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7300# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7301# might not want to pass down to subconfigures. The exception being
7302# --cache-file=/dev/null, which is used to turn off the use of cache
7303# files altogether, and which should be passed on to subconfigures.
7304# Also strip program-prefix, program-suffix, and program-transform-name,
7305# so that we can pass down a consistent program-transform-name.
1c710c3c
DJ
7306baseargs=
7307keep_next=no
7308skip_next=no
7309eval "set -- $ac_configure_args"
44bfc3ac
DJ
7310for ac_arg
7311do
1c710c3c
DJ
7312 if test X"$skip_next" = X"yes"; then
7313 skip_next=no
7314 continue
7315 fi
7316 if test X"$keep_next" = X"yes"; then
7317 case $ac_arg in
7318 *\'*)
7319 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7320 esac
7321 baseargs="$baseargs '$ac_arg'"
7322 keep_next=no
7323 continue
7324 fi
7325
7326 # Handle separated arguments. Based on the logic generated by
7327 # autoconf 2.59.
7328 case $ac_arg in
7329 *=* | --config-cache | -C | -disable-* | --disable-* \
7330 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7331 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7332 | -with-* | --with-* | -without-* | --without-* | --x)
7333 separate_arg=no
7334 ;;
7335 -*)
7336 separate_arg=yes
7337 ;;
7338 *)
7339 separate_arg=no
7340 ;;
7341 esac
7342
7343 case "$ac_arg" in
f1a036e4
NC
7344 --cache-file=/dev/null | \
7345 -cache-file=/dev/null )
7346 # Handled here to avoid the test to skip args below.
7347 baseargs="$baseargs '$ac_arg'"
7348 # Assert: $separate_arg should always be no.
7349 keep_next=$separate_arg
7350 ;;
1c710c3c
DJ
7351 --no*)
7352 continue
7353 ;;
7354 --c* | \
7355 --sr* | \
7356 --ho* | \
7357 --bu* | \
7358 --t* | \
7359 --program-* | \
7360 -cache_file* | \
7361 -srcdir* | \
7362 -host* | \
7363 -build* | \
7364 -target* | \
7365 -program-prefix* | \
7366 -program-suffix* | \
7367 -program-transform-name* )
7368 skip_next=$separate_arg
7369 continue
7370 ;;
7371 -*)
7372 # An option. Add it.
7373 case $ac_arg in
7374 *\'*)
7375 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7376 esac
7377 baseargs="$baseargs '$ac_arg'"
7378 keep_next=$separate_arg
7379 ;;
7380 *)
7381 # Either a variable assignment, or a nonopt (triplet). Don't
7382 # pass it down; let the Makefile handle this.
7383 continue
7384 ;;
7385 esac
7386done
7387# Remove the initial space we just introduced and, as these will be
7388# expanded by make, quote '$'.
7389baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7390
43bb47c2
DJ
7391# Add in --program-transform-name, after --program-prefix and
7392# --program-suffix have been applied to it. Autoconf has already
7393# doubled dollar signs and backslashes in program_transform_name; we want
7394# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7395# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7396# Also, because we want to override the logic in subdir configure scripts to
7397# choose program_transform_name, replace any s,x,x, with s,y,y,.
7398sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7399${program_transform_name}
7400EOF_SED
7401gcc_transform_name=`cat conftestsed.out`
7402rm -f conftestsed.out
7403baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7404if test "$silent" = yes; then
7405 baseargs="$baseargs --silent"
7406fi
0115d4a3 7407baseargs="$baseargs --disable-option-checking"
43bb47c2 7408
ffedf511
RW
7409# Record and document user additions to sub configure arguments.
7410
7411
7412
7413
671aa708
NN
7414# For the build-side libraries, we just need to pretend we're native,
7415# and not use the same cache file. Multilibs are neither needed nor
7416# desired.
ffedf511 7417build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7418
7419# For host modules, accept cache file option, or specification as blank.
7420case "${cache_file}" in
7421"") # empty
7422 cache_file_option="" ;;
7423/* | [A-Za-z]:[\\/]* ) # absolute path
7424 cache_file_option="--cache-file=${cache_file}" ;;
7425*) # relative path
7426 cache_file_option="--cache-file=../${cache_file}" ;;
7427esac
7428
09438bde
NN
7429# Host dirs don't like to share a cache file either, horribly enough.
7430# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7431host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7432
ffedf511 7433target_configargs="$target_configargs ${baseargs}"
671aa708
NN
7434
7435# Passing a --with-cross-host argument lets the target libraries know
7436# whether they are being built with a cross-compiler or being built
7437# native. However, it would be better to use other mechanisms to make the
7438# sorts of decisions they want to make on this basis. Please consider
7439# this option to be deprecated. FIXME.
7440if test x${is_cross_compiler} = xyes ; then
1c710c3c 7441 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7442fi
7443
dc683a3f
RW
7444# Default to --enable-multilib.
7445if test x${enable_multilib} = x ; then
671aa708 7446 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7447fi
671aa708
NN
7448
7449# Pass --with-newlib if appropriate. Note that target_configdirs has
7450# changed from the earlier setting of with_newlib.
7451if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7452 target_configargs="--with-newlib ${target_configargs}"
7453fi
7454
6b9eb62c
NN
7455# Different target subdirs use different values of certain variables
7456# (notably CXX). Worse, multilibs use *lots* of different values.
7457# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7458# it doesn't automatically accept command-line overrides of them.
7459# This means it's not safe for target subdirs to share a cache file,
7460# which is disgusting, but there you have it. Hopefully this can be
7461# fixed in future. It's still worthwhile to use a cache file for each
7462# directory. I think.
7463
bebcd931
MS
7464# Pass the appropriate --build, --host, --target and --cache-file arguments.
7465# We need to pass --target, as newer autoconf's requires consistency
7466# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7467target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7468
671aa708
NN
7469FLAGS_FOR_TARGET=
7470case " $target_configdirs " in
7471 *" newlib "*)
7472 case " $target_configargs " in
7473 *" --with-newlib "*)
7474 case "$target" in
5d571eaa
OS
7475 *-cygwin*)
7476 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include'
7477 ;;
671aa708
NN
7478 esac
7479
7480 # If we're not building GCC, don't discard standard headers.
7481 if test -d ${srcdir}/gcc; then
7482 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7483
7484 if test "${build}" != "${host}"; then
7485 # On Canadian crosses, CC_FOR_TARGET will have already been set
7486 # by `configure', so we won't have an opportunity to add -Bgcc/
7487 # to it. This is right: we don't want to search that directory
7488 # for binaries, but we want the header files in there, so add
7489 # them explicitly.
0463992b 7490 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7491
7492 # Someone might think of using the pre-installed headers on
7493 # Canadian crosses, in case the installed compiler is not fully
7494 # compatible with the compiler being built. In this case, it
7495 # would be better to flag an error than risking having
7496 # incompatible object files being constructed. We can't
7497 # guarantee that an error will be flagged, but let's hope the
7498 # compiler will do it, when presented with incompatible header
7499 # files.
7500 fi
7501 fi
7502
7503 case "${target}-${is_cross_compiler}" in
f2a0e225 7504 i[3456789]86-*-linux*-no)
671aa708
NN
7505 # Here host == target, so we don't need to build gcc,
7506 # so we don't want to discard standard headers.
7507 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7508 ;;
7509 *)
7510 # If we're building newlib, use its generic headers last, but search
7511 # for any libc-related directories first (so make it the last -B
7512 # switch).
7513 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
7514
7515 # If we're building libgloss, find the startup file, simulator library
7516 # and linker script.
7517 case " $target_configdirs " in
7518 *" libgloss "*)
7519 # Look for startup file, simulator library and maybe linker script.
7520 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7521 # Look for libnosys.a in case the target needs it.
7522 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7523 # Most targets have the linker script in the source directory.
7524 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7525 ;;
7526 esac
671aa708
NN
7527 ;;
7528 esac
7529 ;;
7530 esac
7531 ;;
7532esac
5d571eaa 7533
b91f0a41 7534case "$target" in
5d571eaa
OS
7535 x86_64-*mingw* | *-w64-mingw*)
7536 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7537 # however, use a symlink named 'mingw' in ${prefix} .
7538 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7539 ;;
7540 *-mingw*)
7541 # MinGW can't be handled as Cygwin above since it does not use newlib.
7542 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'
7543 ;;
b91f0a41 7544esac
671aa708 7545
6691a79e
ME
7546# Allow the user to override the flags for
7547# our build compiler if desired.
f019adc1
MF
7548if test x"${build}" = x"${host}" ; then
7549 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7550 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7551 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7552fi
6691a79e 7553
671aa708
NN
7554# On Canadian crosses, we'll be searching the right directories for
7555# the previously-installed cross compiler, so don't bother to add
7556# flags for directories within the install tree of the compiler
7557# being built; programs in there won't even run.
7558if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7559 # Search for pre-installed headers if nothing else fits.
9124bc53 7560 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
7561fi
7562
7563if test "x${use_gnu_ld}" = x &&
7564 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7565 # Arrange for us to find uninstalled linker scripts.
215c351a 7566 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7567fi
7568
e88a2c09
DD
7569# Search for other target-specific linker scripts and such.
7570case "${target}" in
3e19841a
PB
7571 mep*)
7572 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7573 ;;
e88a2c09
DD
7574esac
7575
671aa708 7576# Makefile fragments.
7b61653a
PE
7577for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7578do
7579 eval fragval=\$$frag
7580 if test $fragval != /dev/null; then
7581 eval $frag=${srcdir}/$fragval
7582 fi
7583done
671aa708
NN
7584
7585
7586
7587
7588
7589# Miscellanea: directories, flags, etc.
7590
7591
7592
7593
7594
7595
7596
d89f0ad6 7597
23f6b2f9 7598# Build module lists & subconfigure args.
671aa708
NN
7599
7600
7601
2abefe3d
PB
7602# Host module lists & subconfigure args.
7603
7604
7605
aae29963 7606
2abefe3d
PB
7607# Target module lists & subconfigure args.
7608
7609
7610
7611# Build tools.
7612
7613
7614
0999159b
PB
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
632e2a07 7629
2abefe3d
PB
7630# Generate default definitions for YACC, M4, LEX and other programs that run
7631# on the build machine. These are used if the Makefile can't locate these
7632# programs in objdir.
7633MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7634
7635for ac_prog in 'bison -y' byacc yacc
7636do
1c710c3c 7637 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7638set dummy $ac_prog; ac_word=$2
5213506e
RW
7639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7640$as_echo_n "checking for $ac_word... " >&6; }
7641if test "${ac_cv_prog_YACC+set}" = set; then :
7642 $as_echo_n "(cached) " >&6
2abefe3d
PB
7643else
7644 if test -n "$YACC"; then
7645 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7646else
1c710c3c
DJ
7647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648for as_dir in $PATH
7649do
7650 IFS=$as_save_IFS
7651 test -z "$as_dir" && as_dir=.
5213506e
RW
7652 for ac_exec_ext in '' $ac_executable_extensions; do
7653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7654 ac_cv_prog_YACC="$ac_prog"
5213506e 7655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7656 break 2
7657 fi
7658done
5213506e
RW
7659 done
7660IFS=$as_save_IFS
1c710c3c 7661
2abefe3d
PB
7662fi
7663fi
1c710c3c 7664YACC=$ac_cv_prog_YACC
2abefe3d 7665if test -n "$YACC"; then
5213506e
RW
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7667$as_echo "$YACC" >&6; }
2abefe3d 7668else
5213506e
RW
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670$as_echo "no" >&6; }
2abefe3d
PB
7671fi
7672
5213506e 7673
1c710c3c 7674 test -n "$YACC" && break
2abefe3d
PB
7675done
7676test -n "$YACC" || YACC="$MISSING bison -y"
7677
7678case " $build_configdirs " in
7679 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7680 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7681esac
7682
7683for ac_prog in bison
7684do
1c710c3c 7685 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7686set dummy $ac_prog; ac_word=$2
5213506e
RW
7687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7688$as_echo_n "checking for $ac_word... " >&6; }
7689if test "${ac_cv_prog_BISON+set}" = set; then :
7690 $as_echo_n "(cached) " >&6
2abefe3d
PB
7691else
7692 if test -n "$BISON"; then
7693 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7694else
1c710c3c
DJ
7695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696for as_dir in $PATH
7697do
7698 IFS=$as_save_IFS
7699 test -z "$as_dir" && as_dir=.
5213506e
RW
7700 for ac_exec_ext in '' $ac_executable_extensions; do
7701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7702 ac_cv_prog_BISON="$ac_prog"
5213506e 7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7704 break 2
7705 fi
7706done
5213506e
RW
7707 done
7708IFS=$as_save_IFS
1c710c3c 7709
2abefe3d
PB
7710fi
7711fi
1c710c3c 7712BISON=$ac_cv_prog_BISON
2abefe3d 7713if test -n "$BISON"; then
5213506e
RW
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7715$as_echo "$BISON" >&6; }
2abefe3d 7716else
5213506e
RW
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718$as_echo "no" >&6; }
2abefe3d
PB
7719fi
7720
5213506e 7721
1c710c3c 7722 test -n "$BISON" && break
2abefe3d
PB
7723done
7724test -n "$BISON" || BISON="$MISSING bison"
7725
7726case " $build_configdirs " in
7727 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7728esac
7729
7730for ac_prog in gm4 gnum4 m4
7731do
1c710c3c 7732 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7733set dummy $ac_prog; ac_word=$2
5213506e
RW
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7735$as_echo_n "checking for $ac_word... " >&6; }
7736if test "${ac_cv_prog_M4+set}" = set; then :
7737 $as_echo_n "(cached) " >&6
2abefe3d
PB
7738else
7739 if test -n "$M4"; then
7740 ac_cv_prog_M4="$M4" # Let the user override the test.
7741else
1c710c3c
DJ
7742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743for as_dir in $PATH
7744do
7745 IFS=$as_save_IFS
7746 test -z "$as_dir" && as_dir=.
5213506e
RW
7747 for ac_exec_ext in '' $ac_executable_extensions; do
7748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7749 ac_cv_prog_M4="$ac_prog"
5213506e 7750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7751 break 2
7752 fi
7753done
5213506e
RW
7754 done
7755IFS=$as_save_IFS
1c710c3c 7756
2abefe3d
PB
7757fi
7758fi
1c710c3c 7759M4=$ac_cv_prog_M4
2abefe3d 7760if test -n "$M4"; then
5213506e
RW
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7762$as_echo "$M4" >&6; }
2abefe3d 7763else
5213506e
RW
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7765$as_echo "no" >&6; }
2abefe3d
PB
7766fi
7767
5213506e 7768
1c710c3c 7769 test -n "$M4" && break
2abefe3d
PB
7770done
7771test -n "$M4" || M4="$MISSING m4"
7772
7773case " $build_configdirs " in
7774 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7775esac
7776
7777for ac_prog in flex lex
7778do
1c710c3c 7779 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7780set dummy $ac_prog; ac_word=$2
5213506e
RW
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782$as_echo_n "checking for $ac_word... " >&6; }
7783if test "${ac_cv_prog_LEX+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
2abefe3d
PB
7785else
7786 if test -n "$LEX"; then
7787 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7788else
1c710c3c
DJ
7789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792 IFS=$as_save_IFS
7793 test -z "$as_dir" && as_dir=.
5213506e
RW
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7796 ac_cv_prog_LEX="$ac_prog"
5213506e 7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7798 break 2
7799 fi
7800done
5213506e
RW
7801 done
7802IFS=$as_save_IFS
1c710c3c 7803
2abefe3d
PB
7804fi
7805fi
1c710c3c 7806LEX=$ac_cv_prog_LEX
2abefe3d 7807if test -n "$LEX"; then
5213506e
RW
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7809$as_echo "$LEX" >&6; }
2abefe3d 7810else
5213506e
RW
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812$as_echo "no" >&6; }
2abefe3d
PB
7813fi
7814
5213506e 7815
1c710c3c 7816 test -n "$LEX" && break
2abefe3d
PB
7817done
7818test -n "$LEX" || LEX="$MISSING flex"
7819
7820case " $build_configdirs " in
7821 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7822 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7823esac
7824
7825for ac_prog in flex
7826do
1c710c3c 7827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7828set dummy $ac_prog; ac_word=$2
5213506e
RW
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830$as_echo_n "checking for $ac_word... " >&6; }
7831if test "${ac_cv_prog_FLEX+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
2abefe3d
PB
7833else
7834 if test -n "$FLEX"; then
7835 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7836else
1c710c3c
DJ
7837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838for as_dir in $PATH
7839do
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
5213506e
RW
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7844 ac_cv_prog_FLEX="$ac_prog"
5213506e 7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7846 break 2
7847 fi
7848done
5213506e
RW
7849 done
7850IFS=$as_save_IFS
1c710c3c 7851
2abefe3d
PB
7852fi
7853fi
1c710c3c 7854FLEX=$ac_cv_prog_FLEX
2abefe3d 7855if test -n "$FLEX"; then
5213506e
RW
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7857$as_echo "$FLEX" >&6; }
2abefe3d 7858else
5213506e
RW
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860$as_echo "no" >&6; }
2abefe3d
PB
7861fi
7862
5213506e 7863
1c710c3c 7864 test -n "$FLEX" && break
2abefe3d
PB
7865done
7866test -n "$FLEX" || FLEX="$MISSING flex"
7867
7868case " $build_configdirs " in
7869 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7870esac
7871
7872for ac_prog in makeinfo
7873do
1c710c3c 7874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7875set dummy $ac_prog; ac_word=$2
5213506e
RW
7876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7877$as_echo_n "checking for $ac_word... " >&6; }
7878if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7879 $as_echo_n "(cached) " >&6
2abefe3d
PB
7880else
7881 if test -n "$MAKEINFO"; then
7882 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7883else
1c710c3c
DJ
7884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7885for as_dir in $PATH
7886do
7887 IFS=$as_save_IFS
7888 test -z "$as_dir" && as_dir=.
5213506e
RW
7889 for ac_exec_ext in '' $ac_executable_extensions; do
7890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7891 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7893 break 2
7894 fi
7895done
5213506e
RW
7896 done
7897IFS=$as_save_IFS
1c710c3c 7898
2abefe3d
PB
7899fi
7900fi
1c710c3c 7901MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7902if test -n "$MAKEINFO"; then
5213506e
RW
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7904$as_echo "$MAKEINFO" >&6; }
2abefe3d 7905else
5213506e
RW
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907$as_echo "no" >&6; }
2abefe3d
PB
7908fi
7909
5213506e 7910
1c710c3c 7911 test -n "$MAKEINFO" && break
2abefe3d
PB
7912done
7913test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7914
7915case " $build_configdirs " in
7916 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7917 *)
7918
d18ff35a 7919 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7920 # higher, else we use the "missing" dummy.
7921 if ${MAKEINFO} --version \
d18ff35a 7922 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7923 :
7924 else
7925 MAKEINFO="$MISSING makeinfo"
7926 fi
7927 ;;
7928
7929esac
671aa708 7930
2abefe3d 7931# FIXME: expect and dejagnu may become build tools?
671aa708 7932
2abefe3d
PB
7933for ac_prog in expect
7934do
1c710c3c 7935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7936set dummy $ac_prog; ac_word=$2
5213506e
RW
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938$as_echo_n "checking for $ac_word... " >&6; }
7939if test "${ac_cv_prog_EXPECT+set}" = set; then :
7940 $as_echo_n "(cached) " >&6
2abefe3d
PB
7941else
7942 if test -n "$EXPECT"; then
7943 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7944else
1c710c3c
DJ
7945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH
7947do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
5213506e
RW
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7952 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7954 break 2
7955 fi
7956done
5213506e
RW
7957 done
7958IFS=$as_save_IFS
1c710c3c 7959
2abefe3d
PB
7960fi
7961fi
1c710c3c 7962EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7963if test -n "$EXPECT"; then
5213506e
RW
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7965$as_echo "$EXPECT" >&6; }
2abefe3d 7966else
5213506e
RW
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968$as_echo "no" >&6; }
2abefe3d 7969fi
671aa708 7970
5213506e 7971
1c710c3c 7972 test -n "$EXPECT" && break
2abefe3d
PB
7973done
7974test -n "$EXPECT" || EXPECT="expect"
671aa708 7975
2abefe3d
PB
7976case " $configdirs " in
7977 *" expect "*)
7978 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7979 ;;
7980esac
671aa708 7981
2abefe3d
PB
7982for ac_prog in runtest
7983do
1c710c3c 7984 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7985set dummy $ac_prog; ac_word=$2
5213506e
RW
7986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987$as_echo_n "checking for $ac_word... " >&6; }
7988if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7989 $as_echo_n "(cached) " >&6
2abefe3d
PB
7990else
7991 if test -n "$RUNTEST"; then
7992 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7993else
1c710c3c
DJ
7994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995for as_dir in $PATH
7996do
7997 IFS=$as_save_IFS
7998 test -z "$as_dir" && as_dir=.
5213506e
RW
7999 for ac_exec_ext in '' $ac_executable_extensions; do
8000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8001 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 8002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8003 break 2
8004 fi
8005done
5213506e
RW
8006 done
8007IFS=$as_save_IFS
1c710c3c 8008
2abefe3d
PB
8009fi
8010fi
1c710c3c 8011RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 8012if test -n "$RUNTEST"; then
5213506e
RW
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8014$as_echo "$RUNTEST" >&6; }
2abefe3d 8015else
5213506e
RW
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017$as_echo "no" >&6; }
2abefe3d 8018fi
671aa708 8019
5213506e 8020
1c710c3c 8021 test -n "$RUNTEST" && break
2abefe3d
PB
8022done
8023test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 8024
2abefe3d
PB
8025case " $configdirs " in
8026 *" dejagnu "*)
c394e891 8027 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
8028 ;;
8029esac
671aa708
NN
8030
8031
671aa708 8032# Host tools.
ca9f4b81
AO
8033ncn_tool_prefix=
8034test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8035ncn_target_tool_prefix=
8036test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8037
278a7a38
AO
8038
8039
8040if test -n "$AR"; then
8041 ac_cv_prog_AR=$AR
8042elif test -n "$ac_cv_prog_AR"; then
8043 AR=$ac_cv_prog_AR
8044fi
8045
8046if test -n "$ac_cv_prog_AR"; then
8047 for ncn_progname in ar; do
8048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8049set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051$as_echo_n "checking for $ac_word... " >&6; }
8052if test "${ac_cv_prog_AR+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
278a7a38
AO
8054else
8055 if test -n "$AR"; then
8056 ac_cv_prog_AR="$AR" # Let the user override the test.
8057else
8058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059for as_dir in $PATH
8060do
8061 IFS=$as_save_IFS
8062 test -z "$as_dir" && as_dir=.
5213506e
RW
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8065 ac_cv_prog_AR="${ncn_progname}"
5213506e 8066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8067 break 2
8068 fi
8069done
5213506e
RW
8070 done
8071IFS=$as_save_IFS
278a7a38
AO
8072
8073fi
8074fi
8075AR=$ac_cv_prog_AR
8076if test -n "$AR"; then
5213506e
RW
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8078$as_echo "$AR" >&6; }
278a7a38 8079else
5213506e
RW
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081$as_echo "no" >&6; }
278a7a38
AO
8082fi
8083
5213506e 8084
278a7a38
AO
8085 done
8086fi
8087
8088for ncn_progname in ar; do
2693c0b0
PB
8089 if test -n "$ncn_tool_prefix"; then
8090 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8091set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093$as_echo_n "checking for $ac_word... " >&6; }
8094if test "${ac_cv_prog_AR+set}" = set; then :
8095 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8096else
8097 if test -n "$AR"; then
8098 ac_cv_prog_AR="$AR" # Let the user override the test.
8099else
1c710c3c
DJ
8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
5213506e
RW
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8107 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8109 break 2
8110 fi
8111done
5213506e
RW
8112 done
8113IFS=$as_save_IFS
1c710c3c 8114
ca9f4b81
AO
8115fi
8116fi
1c710c3c 8117AR=$ac_cv_prog_AR
ca9f4b81 8118if test -n "$AR"; then
5213506e
RW
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8120$as_echo "$AR" >&6; }
ca9f4b81 8121else
5213506e
RW
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123$as_echo "no" >&6; }
ca9f4b81
AO
8124fi
8125
5213506e 8126
2693c0b0
PB
8127 fi
8128 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8130set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132$as_echo_n "checking for $ac_word... " >&6; }
8133if test "${ac_cv_prog_AR+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
ca9f4b81 8135else
2693c0b0 8136 if test -n "$AR"; then
af71363e
AS
8137 ac_cv_prog_AR="$AR" # Let the user override the test.
8138else
1c710c3c
DJ
8139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140for as_dir in $PATH
8141do
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
5213506e
RW
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8146 ac_cv_prog_AR="${ncn_progname}"
5213506e 8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8148 break 2
8149 fi
8150done
5213506e
RW
8151 done
8152IFS=$as_save_IFS
1c710c3c 8153
ca9f4b81
AO
8154fi
8155fi
1c710c3c 8156AR=$ac_cv_prog_AR
2693c0b0 8157if test -n "$AR"; then
5213506e
RW
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8159$as_echo "$AR" >&6; }
ca9f4b81 8160else
5213506e
RW
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162$as_echo "no" >&6; }
ca9f4b81 8163fi
1c710c3c 8164
5213506e 8165
2693c0b0
PB
8166 fi
8167 test -n "$ac_cv_prog_AR" && break
8168done
8169
8170if test -z "$ac_cv_prog_AR" ; then
8171 set dummy ar
8172 if test $build = $host ; then
8173 AR="$2"
ca9f4b81 8174 else
2693c0b0 8175 AR="${ncn_tool_prefix}$2"
ca9f4b81 8176 fi
ca9f4b81
AO
8177fi
8178
278a7a38
AO
8179
8180
8181if test -n "$AS"; then
8182 ac_cv_prog_AS=$AS
8183elif test -n "$ac_cv_prog_AS"; then
8184 AS=$ac_cv_prog_AS
8185fi
8186
8187if test -n "$ac_cv_prog_AS"; then
8188 for ncn_progname in as; do
8189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8190set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8192$as_echo_n "checking for $ac_word... " >&6; }
8193if test "${ac_cv_prog_AS+set}" = set; then :
8194 $as_echo_n "(cached) " >&6
278a7a38
AO
8195else
8196 if test -n "$AS"; then
8197 ac_cv_prog_AS="$AS" # Let the user override the test.
8198else
8199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8200for as_dir in $PATH
8201do
8202 IFS=$as_save_IFS
8203 test -z "$as_dir" && as_dir=.
5213506e
RW
8204 for ac_exec_ext in '' $ac_executable_extensions; do
8205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8206 ac_cv_prog_AS="${ncn_progname}"
5213506e 8207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8208 break 2
8209 fi
8210done
5213506e
RW
8211 done
8212IFS=$as_save_IFS
278a7a38
AO
8213
8214fi
8215fi
8216AS=$ac_cv_prog_AS
8217if test -n "$AS"; then
5213506e
RW
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8219$as_echo "$AS" >&6; }
278a7a38 8220else
5213506e
RW
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222$as_echo "no" >&6; }
278a7a38
AO
8223fi
8224
5213506e 8225
278a7a38
AO
8226 done
8227fi
8228
8229for ncn_progname in as; do
2693c0b0
PB
8230 if test -n "$ncn_tool_prefix"; then
8231 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8232set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234$as_echo_n "checking for $ac_word... " >&6; }
8235if test "${ac_cv_prog_AS+set}" = set; then :
8236 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8237else
8238 if test -n "$AS"; then
8239 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8240else
1c710c3c
DJ
8241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242for as_dir in $PATH
8243do
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
5213506e
RW
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8248 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8250 break 2
8251 fi
8252done
5213506e
RW
8253 done
8254IFS=$as_save_IFS
1c710c3c 8255
ca9f4b81
AO
8256fi
8257fi
1c710c3c 8258AS=$ac_cv_prog_AS
ca9f4b81 8259if test -n "$AS"; then
5213506e
RW
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8261$as_echo "$AS" >&6; }
ca9f4b81 8262else
5213506e
RW
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264$as_echo "no" >&6; }
ca9f4b81
AO
8265fi
8266
5213506e 8267
2693c0b0
PB
8268 fi
8269 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8271set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273$as_echo_n "checking for $ac_word... " >&6; }
8274if test "${ac_cv_prog_AS+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
ca9f4b81 8276else
2693c0b0
PB
8277 if test -n "$AS"; then
8278 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8279else
1c710c3c
DJ
8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281for as_dir in $PATH
8282do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
5213506e
RW
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8287 ac_cv_prog_AS="${ncn_progname}"
5213506e 8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8289 break 2
8290 fi
8291done
5213506e
RW
8292 done
8293IFS=$as_save_IFS
1c710c3c 8294
ca9f4b81
AO
8295fi
8296fi
1c710c3c 8297AS=$ac_cv_prog_AS
2693c0b0 8298if test -n "$AS"; then
5213506e
RW
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8300$as_echo "$AS" >&6; }
ca9f4b81 8301else
5213506e
RW
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303$as_echo "no" >&6; }
ca9f4b81 8304fi
1c710c3c 8305
5213506e 8306
2693c0b0
PB
8307 fi
8308 test -n "$ac_cv_prog_AS" && break
8309done
8310
8311if test -z "$ac_cv_prog_AS" ; then
8312 set dummy as
8313 if test $build = $host ; then
8314 AS="$2"
ca9f4b81 8315 else
2693c0b0 8316 AS="${ncn_tool_prefix}$2"
ca9f4b81 8317 fi
ca9f4b81
AO
8318fi
8319
278a7a38
AO
8320
8321
8322if test -n "$DLLTOOL"; then
8323 ac_cv_prog_DLLTOOL=$DLLTOOL
8324elif test -n "$ac_cv_prog_DLLTOOL"; then
8325 DLLTOOL=$ac_cv_prog_DLLTOOL
8326fi
8327
8328if test -n "$ac_cv_prog_DLLTOOL"; then
8329 for ncn_progname in dlltool; do
8330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8331set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333$as_echo_n "checking for $ac_word... " >&6; }
8334if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
278a7a38
AO
8336else
8337 if test -n "$DLLTOOL"; then
8338 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8339else
8340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341for as_dir in $PATH
8342do
8343 IFS=$as_save_IFS
8344 test -z "$as_dir" && as_dir=.
5213506e
RW
8345 for ac_exec_ext in '' $ac_executable_extensions; do
8346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8347 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8349 break 2
8350 fi
8351done
5213506e
RW
8352 done
8353IFS=$as_save_IFS
278a7a38
AO
8354
8355fi
8356fi
8357DLLTOOL=$ac_cv_prog_DLLTOOL
8358if test -n "$DLLTOOL"; then
5213506e
RW
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8360$as_echo "$DLLTOOL" >&6; }
278a7a38 8361else
5213506e
RW
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363$as_echo "no" >&6; }
278a7a38
AO
8364fi
8365
5213506e 8366
278a7a38
AO
8367 done
8368fi
8369
8370for ncn_progname in dlltool; do
2693c0b0
PB
8371 if test -n "$ncn_tool_prefix"; then
8372 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8373set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8375$as_echo_n "checking for $ac_word... " >&6; }
8376if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8377 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8378else
8379 if test -n "$DLLTOOL"; then
8380 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8381else
1c710c3c
DJ
8382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8383for as_dir in $PATH
8384do
8385 IFS=$as_save_IFS
8386 test -z "$as_dir" && as_dir=.
5213506e
RW
8387 for ac_exec_ext in '' $ac_executable_extensions; do
8388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8389 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8391 break 2
8392 fi
8393done
5213506e
RW
8394 done
8395IFS=$as_save_IFS
1c710c3c 8396
ca9f4b81
AO
8397fi
8398fi
1c710c3c 8399DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8400if test -n "$DLLTOOL"; then
5213506e
RW
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8402$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8403else
5213506e
RW
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8405$as_echo "no" >&6; }
ca9f4b81
AO
8406fi
8407
5213506e 8408
2693c0b0
PB
8409 fi
8410 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8412set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414$as_echo_n "checking for $ac_word... " >&6; }
8415if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
ca9f4b81 8417else
2693c0b0
PB
8418 if test -n "$DLLTOOL"; then
8419 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8420else
1c710c3c
DJ
8421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422for as_dir in $PATH
8423do
8424 IFS=$as_save_IFS
8425 test -z "$as_dir" && as_dir=.
5213506e
RW
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8428 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8430 break 2
8431 fi
8432done
5213506e
RW
8433 done
8434IFS=$as_save_IFS
1c710c3c 8435
ca9f4b81
AO
8436fi
8437fi
1c710c3c 8438DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8439if test -n "$DLLTOOL"; then
5213506e
RW
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8441$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8442else
5213506e
RW
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444$as_echo "no" >&6; }
ca9f4b81 8445fi
1c710c3c 8446
5213506e 8447
2693c0b0
PB
8448 fi
8449 test -n "$ac_cv_prog_DLLTOOL" && break
8450done
8451
8452if test -z "$ac_cv_prog_DLLTOOL" ; then
8453 set dummy dlltool
8454 if test $build = $host ; then
8455 DLLTOOL="$2"
ca9f4b81 8456 else
2693c0b0 8457 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8458 fi
ca9f4b81
AO
8459fi
8460
278a7a38
AO
8461
8462
8463if test -n "$LD"; then
8464 ac_cv_prog_LD=$LD
8465elif test -n "$ac_cv_prog_LD"; then
8466 LD=$ac_cv_prog_LD
8467fi
8468
8469if test -n "$ac_cv_prog_LD"; then
8470 for ncn_progname in ld; do
8471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8472set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474$as_echo_n "checking for $ac_word... " >&6; }
8475if test "${ac_cv_prog_LD+set}" = set; then :
8476 $as_echo_n "(cached) " >&6
278a7a38
AO
8477else
8478 if test -n "$LD"; then
8479 ac_cv_prog_LD="$LD" # Let the user override the test.
8480else
8481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482for as_dir in $PATH
8483do
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
5213506e
RW
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8488 ac_cv_prog_LD="${ncn_progname}"
5213506e 8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8490 break 2
8491 fi
8492done
5213506e
RW
8493 done
8494IFS=$as_save_IFS
278a7a38
AO
8495
8496fi
8497fi
8498LD=$ac_cv_prog_LD
8499if test -n "$LD"; then
5213506e
RW
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8501$as_echo "$LD" >&6; }
278a7a38 8502else
5213506e
RW
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504$as_echo "no" >&6; }
278a7a38
AO
8505fi
8506
5213506e 8507
278a7a38
AO
8508 done
8509fi
8510
8511for ncn_progname in ld; do
2693c0b0
PB
8512 if test -n "$ncn_tool_prefix"; then
8513 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8514set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516$as_echo_n "checking for $ac_word... " >&6; }
8517if test "${ac_cv_prog_LD+set}" = set; then :
8518 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8519else
8520 if test -n "$LD"; then
8521 ac_cv_prog_LD="$LD" # Let the user override the test.
8522else
1c710c3c
DJ
8523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524for as_dir in $PATH
8525do
8526 IFS=$as_save_IFS
8527 test -z "$as_dir" && as_dir=.
5213506e
RW
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8530 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8532 break 2
8533 fi
8534done
5213506e
RW
8535 done
8536IFS=$as_save_IFS
1c710c3c 8537
ca9f4b81
AO
8538fi
8539fi
1c710c3c 8540LD=$ac_cv_prog_LD
ca9f4b81 8541if test -n "$LD"; then
5213506e
RW
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8543$as_echo "$LD" >&6; }
ca9f4b81 8544else
5213506e
RW
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546$as_echo "no" >&6; }
ca9f4b81
AO
8547fi
8548
5213506e 8549
2693c0b0
PB
8550 fi
8551 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8553set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555$as_echo_n "checking for $ac_word... " >&6; }
8556if test "${ac_cv_prog_LD+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
ca9f4b81 8558else
2693c0b0
PB
8559 if test -n "$LD"; then
8560 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8561else
1c710c3c
DJ
8562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563for as_dir in $PATH
8564do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
5213506e
RW
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8569 ac_cv_prog_LD="${ncn_progname}"
5213506e 8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8571 break 2
8572 fi
8573done
5213506e
RW
8574 done
8575IFS=$as_save_IFS
1c710c3c 8576
ca9f4b81
AO
8577fi
8578fi
1c710c3c 8579LD=$ac_cv_prog_LD
2693c0b0 8580if test -n "$LD"; then
5213506e
RW
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8582$as_echo "$LD" >&6; }
ca9f4b81 8583else
5213506e
RW
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585$as_echo "no" >&6; }
ca9f4b81 8586fi
1c710c3c 8587
5213506e 8588
2693c0b0
PB
8589 fi
8590 test -n "$ac_cv_prog_LD" && break
8591done
8592
8593if test -z "$ac_cv_prog_LD" ; then
8594 set dummy ld
8595 if test $build = $host ; then
8596 LD="$2"
ca9f4b81 8597 else
2693c0b0 8598 LD="${ncn_tool_prefix}$2"
ca9f4b81 8599 fi
ca9f4b81
AO
8600fi
8601
278a7a38
AO
8602
8603
8604if test -n "$LIPO"; then
8605 ac_cv_prog_LIPO=$LIPO
8606elif test -n "$ac_cv_prog_LIPO"; then
8607 LIPO=$ac_cv_prog_LIPO
8608fi
8609
8610if test -n "$ac_cv_prog_LIPO"; then
8611 for ncn_progname in lipo; do
8612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8613set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615$as_echo_n "checking for $ac_word... " >&6; }
8616if test "${ac_cv_prog_LIPO+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
278a7a38
AO
8618else
8619 if test -n "$LIPO"; then
8620 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8621else
8622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623for as_dir in $PATH
8624do
8625 IFS=$as_save_IFS
8626 test -z "$as_dir" && as_dir=.
5213506e
RW
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8629 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8631 break 2
8632 fi
8633done
5213506e
RW
8634 done
8635IFS=$as_save_IFS
278a7a38
AO
8636
8637fi
8638fi
8639LIPO=$ac_cv_prog_LIPO
8640if test -n "$LIPO"; then
5213506e
RW
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8642$as_echo "$LIPO" >&6; }
278a7a38 8643else
5213506e
RW
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645$as_echo "no" >&6; }
278a7a38
AO
8646fi
8647
5213506e 8648
278a7a38
AO
8649 done
8650fi
8651
8652for ncn_progname in lipo; do
2abefe3d
PB
8653 if test -n "$ncn_tool_prefix"; then
8654 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8655set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657$as_echo_n "checking for $ac_word... " >&6; }
8658if test "${ac_cv_prog_LIPO+set}" = set; then :
8659 $as_echo_n "(cached) " >&6
2abefe3d
PB
8660else
8661 if test -n "$LIPO"; then
8662 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8663else
1c710c3c
DJ
8664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665for as_dir in $PATH
8666do
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
5213506e
RW
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8671 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8673 break 2
8674 fi
8675done
5213506e
RW
8676 done
8677IFS=$as_save_IFS
1c710c3c 8678
2abefe3d
PB
8679fi
8680fi
1c710c3c 8681LIPO=$ac_cv_prog_LIPO
2abefe3d 8682if test -n "$LIPO"; then
5213506e
RW
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8684$as_echo "$LIPO" >&6; }
2abefe3d 8685else
5213506e
RW
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687$as_echo "no" >&6; }
2abefe3d
PB
8688fi
8689
5213506e 8690
2abefe3d
PB
8691 fi
8692 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8694set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696$as_echo_n "checking for $ac_word... " >&6; }
8697if test "${ac_cv_prog_LIPO+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
2abefe3d
PB
8699else
8700 if test -n "$LIPO"; then
8701 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8702else
1c710c3c
DJ
8703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704for as_dir in $PATH
8705do
8706 IFS=$as_save_IFS
8707 test -z "$as_dir" && as_dir=.
5213506e
RW
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8710 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8712 break 2
8713 fi
8714done
5213506e
RW
8715 done
8716IFS=$as_save_IFS
1c710c3c 8717
2abefe3d
PB
8718fi
8719fi
1c710c3c 8720LIPO=$ac_cv_prog_LIPO
2abefe3d 8721if test -n "$LIPO"; then
5213506e
RW
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8723$as_echo "$LIPO" >&6; }
2abefe3d 8724else
5213506e
RW
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726$as_echo "no" >&6; }
2abefe3d 8727fi
1c710c3c 8728
5213506e 8729
2abefe3d
PB
8730 fi
8731 test -n "$ac_cv_prog_LIPO" && break
8732done
8733
8734if test -z "$ac_cv_prog_LIPO" ; then
8735 set dummy lipo
8736 if test $build = $host ; then
8737 LIPO="$2"
8738 else
8739 LIPO="${ncn_tool_prefix}$2"
8740 fi
8741fi
8742
278a7a38
AO
8743
8744
8745if test -n "$NM"; then
8746 ac_cv_prog_NM=$NM
8747elif test -n "$ac_cv_prog_NM"; then
8748 NM=$ac_cv_prog_NM
8749fi
8750
8751if test -n "$ac_cv_prog_NM"; then
8752 for ncn_progname in nm; do
8753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8754set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8756$as_echo_n "checking for $ac_word... " >&6; }
8757if test "${ac_cv_prog_NM+set}" = set; then :
8758 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8759else
8760 if test -n "$NM"; then
8761 ac_cv_prog_NM="$NM" # Let the user override the test.
8762else
1c710c3c
DJ
8763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8764for as_dir in $PATH
8765do
8766 IFS=$as_save_IFS
8767 test -z "$as_dir" && as_dir=.
5213506e
RW
8768 for ac_exec_ext in '' $ac_executable_extensions; do
8769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8770 ac_cv_prog_NM="${ncn_progname}"
5213506e 8771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8772 break 2
8773 fi
8774done
5213506e
RW
8775 done
8776IFS=$as_save_IFS
1c710c3c 8777
ca9f4b81
AO
8778fi
8779fi
1c710c3c 8780NM=$ac_cv_prog_NM
ca9f4b81 8781if test -n "$NM"; then
5213506e
RW
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8783$as_echo "$NM" >&6; }
ca9f4b81 8784else
5213506e
RW
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8786$as_echo "no" >&6; }
ca9f4b81
AO
8787fi
8788
5213506e 8789
278a7a38
AO
8790 done
8791fi
8792
8793for ncn_progname in nm; do
8794 if test -n "$ncn_tool_prefix"; then
8795 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8796set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798$as_echo_n "checking for $ac_word... " >&6; }
8799if test "${ac_cv_prog_NM+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
ca9f4b81 8801else
2693c0b0
PB
8802 if test -n "$NM"; then
8803 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8804else
1c710c3c
DJ
8805as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8806for as_dir in $PATH
8807do
8808 IFS=$as_save_IFS
8809 test -z "$as_dir" && as_dir=.
5213506e
RW
8810 for ac_exec_ext in '' $ac_executable_extensions; do
8811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8812 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8814 break 2
8815 fi
8816done
5213506e
RW
8817 done
8818IFS=$as_save_IFS
1c710c3c 8819
ca9f4b81
AO
8820fi
8821fi
1c710c3c 8822NM=$ac_cv_prog_NM
2693c0b0 8823if test -n "$NM"; then
5213506e
RW
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8825$as_echo "$NM" >&6; }
ca9f4b81 8826else
5213506e
RW
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8828$as_echo "no" >&6; }
ca9f4b81 8829fi
1c710c3c 8830
5213506e 8831
2693c0b0 8832 fi
278a7a38
AO
8833 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8835set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837$as_echo_n "checking for $ac_word... " >&6; }
8838if test "${ac_cv_prog_NM+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
278a7a38
AO
8840else
8841 if test -n "$NM"; then
8842 ac_cv_prog_NM="$NM" # Let the user override the test.
8843else
8844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845for as_dir in $PATH
8846do
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
5213506e
RW
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8851 ac_cv_prog_NM="${ncn_progname}"
5213506e 8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8853 break 2
8854 fi
8855done
5213506e
RW
8856 done
8857IFS=$as_save_IFS
278a7a38
AO
8858
8859fi
8860fi
8861NM=$ac_cv_prog_NM
8862if test -n "$NM"; then
5213506e
RW
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8864$as_echo "$NM" >&6; }
278a7a38 8865else
5213506e
RW
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867$as_echo "no" >&6; }
278a7a38
AO
8868fi
8869
5213506e 8870
278a7a38
AO
8871 fi
8872 test -n "$ac_cv_prog_NM" && break
8873done
8874
8875if test -z "$ac_cv_prog_NM" ; then
8876 set dummy nm
8877 if test $build = $host ; then
8878 NM="$2"
8879 else
8880 NM="${ncn_tool_prefix}$2"
8881 fi
8882fi
8883
8884
8885
8886if test -n "$RANLIB"; then
8887 ac_cv_prog_RANLIB=$RANLIB
8888elif test -n "$ac_cv_prog_RANLIB"; then
8889 RANLIB=$ac_cv_prog_RANLIB
8890fi
8891
8892if test -n "$ac_cv_prog_RANLIB"; then
8893 for ncn_progname in ranlib; do
8894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8895set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8897$as_echo_n "checking for $ac_word... " >&6; }
8898if test "${ac_cv_prog_RANLIB+set}" = set; then :
8899 $as_echo_n "(cached) " >&6
278a7a38
AO
8900else
8901 if test -n "$RANLIB"; then
8902 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8903else
8904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8905for as_dir in $PATH
8906do
8907 IFS=$as_save_IFS
8908 test -z "$as_dir" && as_dir=.
5213506e
RW
8909 for ac_exec_ext in '' $ac_executable_extensions; do
8910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8911 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8913 break 2
8914 fi
8915done
5213506e
RW
8916 done
8917IFS=$as_save_IFS
278a7a38
AO
8918
8919fi
8920fi
8921RANLIB=$ac_cv_prog_RANLIB
8922if test -n "$RANLIB"; then
5213506e
RW
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8924$as_echo "$RANLIB" >&6; }
278a7a38 8925else
5213506e
RW
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8927$as_echo "no" >&6; }
278a7a38
AO
8928fi
8929
5213506e 8930
278a7a38
AO
8931 done
8932fi
ca9f4b81 8933
278a7a38 8934for ncn_progname in ranlib; do
2693c0b0
PB
8935 if test -n "$ncn_tool_prefix"; then
8936 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8937set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939$as_echo_n "checking for $ac_word... " >&6; }
8940if test "${ac_cv_prog_RANLIB+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8942else
8943 if test -n "$RANLIB"; then
8944 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8945else
1c710c3c
DJ
8946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8947for as_dir in $PATH
8948do
8949 IFS=$as_save_IFS
8950 test -z "$as_dir" && as_dir=.
5213506e
RW
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8953 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8955 break 2
8956 fi
8957done
5213506e
RW
8958 done
8959IFS=$as_save_IFS
1c710c3c 8960
ca9f4b81
AO
8961fi
8962fi
1c710c3c 8963RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8964if test -n "$RANLIB"; then
5213506e
RW
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8966$as_echo "$RANLIB" >&6; }
ca9f4b81 8967else
5213506e
RW
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969$as_echo "no" >&6; }
ca9f4b81
AO
8970fi
8971
5213506e 8972
2693c0b0
PB
8973 fi
8974 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8976set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978$as_echo_n "checking for $ac_word... " >&6; }
8979if test "${ac_cv_prog_RANLIB+set}" = set; then :
8980 $as_echo_n "(cached) " >&6
ca9f4b81 8981else
2693c0b0
PB
8982 if test -n "$RANLIB"; then
8983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8984else
1c710c3c
DJ
8985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986for as_dir in $PATH
8987do
8988 IFS=$as_save_IFS
8989 test -z "$as_dir" && as_dir=.
5213506e
RW
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8992 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8994 break 2
8995 fi
8996done
5213506e
RW
8997 done
8998IFS=$as_save_IFS
1c710c3c 8999
ca9f4b81
AO
9000fi
9001fi
1c710c3c 9002RANLIB=$ac_cv_prog_RANLIB
2693c0b0 9003if test -n "$RANLIB"; then
5213506e
RW
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9005$as_echo "$RANLIB" >&6; }
ca9f4b81 9006else
5213506e
RW
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008$as_echo "no" >&6; }
ca9f4b81 9009fi
1c710c3c 9010
5213506e 9011
ca9f4b81 9012 fi
2693c0b0
PB
9013 test -n "$ac_cv_prog_RANLIB" && break
9014done
9015
9016if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 9017 RANLIB="true"
ca9f4b81
AO
9018fi
9019
278a7a38
AO
9020
9021
9022if test -n "$STRIP"; then
9023 ac_cv_prog_STRIP=$STRIP
9024elif test -n "$ac_cv_prog_STRIP"; then
9025 STRIP=$ac_cv_prog_STRIP
9026fi
9027
9028if test -n "$ac_cv_prog_STRIP"; then
9029 for ncn_progname in strip; do
9030 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9031set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033$as_echo_n "checking for $ac_word... " >&6; }
9034if test "${ac_cv_prog_STRIP+set}" = set; then :
9035 $as_echo_n "(cached) " >&6
278a7a38
AO
9036else
9037 if test -n "$STRIP"; then
9038 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9039else
9040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041for as_dir in $PATH
9042do
9043 IFS=$as_save_IFS
9044 test -z "$as_dir" && as_dir=.
5213506e
RW
9045 for ac_exec_ext in '' $ac_executable_extensions; do
9046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9047 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9049 break 2
9050 fi
9051done
5213506e
RW
9052 done
9053IFS=$as_save_IFS
278a7a38
AO
9054
9055fi
9056fi
9057STRIP=$ac_cv_prog_STRIP
9058if test -n "$STRIP"; then
5213506e
RW
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9060$as_echo "$STRIP" >&6; }
278a7a38 9061else
5213506e
RW
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9063$as_echo "no" >&6; }
278a7a38
AO
9064fi
9065
5213506e 9066
278a7a38
AO
9067 done
9068fi
9069
9070for ncn_progname in strip; do
2abefe3d
PB
9071 if test -n "$ncn_tool_prefix"; then
9072 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9073set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075$as_echo_n "checking for $ac_word... " >&6; }
9076if test "${ac_cv_prog_STRIP+set}" = set; then :
9077 $as_echo_n "(cached) " >&6
2abefe3d
PB
9078else
9079 if test -n "$STRIP"; then
9080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9081else
1c710c3c
DJ
9082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083for as_dir in $PATH
9084do
9085 IFS=$as_save_IFS
9086 test -z "$as_dir" && as_dir=.
5213506e
RW
9087 for ac_exec_ext in '' $ac_executable_extensions; do
9088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9089 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9091 break 2
9092 fi
9093done
5213506e
RW
9094 done
9095IFS=$as_save_IFS
1c710c3c 9096
2abefe3d
PB
9097fi
9098fi
1c710c3c 9099STRIP=$ac_cv_prog_STRIP
2abefe3d 9100if test -n "$STRIP"; then
5213506e
RW
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9102$as_echo "$STRIP" >&6; }
2abefe3d 9103else
5213506e
RW
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105$as_echo "no" >&6; }
2abefe3d
PB
9106fi
9107
5213506e 9108
2abefe3d
PB
9109 fi
9110 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9112set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9114$as_echo_n "checking for $ac_word... " >&6; }
9115if test "${ac_cv_prog_STRIP+set}" = set; then :
9116 $as_echo_n "(cached) " >&6
2abefe3d
PB
9117else
9118 if test -n "$STRIP"; then
9119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9120else
1c710c3c
DJ
9121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9122for as_dir in $PATH
9123do
9124 IFS=$as_save_IFS
9125 test -z "$as_dir" && as_dir=.
5213506e
RW
9126 for ac_exec_ext in '' $ac_executable_extensions; do
9127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9128 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9130 break 2
9131 fi
9132done
5213506e
RW
9133 done
9134IFS=$as_save_IFS
1c710c3c 9135
2abefe3d
PB
9136fi
9137fi
1c710c3c 9138STRIP=$ac_cv_prog_STRIP
2abefe3d 9139if test -n "$STRIP"; then
5213506e
RW
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9141$as_echo "$STRIP" >&6; }
2abefe3d 9142else
5213506e
RW
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9144$as_echo "no" >&6; }
2abefe3d 9145fi
1c710c3c 9146
5213506e 9147
2abefe3d
PB
9148 fi
9149 test -n "$ac_cv_prog_STRIP" && break
9150done
9151
9152if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9153 STRIP="true"
2abefe3d
PB
9154fi
9155
278a7a38
AO
9156
9157
9158if test -n "$WINDRES"; then
9159 ac_cv_prog_WINDRES=$WINDRES
9160elif test -n "$ac_cv_prog_WINDRES"; then
9161 WINDRES=$ac_cv_prog_WINDRES
9162fi
9163
9164if test -n "$ac_cv_prog_WINDRES"; then
9165 for ncn_progname in windres; do
9166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9167set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9169$as_echo_n "checking for $ac_word... " >&6; }
9170if test "${ac_cv_prog_WINDRES+set}" = set; then :
9171 $as_echo_n "(cached) " >&6
278a7a38
AO
9172else
9173 if test -n "$WINDRES"; then
9174 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9175else
9176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9177for as_dir in $PATH
9178do
9179 IFS=$as_save_IFS
9180 test -z "$as_dir" && as_dir=.
5213506e
RW
9181 for ac_exec_ext in '' $ac_executable_extensions; do
9182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9183 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9185 break 2
9186 fi
9187done
5213506e
RW
9188 done
9189IFS=$as_save_IFS
278a7a38
AO
9190
9191fi
9192fi
9193WINDRES=$ac_cv_prog_WINDRES
9194if test -n "$WINDRES"; then
5213506e
RW
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9196$as_echo "$WINDRES" >&6; }
278a7a38 9197else
5213506e
RW
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199$as_echo "no" >&6; }
278a7a38
AO
9200fi
9201
5213506e 9202
278a7a38
AO
9203 done
9204fi
9205
9206for ncn_progname in windres; do
2693c0b0
PB
9207 if test -n "$ncn_tool_prefix"; then
9208 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9209set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9211$as_echo_n "checking for $ac_word... " >&6; }
9212if test "${ac_cv_prog_WINDRES+set}" = set; then :
9213 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9214else
9215 if test -n "$WINDRES"; then
9216 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9217else
1c710c3c
DJ
9218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9219for as_dir in $PATH
9220do
9221 IFS=$as_save_IFS
9222 test -z "$as_dir" && as_dir=.
5213506e
RW
9223 for ac_exec_ext in '' $ac_executable_extensions; do
9224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9225 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9227 break 2
9228 fi
9229done
5213506e
RW
9230 done
9231IFS=$as_save_IFS
1c710c3c 9232
ca9f4b81
AO
9233fi
9234fi
1c710c3c 9235WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9236if test -n "$WINDRES"; then
5213506e
RW
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9238$as_echo "$WINDRES" >&6; }
ca9f4b81 9239else
5213506e
RW
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241$as_echo "no" >&6; }
ca9f4b81
AO
9242fi
9243
5213506e 9244
2693c0b0
PB
9245 fi
9246 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9248set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250$as_echo_n "checking for $ac_word... " >&6; }
9251if test "${ac_cv_prog_WINDRES+set}" = set; then :
9252 $as_echo_n "(cached) " >&6
ca9f4b81 9253else
2693c0b0
PB
9254 if test -n "$WINDRES"; then
9255 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9256else
1c710c3c
DJ
9257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258for as_dir in $PATH
9259do
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
5213506e
RW
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9264 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9266 break 2
9267 fi
9268done
5213506e
RW
9269 done
9270IFS=$as_save_IFS
1c710c3c 9271
ca9f4b81
AO
9272fi
9273fi
1c710c3c 9274WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9275if test -n "$WINDRES"; then
5213506e
RW
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9277$as_echo "$WINDRES" >&6; }
ca9f4b81 9278else
5213506e
RW
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280$as_echo "no" >&6; }
ca9f4b81 9281fi
1c710c3c 9282
5213506e 9283
2693c0b0
PB
9284 fi
9285 test -n "$ac_cv_prog_WINDRES" && break
9286done
9287
9288if test -z "$ac_cv_prog_WINDRES" ; then
9289 set dummy windres
9290 if test $build = $host ; then
9291 WINDRES="$2"
ca9f4b81 9292 else
2693c0b0 9293 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9294 fi
ca9f4b81
AO
9295fi
9296
278a7a38
AO
9297
9298
901119ae
KT
9299if test -n "$WINDMC"; then
9300 ac_cv_prog_WINDMC=$WINDMC
9301elif test -n "$ac_cv_prog_WINDMC"; then
9302 WINDMC=$ac_cv_prog_WINDMC
9303fi
9304
9305if test -n "$ac_cv_prog_WINDMC"; then
9306 for ncn_progname in windmc; do
9307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9308set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9310$as_echo_n "checking for $ac_word... " >&6; }
9311if test "${ac_cv_prog_WINDMC+set}" = set; then :
9312 $as_echo_n "(cached) " >&6
901119ae
KT
9313else
9314 if test -n "$WINDMC"; then
9315 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9316else
9317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9318for as_dir in $PATH
9319do
9320 IFS=$as_save_IFS
9321 test -z "$as_dir" && as_dir=.
5213506e
RW
9322 for ac_exec_ext in '' $ac_executable_extensions; do
9323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9324 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9326 break 2
9327 fi
9328done
5213506e
RW
9329 done
9330IFS=$as_save_IFS
901119ae
KT
9331
9332fi
9333fi
9334WINDMC=$ac_cv_prog_WINDMC
9335if test -n "$WINDMC"; then
5213506e
RW
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9337$as_echo "$WINDMC" >&6; }
901119ae 9338else
5213506e
RW
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9340$as_echo "no" >&6; }
901119ae
KT
9341fi
9342
5213506e 9343
901119ae
KT
9344 done
9345fi
9346
9347for ncn_progname in windmc; do
9348 if test -n "$ncn_tool_prefix"; then
9349 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9350set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9352$as_echo_n "checking for $ac_word... " >&6; }
9353if test "${ac_cv_prog_WINDMC+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
901119ae
KT
9355else
9356 if test -n "$WINDMC"; then
9357 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9358else
9359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9360for as_dir in $PATH
9361do
9362 IFS=$as_save_IFS
9363 test -z "$as_dir" && as_dir=.
5213506e
RW
9364 for ac_exec_ext in '' $ac_executable_extensions; do
9365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9366 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9368 break 2
9369 fi
9370done
5213506e
RW
9371 done
9372IFS=$as_save_IFS
901119ae
KT
9373
9374fi
9375fi
9376WINDMC=$ac_cv_prog_WINDMC
9377if test -n "$WINDMC"; then
5213506e
RW
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9379$as_echo "$WINDMC" >&6; }
901119ae 9380else
5213506e
RW
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9382$as_echo "no" >&6; }
901119ae
KT
9383fi
9384
5213506e 9385
901119ae
KT
9386 fi
9387 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9389set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391$as_echo_n "checking for $ac_word... " >&6; }
9392if test "${ac_cv_prog_WINDMC+set}" = set; then :
9393 $as_echo_n "(cached) " >&6
901119ae
KT
9394else
9395 if test -n "$WINDMC"; then
9396 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9397else
9398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399for as_dir in $PATH
9400do
9401 IFS=$as_save_IFS
9402 test -z "$as_dir" && as_dir=.
5213506e
RW
9403 for ac_exec_ext in '' $ac_executable_extensions; do
9404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9405 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9407 break 2
9408 fi
9409done
5213506e
RW
9410 done
9411IFS=$as_save_IFS
901119ae
KT
9412
9413fi
9414fi
9415WINDMC=$ac_cv_prog_WINDMC
9416if test -n "$WINDMC"; then
5213506e
RW
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9418$as_echo "$WINDMC" >&6; }
901119ae 9419else
5213506e
RW
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421$as_echo "no" >&6; }
901119ae
KT
9422fi
9423
5213506e 9424
901119ae
KT
9425 fi
9426 test -n "$ac_cv_prog_WINDMC" && break
9427done
9428
9429if test -z "$ac_cv_prog_WINDMC" ; then
9430 set dummy windmc
9431 if test $build = $host ; then
9432 WINDMC="$2"
9433 else
9434 WINDMC="${ncn_tool_prefix}$2"
9435 fi
9436fi
9437
9438
9439
278a7a38
AO
9440if test -n "$OBJCOPY"; then
9441 ac_cv_prog_OBJCOPY=$OBJCOPY
9442elif test -n "$ac_cv_prog_OBJCOPY"; then
9443 OBJCOPY=$ac_cv_prog_OBJCOPY
9444fi
9445
9446if test -n "$ac_cv_prog_OBJCOPY"; then
9447 for ncn_progname in objcopy; do
9448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9449set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9451$as_echo_n "checking for $ac_word... " >&6; }
9452if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9453 $as_echo_n "(cached) " >&6
278a7a38
AO
9454else
9455 if test -n "$OBJCOPY"; then
9456 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9457else
9458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9459for as_dir in $PATH
9460do
9461 IFS=$as_save_IFS
9462 test -z "$as_dir" && as_dir=.
5213506e
RW
9463 for ac_exec_ext in '' $ac_executable_extensions; do
9464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9465 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9467 break 2
9468 fi
9469done
5213506e
RW
9470 done
9471IFS=$as_save_IFS
278a7a38
AO
9472
9473fi
9474fi
9475OBJCOPY=$ac_cv_prog_OBJCOPY
9476if test -n "$OBJCOPY"; then
5213506e
RW
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9478$as_echo "$OBJCOPY" >&6; }
278a7a38 9479else
5213506e
RW
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481$as_echo "no" >&6; }
278a7a38
AO
9482fi
9483
5213506e 9484
278a7a38
AO
9485 done
9486fi
9487
9488for ncn_progname in objcopy; do
2693c0b0
PB
9489 if test -n "$ncn_tool_prefix"; then
9490 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9491set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493$as_echo_n "checking for $ac_word... " >&6; }
9494if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9495 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9496else
9497 if test -n "$OBJCOPY"; then
9498 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9499else
1c710c3c
DJ
9500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501for as_dir in $PATH
9502do
9503 IFS=$as_save_IFS
9504 test -z "$as_dir" && as_dir=.
5213506e
RW
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9507 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9509 break 2
9510 fi
9511done
5213506e
RW
9512 done
9513IFS=$as_save_IFS
1c710c3c 9514
ca9f4b81
AO
9515fi
9516fi
1c710c3c 9517OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9518if test -n "$OBJCOPY"; then
5213506e
RW
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9520$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9521else
5213506e
RW
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523$as_echo "no" >&6; }
ca9f4b81
AO
9524fi
9525
5213506e 9526
2693c0b0
PB
9527 fi
9528 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9530set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532$as_echo_n "checking for $ac_word... " >&6; }
9533if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9534 $as_echo_n "(cached) " >&6
ca9f4b81 9535else
2693c0b0
PB
9536 if test -n "$OBJCOPY"; then
9537 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9538else
1c710c3c
DJ
9539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540for as_dir in $PATH
9541do
9542 IFS=$as_save_IFS
9543 test -z "$as_dir" && as_dir=.
5213506e
RW
9544 for ac_exec_ext in '' $ac_executable_extensions; do
9545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9546 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9548 break 2
9549 fi
9550done
5213506e
RW
9551 done
9552IFS=$as_save_IFS
1c710c3c 9553
ca9f4b81
AO
9554fi
9555fi
1c710c3c 9556OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9557if test -n "$OBJCOPY"; then
5213506e
RW
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9559$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9560else
5213506e
RW
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562$as_echo "no" >&6; }
ca9f4b81 9563fi
1c710c3c 9564
5213506e 9565
2693c0b0
PB
9566 fi
9567 test -n "$ac_cv_prog_OBJCOPY" && break
9568done
9569
9570if test -z "$ac_cv_prog_OBJCOPY" ; then
9571 set dummy objcopy
9572 if test $build = $host ; then
9573 OBJCOPY="$2"
ca9f4b81 9574 else
2693c0b0 9575 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9576 fi
ca9f4b81
AO
9577fi
9578
278a7a38
AO
9579
9580
9581if test -n "$OBJDUMP"; then
9582 ac_cv_prog_OBJDUMP=$OBJDUMP
9583elif test -n "$ac_cv_prog_OBJDUMP"; then
9584 OBJDUMP=$ac_cv_prog_OBJDUMP
9585fi
9586
9587if test -n "$ac_cv_prog_OBJDUMP"; then
9588 for ncn_progname in objdump; do
9589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9590set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592$as_echo_n "checking for $ac_word... " >&6; }
9593if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
278a7a38
AO
9595else
9596 if test -n "$OBJDUMP"; then
9597 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9598else
9599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600for as_dir in $PATH
9601do
9602 IFS=$as_save_IFS
9603 test -z "$as_dir" && as_dir=.
5213506e
RW
9604 for ac_exec_ext in '' $ac_executable_extensions; do
9605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9606 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9608 break 2
9609 fi
9610done
5213506e
RW
9611 done
9612IFS=$as_save_IFS
278a7a38
AO
9613
9614fi
9615fi
9616OBJDUMP=$ac_cv_prog_OBJDUMP
9617if test -n "$OBJDUMP"; then
5213506e
RW
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9619$as_echo "$OBJDUMP" >&6; }
278a7a38 9620else
5213506e
RW
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622$as_echo "no" >&6; }
278a7a38
AO
9623fi
9624
5213506e 9625
278a7a38
AO
9626 done
9627fi
9628
9629for ncn_progname in objdump; do
2693c0b0
PB
9630 if test -n "$ncn_tool_prefix"; then
9631 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9632set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634$as_echo_n "checking for $ac_word... " >&6; }
9635if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9636 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9637else
9638 if test -n "$OBJDUMP"; then
9639 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9640else
1c710c3c
DJ
9641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642for as_dir in $PATH
9643do
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
5213506e
RW
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9648 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9650 break 2
9651 fi
9652done
5213506e
RW
9653 done
9654IFS=$as_save_IFS
1c710c3c 9655
ca9f4b81
AO
9656fi
9657fi
1c710c3c 9658OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9659if test -n "$OBJDUMP"; then
5213506e
RW
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9661$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9662else
5213506e
RW
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664$as_echo "no" >&6; }
ca9f4b81
AO
9665fi
9666
5213506e 9667
2693c0b0
PB
9668 fi
9669 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9671set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9673$as_echo_n "checking for $ac_word... " >&6; }
9674if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9675 $as_echo_n "(cached) " >&6
ca9f4b81 9676else
2693c0b0
PB
9677 if test -n "$OBJDUMP"; then
9678 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9679else
1c710c3c
DJ
9680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9681for as_dir in $PATH
9682do
9683 IFS=$as_save_IFS
9684 test -z "$as_dir" && as_dir=.
5213506e
RW
9685 for ac_exec_ext in '' $ac_executable_extensions; do
9686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9687 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9689 break 2
9690 fi
9691done
5213506e
RW
9692 done
9693IFS=$as_save_IFS
1c710c3c 9694
ca9f4b81
AO
9695fi
9696fi
1c710c3c 9697OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9698if test -n "$OBJDUMP"; then
5213506e
RW
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9700$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9701else
5213506e
RW
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9703$as_echo "no" >&6; }
ca9f4b81 9704fi
1c710c3c 9705
5213506e 9706
2693c0b0
PB
9707 fi
9708 test -n "$ac_cv_prog_OBJDUMP" && break
9709done
9710
9711if test -z "$ac_cv_prog_OBJDUMP" ; then
9712 set dummy objdump
9713 if test $build = $host ; then
9714 OBJDUMP="$2"
ca9f4b81 9715 else
2693c0b0 9716 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9717 fi
ca9f4b81
AO
9718fi
9719
671aa708
NN
9720
9721
9722
9723
9724
2abefe3d 9725# Target tools.
1c710c3c 9726
5213506e
RW
9727# Check whether --with-build-time-tools was given.
9728if test "${with_build_time_tools+set}" = set; then :
9729 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9730 x/*) ;;
9731 *)
9732 with_build_time_tools=
5213506e
RW
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9734$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9735 ;;
9736 esac
ca9f4b81 9737else
e8b05380 9738 with_build_time_tools=
5213506e
RW
9739fi
9740
ca9f4b81 9741
278a7a38
AO
9742
9743
9744if test -n "$CC_FOR_TARGET"; then
9745 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9746elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9747 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9748fi
9749
9750if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9751 for ncn_progname in cc gcc; do
9752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9753set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755$as_echo_n "checking for $ac_word... " >&6; }
9756if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
278a7a38
AO
9758else
9759 if test -n "$CC_FOR_TARGET"; then
9760 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9761else
9762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763for as_dir in $PATH
9764do
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
5213506e
RW
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9769 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9771 break 2
9772 fi
9773done
5213506e
RW
9774 done
9775IFS=$as_save_IFS
278a7a38
AO
9776
9777fi
9778fi
9779CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9780if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9782$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9783else
5213506e
RW
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785$as_echo "no" >&6; }
278a7a38
AO
9786fi
9787
5213506e 9788
278a7a38
AO
9789 done
9790fi
9791
9792if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9793 for ncn_progname in cc gcc; do
5213506e
RW
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9795$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9796 if test -x $with_build_time_tools/${ncn_progname}; then
9797 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9799$as_echo "yes" >&6; }
72a7ab82 9800 break
e8b05380 9801 else
5213506e
RW
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9803$as_echo "no" >&6; }
72a7ab82
AP
9804 fi
9805 done
4de997d1
PB
9806fi
9807
e8b05380
PB
9808if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9809 for ncn_progname in cc gcc; do
9810 if test -n "$ncn_target_tool_prefix"; then
9811 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9812set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814$as_echo_n "checking for $ac_word... " >&6; }
9815if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
4de997d1
PB
9817else
9818 if test -n "$CC_FOR_TARGET"; then
9819 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9820else
1c710c3c
DJ
9821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822for as_dir in $PATH
9823do
9824 IFS=$as_save_IFS
9825 test -z "$as_dir" && as_dir=.
5213506e
RW
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9828 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9830 break 2
9831 fi
9832done
5213506e
RW
9833 done
9834IFS=$as_save_IFS
1c710c3c 9835
4de997d1
PB
9836fi
9837fi
1c710c3c 9838CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9839if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9841$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9842else
5213506e
RW
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844$as_echo "no" >&6; }
4de997d1
PB
9845fi
9846
5213506e 9847
e8b05380
PB
9848 fi
9849 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9851set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9853$as_echo_n "checking for $ac_word... " >&6; }
9854if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9855 $as_echo_n "(cached) " >&6
4de997d1 9856else
2693c0b0
PB
9857 if test -n "$CC_FOR_TARGET"; then
9858 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9859else
1c710c3c
DJ
9860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9861for as_dir in $PATH
9862do
9863 IFS=$as_save_IFS
9864 test -z "$as_dir" && as_dir=.
5213506e
RW
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9867 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9869 break 2
9870 fi
9871done
5213506e
RW
9872 done
9873IFS=$as_save_IFS
1c710c3c 9874
4de997d1
PB
9875fi
9876fi
1c710c3c 9877CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9878if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9880$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9881else
5213506e
RW
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883$as_echo "no" >&6; }
4de997d1 9884fi
1c710c3c 9885
5213506e 9886
e8b05380
PB
9887 fi
9888 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9889 done
9890fi
1c710c3c 9891
2693c0b0
PB
9892if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9893 set dummy cc gcc
9894 if test $build = $target ; then
9895 CC_FOR_TARGET="$2"
4de997d1 9896 else
2693c0b0 9897 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9898 fi
1c00b503
PB
9899else
9900 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9901fi
9902
278a7a38
AO
9903
9904
9905if test -n "$CXX_FOR_TARGET"; then
9906 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9907elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9908 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9909fi
9910
9911if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9912 for ncn_progname in c++ g++ cxx gxx; do
9913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9914set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916$as_echo_n "checking for $ac_word... " >&6; }
9917if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9918 $as_echo_n "(cached) " >&6
278a7a38
AO
9919else
9920 if test -n "$CXX_FOR_TARGET"; then
9921 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9922else
9923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924for as_dir in $PATH
9925do
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
5213506e
RW
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9930 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9932 break 2
9933 fi
9934done
5213506e
RW
9935 done
9936IFS=$as_save_IFS
278a7a38
AO
9937
9938fi
9939fi
9940CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9941if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9943$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9944else
5213506e
RW
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946$as_echo "no" >&6; }
278a7a38
AO
9947fi
9948
5213506e 9949
278a7a38
AO
9950 done
9951fi
9952
9953if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9954 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9956$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9957 if test -x $with_build_time_tools/${ncn_progname}; then
9958 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9960$as_echo "yes" >&6; }
e8b05380
PB
9961 break
9962 else
5213506e
RW
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9964$as_echo "no" >&6; }
e8b05380
PB
9965 fi
9966 done
9967fi
9968
9969if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9970 for ncn_progname in c++ g++ cxx gxx; do
9971 if test -n "$ncn_target_tool_prefix"; then
9972 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9973set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975$as_echo_n "checking for $ac_word... " >&6; }
9976if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
4de997d1
PB
9978else
9979 if test -n "$CXX_FOR_TARGET"; then
9980 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9981else
1c710c3c
DJ
9982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in $PATH
9984do
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
5213506e
RW
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9989 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9991 break 2
9992 fi
9993done
5213506e
RW
9994 done
9995IFS=$as_save_IFS
1c710c3c 9996
4de997d1
PB
9997fi
9998fi
1c710c3c 9999CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 10000if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10002$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10003else
5213506e
RW
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005$as_echo "no" >&6; }
4de997d1
PB
10006fi
10007
5213506e 10008
e8b05380
PB
10009 fi
10010 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10012set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10014$as_echo_n "checking for $ac_word... " >&6; }
10015if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
4de997d1 10017else
2693c0b0
PB
10018 if test -n "$CXX_FOR_TARGET"; then
10019 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 10020else
1c710c3c
DJ
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
5213506e
RW
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10028 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10030 break 2
10031 fi
10032done
5213506e
RW
10033 done
10034IFS=$as_save_IFS
1c710c3c 10035
4de997d1
PB
10036fi
10037fi
1c710c3c 10038CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 10039if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10041$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 10042else
5213506e
RW
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044$as_echo "no" >&6; }
4de997d1 10045fi
1c710c3c 10046
5213506e 10047
e8b05380
PB
10048 fi
10049 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10050 done
10051fi
1c710c3c 10052
2693c0b0
PB
10053if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10054 set dummy c++ g++ cxx gxx
10055 if test $build = $target ; then
10056 CXX_FOR_TARGET="$2"
4de997d1 10057 else
2693c0b0 10058 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 10059 fi
1c00b503
PB
10060else
10061 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
10062fi
10063
278a7a38
AO
10064
10065
10066if test -n "$GCC_FOR_TARGET"; then
10067 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10068elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10069 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10070fi
10071
10072if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10073 for ncn_progname in gcc; do
10074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10075set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077$as_echo_n "checking for $ac_word... " >&6; }
10078if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10079 $as_echo_n "(cached) " >&6
278a7a38
AO
10080else
10081 if test -n "$GCC_FOR_TARGET"; then
10082 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10083else
10084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085for as_dir in $PATH
10086do
10087 IFS=$as_save_IFS
10088 test -z "$as_dir" && as_dir=.
5213506e
RW
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10091 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10093 break 2
10094 fi
10095done
5213506e
RW
10096 done
10097IFS=$as_save_IFS
278a7a38
AO
10098
10099fi
10100fi
10101GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10102if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10104$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10105else
5213506e
RW
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107$as_echo "no" >&6; }
278a7a38
AO
10108fi
10109
5213506e 10110
278a7a38
AO
10111 done
10112fi
10113
10114if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10115 for ncn_progname in gcc; do
5213506e
RW
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10117$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10118 if test -x $with_build_time_tools/${ncn_progname}; then
10119 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10121$as_echo "yes" >&6; }
e8b05380
PB
10122 break
10123 else
5213506e
RW
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10125$as_echo "no" >&6; }
e8b05380
PB
10126 fi
10127 done
10128fi
10129
10130if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10131 for ncn_progname in gcc; do
10132 if test -n "$ncn_target_tool_prefix"; then
10133 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10134set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10136$as_echo_n "checking for $ac_word... " >&6; }
10137if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10138 $as_echo_n "(cached) " >&6
ca9f4b81 10139else
e8b05380
PB
10140 if test -n "$GCC_FOR_TARGET"; then
10141 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10142else
1c710c3c
DJ
10143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10144for as_dir in $PATH
10145do
10146 IFS=$as_save_IFS
10147 test -z "$as_dir" && as_dir=.
5213506e
RW
10148 for ac_exec_ext in '' $ac_executable_extensions; do
10149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10150 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10152 break 2
10153 fi
10154done
5213506e
RW
10155 done
10156IFS=$as_save_IFS
1c710c3c 10157
ca9f4b81
AO
10158fi
10159fi
1c710c3c 10160GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10161if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10163$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10164else
5213506e
RW
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10166$as_echo "no" >&6; }
ca9f4b81
AO
10167fi
10168
5213506e 10169
e8b05380
PB
10170 fi
10171 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10173set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10175$as_echo_n "checking for $ac_word... " >&6; }
10176if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10177 $as_echo_n "(cached) " >&6
ca9f4b81 10178else
e8b05380
PB
10179 if test -n "$GCC_FOR_TARGET"; then
10180 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10181else
1c710c3c
DJ
10182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10183for as_dir in $PATH
10184do
10185 IFS=$as_save_IFS
10186 test -z "$as_dir" && as_dir=.
5213506e
RW
10187 for ac_exec_ext in '' $ac_executable_extensions; do
10188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10189 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10191 break 2
10192 fi
10193done
5213506e
RW
10194 done
10195IFS=$as_save_IFS
1c710c3c 10196
ca9f4b81
AO
10197fi
10198fi
1c710c3c 10199GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10200if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10202$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10203else
5213506e
RW
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205$as_echo "no" >&6; }
ca9f4b81 10206fi
1c710c3c 10207
5213506e 10208
e8b05380
PB
10209 fi
10210 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10211 done
10212fi
1c710c3c 10213
e8b05380
PB
10214if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10215 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10216else
10217 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10218fi
10219
278a7a38
AO
10220
10221
10222if test -n "$GCJ_FOR_TARGET"; then
10223 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10224elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10225 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10226fi
10227
10228if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10229 for ncn_progname in gcj; do
10230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10231set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233$as_echo_n "checking for $ac_word... " >&6; }
10234if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10235 $as_echo_n "(cached) " >&6
278a7a38
AO
10236else
10237 if test -n "$GCJ_FOR_TARGET"; then
10238 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10239else
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
278a7a38 10247 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10249 break 2
10250 fi
10251done
5213506e
RW
10252 done
10253IFS=$as_save_IFS
278a7a38
AO
10254
10255fi
10256fi
10257GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10258if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10260$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10261else
5213506e
RW
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263$as_echo "no" >&6; }
278a7a38
AO
10264fi
10265
5213506e 10266
278a7a38
AO
10267 done
10268fi
10269
10270if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10271 for ncn_progname in gcj; do
5213506e
RW
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10273$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10274 if test -x $with_build_time_tools/${ncn_progname}; then
10275 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10277$as_echo "yes" >&6; }
e8b05380
PB
10278 break
10279 else
5213506e
RW
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
e8b05380
PB
10282 fi
10283 done
10284fi
10285
10286if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10287 for ncn_progname in gcj; do
10288 if test -n "$ncn_target_tool_prefix"; then
10289 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10290set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10292$as_echo_n "checking for $ac_word... " >&6; }
10293if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
e8b05380 10295else
fb0103e5
RG
10296 if test -n "$GCJ_FOR_TARGET"; then
10297 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10298else
1c710c3c
DJ
10299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300for as_dir in $PATH
10301do
10302 IFS=$as_save_IFS
10303 test -z "$as_dir" && as_dir=.
5213506e
RW
10304 for ac_exec_ext in '' $ac_executable_extensions; do
10305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10306 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10308 break 2
10309 fi
10310done
5213506e
RW
10311 done
10312IFS=$as_save_IFS
1c710c3c 10313
e8b05380
PB
10314fi
10315fi
278a7a38
AO
10316GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10317if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10319$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10320else
5213506e
RW
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322$as_echo "no" >&6; }
278a7a38
AO
10323fi
10324
5213506e 10325
278a7a38
AO
10326 fi
10327 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10329set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10331$as_echo_n "checking for $ac_word... " >&6; }
10332if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10333 $as_echo_n "(cached) " >&6
278a7a38
AO
10334else
10335 if test -n "$GCJ_FOR_TARGET"; then
10336 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10337else
10338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10339for as_dir in $PATH
10340do
10341 IFS=$as_save_IFS
10342 test -z "$as_dir" && as_dir=.
5213506e
RW
10343 for ac_exec_ext in '' $ac_executable_extensions; do
10344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10345 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10347 break 2
10348 fi
10349done
5213506e
RW
10350 done
10351IFS=$as_save_IFS
278a7a38
AO
10352
10353fi
10354fi
10355GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10356if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10358$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10359else
5213506e
RW
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10361$as_echo "no" >&6; }
278a7a38
AO
10362fi
10363
5213506e 10364
278a7a38
AO
10365 fi
10366 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10367 done
10368fi
10369
10370if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10371 set dummy gcj
10372 if test $build = $target ; then
10373 GCJ_FOR_TARGET="$2"
10374 else
10375 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10376 fi
1c00b503
PB
10377else
10378 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10379fi
10380
10381
10382
10383if test -n "$GFORTRAN_FOR_TARGET"; then
10384 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10385elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10386 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10387fi
10388
278a7a38
AO
10389if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10390 for ncn_progname in gfortran; do
10391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10392set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394$as_echo_n "checking for $ac_word... " >&6; }
10395if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
e8b05380 10397else
278a7a38
AO
10398 if test -n "$GFORTRAN_FOR_TARGET"; then
10399 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10400else
1c710c3c
DJ
10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
5213506e
RW
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10408 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10410 break 2
10411 fi
10412done
5213506e
RW
10413 done
10414IFS=$as_save_IFS
1c710c3c 10415
e8b05380
PB
10416fi
10417fi
278a7a38
AO
10418GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10419if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10421$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10422else
5213506e
RW
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424$as_echo "no" >&6; }
e8b05380 10425fi
1c710c3c 10426
5213506e 10427
e8b05380
PB
10428 done
10429fi
1c710c3c 10430
278a7a38 10431if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10432 for ncn_progname in gfortran; do
5213506e
RW
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10434$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10435 if test -x $with_build_time_tools/${ncn_progname}; then
10436 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10438$as_echo "yes" >&6; }
e8b05380
PB
10439 break
10440 else
5213506e
RW
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10442$as_echo "no" >&6; }
e8b05380
PB
10443 fi
10444 done
10445fi
10446
10447if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10448 for ncn_progname in gfortran; do
10449 if test -n "$ncn_target_tool_prefix"; then
10450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10451set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453$as_echo_n "checking for $ac_word... " >&6; }
10454if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10455 $as_echo_n "(cached) " >&6
e8b05380
PB
10456else
10457 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10458 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10459else
10460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461for as_dir in $PATH
10462do
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
5213506e
RW
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10467 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10469 break 2
10470 fi
10471done
5213506e
RW
10472 done
10473IFS=$as_save_IFS
1c710c3c 10474
e8b05380
PB
10475fi
10476fi
1c710c3c 10477GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10478if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10480$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10481else
5213506e
RW
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483$as_echo "no" >&6; }
e8b05380
PB
10484fi
10485
5213506e 10486
e8b05380
PB
10487 fi
10488 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10490set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10492$as_echo_n "checking for $ac_word... " >&6; }
10493if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10494 $as_echo_n "(cached) " >&6
e8b05380
PB
10495else
10496 if test -n "$GFORTRAN_FOR_TARGET"; then
10497 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10498else
1c710c3c
DJ
10499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10500for as_dir in $PATH
10501do
10502 IFS=$as_save_IFS
10503 test -z "$as_dir" && as_dir=.
5213506e
RW
10504 for ac_exec_ext in '' $ac_executable_extensions; do
10505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10506 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10508 break 2
10509 fi
10510done
5213506e
RW
10511 done
10512IFS=$as_save_IFS
1c710c3c 10513
e8b05380
PB
10514fi
10515fi
1c710c3c 10516GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10517if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10519$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10520else
5213506e
RW
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10522$as_echo "no" >&6; }
e8b05380 10523fi
1c710c3c 10524
5213506e 10525
e8b05380
PB
10526 fi
10527 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10528 done
10529fi
1c710c3c 10530
e8b05380
PB
10531if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10532 set dummy gfortran
2693c0b0 10533 if test $build = $target ; then
e8b05380 10534 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10535 else
e8b05380
PB
10536 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10537 fi
1c00b503
PB
10538else
10539 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10540fi
10541
10542
10543
632e2a07
ILT
10544if test -n "$GOC_FOR_TARGET"; then
10545 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10546elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10547 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10548fi
10549
10550if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10551 for ncn_progname in gccgo; do
10552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10553set dummy ${ncn_progname}; ac_word=$2
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555$as_echo_n "checking for $ac_word... " >&6; }
10556if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10557 $as_echo_n "(cached) " >&6
10558else
10559 if test -n "$GOC_FOR_TARGET"; then
10560 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10561else
10562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563for as_dir in $PATH
10564do
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10569 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 break 2
10572 fi
10573done
10574 done
10575IFS=$as_save_IFS
10576
10577fi
10578fi
10579GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10580if test -n "$GOC_FOR_TARGET"; then
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10582$as_echo "$GOC_FOR_TARGET" >&6; }
10583else
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585$as_echo "no" >&6; }
10586fi
10587
10588
10589 done
10590fi
10591
10592if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10593 for ncn_progname in gccgo; do
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10595$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10596 if test -x $with_build_time_tools/${ncn_progname}; then
10597 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10599$as_echo "yes" >&6; }
10600 break
10601 else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603$as_echo "no" >&6; }
10604 fi
10605 done
10606fi
10607
10608if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10609 for ncn_progname in gccgo; do
10610 if test -n "$ncn_target_tool_prefix"; then
10611 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10612set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10614$as_echo_n "checking for $ac_word... " >&6; }
10615if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10616 $as_echo_n "(cached) " >&6
10617else
10618 if test -n "$GOC_FOR_TARGET"; then
10619 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10620else
10621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10622for as_dir in $PATH
10623do
10624 IFS=$as_save_IFS
10625 test -z "$as_dir" && as_dir=.
10626 for ac_exec_ext in '' $ac_executable_extensions; do
10627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10628 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10630 break 2
10631 fi
10632done
10633 done
10634IFS=$as_save_IFS
10635
10636fi
10637fi
10638GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10639if test -n "$GOC_FOR_TARGET"; then
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10641$as_echo "$GOC_FOR_TARGET" >&6; }
10642else
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10644$as_echo "no" >&6; }
10645fi
10646
10647
10648 fi
10649 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10651set dummy ${ncn_progname}; ac_word=$2
10652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10653$as_echo_n "checking for $ac_word... " >&6; }
10654if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10655 $as_echo_n "(cached) " >&6
10656else
10657 if test -n "$GOC_FOR_TARGET"; then
10658 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10659else
10660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661for as_dir in $PATH
10662do
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
10666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10667 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10669 break 2
10670 fi
10671done
10672 done
10673IFS=$as_save_IFS
10674
10675fi
10676fi
10677GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10678if test -n "$GOC_FOR_TARGET"; then
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10680$as_echo "$GOC_FOR_TARGET" >&6; }
10681else
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10683$as_echo "no" >&6; }
10684fi
10685
10686
10687 fi
10688 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10689 done
10690fi
10691
10692if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10693 set dummy gccgo
10694 if test $build = $target ; then
10695 GOC_FOR_TARGET="$2"
10696 else
10697 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10698 fi
10699else
10700 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10701fi
10702
10703
10704
e8b05380
PB
10705cat > conftest.c << \EOF
10706#ifdef __GNUC__
10707 gcc_yay;
10708#endif
10709EOF
10710if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10711 have_gcc_for_target=yes
10712else
10713 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10714 have_gcc_for_target=no
10715fi
10716rm conftest.c
10717
10718
10719
10720
10721if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10722 if test -n "$with_build_time_tools"; then
5213506e
RW
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10724$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10725 if test -x $with_build_time_tools/ar; then
10726 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10727 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10729$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10730 else
5213506e
RW
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732$as_echo "no" >&6; }
d1f8db0c 10733 fi
e8b05380
PB
10734 elif test $build != $host && test $have_gcc_for_target = yes; then
10735 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10736 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10737 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10738 fi
10739fi
3e19841a 10740if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10741 # Extract the first word of "ar", so it can be a program name with args.
10742set dummy ar; ac_word=$2
5213506e
RW
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744$as_echo_n "checking for $ac_word... " >&6; }
10745if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
e8b05380 10747else
1c710c3c
DJ
10748 case $AR_FOR_TARGET in
10749 [\\/]* | ?:[\\/]*)
e8b05380
PB
10750 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10751 ;;
e8b05380 10752 *)
1c710c3c
DJ
10753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10754for as_dir in $gcc_cv_tool_dirs
10755do
10756 IFS=$as_save_IFS
10757 test -z "$as_dir" && as_dir=.
5213506e
RW
10758 for ac_exec_ext in '' $ac_executable_extensions; do
10759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10760 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10762 break 2
10763 fi
10764done
5213506e
RW
10765 done
10766IFS=$as_save_IFS
1c710c3c 10767
e8b05380
PB
10768 ;;
10769esac
10770fi
1c710c3c 10771AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10772if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10774$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10775else
5213506e
RW
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777$as_echo "no" >&6; }
4de997d1
PB
10778fi
10779
5213506e 10780
e8b05380
PB
10781fi
10782if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10783
10784
10785if test -n "$AR_FOR_TARGET"; then
10786 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10787elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10788 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10789fi
10790
10791if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10792 for ncn_progname in ar; do
10793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10794set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796$as_echo_n "checking for $ac_word... " >&6; }
10797if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10798 $as_echo_n "(cached) " >&6
278a7a38
AO
10799else
10800 if test -n "$AR_FOR_TARGET"; then
10801 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10802else
10803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804for as_dir in $PATH
10805do
10806 IFS=$as_save_IFS
10807 test -z "$as_dir" && as_dir=.
5213506e
RW
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10810 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10812 break 2
10813 fi
10814done
5213506e
RW
10815 done
10816IFS=$as_save_IFS
278a7a38
AO
10817
10818fi
10819fi
10820AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10821if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10823$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10824else
5213506e
RW
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826$as_echo "no" >&6; }
278a7a38
AO
10827fi
10828
5213506e 10829
278a7a38
AO
10830 done
10831fi
10832
10833if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10834 for ncn_progname in ar; do
5213506e
RW
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10836$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10837 if test -x $with_build_time_tools/${ncn_progname}; then
10838 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10840$as_echo "yes" >&6; }
e8b05380
PB
10841 break
10842 else
5213506e
RW
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10844$as_echo "no" >&6; }
e8b05380
PB
10845 fi
10846 done
10847fi
10848
10849if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10850 for ncn_progname in ar; do
10851 if test -n "$ncn_target_tool_prefix"; then
10852 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10853set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10855$as_echo_n "checking for $ac_word... " >&6; }
10856if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10857 $as_echo_n "(cached) " >&6
4de997d1 10858else
e8b05380
PB
10859 if test -n "$AR_FOR_TARGET"; then
10860 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10861else
1c710c3c
DJ
10862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863for as_dir in $PATH
10864do
10865 IFS=$as_save_IFS
10866 test -z "$as_dir" && as_dir=.
5213506e
RW
10867 for ac_exec_ext in '' $ac_executable_extensions; do
10868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10869 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10871 break 2
10872 fi
10873done
5213506e
RW
10874 done
10875IFS=$as_save_IFS
1c710c3c 10876
4de997d1
PB
10877fi
10878fi
1c710c3c 10879AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10880if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10882$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10883else
5213506e
RW
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10885$as_echo "no" >&6; }
4de997d1
PB
10886fi
10887
5213506e 10888
e8b05380
PB
10889 fi
10890 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10892set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10894$as_echo_n "checking for $ac_word... " >&6; }
10895if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10896 $as_echo_n "(cached) " >&6
e8b05380
PB
10897else
10898 if test -n "$AR_FOR_TARGET"; then
10899 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10900else
1c710c3c
DJ
10901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902for as_dir in $PATH
10903do
10904 IFS=$as_save_IFS
10905 test -z "$as_dir" && as_dir=.
5213506e
RW
10906 for ac_exec_ext in '' $ac_executable_extensions; do
10907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10908 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10910 break 2
10911 fi
10912done
5213506e
RW
10913 done
10914IFS=$as_save_IFS
1c710c3c 10915
e8b05380
PB
10916fi
10917fi
1c710c3c 10918AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10919if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10921$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10922else
5213506e
RW
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10924$as_echo "no" >&6; }
e8b05380 10925fi
1c710c3c 10926
5213506e 10927
e8b05380
PB
10928 fi
10929 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10930 done
10931fi
1c710c3c 10932
e8b05380
PB
10933if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10934 set dummy ar
10935 if test $build = $target ; then
10936 AR_FOR_TARGET="$2"
10937 else
10938 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10939 fi
1c00b503
PB
10940else
10941 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10942fi
10943
d1f8db0c
PB
10944else
10945 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10946fi
10947
10948
10949
10950
10951if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10952 if test -n "$with_build_time_tools"; then
5213506e
RW
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10954$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10955 if test -x $with_build_time_tools/as; then
10956 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10957 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10959$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10960 else
5213506e
RW
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10962$as_echo "no" >&6; }
d1f8db0c 10963 fi
e8b05380
PB
10964 elif test $build != $host && test $have_gcc_for_target = yes; then
10965 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10966 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10967 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10968 fi
10969fi
3e19841a 10970if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10971 # Extract the first word of "as", so it can be a program name with args.
10972set dummy as; ac_word=$2
5213506e
RW
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974$as_echo_n "checking for $ac_word... " >&6; }
10975if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
e8b05380 10977else
1c710c3c
DJ
10978 case $AS_FOR_TARGET in
10979 [\\/]* | ?:[\\/]*)
e8b05380
PB
10980 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10981 ;;
e8b05380 10982 *)
1c710c3c
DJ
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984for as_dir in $gcc_cv_tool_dirs
10985do
10986 IFS=$as_save_IFS
10987 test -z "$as_dir" && as_dir=.
5213506e
RW
10988 for ac_exec_ext in '' $ac_executable_extensions; do
10989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10990 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10992 break 2
10993 fi
10994done
5213506e
RW
10995 done
10996IFS=$as_save_IFS
1c710c3c 10997
e8b05380
PB
10998 ;;
10999esac
11000fi
1c710c3c 11001AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 11002if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11004$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11005else
5213506e
RW
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007$as_echo "no" >&6; }
e8b05380
PB
11008fi
11009
5213506e 11010
e8b05380
PB
11011fi
11012if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
11013
11014
11015if test -n "$AS_FOR_TARGET"; then
11016 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11017elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11018 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11019fi
11020
11021if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11022 for ncn_progname in as; do
11023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11024set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11026$as_echo_n "checking for $ac_word... " >&6; }
11027if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
278a7a38
AO
11029else
11030 if test -n "$AS_FOR_TARGET"; then
11031 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11032else
11033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034for as_dir in $PATH
11035do
11036 IFS=$as_save_IFS
11037 test -z "$as_dir" && as_dir=.
5213506e
RW
11038 for ac_exec_ext in '' $ac_executable_extensions; do
11039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11040 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11042 break 2
11043 fi
11044done
5213506e
RW
11045 done
11046IFS=$as_save_IFS
278a7a38
AO
11047
11048fi
11049fi
11050AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11051if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11053$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 11054else
5213506e
RW
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056$as_echo "no" >&6; }
278a7a38
AO
11057fi
11058
5213506e 11059
278a7a38
AO
11060 done
11061fi
11062
11063if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11064 for ncn_progname in as; do
5213506e
RW
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11066$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11067 if test -x $with_build_time_tools/${ncn_progname}; then
11068 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11070$as_echo "yes" >&6; }
e8b05380
PB
11071 break
11072 else
5213506e
RW
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11074$as_echo "no" >&6; }
e8b05380
PB
11075 fi
11076 done
11077fi
11078
11079if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11080 for ncn_progname in as; do
11081 if test -n "$ncn_target_tool_prefix"; then
11082 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11083set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11085$as_echo_n "checking for $ac_word... " >&6; }
11086if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11087 $as_echo_n "(cached) " >&6
e8b05380
PB
11088else
11089 if test -n "$AS_FOR_TARGET"; then
11090 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11091else
1c710c3c
DJ
11092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093for as_dir in $PATH
11094do
11095 IFS=$as_save_IFS
11096 test -z "$as_dir" && as_dir=.
5213506e
RW
11097 for ac_exec_ext in '' $ac_executable_extensions; do
11098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11099 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11101 break 2
11102 fi
11103done
5213506e
RW
11104 done
11105IFS=$as_save_IFS
1c710c3c 11106
e8b05380
PB
11107fi
11108fi
1c710c3c 11109AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11110if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11112$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11113else
5213506e
RW
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115$as_echo "no" >&6; }
e8b05380
PB
11116fi
11117
5213506e 11118
e8b05380
PB
11119 fi
11120 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11122set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11124$as_echo_n "checking for $ac_word... " >&6; }
11125if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11126 $as_echo_n "(cached) " >&6
4de997d1 11127else
e8b05380
PB
11128 if test -n "$AS_FOR_TARGET"; then
11129 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11130else
1c710c3c
DJ
11131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132for as_dir in $PATH
11133do
11134 IFS=$as_save_IFS
11135 test -z "$as_dir" && as_dir=.
5213506e
RW
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11138 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11140 break 2
11141 fi
11142done
5213506e
RW
11143 done
11144IFS=$as_save_IFS
1c710c3c 11145
4de997d1
PB
11146fi
11147fi
1c710c3c 11148AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11149if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11151$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11152else
5213506e
RW
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11154$as_echo "no" >&6; }
4de997d1 11155fi
1c710c3c 11156
5213506e 11157
e8b05380
PB
11158 fi
11159 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11160 done
11161fi
1c710c3c 11162
e8b05380
PB
11163if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11164 set dummy as
11165 if test $build = $target ; then
11166 AS_FOR_TARGET="$2"
11167 else
11168 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11169 fi
1c00b503
PB
11170else
11171 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11172fi
2693c0b0 11173
d1f8db0c
PB
11174else
11175 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11176fi
11177
e8b05380
PB
11178
11179
11180
11181if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11182 if test -n "$with_build_time_tools"; then
5213506e
RW
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11184$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11185 if test -x $with_build_time_tools/dlltool; then
11186 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11187 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11189$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11190 else
5213506e
RW
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11192$as_echo "no" >&6; }
d1f8db0c 11193 fi
e8b05380
PB
11194 elif test $build != $host && test $have_gcc_for_target = yes; then
11195 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11196 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11197 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11198 fi
11199fi
3e19841a 11200if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11201 # Extract the first word of "dlltool", so it can be a program name with args.
11202set dummy dlltool; ac_word=$2
5213506e
RW
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204$as_echo_n "checking for $ac_word... " >&6; }
11205if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
4de997d1 11207else
1c710c3c
DJ
11208 case $DLLTOOL_FOR_TARGET in
11209 [\\/]* | ?:[\\/]*)
e8b05380
PB
11210 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11211 ;;
e8b05380 11212 *)
1c710c3c
DJ
11213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11214for as_dir in $gcc_cv_tool_dirs
11215do
11216 IFS=$as_save_IFS
11217 test -z "$as_dir" && as_dir=.
5213506e
RW
11218 for ac_exec_ext in '' $ac_executable_extensions; do
11219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11220 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11222 break 2
11223 fi
11224done
5213506e
RW
11225 done
11226IFS=$as_save_IFS
1c710c3c 11227
e8b05380
PB
11228 ;;
11229esac
4de997d1 11230fi
1c710c3c 11231DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11232if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11234$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11235else
5213506e
RW
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237$as_echo "no" >&6; }
4de997d1
PB
11238fi
11239
5213506e 11240
e8b05380
PB
11241fi
11242if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11243
11244
11245if test -n "$DLLTOOL_FOR_TARGET"; then
11246 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11247elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11248 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11249fi
11250
11251if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11252 for ncn_progname in dlltool; do
11253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11254set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11256$as_echo_n "checking for $ac_word... " >&6; }
11257if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11258 $as_echo_n "(cached) " >&6
278a7a38
AO
11259else
11260 if test -n "$DLLTOOL_FOR_TARGET"; then
11261 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11262else
11263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264for as_dir in $PATH
11265do
11266 IFS=$as_save_IFS
11267 test -z "$as_dir" && as_dir=.
5213506e
RW
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11270 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11272 break 2
11273 fi
11274done
5213506e
RW
11275 done
11276IFS=$as_save_IFS
278a7a38
AO
11277
11278fi
11279fi
11280DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11281if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11283$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11284else
5213506e
RW
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11286$as_echo "no" >&6; }
278a7a38
AO
11287fi
11288
5213506e 11289
278a7a38
AO
11290 done
11291fi
11292
11293if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11294 for ncn_progname in dlltool; do
5213506e
RW
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11296$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11297 if test -x $with_build_time_tools/${ncn_progname}; then
11298 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11300$as_echo "yes" >&6; }
e8b05380
PB
11301 break
11302 else
5213506e
RW
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11304$as_echo "no" >&6; }
e8b05380
PB
11305 fi
11306 done
11307fi
11308
11309if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11310 for ncn_progname in dlltool; do
11311 if test -n "$ncn_target_tool_prefix"; then
11312 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11313set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11315$as_echo_n "checking for $ac_word... " >&6; }
11316if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
4de997d1 11318else
e8b05380
PB
11319 if test -n "$DLLTOOL_FOR_TARGET"; then
11320 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11321else
1c710c3c
DJ
11322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11323for as_dir in $PATH
11324do
11325 IFS=$as_save_IFS
11326 test -z "$as_dir" && as_dir=.
5213506e
RW
11327 for ac_exec_ext in '' $ac_executable_extensions; do
11328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11329 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11331 break 2
11332 fi
11333done
5213506e
RW
11334 done
11335IFS=$as_save_IFS
1c710c3c 11336
4de997d1
PB
11337fi
11338fi
1c710c3c 11339DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11340if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11342$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11343else
5213506e
RW
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345$as_echo "no" >&6; }
4de997d1 11346fi
4de997d1 11347
5213506e 11348
e8b05380
PB
11349 fi
11350 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11352set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11354$as_echo_n "checking for $ac_word... " >&6; }
11355if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
4de997d1 11357else
e8b05380
PB
11358 if test -n "$DLLTOOL_FOR_TARGET"; then
11359 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11360else
1c710c3c
DJ
11361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362for as_dir in $PATH
11363do
11364 IFS=$as_save_IFS
11365 test -z "$as_dir" && as_dir=.
5213506e
RW
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11368 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11370 break 2
11371 fi
11372done
5213506e
RW
11373 done
11374IFS=$as_save_IFS
1c710c3c 11375
4de997d1
PB
11376fi
11377fi
1c710c3c 11378DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11379if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11381$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11382else
5213506e
RW
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11384$as_echo "no" >&6; }
4de997d1 11385fi
1c710c3c 11386
5213506e 11387
e8b05380
PB
11388 fi
11389 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11390 done
11391fi
1c710c3c 11392
e8b05380
PB
11393if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11394 set dummy dlltool
11395 if test $build = $target ; then
11396 DLLTOOL_FOR_TARGET="$2"
11397 else
11398 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11399 fi
1c00b503
PB
11400else
11401 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11402fi
11403
d1f8db0c
PB
11404else
11405 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11406fi
11407
4de997d1 11408
e8b05380
PB
11409
11410
11411if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11412 if test -n "$with_build_time_tools"; then
5213506e
RW
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11414$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11415 if test -x $with_build_time_tools/ld; then
11416 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11417 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11419$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11420 else
5213506e
RW
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11422$as_echo "no" >&6; }
d1f8db0c 11423 fi
e8b05380
PB
11424 elif test $build != $host && test $have_gcc_for_target = yes; then
11425 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11426 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11427 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11428 fi
e8b05380 11429fi
3e19841a 11430if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11431 # Extract the first word of "ld", so it can be a program name with args.
11432set dummy ld; ac_word=$2
5213506e
RW
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434$as_echo_n "checking for $ac_word... " >&6; }
11435if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11436 $as_echo_n "(cached) " >&6
4de997d1 11437else
1c710c3c
DJ
11438 case $LD_FOR_TARGET in
11439 [\\/]* | ?:[\\/]*)
e8b05380
PB
11440 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11441 ;;
e8b05380 11442 *)
1c710c3c
DJ
11443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11444for as_dir in $gcc_cv_tool_dirs
11445do
11446 IFS=$as_save_IFS
11447 test -z "$as_dir" && as_dir=.
5213506e
RW
11448 for ac_exec_ext in '' $ac_executable_extensions; do
11449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11450 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11452 break 2
11453 fi
11454done
5213506e
RW
11455 done
11456IFS=$as_save_IFS
1c710c3c 11457
e8b05380
PB
11458 ;;
11459esac
4de997d1 11460fi
1c710c3c 11461LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11462if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11464$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11465else
5213506e
RW
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467$as_echo "no" >&6; }
4de997d1 11468fi
2693c0b0 11469
5213506e 11470
e8b05380
PB
11471fi
11472if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11473
11474
11475if test -n "$LD_FOR_TARGET"; then
11476 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11477elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11478 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11479fi
11480
11481if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11482 for ncn_progname in ld; do
11483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11484set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486$as_echo_n "checking for $ac_word... " >&6; }
11487if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11488 $as_echo_n "(cached) " >&6
278a7a38
AO
11489else
11490 if test -n "$LD_FOR_TARGET"; then
11491 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11492else
11493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494for as_dir in $PATH
11495do
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
5213506e
RW
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11500 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11502 break 2
11503 fi
11504done
5213506e
RW
11505 done
11506IFS=$as_save_IFS
278a7a38
AO
11507
11508fi
11509fi
11510LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11511if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11513$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11514else
5213506e
RW
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516$as_echo "no" >&6; }
278a7a38
AO
11517fi
11518
5213506e 11519
278a7a38
AO
11520 done
11521fi
11522
11523if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11524 for ncn_progname in ld; do
5213506e
RW
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11526$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11527 if test -x $with_build_time_tools/${ncn_progname}; then
11528 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11530$as_echo "yes" >&6; }
e8b05380
PB
11531 break
11532 else
5213506e
RW
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534$as_echo "no" >&6; }
e8b05380
PB
11535 fi
11536 done
ca9f4b81
AO
11537fi
11538
e8b05380
PB
11539if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11540 for ncn_progname in ld; do
11541 if test -n "$ncn_target_tool_prefix"; then
11542 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11543set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11545$as_echo_n "checking for $ac_word... " >&6; }
11546if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11547 $as_echo_n "(cached) " >&6
ca9f4b81 11548else
4de997d1
PB
11549 if test -n "$LD_FOR_TARGET"; then
11550 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11551else
1c710c3c
DJ
11552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11553for as_dir in $PATH
11554do
11555 IFS=$as_save_IFS
11556 test -z "$as_dir" && as_dir=.
5213506e
RW
11557 for ac_exec_ext in '' $ac_executable_extensions; do
11558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11559 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11561 break 2
11562 fi
11563done
5213506e
RW
11564 done
11565IFS=$as_save_IFS
1c710c3c 11566
ca9f4b81
AO
11567fi
11568fi
1c710c3c 11569LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11570if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11572$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11573else
5213506e
RW
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11575$as_echo "no" >&6; }
ca9f4b81
AO
11576fi
11577
5213506e 11578
e8b05380
PB
11579 fi
11580 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11582set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584$as_echo_n "checking for $ac_word... " >&6; }
11585if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11586 $as_echo_n "(cached) " >&6
ca9f4b81 11587else
2693c0b0
PB
11588 if test -n "$LD_FOR_TARGET"; then
11589 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11590else
1c710c3c
DJ
11591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592for as_dir in $PATH
11593do
11594 IFS=$as_save_IFS
11595 test -z "$as_dir" && as_dir=.
5213506e
RW
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11598 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11600 break 2
11601 fi
11602done
5213506e
RW
11603 done
11604IFS=$as_save_IFS
1c710c3c 11605
ca9f4b81
AO
11606fi
11607fi
1c710c3c 11608LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11609if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11611$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11612else
5213506e
RW
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614$as_echo "no" >&6; }
ca9f4b81 11615fi
1c710c3c 11616
5213506e 11617
e8b05380
PB
11618 fi
11619 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11620 done
11621fi
1c710c3c 11622
2693c0b0
PB
11623if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11624 set dummy ld
11625 if test $build = $target ; then
11626 LD_FOR_TARGET="$2"
ca9f4b81 11627 else
2693c0b0 11628 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11629 fi
1c00b503
PB
11630else
11631 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11632fi
11633
d1f8db0c
PB
11634else
11635 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11636fi
11637
11638
11639
11640
11641if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11642 if test -n "$with_build_time_tools"; then
5213506e
RW
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11644$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11645 if test -x $with_build_time_tools/lipo; then
11646 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11647 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11649$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11650 else
5213506e
RW
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11652$as_echo "no" >&6; }
d1f8db0c 11653 fi
e8b05380
PB
11654 elif test $build != $host && test $have_gcc_for_target = yes; then
11655 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11656 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11657 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11658 fi
11659fi
278a7a38
AO
11660if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11661 # Extract the first word of "lipo", so it can be a program name with args.
11662set dummy lipo; ac_word=$2
5213506e
RW
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664$as_echo_n "checking for $ac_word... " >&6; }
11665if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
278a7a38
AO
11667else
11668 case $LIPO_FOR_TARGET in
11669 [\\/]* | ?:[\\/]*)
11670 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11671 ;;
11672 *)
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674for as_dir in $gcc_cv_tool_dirs
11675do
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
5213506e
RW
11678 for ac_exec_ext in '' $ac_executable_extensions; do
11679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11680 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11682 break 2
11683 fi
11684done
5213506e
RW
11685 done
11686IFS=$as_save_IFS
278a7a38
AO
11687
11688 ;;
11689esac
11690fi
11691LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11692if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11694$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11695else
5213506e
RW
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697$as_echo "no" >&6; }
278a7a38
AO
11698fi
11699
5213506e 11700
278a7a38
AO
11701fi
11702if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11703
11704
11705if test -n "$LIPO_FOR_TARGET"; then
11706 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11707elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11708 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11709fi
11710
11711if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11712 for ncn_progname in lipo; do
11713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11714set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716$as_echo_n "checking for $ac_word... " >&6; }
11717if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11718 $as_echo_n "(cached) " >&6
e8b05380 11719else
278a7a38
AO
11720 if test -n "$LIPO_FOR_TARGET"; then
11721 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11722else
11723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724for as_dir in $PATH
1c710c3c
DJ
11725do
11726 IFS=$as_save_IFS
11727 test -z "$as_dir" && as_dir=.
5213506e
RW
11728 for ac_exec_ext in '' $ac_executable_extensions; do
11729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11730 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11732 break 2
11733 fi
11734done
5213506e
RW
11735 done
11736IFS=$as_save_IFS
1c710c3c 11737
e8b05380 11738fi
278a7a38
AO
11739fi
11740LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11741if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11743$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11744else
5213506e
RW
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746$as_echo "no" >&6; }
e8b05380
PB
11747fi
11748
5213506e 11749
278a7a38 11750 done
e8b05380 11751fi
278a7a38
AO
11752
11753if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11754 for ncn_progname in lipo; do
5213506e
RW
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11756$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11757 if test -x $with_build_time_tools/${ncn_progname}; then
11758 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11760$as_echo "yes" >&6; }
e8b05380
PB
11761 break
11762 else
5213506e
RW
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764$as_echo "no" >&6; }
e8b05380
PB
11765 fi
11766 done
11767fi
11768
11769if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11770 for ncn_progname in lipo; do
11771 if test -n "$ncn_target_tool_prefix"; then
11772 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11773set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775$as_echo_n "checking for $ac_word... " >&6; }
11776if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11777 $as_echo_n "(cached) " >&6
040b1c5a
GK
11778else
11779 if test -n "$LIPO_FOR_TARGET"; then
11780 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11781else
1c710c3c
DJ
11782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11783for as_dir in $PATH
11784do
11785 IFS=$as_save_IFS
11786 test -z "$as_dir" && as_dir=.
5213506e
RW
11787 for ac_exec_ext in '' $ac_executable_extensions; do
11788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11789 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11791 break 2
11792 fi
11793done
5213506e
RW
11794 done
11795IFS=$as_save_IFS
1c710c3c 11796
040b1c5a
GK
11797fi
11798fi
1c710c3c 11799LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11800if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11802$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11803else
5213506e
RW
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11805$as_echo "no" >&6; }
040b1c5a
GK
11806fi
11807
5213506e 11808
e8b05380
PB
11809 fi
11810 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11812set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11814$as_echo_n "checking for $ac_word... " >&6; }
11815if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11816 $as_echo_n "(cached) " >&6
040b1c5a
GK
11817else
11818 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11819 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11820else
1c710c3c
DJ
11821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11822for as_dir in $PATH
11823do
11824 IFS=$as_save_IFS
11825 test -z "$as_dir" && as_dir=.
5213506e
RW
11826 for ac_exec_ext in '' $ac_executable_extensions; do
11827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11828 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11830 break 2
11831 fi
11832done
5213506e
RW
11833 done
11834IFS=$as_save_IFS
1c710c3c 11835
040b1c5a
GK
11836fi
11837fi
1c710c3c 11838LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11839if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11841$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11842else
5213506e
RW
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11844$as_echo "no" >&6; }
040b1c5a 11845fi
1c710c3c 11846
5213506e 11847
e8b05380
PB
11848 fi
11849 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11850 done
11851fi
1c710c3c 11852
040b1c5a
GK
11853if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11854 set dummy lipo
11855 if test $build = $target ; then
11856 LIPO_FOR_TARGET="$2"
11857 else
11858 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11859 fi
1c00b503
PB
11860else
11861 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11862fi
11863
d1f8db0c
PB
11864else
11865 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11866fi
11867
11868
11869
11870
11871if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11872 if test -n "$with_build_time_tools"; then
5213506e
RW
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11874$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11875 if test -x $with_build_time_tools/nm; then
11876 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11877 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11879$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11880 else
5213506e
RW
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11882$as_echo "no" >&6; }
d1f8db0c 11883 fi
e8b05380
PB
11884 elif test $build != $host && test $have_gcc_for_target = yes; then
11885 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11886 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11887 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11888 fi
11889fi
3e19841a 11890if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11891 # Extract the first word of "nm", so it can be a program name with args.
11892set dummy nm; ac_word=$2
5213506e
RW
11893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11894$as_echo_n "checking for $ac_word... " >&6; }
11895if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
e8b05380 11897else
1c710c3c
DJ
11898 case $NM_FOR_TARGET in
11899 [\\/]* | ?:[\\/]*)
e8b05380
PB
11900 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11901 ;;
e8b05380 11902 *)
1c710c3c
DJ
11903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11904for as_dir in $gcc_cv_tool_dirs
11905do
11906 IFS=$as_save_IFS
11907 test -z "$as_dir" && as_dir=.
5213506e
RW
11908 for ac_exec_ext in '' $ac_executable_extensions; do
11909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11910 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11912 break 2
11913 fi
11914done
5213506e
RW
11915 done
11916IFS=$as_save_IFS
1c710c3c 11917
e8b05380
PB
11918 ;;
11919esac
11920fi
1c710c3c 11921NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11922if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11924$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11925else
5213506e
RW
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927$as_echo "no" >&6; }
e8b05380
PB
11928fi
11929
5213506e 11930
e8b05380
PB
11931fi
11932if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11933
11934
11935if test -n "$NM_FOR_TARGET"; then
11936 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11937elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11938 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11939fi
11940
11941if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11942 for ncn_progname in nm; do
11943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11944set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946$as_echo_n "checking for $ac_word... " >&6; }
11947if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
278a7a38
AO
11949else
11950 if test -n "$NM_FOR_TARGET"; then
11951 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11952else
11953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954for as_dir in $PATH
11955do
11956 IFS=$as_save_IFS
11957 test -z "$as_dir" && as_dir=.
5213506e
RW
11958 for ac_exec_ext in '' $ac_executable_extensions; do
11959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11960 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11962 break 2
11963 fi
11964done
5213506e
RW
11965 done
11966IFS=$as_save_IFS
278a7a38
AO
11967
11968fi
11969fi
11970NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11971if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11973$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11974else
5213506e
RW
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976$as_echo "no" >&6; }
278a7a38
AO
11977fi
11978
5213506e 11979
278a7a38
AO
11980 done
11981fi
11982
11983if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11984 for ncn_progname in nm; do
5213506e
RW
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11986$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11987 if test -x $with_build_time_tools/${ncn_progname}; then
11988 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11990$as_echo "yes" >&6; }
e8b05380
PB
11991 break
11992 else
5213506e
RW
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994$as_echo "no" >&6; }
e8b05380
PB
11995 fi
11996 done
11997fi
11998
11999if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12000 for ncn_progname in nm; do
12001 if test -n "$ncn_target_tool_prefix"; then
12002 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12003set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12005$as_echo_n "checking for $ac_word... " >&6; }
12006if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12007 $as_echo_n "(cached) " >&6
ca9f4b81 12008else
4de997d1
PB
12009 if test -n "$NM_FOR_TARGET"; then
12010 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12011else
1c710c3c
DJ
12012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12013for as_dir in $PATH
12014do
12015 IFS=$as_save_IFS
12016 test -z "$as_dir" && as_dir=.
5213506e
RW
12017 for ac_exec_ext in '' $ac_executable_extensions; do
12018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12019 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12021 break 2
12022 fi
12023done
5213506e
RW
12024 done
12025IFS=$as_save_IFS
1c710c3c 12026
ca9f4b81
AO
12027fi
12028fi
1c710c3c 12029NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 12030if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12032$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12033else
5213506e
RW
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12035$as_echo "no" >&6; }
ca9f4b81
AO
12036fi
12037
5213506e 12038
e8b05380
PB
12039 fi
12040 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12042set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12044$as_echo_n "checking for $ac_word... " >&6; }
12045if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12046 $as_echo_n "(cached) " >&6
ca9f4b81 12047else
2693c0b0
PB
12048 if test -n "$NM_FOR_TARGET"; then
12049 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 12050else
1c710c3c
DJ
12051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052for as_dir in $PATH
12053do
12054 IFS=$as_save_IFS
12055 test -z "$as_dir" && as_dir=.
5213506e
RW
12056 for ac_exec_ext in '' $ac_executable_extensions; do
12057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12058 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 12059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12060 break 2
12061 fi
12062done
5213506e
RW
12063 done
12064IFS=$as_save_IFS
1c710c3c 12065
ca9f4b81
AO
12066fi
12067fi
1c710c3c 12068NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 12069if test -n "$NM_FOR_TARGET"; then
5213506e
RW
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12071$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 12072else
5213506e
RW
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12074$as_echo "no" >&6; }
ca9f4b81 12075fi
1c710c3c 12076
5213506e 12077
e8b05380
PB
12078 fi
12079 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12080 done
12081fi
1c710c3c 12082
2693c0b0
PB
12083if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12084 set dummy nm
12085 if test $build = $target ; then
12086 NM_FOR_TARGET="$2"
ca9f4b81 12087 else
2693c0b0 12088 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12089 fi
1c00b503
PB
12090else
12091 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
12092fi
12093
d1f8db0c
PB
12094else
12095 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
12096fi
12097
12098
12099
12100
12101if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12102 if test -n "$with_build_time_tools"; then
5213506e
RW
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12104$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12105 if test -x $with_build_time_tools/objdump; then
12106 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12107 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12109$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12110 else
5213506e
RW
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112$as_echo "no" >&6; }
d1f8db0c 12113 fi
e8b05380
PB
12114 elif test $build != $host && test $have_gcc_for_target = yes; then
12115 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12116 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12117 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12118 fi
12119fi
3e19841a 12120if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12121 # Extract the first word of "objdump", so it can be a program name with args.
12122set dummy objdump; ac_word=$2
5213506e
RW
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124$as_echo_n "checking for $ac_word... " >&6; }
12125if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
e8b05380 12127else
1c710c3c
DJ
12128 case $OBJDUMP_FOR_TARGET in
12129 [\\/]* | ?:[\\/]*)
e8b05380
PB
12130 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12131 ;;
e8b05380 12132 *)
1c710c3c
DJ
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134for as_dir in $gcc_cv_tool_dirs
12135do
12136 IFS=$as_save_IFS
12137 test -z "$as_dir" && as_dir=.
5213506e
RW
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12140 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12142 break 2
12143 fi
12144done
5213506e
RW
12145 done
12146IFS=$as_save_IFS
1c710c3c 12147
e8b05380
PB
12148 ;;
12149esac
12150fi
1c710c3c 12151OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12152if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12154$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12155else
5213506e
RW
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157$as_echo "no" >&6; }
e8b05380
PB
12158fi
12159
5213506e 12160
e8b05380
PB
12161fi
12162if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12163
12164
12165if test -n "$OBJDUMP_FOR_TARGET"; then
12166 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12167elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12168 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12169fi
12170
12171if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12172 for ncn_progname in objdump; do
12173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12174set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176$as_echo_n "checking for $ac_word... " >&6; }
12177if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12178 $as_echo_n "(cached) " >&6
278a7a38
AO
12179else
12180 if test -n "$OBJDUMP_FOR_TARGET"; then
12181 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12182else
12183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184for as_dir in $PATH
12185do
12186 IFS=$as_save_IFS
12187 test -z "$as_dir" && as_dir=.
5213506e
RW
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12190 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12192 break 2
12193 fi
12194done
5213506e
RW
12195 done
12196IFS=$as_save_IFS
278a7a38
AO
12197
12198fi
12199fi
12200OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12201if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12203$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12204else
5213506e
RW
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206$as_echo "no" >&6; }
278a7a38
AO
12207fi
12208
5213506e 12209
278a7a38
AO
12210 done
12211fi
12212
12213if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12214 for ncn_progname in objdump; do
5213506e
RW
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12216$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12217 if test -x $with_build_time_tools/${ncn_progname}; then
12218 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12220$as_echo "yes" >&6; }
e8b05380
PB
12221 break
12222 else
5213506e
RW
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12224$as_echo "no" >&6; }
e8b05380
PB
12225 fi
12226 done
12227fi
12228
12229if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12230 for ncn_progname in objdump; do
12231 if test -n "$ncn_target_tool_prefix"; then
12232 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12233set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235$as_echo_n "checking for $ac_word... " >&6; }
12236if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12237 $as_echo_n "(cached) " >&6
d739199a
DJ
12238else
12239 if test -n "$OBJDUMP_FOR_TARGET"; then
12240 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12241else
1c710c3c
DJ
12242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243for as_dir in $PATH
12244do
12245 IFS=$as_save_IFS
12246 test -z "$as_dir" && as_dir=.
5213506e
RW
12247 for ac_exec_ext in '' $ac_executable_extensions; do
12248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12249 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12251 break 2
12252 fi
12253done
5213506e
RW
12254 done
12255IFS=$as_save_IFS
1c710c3c 12256
d739199a
DJ
12257fi
12258fi
1c710c3c 12259OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12260if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12262$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12263else
5213506e
RW
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265$as_echo "no" >&6; }
d739199a
DJ
12266fi
12267
5213506e 12268
e8b05380
PB
12269 fi
12270 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12272set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274$as_echo_n "checking for $ac_word... " >&6; }
12275if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12276 $as_echo_n "(cached) " >&6
d739199a
DJ
12277else
12278 if test -n "$OBJDUMP_FOR_TARGET"; then
12279 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12280else
1c710c3c
DJ
12281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282for as_dir in $PATH
12283do
12284 IFS=$as_save_IFS
12285 test -z "$as_dir" && as_dir=.
5213506e
RW
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12288 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12290 break 2
12291 fi
12292done
5213506e
RW
12293 done
12294IFS=$as_save_IFS
1c710c3c 12295
d739199a
DJ
12296fi
12297fi
1c710c3c 12298OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12299if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12301$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12302else
5213506e
RW
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304$as_echo "no" >&6; }
d739199a 12305fi
1c710c3c 12306
5213506e 12307
e8b05380
PB
12308 fi
12309 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12310 done
12311fi
1c710c3c 12312
d739199a
DJ
12313if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12314 set dummy objdump
12315 if test $build = $target ; then
12316 OBJDUMP_FOR_TARGET="$2"
12317 else
12318 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12319 fi
1c00b503
PB
12320else
12321 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12322fi
12323
d1f8db0c
PB
12324else
12325 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12326fi
12327
12328
12329
12330
12331if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12332 if test -n "$with_build_time_tools"; then
5213506e
RW
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12334$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12335 if test -x $with_build_time_tools/ranlib; then
12336 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12337 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12339$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12340 else
5213506e
RW
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12342$as_echo "no" >&6; }
d1f8db0c 12343 fi
e8b05380
PB
12344 elif test $build != $host && test $have_gcc_for_target = yes; then
12345 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12346 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12347 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12348 fi
12349fi
3e19841a 12350if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12351 # Extract the first word of "ranlib", so it can be a program name with args.
12352set dummy ranlib; ac_word=$2
5213506e
RW
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354$as_echo_n "checking for $ac_word... " >&6; }
12355if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
e8b05380 12357else
1c710c3c
DJ
12358 case $RANLIB_FOR_TARGET in
12359 [\\/]* | ?:[\\/]*)
e8b05380
PB
12360 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12361 ;;
e8b05380 12362 *)
1c710c3c
DJ
12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364for as_dir in $gcc_cv_tool_dirs
12365do
12366 IFS=$as_save_IFS
12367 test -z "$as_dir" && as_dir=.
5213506e
RW
12368 for ac_exec_ext in '' $ac_executable_extensions; do
12369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12370 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12372 break 2
12373 fi
12374done
5213506e
RW
12375 done
12376IFS=$as_save_IFS
1c710c3c 12377
e8b05380
PB
12378 ;;
12379esac
12380fi
1c710c3c 12381RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12382if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12384$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12385else
5213506e
RW
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
e8b05380
PB
12388fi
12389
5213506e 12390
e8b05380
PB
12391fi
12392if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12393
12394
12395if test -n "$RANLIB_FOR_TARGET"; then
12396 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12397elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12398 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12399fi
12400
12401if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12402 for ncn_progname in ranlib; do
12403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12404set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406$as_echo_n "checking for $ac_word... " >&6; }
12407if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12408 $as_echo_n "(cached) " >&6
278a7a38
AO
12409else
12410 if test -n "$RANLIB_FOR_TARGET"; then
12411 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12412else
12413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414for as_dir in $PATH
12415do
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
5213506e
RW
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12420 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12422 break 2
12423 fi
12424done
5213506e
RW
12425 done
12426IFS=$as_save_IFS
278a7a38
AO
12427
12428fi
12429fi
12430RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12431if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12433$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12434else
5213506e
RW
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436$as_echo "no" >&6; }
278a7a38
AO
12437fi
12438
5213506e 12439
278a7a38
AO
12440 done
12441fi
12442
12443if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12444 for ncn_progname in ranlib; do
5213506e
RW
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12446$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12447 if test -x $with_build_time_tools/${ncn_progname}; then
12448 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12450$as_echo "yes" >&6; }
e8b05380
PB
12451 break
12452 else
5213506e
RW
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12454$as_echo "no" >&6; }
e8b05380
PB
12455 fi
12456 done
12457fi
12458
12459if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12460 for ncn_progname in ranlib; do
12461 if test -n "$ncn_target_tool_prefix"; then
12462 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12463set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465$as_echo_n "checking for $ac_word... " >&6; }
12466if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12467 $as_echo_n "(cached) " >&6
ca9f4b81 12468else
4de997d1
PB
12469 if test -n "$RANLIB_FOR_TARGET"; then
12470 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12471else
1c710c3c
DJ
12472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473for as_dir in $PATH
12474do
12475 IFS=$as_save_IFS
12476 test -z "$as_dir" && as_dir=.
5213506e
RW
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12479 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12481 break 2
12482 fi
12483done
5213506e
RW
12484 done
12485IFS=$as_save_IFS
1c710c3c 12486
ca9f4b81
AO
12487fi
12488fi
1c710c3c 12489RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12490if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12492$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12493else
5213506e
RW
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12495$as_echo "no" >&6; }
ca9f4b81
AO
12496fi
12497
5213506e 12498
e8b05380
PB
12499 fi
12500 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12502set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12504$as_echo_n "checking for $ac_word... " >&6; }
12505if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12506 $as_echo_n "(cached) " >&6
ca9f4b81 12507else
2693c0b0
PB
12508 if test -n "$RANLIB_FOR_TARGET"; then
12509 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12510else
1c710c3c
DJ
12511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512for as_dir in $PATH
12513do
12514 IFS=$as_save_IFS
12515 test -z "$as_dir" && as_dir=.
5213506e
RW
12516 for ac_exec_ext in '' $ac_executable_extensions; do
12517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12518 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12520 break 2
12521 fi
12522done
5213506e
RW
12523 done
12524IFS=$as_save_IFS
1c710c3c 12525
ca9f4b81
AO
12526fi
12527fi
1c710c3c 12528RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12529if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12531$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12532else
5213506e
RW
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534$as_echo "no" >&6; }
ca9f4b81 12535fi
1c710c3c 12536
5213506e 12537
e8b05380
PB
12538 fi
12539 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12540 done
12541fi
1c710c3c 12542
e8b05380
PB
12543if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12544 set dummy ranlib
12545 if test $build = $target ; then
12546 RANLIB_FOR_TARGET="$2"
12547 else
12548 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12549 fi
1c00b503
PB
12550else
12551 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12552fi
2693c0b0 12553
d1f8db0c
PB
12554else
12555 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12556fi
12557
e8b05380
PB
12558
12559
12560
12561if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12562 if test -n "$with_build_time_tools"; then
5213506e
RW
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12564$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12565 if test -x $with_build_time_tools/strip; then
12566 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12567 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12569$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12570 else
5213506e
RW
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12572$as_echo "no" >&6; }
d1f8db0c 12573 fi
e8b05380
PB
12574 elif test $build != $host && test $have_gcc_for_target = yes; then
12575 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12576 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12577 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12578 fi
12579fi
3e19841a 12580if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12581 # Extract the first word of "strip", so it can be a program name with args.
12582set dummy strip; ac_word=$2
5213506e
RW
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584$as_echo_n "checking for $ac_word... " >&6; }
12585if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
e8b05380 12587else
1c710c3c
DJ
12588 case $STRIP_FOR_TARGET in
12589 [\\/]* | ?:[\\/]*)
e8b05380
PB
12590 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12591 ;;
e8b05380 12592 *)
1c710c3c
DJ
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594for as_dir in $gcc_cv_tool_dirs
12595do
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
5213506e
RW
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12600 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12602 break 2
12603 fi
12604done
5213506e
RW
12605 done
12606IFS=$as_save_IFS
1c710c3c 12607
e8b05380
PB
12608 ;;
12609esac
12610fi
1c710c3c 12611STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12612if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12614$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12615else
5213506e
RW
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617$as_echo "no" >&6; }
e8b05380
PB
12618fi
12619
5213506e 12620
e8b05380
PB
12621fi
12622if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12623
12624
12625if test -n "$STRIP_FOR_TARGET"; then
12626 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12627elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12628 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12629fi
12630
12631if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12632 for ncn_progname in strip; do
12633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12634set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636$as_echo_n "checking for $ac_word... " >&6; }
12637if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12638 $as_echo_n "(cached) " >&6
278a7a38
AO
12639else
12640 if test -n "$STRIP_FOR_TARGET"; then
12641 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12642else
12643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644for as_dir in $PATH
12645do
12646 IFS=$as_save_IFS
12647 test -z "$as_dir" && as_dir=.
5213506e
RW
12648 for ac_exec_ext in '' $ac_executable_extensions; do
12649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12650 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12652 break 2
12653 fi
12654done
5213506e
RW
12655 done
12656IFS=$as_save_IFS
278a7a38
AO
12657
12658fi
12659fi
12660STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12661if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12663$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12664else
5213506e
RW
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666$as_echo "no" >&6; }
278a7a38
AO
12667fi
12668
5213506e 12669
278a7a38
AO
12670 done
12671fi
12672
12673if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12674 for ncn_progname in strip; do
5213506e
RW
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12676$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12677 if test -x $with_build_time_tools/${ncn_progname}; then
12678 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12680$as_echo "yes" >&6; }
e8b05380
PB
12681 break
12682 else
5213506e
RW
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12684$as_echo "no" >&6; }
e8b05380
PB
12685 fi
12686 done
12687fi
12688
12689if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12690 for ncn_progname in strip; do
12691 if test -n "$ncn_target_tool_prefix"; then
12692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12693set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12695$as_echo_n "checking for $ac_word... " >&6; }
12696if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12697 $as_echo_n "(cached) " >&6
af71363e
AS
12698else
12699 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12700 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12701else
12702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703for as_dir in $PATH
12704do
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
5213506e
RW
12707 for ac_exec_ext in '' $ac_executable_extensions; do
12708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12709 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12711 break 2
12712 fi
12713done
5213506e
RW
12714 done
12715IFS=$as_save_IFS
1c710c3c 12716
040b1c5a
GK
12717fi
12718fi
1c710c3c 12719STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12720if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12722$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12723else
5213506e
RW
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12725$as_echo "no" >&6; }
040b1c5a
GK
12726fi
12727
5213506e 12728
e8b05380
PB
12729 fi
12730 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12732set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734$as_echo_n "checking for $ac_word... " >&6; }
12735if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
040b1c5a
GK
12737else
12738 if test -n "$STRIP_FOR_TARGET"; then
12739 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12740else
1c710c3c
DJ
12741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742for as_dir in $PATH
12743do
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
5213506e
RW
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12748 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12750 break 2
12751 fi
12752done
5213506e
RW
12753 done
12754IFS=$as_save_IFS
1c710c3c 12755
040b1c5a
GK
12756fi
12757fi
1c710c3c 12758STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12759if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12761$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12762else
5213506e
RW
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764$as_echo "no" >&6; }
040b1c5a 12765fi
1c710c3c 12766
5213506e 12767
e8b05380
PB
12768 fi
12769 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12770 done
12771fi
1c710c3c 12772
040b1c5a
GK
12773if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12774 set dummy strip
12775 if test $build = $target ; then
12776 STRIP_FOR_TARGET="$2"
12777 else
12778 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12779 fi
1c00b503
PB
12780else
12781 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
12782fi
12783
d1f8db0c
PB
12784else
12785 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
12786fi
12787
12788
12789
12790
12791if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12792 if test -n "$with_build_time_tools"; then
5213506e
RW
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12794$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12795 if test -x $with_build_time_tools/windres; then
12796 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12797 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12799$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 12800 else
5213506e
RW
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802$as_echo "no" >&6; }
d1f8db0c 12803 fi
e8b05380
PB
12804 elif test $build != $host && test $have_gcc_for_target = yes; then
12805 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
12806 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12807 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
12808 fi
12809fi
3e19841a 12810if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12811 # Extract the first word of "windres", so it can be a program name with args.
12812set dummy windres; ac_word=$2
5213506e
RW
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814$as_echo_n "checking for $ac_word... " >&6; }
12815if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
e8b05380 12817else
1c710c3c
DJ
12818 case $WINDRES_FOR_TARGET in
12819 [\\/]* | ?:[\\/]*)
e8b05380
PB
12820 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12821 ;;
e8b05380 12822 *)
1c710c3c
DJ
12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824for as_dir in $gcc_cv_tool_dirs
12825do
12826 IFS=$as_save_IFS
12827 test -z "$as_dir" && as_dir=.
5213506e
RW
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12830 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12832 break 2
12833 fi
12834done
5213506e
RW
12835 done
12836IFS=$as_save_IFS
1c710c3c 12837
e8b05380
PB
12838 ;;
12839esac
12840fi
1c710c3c 12841WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 12842if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12844$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 12845else
5213506e
RW
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847$as_echo "no" >&6; }
e8b05380
PB
12848fi
12849
5213506e 12850
e8b05380
PB
12851fi
12852if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
12853
12854
12855if test -n "$WINDRES_FOR_TARGET"; then
12856 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12857elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12858 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12859fi
12860
12861if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12862 for ncn_progname in windres; do
12863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12864set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12866$as_echo_n "checking for $ac_word... " >&6; }
12867if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12868 $as_echo_n "(cached) " >&6
278a7a38
AO
12869else
12870 if test -n "$WINDRES_FOR_TARGET"; then
12871 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12872else
12873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12874for as_dir in $PATH
12875do
12876 IFS=$as_save_IFS
12877 test -z "$as_dir" && as_dir=.
5213506e
RW
12878 for ac_exec_ext in '' $ac_executable_extensions; do
12879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12880 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12882 break 2
12883 fi
12884done
5213506e
RW
12885 done
12886IFS=$as_save_IFS
278a7a38
AO
12887
12888fi
12889fi
12890WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12891if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12893$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 12894else
5213506e
RW
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896$as_echo "no" >&6; }
278a7a38
AO
12897fi
12898
5213506e 12899
278a7a38
AO
12900 done
12901fi
12902
12903if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12904 for ncn_progname in windres; do
5213506e
RW
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12906$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12907 if test -x $with_build_time_tools/${ncn_progname}; then
12908 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910$as_echo "yes" >&6; }
e8b05380
PB
12911 break
12912 else
5213506e
RW
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12914$as_echo "no" >&6; }
e8b05380
PB
12915 fi
12916 done
12917fi
12918
12919if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12920 for ncn_progname in windres; do
12921 if test -n "$ncn_target_tool_prefix"; then
12922 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12923set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12925$as_echo_n "checking for $ac_word... " >&6; }
12926if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12927 $as_echo_n "(cached) " >&6
ca9f4b81 12928else
4de997d1
PB
12929 if test -n "$WINDRES_FOR_TARGET"; then
12930 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12931else
1c710c3c
DJ
12932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12933for as_dir in $PATH
12934do
12935 IFS=$as_save_IFS
12936 test -z "$as_dir" && as_dir=.
5213506e
RW
12937 for ac_exec_ext in '' $ac_executable_extensions; do
12938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12939 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12941 break 2
12942 fi
12943done
5213506e
RW
12944 done
12945IFS=$as_save_IFS
1c710c3c 12946
ca9f4b81
AO
12947fi
12948fi
1c710c3c 12949WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 12950if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12952$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12953else
5213506e
RW
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12955$as_echo "no" >&6; }
ca9f4b81
AO
12956fi
12957
5213506e 12958
e8b05380
PB
12959 fi
12960 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12961 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12962set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12964$as_echo_n "checking for $ac_word... " >&6; }
12965if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
ca9f4b81 12967else
2693c0b0
PB
12968 if test -n "$WINDRES_FOR_TARGET"; then
12969 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12970else
1c710c3c
DJ
12971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12972for as_dir in $PATH
12973do
12974 IFS=$as_save_IFS
12975 test -z "$as_dir" && as_dir=.
5213506e
RW
12976 for ac_exec_ext in '' $ac_executable_extensions; do
12977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12978 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12980 break 2
12981 fi
12982done
5213506e
RW
12983 done
12984IFS=$as_save_IFS
1c710c3c 12985
ca9f4b81
AO
12986fi
12987fi
1c710c3c 12988WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 12989if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12991$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12992else
5213506e
RW
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994$as_echo "no" >&6; }
ca9f4b81 12995fi
1c710c3c 12996
5213506e 12997
e8b05380
PB
12998 fi
12999 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13000 done
13001fi
1c710c3c 13002
2693c0b0
PB
13003if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13004 set dummy windres
13005 if test $build = $target ; then
13006 WINDRES_FOR_TARGET="$2"
ca9f4b81 13007 else
2693c0b0 13008 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 13009 fi
1c00b503
PB
13010else
13011 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
13012fi
13013
d1f8db0c
PB
13014else
13015 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
13016fi
13017
4977bab6 13018
901119ae
KT
13019
13020
13021if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13022 if test -n "$with_build_time_tools"; then
5213506e
RW
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13024$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
13025 if test -x $with_build_time_tools/windmc; then
13026 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13027 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13029$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 13030 else
5213506e
RW
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13032$as_echo "no" >&6; }
901119ae
KT
13033 fi
13034 elif test $build != $host && test $have_gcc_for_target = yes; then
13035 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
13036 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13037 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
13038 fi
13039fi
13040if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13041 # Extract the first word of "windmc", so it can be a program name with args.
13042set dummy windmc; ac_word=$2
5213506e
RW
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044$as_echo_n "checking for $ac_word... " >&6; }
13045if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
901119ae
KT
13047else
13048 case $WINDMC_FOR_TARGET in
13049 [\\/]* | ?:[\\/]*)
13050 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13051 ;;
13052 *)
13053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13054for as_dir in $gcc_cv_tool_dirs
13055do
13056 IFS=$as_save_IFS
13057 test -z "$as_dir" && as_dir=.
5213506e
RW
13058 for ac_exec_ext in '' $ac_executable_extensions; do
13059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13060 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 13061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13062 break 2
13063 fi
13064done
5213506e
RW
13065 done
13066IFS=$as_save_IFS
901119ae
KT
13067
13068 ;;
13069esac
13070fi
13071WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 13072if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13074$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13075else
5213506e
RW
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077$as_echo "no" >&6; }
901119ae
KT
13078fi
13079
5213506e 13080
901119ae
KT
13081fi
13082if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13083
13084
13085if test -n "$WINDMC_FOR_TARGET"; then
13086 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13087elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13088 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13089fi
13090
13091if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13092 for ncn_progname in windmc; do
13093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13094set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096$as_echo_n "checking for $ac_word... " >&6; }
13097if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13098 $as_echo_n "(cached) " >&6
901119ae
KT
13099else
13100 if test -n "$WINDMC_FOR_TARGET"; then
13101 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13102else
13103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104for as_dir in $PATH
13105do
13106 IFS=$as_save_IFS
13107 test -z "$as_dir" && as_dir=.
5213506e
RW
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13110 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13112 break 2
13113 fi
13114done
5213506e
RW
13115 done
13116IFS=$as_save_IFS
901119ae
KT
13117
13118fi
13119fi
13120WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13121if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13123$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13124else
5213506e
RW
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126$as_echo "no" >&6; }
901119ae
KT
13127fi
13128
5213506e 13129
901119ae
KT
13130 done
13131fi
13132
13133if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13134 for ncn_progname in windmc; do
5213506e
RW
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13136$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13137 if test -x $with_build_time_tools/${ncn_progname}; then
13138 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13140$as_echo "yes" >&6; }
901119ae
KT
13141 break
13142 else
5213506e
RW
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13144$as_echo "no" >&6; }
901119ae
KT
13145 fi
13146 done
13147fi
13148
13149if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13150 for ncn_progname in windmc; do
13151 if test -n "$ncn_target_tool_prefix"; then
13152 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13153set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13155$as_echo_n "checking for $ac_word... " >&6; }
13156if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13157 $as_echo_n "(cached) " >&6
901119ae
KT
13158else
13159 if test -n "$WINDMC_FOR_TARGET"; then
13160 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13161else
13162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163for as_dir in $PATH
13164do
13165 IFS=$as_save_IFS
13166 test -z "$as_dir" && as_dir=.
5213506e
RW
13167 for ac_exec_ext in '' $ac_executable_extensions; do
13168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13169 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13171 break 2
13172 fi
13173done
5213506e
RW
13174 done
13175IFS=$as_save_IFS
901119ae
KT
13176
13177fi
13178fi
13179WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13180if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13182$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13183else
5213506e
RW
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185$as_echo "no" >&6; }
901119ae
KT
13186fi
13187
5213506e 13188
901119ae
KT
13189 fi
13190 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13192set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194$as_echo_n "checking for $ac_word... " >&6; }
13195if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13196 $as_echo_n "(cached) " >&6
901119ae
KT
13197else
13198 if test -n "$WINDMC_FOR_TARGET"; then
13199 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13200else
13201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202for as_dir in $PATH
13203do
13204 IFS=$as_save_IFS
13205 test -z "$as_dir" && as_dir=.
5213506e
RW
13206 for ac_exec_ext in '' $ac_executable_extensions; do
13207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13208 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13210 break 2
13211 fi
13212done
5213506e
RW
13213 done
13214IFS=$as_save_IFS
901119ae
KT
13215
13216fi
13217fi
13218WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13219if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13221$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13222else
5213506e
RW
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224$as_echo "no" >&6; }
901119ae
KT
13225fi
13226
5213506e 13227
901119ae
KT
13228 fi
13229 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13230 done
13231fi
13232
13233if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13234 set dummy windmc
13235 if test $build = $target ; then
13236 WINDMC_FOR_TARGET="$2"
13237 else
13238 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13239 fi
1c00b503
PB
13240else
13241 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13242fi
13243
13244else
13245 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13246fi
13247
13248
2abefe3d
PB
13249RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13250
5213506e
RW
13251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13252$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13253if test "x${build}" != "x${host}" ; then
e8b05380
PB
13254 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13255 # We already found the complete path
172e41aa 13256 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13258$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13259 else
13260 # Canadian cross, just use what we found
5213506e
RW
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13262$as_echo "pre-installed" >&6; }
e8b05380 13263 fi
2abefe3d
PB
13264else
13265 ok=yes
13266 case " ${configdirs} " in
13267 *" binutils "*) ;;
13268 *) ok=no ;;
13269 esac
1c710c3c 13270
2abefe3d
PB
13271 if test $ok = yes; then
13272 # An in-tree tool is available and we can use it
13273 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13275$as_echo "just compiled" >&6; }
e8b05380
PB
13276 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13277 # We already found the complete path
172e41aa 13278 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13280$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13281 elif test "x$target" = "x$host"; then
13282 # We can use an host tool
13283 AR_FOR_TARGET='$(AR)'
5213506e
RW
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13285$as_echo "host tool" >&6; }
2abefe3d
PB
13286 else
13287 # We need a cross tool
5213506e
RW
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13289$as_echo "pre-installed" >&6; }
2abefe3d
PB
13290 fi
13291fi
0b0dc272 13292
5213506e
RW
13293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13294$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13295if test "x${build}" != "x${host}" ; then
e8b05380
PB
13296 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13297 # We already found the complete path
172e41aa 13298 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13300$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13301 else
13302 # Canadian cross, just use what we found
5213506e
RW
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13304$as_echo "pre-installed" >&6; }
e8b05380 13305 fi
2abefe3d
PB
13306else
13307 ok=yes
13308 case " ${configdirs} " in
13309 *" gas "*) ;;
13310 *) ok=no ;;
13311 esac
1c710c3c 13312
2abefe3d
PB
13313 if test $ok = yes; then
13314 # An in-tree tool is available and we can use it
13315 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13317$as_echo "just compiled" >&6; }
e8b05380
PB
13318 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13319 # We already found the complete path
172e41aa 13320 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13322$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13323 elif test "x$target" = "x$host"; then
13324 # We can use an host tool
13325 AS_FOR_TARGET='$(AS)'
5213506e
RW
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13327$as_echo "host tool" >&6; }
2abefe3d
PB
13328 else
13329 # We need a cross tool
5213506e
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13331$as_echo "pre-installed" >&6; }
2abefe3d
PB
13332 fi
13333fi
0b0dc272 13334
5213506e
RW
13335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13336$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13337if test "x${build}" != "x${host}" ; then
e8b05380
PB
13338 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13339 # We already found the complete path
172e41aa 13340 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13342$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13343 else
13344 # Canadian cross, just use what we found
5213506e
RW
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13346$as_echo "pre-installed" >&6; }
e8b05380 13347 fi
2abefe3d
PB
13348else
13349 ok=yes
13350 case " ${configdirs} " in
13351 *" gcc "*) ;;
13352 *) ok=no ;;
13353 esac
1c710c3c 13354
2abefe3d
PB
13355 if test $ok = yes; then
13356 # An in-tree tool is available and we can use it
13357 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13359$as_echo "just compiled" >&6; }
e8b05380
PB
13360 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13361 # We already found the complete path
172e41aa 13362 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13364$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13365 elif test "x$target" = "x$host"; then
13366 # We can use an host tool
13367 CC_FOR_TARGET='$(CC)'
5213506e
RW
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13369$as_echo "host tool" >&6; }
2abefe3d
PB
13370 else
13371 # We need a cross tool
5213506e
RW
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13373$as_echo "pre-installed" >&6; }
2abefe3d
PB
13374 fi
13375fi
0b0dc272 13376
5213506e
RW
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13378$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13379if test "x${build}" != "x${host}" ; then
e8b05380
PB
13380 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13381 # We already found the complete path
172e41aa 13382 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13384$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13385 else
13386 # Canadian cross, just use what we found
5213506e
RW
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13388$as_echo "pre-installed" >&6; }
e8b05380 13389 fi
2abefe3d
PB
13390else
13391 ok=yes
13392 case " ${configdirs} " in
13393 *" gcc "*) ;;
13394 *) ok=no ;;
13395 esac
13396 case ,${enable_languages}, in
13397 *,c++,*) ;;
13398 *) ok=no ;;
13399 esac
13400 if test $ok = yes; then
13401 # An in-tree tool is available and we can use it
9aff220f 13402 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -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'
5213506e
RW
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13404$as_echo "just compiled" >&6; }
e8b05380
PB
13405 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13406 # We already found the complete path
172e41aa 13407 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13409$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13410 elif test "x$target" = "x$host"; then
13411 # We can use an host tool
13412 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13414$as_echo "host tool" >&6; }
2abefe3d
PB
13415 else
13416 # We need a cross tool
5213506e
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13418$as_echo "pre-installed" >&6; }
2abefe3d
PB
13419 fi
13420fi
0b0dc272 13421
5213506e
RW
13422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13423$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13424if test "x${build}" != "x${host}" ; then
e8b05380
PB
13425 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13426 # We already found the complete path
172e41aa 13427 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13429$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13430 else
13431 # Canadian cross, just use what we found
5213506e
RW
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13433$as_echo "pre-installed" >&6; }
e8b05380 13434 fi
2abefe3d
PB
13435else
13436 ok=yes
13437 case " ${configdirs} " in
13438 *" gcc "*) ;;
13439 *) ok=no ;;
13440 esac
13441 case ,${enable_languages}, in
13442 *,c++,*) ;;
13443 *) ok=no ;;
13444 esac
13445 if test $ok = yes; then
13446 # An in-tree tool is available and we can use it
13447 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'
5213506e
RW
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13449$as_echo "just compiled" >&6; }
e8b05380
PB
13450 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13451 # We already found the complete path
172e41aa 13452 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13454$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13455 elif test "x$target" = "x$host"; then
13456 # We can use an host tool
13457 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13459$as_echo "host tool" >&6; }
2abefe3d
PB
13460 else
13461 # We need a cross tool
5213506e
RW
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13463$as_echo "pre-installed" >&6; }
2abefe3d
PB
13464 fi
13465fi
0b0dc272 13466
5213506e
RW
13467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13468$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13469if test "x${build}" != "x${host}" ; then
e8b05380
PB
13470 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13471 # We already found the complete path
172e41aa 13472 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13474$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13475 else
13476 # Canadian cross, just use what we found
5213506e
RW
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13478$as_echo "pre-installed" >&6; }
e8b05380 13479 fi
2abefe3d
PB
13480else
13481 ok=yes
13482 case " ${configdirs} " in
13483 *" binutils "*) ;;
13484 *) ok=no ;;
13485 esac
1c710c3c 13486
2abefe3d
PB
13487 if test $ok = yes; then
13488 # An in-tree tool is available and we can use it
13489 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13491$as_echo "just compiled" >&6; }
e8b05380
PB
13492 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13493 # We already found the complete path
172e41aa 13494 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13496$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13497 elif test "x$target" = "x$host"; then
13498 # We can use an host tool
13499 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13501$as_echo "host tool" >&6; }
2abefe3d
PB
13502 else
13503 # We need a cross tool
5213506e
RW
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13505$as_echo "pre-installed" >&6; }
2abefe3d
PB
13506 fi
13507fi
0b0dc272 13508
5213506e
RW
13509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13510$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13511if test "x${build}" != "x${host}" ; then
e8b05380
PB
13512 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13513 # We already found the complete path
172e41aa 13514 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13516$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13517 else
13518 # Canadian cross, just use what we found
5213506e
RW
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13520$as_echo "pre-installed" >&6; }
e8b05380 13521 fi
2abefe3d
PB
13522else
13523 ok=yes
13524 case " ${configdirs} " in
13525 *" gcc "*) ;;
13526 *) ok=no ;;
13527 esac
1c710c3c 13528
2abefe3d
PB
13529 if test $ok = yes; then
13530 # An in-tree tool is available and we can use it
13531 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13533$as_echo "just compiled" >&6; }
e8b05380
PB
13534 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13535 # We already found the complete path
172e41aa 13536 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13538$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13539 elif test "x$target" = "x$host"; then
13540 # We can use an host tool
13541 GCC_FOR_TARGET='$()'
5213506e
RW
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13543$as_echo "host tool" >&6; }
2abefe3d
PB
13544 else
13545 # We need a cross tool
5213506e
RW
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13547$as_echo "pre-installed" >&6; }
2abefe3d
PB
13548 fi
13549fi
0b0dc272 13550
5213506e
RW
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13552$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13553if test "x${build}" != "x${host}" ; then
e8b05380
PB
13554 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13555 # We already found the complete path
172e41aa 13556 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13558$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13559 else
13560 # Canadian cross, just use what we found
5213506e
RW
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13562$as_echo "pre-installed" >&6; }
e8b05380 13563 fi
2abefe3d
PB
13564else
13565 ok=yes
13566 case " ${configdirs} " in
13567 *" gcc "*) ;;
13568 *) ok=no ;;
13569 esac
13570 case ,${enable_languages}, in
13571 *,java,*) ;;
13572 *) ok=no ;;
13573 esac
13574 if test $ok = yes; then
13575 # An in-tree tool is available and we can use it
13576 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13578$as_echo "just compiled" >&6; }
e8b05380
PB
13579 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13580 # We already found the complete path
172e41aa 13581 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13583$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13584 elif test "x$target" = "x$host"; then
13585 # We can use an host tool
13586 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13588$as_echo "host tool" >&6; }
2abefe3d
PB
13589 else
13590 # We need a cross tool
5213506e
RW
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13592$as_echo "pre-installed" >&6; }
2abefe3d
PB
13593 fi
13594fi
0b0dc272 13595
5213506e
RW
13596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13597$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13598if test "x${build}" != "x${host}" ; then
e8b05380
PB
13599 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13600 # We already found the complete path
172e41aa 13601 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13603$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13604 else
13605 # Canadian cross, just use what we found
5213506e
RW
13606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13607$as_echo "pre-installed" >&6; }
e8b05380 13608 fi
2abefe3d
PB
13609else
13610 ok=yes
13611 case " ${configdirs} " in
13612 *" gcc "*) ;;
13613 *) ok=no ;;
13614 esac
13615 case ,${enable_languages}, in
13616 *,fortran,*) ;;
13617 *) ok=no ;;
13618 esac
13619 if test $ok = yes; then
13620 # An in-tree tool is available and we can use it
13621 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13623$as_echo "just compiled" >&6; }
e8b05380
PB
13624 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13625 # We already found the complete path
172e41aa 13626 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13628$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13629 elif test "x$target" = "x$host"; then
13630 # We can use an host tool
13631 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13633$as_echo "host tool" >&6; }
2abefe3d
PB
13634 else
13635 # We need a cross tool
5213506e
RW
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13637$as_echo "pre-installed" >&6; }
2abefe3d
PB
13638 fi
13639fi
0b0dc272 13640
632e2a07
ILT
13641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13642$as_echo_n "checking where to find the target gccgo... " >&6; }
13643if test "x${build}" != "x${host}" ; then
13644 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13645 # We already found the complete path
13646 ac_dir=`dirname $GOC_FOR_TARGET`
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13648$as_echo "pre-installed in $ac_dir" >&6; }
13649 else
13650 # Canadian cross, just use what we found
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13652$as_echo "pre-installed" >&6; }
13653 fi
13654else
13655 ok=yes
13656 case " ${configdirs} " in
13657 *" gcc "*) ;;
13658 *) ok=no ;;
13659 esac
13660 case ,${enable_languages}, in
13661 *,go,*) ;;
13662 *) ok=no ;;
13663 esac
13664 if test $ok = yes; then
13665 # An in-tree tool is available and we can use it
13666 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13668$as_echo "just compiled" >&6; }
13669 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13670 # We already found the complete path
13671 ac_dir=`dirname $GOC_FOR_TARGET`
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13673$as_echo "pre-installed in $ac_dir" >&6; }
13674 elif test "x$target" = "x$host"; then
13675 # We can use an host tool
13676 GOC_FOR_TARGET='$(GOC)'
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13678$as_echo "host tool" >&6; }
13679 else
13680 # We need a cross tool
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13682$as_echo "pre-installed" >&6; }
13683 fi
13684fi
13685
5213506e
RW
13686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13687$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13688if test "x${build}" != "x${host}" ; then
e8b05380
PB
13689 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13690 # We already found the complete path
172e41aa 13691 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13693$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13694 else
13695 # Canadian cross, just use what we found
5213506e
RW
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13697$as_echo "pre-installed" >&6; }
e8b05380 13698 fi
2abefe3d
PB
13699else
13700 ok=yes
13701 case " ${configdirs} " in
13702 *" ld "*) ;;
13703 *) ok=no ;;
13704 esac
1c710c3c 13705
2abefe3d
PB
13706 if test $ok = yes; then
13707 # An in-tree tool is available and we can use it
13708 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13710$as_echo "just compiled" >&6; }
e8b05380
PB
13711 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13712 # We already found the complete path
172e41aa 13713 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13715$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13716 elif test "x$target" = "x$host"; then
13717 # We can use an host tool
13718 LD_FOR_TARGET='$(LD)'
5213506e
RW
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13720$as_echo "host tool" >&6; }
2abefe3d
PB
13721 else
13722 # We need a cross tool
5213506e
RW
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13724$as_echo "pre-installed" >&6; }
2abefe3d
PB
13725 fi
13726fi
0b0dc272 13727
5213506e
RW
13728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13729$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13730if test "x${build}" != "x${host}" ; then
e8b05380
PB
13731 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13732 # We already found the complete path
172e41aa 13733 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13735$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13736 else
13737 # Canadian cross, just use what we found
5213506e
RW
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13739$as_echo "pre-installed" >&6; }
e8b05380 13740 fi
2abefe3d 13741else
e8b05380
PB
13742 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13743 # We already found the complete path
172e41aa 13744 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13746$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 13747 elif test "x$target" = "x$host"; then
2abefe3d
PB
13748 # We can use an host tool
13749 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13751$as_echo "host tool" >&6; }
2abefe3d
PB
13752 else
13753 # We need a cross tool
5213506e
RW
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13755$as_echo "pre-installed" >&6; }
2abefe3d
PB
13756 fi
13757fi
0b0dc272 13758
5213506e
RW
13759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13760$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 13761if test "x${build}" != "x${host}" ; then
e8b05380
PB
13762 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13763 # We already found the complete path
172e41aa 13764 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13766$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13767 else
13768 # Canadian cross, just use what we found
5213506e
RW
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13770$as_echo "pre-installed" >&6; }
e8b05380 13771 fi
2abefe3d
PB
13772else
13773 ok=yes
13774 case " ${configdirs} " in
13775 *" binutils "*) ;;
13776 *) ok=no ;;
13777 esac
1c710c3c 13778
2abefe3d
PB
13779 if test $ok = yes; then
13780 # An in-tree tool is available and we can use it
13781 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13783$as_echo "just compiled" >&6; }
e8b05380
PB
13784 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13785 # We already found the complete path
172e41aa 13786 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13788$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13789 elif test "x$target" = "x$host"; then
13790 # We can use an host tool
13791 NM_FOR_TARGET='$(NM)'
5213506e
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13793$as_echo "host tool" >&6; }
2abefe3d
PB
13794 else
13795 # We need a cross tool
5213506e
RW
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13797$as_echo "pre-installed" >&6; }
2abefe3d
PB
13798 fi
13799fi
0b0dc272 13800
5213506e
RW
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13802$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 13803if test "x${build}" != "x${host}" ; then
e8b05380
PB
13804 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13805 # We already found the complete path
172e41aa 13806 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13808$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13809 else
13810 # Canadian cross, just use what we found
5213506e
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13812$as_echo "pre-installed" >&6; }
e8b05380 13813 fi
2abefe3d
PB
13814else
13815 ok=yes
13816 case " ${configdirs} " in
13817 *" binutils "*) ;;
13818 *) ok=no ;;
13819 esac
1c710c3c 13820
2abefe3d
PB
13821 if test $ok = yes; then
13822 # An in-tree tool is available and we can use it
13823 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13825$as_echo "just compiled" >&6; }
e8b05380
PB
13826 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13827 # We already found the complete path
172e41aa 13828 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13830$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13831 elif test "x$target" = "x$host"; then
13832 # We can use an host tool
13833 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13835$as_echo "host tool" >&6; }
2abefe3d
PB
13836 else
13837 # We need a cross tool
5213506e
RW
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13839$as_echo "pre-installed" >&6; }
2abefe3d
PB
13840 fi
13841fi
0b0dc272 13842
5213506e
RW
13843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13844$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 13845if test "x${build}" != "x${host}" ; then
e8b05380
PB
13846 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13847 # We already found the complete path
172e41aa 13848 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13850$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13851 else
13852 # Canadian cross, just use what we found
5213506e
RW
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13854$as_echo "pre-installed" >&6; }
e8b05380 13855 fi
2abefe3d
PB
13856else
13857 ok=yes
13858 case " ${configdirs} " in
13859 *" binutils "*) ;;
13860 *) ok=no ;;
13861 esac
1c710c3c 13862
2abefe3d
PB
13863 if test $ok = yes; then
13864 # An in-tree tool is available and we can use it
13865 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13867$as_echo "just compiled" >&6; }
e8b05380
PB
13868 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13869 # We already found the complete path
172e41aa 13870 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13872$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13873 elif test "x$target" = "x$host"; then
13874 # We can use an host tool
13875 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13877$as_echo "host tool" >&6; }
2abefe3d
PB
13878 else
13879 # We need a cross tool
5213506e
RW
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13881$as_echo "pre-installed" >&6; }
2abefe3d
PB
13882 fi
13883fi
0b0dc272 13884
5213506e
RW
13885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13886$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 13887if test "x${build}" != "x${host}" ; then
e8b05380
PB
13888 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13889 # We already found the complete path
172e41aa 13890 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13892$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13893 else
13894 # Canadian cross, just use what we found
5213506e
RW
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13896$as_echo "pre-installed" >&6; }
e8b05380 13897 fi
2abefe3d
PB
13898else
13899 ok=yes
13900 case " ${configdirs} " in
13901 *" binutils "*) ;;
13902 *) ok=no ;;
13903 esac
1c710c3c 13904
2abefe3d
PB
13905 if test $ok = yes; then
13906 # An in-tree tool is available and we can use it
455c8f48 13907 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13909$as_echo "just compiled" >&6; }
e8b05380
PB
13910 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13911 # We already found the complete path
172e41aa 13912 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13914$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13915 elif test "x$target" = "x$host"; then
13916 # We can use an host tool
13917 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13919$as_echo "host tool" >&6; }
2abefe3d
PB
13920 else
13921 # We need a cross tool
5213506e
RW
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13923$as_echo "pre-installed" >&6; }
2abefe3d
PB
13924 fi
13925fi
0b0dc272 13926
5213506e
RW
13927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13928$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 13929if test "x${build}" != "x${host}" ; then
e8b05380
PB
13930 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13931 # We already found the complete path
172e41aa 13932 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13934$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13935 else
13936 # Canadian cross, just use what we found
5213506e
RW
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13938$as_echo "pre-installed" >&6; }
e8b05380 13939 fi
2abefe3d
PB
13940else
13941 ok=yes
13942 case " ${configdirs} " in
13943 *" binutils "*) ;;
13944 *) ok=no ;;
13945 esac
1c710c3c 13946
2abefe3d
PB
13947 if test $ok = yes; then
13948 # An in-tree tool is available and we can use it
13949 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13951$as_echo "just compiled" >&6; }
e8b05380
PB
13952 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13953 # We already found the complete path
172e41aa 13954 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13956$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13957 elif test "x$target" = "x$host"; then
13958 # We can use an host tool
13959 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13961$as_echo "host tool" >&6; }
2abefe3d
PB
13962 else
13963 # We need a cross tool
5213506e
RW
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13965$as_echo "pre-installed" >&6; }
2abefe3d 13966 fi
671aa708 13967fi
be912515 13968
5213506e
RW
13969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13970$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
13971if test "x${build}" != "x${host}" ; then
13972 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13973 # We already found the complete path
13974 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13976$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13977 else
13978 # Canadian cross, just use what we found
5213506e
RW
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13980$as_echo "pre-installed" >&6; }
901119ae
KT
13981 fi
13982else
13983 ok=yes
13984 case " ${configdirs} " in
13985 *" binutils "*) ;;
13986 *) ok=no ;;
13987 esac
13988
13989 if test $ok = yes; then
13990 # An in-tree tool is available and we can use it
13991 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13993$as_echo "just compiled" >&6; }
901119ae
KT
13994 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13995 # We already found the complete path
13996 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13998$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13999 elif test "x$target" = "x$host"; then
14000 # We can use an host tool
14001 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14003$as_echo "host tool" >&6; }
901119ae
KT
14004 else
14005 # We need a cross tool
5213506e
RW
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14007$as_echo "pre-installed" >&6; }
901119ae
KT
14008 fi
14009fi
14010
be912515
NN
14011
14012
2abefe3d 14013
0b0dc272 14014
671aa708
NN
14015# Certain tools may need extra flags.
14016AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14017RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14018NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14019
2abefe3d
PB
14020# When building target libraries, except in a Canadian cross, we use
14021# the same toolchain as the compiler we just built.
14022COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14023COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14024COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14025if test $host = $build; then
14026 case " $configdirs " in
14027 *" gcc "*)
14028 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14029 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14030 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14031 ;;
14032 esac
14033fi
14034
14035
14036
14037
14038
5213506e
RW
14039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14040$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14041# Check whether --enable-maintainer-mode was given.
14042if test "${enable_maintainer_mode+set}" = set; then :
14043 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
14044else
14045 USE_MAINTAINER_MODE=no
5213506e
RW
14046fi
14047
14048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14049$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
14050
14051
14052if test "$USE_MAINTAINER_MODE" = yes; then
14053 MAINTAINER_MODE_TRUE=
14054 MAINTAINER_MODE_FALSE='#'
14055else
14056 MAINTAINER_MODE_TRUE='#'
14057 MAINTAINER_MODE_FALSE=
1c710c3c 14058fi
ee03dc5e
AO
14059MAINT=$MAINTAINER_MODE_TRUE
14060
2805b53a
NN
14061# ---------------------
14062# GCC bootstrap support
14063# ---------------------
14064
14065# Stage specific cflags for build.
14066stage1_cflags="-g"
14067case $build in
14068 vax-*-*)
14069 case ${GCC} in
14070 yes) stage1_cflags="-g -Wa,-J" ;;
14071 *) stage1_cflags="-g -J" ;;
14072 esac ;;
2805b53a
NN
14073esac
14074
0b50988a 14075# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 14076if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
14077 saved_CFLAGS="$CFLAGS"
14078
14079 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14080 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14082$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
14084/* end confdefs.h. */
14085
9cc1244e
JJ
14086#if (__GNUC__ < 3) \
14087 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14088 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14089#error http://gcc.gnu.org/PR29382
14090#endif
14091
1c710c3c
DJ
14092int
14093main ()
14094{
14095
14096 ;
14097 return 0;
14098}
14099_ACEOF
5213506e
RW
14100if ac_fn_c_try_compile "$LINENO"; then :
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14102$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 14103else
5213506e
RW
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14105$as_echo "no" >&6; }
1c710c3c 14106fi
5213506e 14107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
14108
14109 CFLAGS="$saved_CFLAGS"
14110fi
14111
14112
2805b53a 14113
8efea775 14114# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14115# Check whether --enable-stage1-checking was given.
14116if test "${enable_stage1_checking+set}" = set; then :
14117 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14118else
e643dc23 14119 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14120 stage1_checking=--enable-checking=yes,types
8efea775 14121else
e643dc23 14122 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14123fi
5213506e 14124fi
8efea775
PB
14125
14126
2aeb72e9 14127
5213506e
RW
14128# Enable -Werror in bootstrap stage2 and later.
14129# Check whether --enable-werror was given.
14130if test "${enable_werror+set}" = set; then :
14131 enableval=$enable_werror;
2805b53a 14132else
416cfb5e 14133 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14134 enable_werror=yes
88fceb68
PB
14135else
14136 enable_werror=no
14137fi
5213506e
RW
14138fi
14139
09a9c095
NN
14140case ${enable_werror} in
14141 yes) stage2_werror_flag="--enable-werror-always" ;;
14142 *) stage2_werror_flag="" ;;
2805b53a
NN
14143esac
14144
14145
f2689b09
SE
14146# Specify what files to not compare during bootstrap.
14147
14148compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14149case "$target" in
14150 hppa*64*-*-hpux*) ;;
14151 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14152esac
f61428ed
AO
14153case " $configdirs " in
14154*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14155esac
f2689b09
SE
14156
14157
5213506e
RW
14158ac_config_files="$ac_config_files Makefile"
14159
1c710c3c 14160cat >confcache <<\_ACEOF
671aa708
NN
14161# This file is a shell script that caches the results of configure
14162# tests run on this system so they can be shared between configure
1c710c3c
DJ
14163# scripts and configure runs, see configure's option --config-cache.
14164# It is not useful on other systems. If it contains results you don't
14165# want to keep, you may remove or edit it.
671aa708 14166#
1c710c3c
DJ
14167# config.status only pays attention to the cache file if you give it
14168# the --recheck option to rerun configure.
671aa708 14169#
1c710c3c
DJ
14170# `ac_cv_env_foo' variables (set or unset) will be overridden when
14171# loading this file, other *unset* `ac_cv_foo' will be assigned the
14172# following values.
14173
14174_ACEOF
14175
671aa708
NN
14176# The following way of writing the cache mishandles newlines in values,
14177# but we know of no workaround that is simple, portable, and efficient.
5213506e 14178# So, we kill variables containing newlines.
671aa708
NN
14179# Ultrix sh set writes to stderr and can't be redirected directly,
14180# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14181(
14182 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14183 eval ac_val=\$$ac_var
14184 case $ac_val in #(
14185 *${as_nl}*)
14186 case $ac_var in #(
14187 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14188$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14189 esac
14190 case $ac_var in #(
14191 _ | IFS | as_nl) ;; #(
14192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14193 *) { eval $ac_var=; unset $ac_var;} ;;
14194 esac ;;
14195 esac
14196 done
14197
1c710c3c 14198 (set) 2>&1 |
5213506e
RW
14199 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14200 *${as_nl}ac_space=\ *)
14201 # `set' does not quote correctly, so add quotes: double-quote
14202 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14203 sed -n \
14204 "s/'/'\\\\''/g;
14205 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14206 ;; #(
1c710c3c
DJ
14207 *)
14208 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14210 ;;
5213506e
RW
14211 esac |
14212 sort
14213) |
1c710c3c 14214 sed '
5213506e 14215 /^ac_cv_env_/b end
1c710c3c 14216 t clear
5213506e 14217 :clear
1c710c3c
DJ
14218 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14219 t end
5213506e
RW
14220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14221 :end' >>confcache
14222if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14223 if test -w "$cache_file"; then
14224 test "x$cache_file" != "x/dev/null" &&
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14226$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14227 cat confcache >$cache_file
671aa708 14228 else
5213506e
RW
14229 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14230$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14231 fi
4977bab6 14232fi
671aa708 14233rm -f confcache
79c06341 14234
671aa708
NN
14235test "x$prefix" = xNONE && prefix=$ac_default_prefix
14236# Let make expand exec_prefix.
14237test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14238
671aa708
NN
14239# Transform confdefs.h into DEFS.
14240# Protect against shell expansion while executing Makefile rules.
14241# Protect against Makefile macro expansion.
1c710c3c
DJ
14242#
14243# If the first sed substitution is executed (which looks for macros that
5213506e 14244# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14245# look for a macro that doesn't take arguments.
5213506e
RW
14246ac_script='
14247:mline
14248/\\$/{
14249 N
14250 s,\\\n,,
14251 b mline
14252}
1c710c3c 14253t clear
5213506e
RW
14254:clear
14255s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14256t quote
5213506e 14257s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14258t quote
5213506e
RW
14259b any
14260:quote
14261s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14262s/\[/\\&/g
14263s/\]/\\&/g
14264s/\$/$$/g
14265H
14266:any
14267${
14268 g
14269 s/^\n//
14270 s/\n/ /g
14271 p
14272}
14273'
14274DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14275
14276
14277ac_libobjs=
14278ac_ltlibobjs=
14279for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14280 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14281 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14282 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14283 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14284 # will be set to the directory where LIBOBJS objects are built.
14285 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14286 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14287done
14288LIBOBJS=$ac_libobjs
fb0103e5 14289
1c710c3c 14290LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14291
af71363e 14292
1c710c3c
DJ
14293
14294: ${CONFIG_STATUS=./config.status}
5213506e 14295ac_write_fail=0
1c710c3c
DJ
14296ac_clean_files_save=$ac_clean_files
14297ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14298{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14299$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14300as_write_fail=0
14301cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14302#! $SHELL
14303# Generated by $as_me.
671aa708 14304# Run this file to recreate the current configuration.
671aa708 14305# Compiler output produced by configure, useful for debugging
1c710c3c 14306# configure, is in config.log if it exists.
0b0dc272 14307
1c710c3c
DJ
14308debug=false
14309ac_cs_recheck=false
14310ac_cs_silent=false
1c710c3c 14311
5213506e
RW
14312SHELL=\${CONFIG_SHELL-$SHELL}
14313export SHELL
14314_ASEOF
14315cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14316## -------------------- ##
14317## M4sh Initialization. ##
14318## -------------------- ##
14319
14320# Be more Bourne compatible
14321DUALCASE=1; export DUALCASE # for MKS sh
14322if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14323 emulate sh
14324 NULLCMD=:
5213506e 14325 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14326 # is contrary to our usage. Disable this feature.
14327 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14328 setopt NO_GLOB_SUBST
14329else
14330 case `(set -o) 2>/dev/null` in #(
14331 *posix*) :
14332 set -o posix ;; #(
14333 *) :
14334 ;;
14335esac
1c710c3c 14336fi
1c710c3c 14337
5213506e
RW
14338
14339as_nl='
14340'
14341export as_nl
14342# Printing a long string crashes Solaris 7 /usr/bin/printf.
14343as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14344as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14345as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14346# Prefer a ksh shell builtin over an external printf program on Solaris,
14347# but without wasting forks for bash or zsh.
14348if test -z "$BASH_VERSION$ZSH_VERSION" \
14349 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14350 as_echo='print -r --'
14351 as_echo_n='print -rn --'
14352elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14353 as_echo='printf %s\n'
14354 as_echo_n='printf %s'
14355else
14356 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14357 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14358 as_echo_n='/usr/ucb/echo -n'
14359 else
14360 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14361 as_echo_n_body='eval
14362 arg=$1;
14363 case $arg in #(
14364 *"$as_nl"*)
14365 expr "X$arg" : "X\\(.*\\)$as_nl";
14366 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14367 esac;
14368 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14369 '
14370 export as_echo_n_body
14371 as_echo_n='sh -c $as_echo_n_body as_echo'
14372 fi
14373 export as_echo_body
14374 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14375fi
14376
5213506e
RW
14377# The user is always right.
14378if test "${PATH_SEPARATOR+set}" != set; then
14379 PATH_SEPARATOR=:
14380 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14381 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14382 PATH_SEPARATOR=';'
14383 }
14384fi
14385
14386
14387# IFS
14388# We need space, tab and new line, in precisely that order. Quoting is
14389# there to prevent editors from complaining about space-tab.
14390# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14391# splitting by setting IFS to empty value.)
14392IFS=" "" $as_nl"
14393
14394# Find who we are. Look in the path if we contain no directory separator.
14395case $0 in #((
14396 *[\\/]* ) as_myself=$0 ;;
14397 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14398for as_dir in $PATH
14399do
14400 IFS=$as_save_IFS
14401 test -z "$as_dir" && as_dir=.
14402 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14403 done
14404IFS=$as_save_IFS
14405
14406 ;;
14407esac
14408# We did not find ourselves, most probably we were run as `sh COMMAND'
14409# in which case we are not to be found in the path.
14410if test "x$as_myself" = x; then
14411 as_myself=$0
14412fi
14413if test ! -f "$as_myself"; then
14414 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14415 exit 1
14416fi
1c710c3c 14417
5213506e
RW
14418# Unset variables that we do not need and which cause bugs (e.g. in
14419# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14420# suppresses any "Segmentation fault" message there. '((' could
14421# trigger a bug in pdksh 5.2.14.
14422for as_var in BASH_ENV ENV MAIL MAILPATH
14423do eval test x\${$as_var+set} = xset \
14424 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14425done
1c710c3c
DJ
14426PS1='$ '
14427PS2='> '
14428PS4='+ '
14429
14430# NLS nuisances.
5213506e
RW
14431LC_ALL=C
14432export LC_ALL
14433LANGUAGE=C
14434export LANGUAGE
14435
14436# CDPATH.
14437(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14438
14439
14440# as_fn_error ERROR [LINENO LOG_FD]
14441# ---------------------------------
14442# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14443# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14444# script with status $?, using 1 if that was 0.
14445as_fn_error ()
14446{
14447 as_status=$?; test $as_status -eq 0 && as_status=1
14448 if test "$3"; then
14449 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14450 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14451 fi
5213506e
RW
14452 $as_echo "$as_me: error: $1" >&2
14453 as_fn_exit $as_status
14454} # as_fn_error
14455
14456
14457# as_fn_set_status STATUS
14458# -----------------------
14459# Set $? to STATUS, without forking.
14460as_fn_set_status ()
14461{
14462 return $1
14463} # as_fn_set_status
14464
14465# as_fn_exit STATUS
14466# -----------------
14467# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14468as_fn_exit ()
14469{
14470 set +e
14471 as_fn_set_status $1
14472 exit $1
14473} # as_fn_exit
14474
14475# as_fn_unset VAR
14476# ---------------
14477# Portably unset VAR.
14478as_fn_unset ()
14479{
14480 { eval $1=; unset $1;}
14481}
14482as_unset=as_fn_unset
14483# as_fn_append VAR VALUE
14484# ----------------------
14485# Append the text in VALUE to the end of the definition contained in VAR. Take
14486# advantage of any shell optimizations that allow amortized linear growth over
14487# repeated appends, instead of the typical quadratic growth present in naive
14488# implementations.
14489if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14490 eval 'as_fn_append ()
14491 {
14492 eval $1+=\$2
14493 }'
14494else
14495 as_fn_append ()
14496 {
14497 eval $1=\$$1\$2
14498 }
14499fi # as_fn_append
14500
14501# as_fn_arith ARG...
14502# ------------------
14503# Perform arithmetic evaluation on the ARGs, and store the result in the
14504# global $as_val. Take advantage of shells that can avoid forks. The arguments
14505# must be portable across $(()) and expr.
14506if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14507 eval 'as_fn_arith ()
14508 {
14509 as_val=$(( $* ))
14510 }'
14511else
14512 as_fn_arith ()
14513 {
14514 as_val=`expr "$@" || test $? -eq 1`
14515 }
14516fi # as_fn_arith
14517
1c710c3c 14518
5213506e
RW
14519if expr a : '\(a\)' >/dev/null 2>&1 &&
14520 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14521 as_expr=expr
14522else
14523 as_expr=false
14524fi
14525
5213506e 14526if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14527 as_basename=basename
14528else
14529 as_basename=false
14530fi
14531
5213506e
RW
14532if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14533 as_dirname=dirname
14534else
14535 as_dirname=false
14536fi
1c710c3c 14537
5213506e 14538as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14539$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14540 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14541 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14542$as_echo X/"$0" |
14543 sed '/^.*\/\([^/][^/]*\)\/*$/{
14544 s//\1/
14545 q
14546 }
14547 /^X\/\(\/\/\)$/{
14548 s//\1/
14549 q
14550 }
14551 /^X\/\(\/\).*/{
14552 s//\1/
14553 q
14554 }
14555 s/.*/./; q'`
2aeb72e9 14556
2aeb72e9
DD
14557# Avoid depending upon Character Ranges.
14558as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14559as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14560as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14561as_cr_digits='0123456789'
14562as_cr_alnum=$as_cr_Letters$as_cr_digits
14563
5213506e
RW
14564ECHO_C= ECHO_N= ECHO_T=
14565case `echo -n x` in #(((((
14566-n*)
14567 case `echo 'xy\c'` in
14568 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14569 xy) ECHO_C='\c';;
14570 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14571 ECHO_T=' ';;
14572 esac;;
14573*)
14574 ECHO_N='-n';;
1c710c3c
DJ
14575esac
14576
5213506e
RW
14577rm -f conf$$ conf$$.exe conf$$.file
14578if test -d conf$$.dir; then
14579 rm -f conf$$.dir/conf$$.file
1c710c3c 14580else
5213506e
RW
14581 rm -f conf$$.dir
14582 mkdir conf$$.dir 2>/dev/null
1c710c3c 14583fi
5213506e
RW
14584if (echo >conf$$.file) 2>/dev/null; then
14585 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14586 as_ln_s='ln -s'
5213506e
RW
14587 # ... but there are two gotchas:
14588 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14589 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14590 # In both cases, we have to default to `cp -p'.
14591 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14592 as_ln_s='cp -p'
14593 elif ln conf$$.file conf$$ 2>/dev/null; then
14594 as_ln_s=ln
14595 else
14596 as_ln_s='cp -p'
2aeb72e9 14597 fi
1c710c3c
DJ
14598else
14599 as_ln_s='cp -p'
14600fi
5213506e
RW
14601rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14602rmdir conf$$.dir 2>/dev/null
14603
14604
14605# as_fn_mkdir_p
14606# -------------
14607# Create "$as_dir" as a directory, including parents if necessary.
14608as_fn_mkdir_p ()
14609{
14610
14611 case $as_dir in #(
14612 -*) as_dir=./$as_dir;;
14613 esac
14614 test -d "$as_dir" || eval $as_mkdir_p || {
14615 as_dirs=
14616 while :; do
14617 case $as_dir in #(
14618 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14619 *) as_qdir=$as_dir;;
14620 esac
14621 as_dirs="'$as_qdir' $as_dirs"
14622 as_dir=`$as_dirname -- "$as_dir" ||
14623$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14624 X"$as_dir" : 'X\(//\)[^/]' \| \
14625 X"$as_dir" : 'X\(//\)$' \| \
14626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14627$as_echo X"$as_dir" |
14628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14629 s//\1/
14630 q
14631 }
14632 /^X\(\/\/\)[^/].*/{
14633 s//\1/
14634 q
14635 }
14636 /^X\(\/\/\)$/{
14637 s//\1/
14638 q
14639 }
14640 /^X\(\/\).*/{
14641 s//\1/
14642 q
14643 }
14644 s/.*/./; q'`
14645 test -d "$as_dir" && break
14646 done
14647 test -z "$as_dirs" || eval "mkdir $as_dirs"
14648 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14649
1c710c3c 14650
5213506e 14651} # as_fn_mkdir_p
1c710c3c 14652if mkdir -p . 2>/dev/null; then
5213506e 14653 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14654else
14655 test -d ./-p && rmdir ./-p
14656 as_mkdir_p=false
14657fi
14658
5213506e
RW
14659if test -x / >/dev/null 2>&1; then
14660 as_test_x='test -x'
14661else
14662 if ls -dL / >/dev/null 2>&1; then
14663 as_ls_L_option=L
14664 else
14665 as_ls_L_option=
14666 fi
14667 as_test_x='
14668 eval sh -c '\''
14669 if test -d "$1"; then
14670 test -d "$1/.";
14671 else
14672 case $1 in #(
14673 -*)set "./$1";;
14674 esac;
14675 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14676 ???[sx]*):;;*)false;;esac;fi
14677 '\'' sh
14678 '
14679fi
14680as_executable_p=$as_test_x
1c710c3c
DJ
14681
14682# Sed expression to map a string onto a valid CPP name.
14683as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14684
14685# Sed expression to map a string onto a valid variable name.
14686as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14687
14688
1c710c3c 14689exec 6>&1
5213506e
RW
14690## ----------------------------------- ##
14691## Main body of $CONFIG_STATUS script. ##
14692## ----------------------------------- ##
14693_ASEOF
14694test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14695
14696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14697# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 14698# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
14699# values after options handling.
14700ac_log="
1c710c3c 14701This file was extended by $as_me, which was
5213506e 14702generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
14703
14704 CONFIG_FILES = $CONFIG_FILES
14705 CONFIG_HEADERS = $CONFIG_HEADERS
14706 CONFIG_LINKS = $CONFIG_LINKS
14707 CONFIG_COMMANDS = $CONFIG_COMMANDS
14708 $ $0 $@
14709
5213506e
RW
14710on `(hostname || uname -n) 2>/dev/null | sed 1q`
14711"
14712
1c710c3c
DJ
14713_ACEOF
14714
5213506e
RW
14715case $ac_config_files in *"
14716"*) set x $ac_config_files; shift; ac_config_files=$*;;
14717esac
1c710c3c 14718
2aeb72e9 14719
2aeb72e9 14720
5213506e
RW
14721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14722# Files that config.status was made for.
14723config_files="$ac_config_files"
1c710c3c 14724
5213506e 14725_ACEOF
2aeb72e9 14726
5213506e 14727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 14728ac_cs_usage="\
5213506e
RW
14729\`$as_me' instantiates files and other configuration actions
14730from templates according to the current configuration. Unless the files
14731and actions are specified as TAGs, all are instantiated by default.
1c710c3c 14732
5213506e 14733Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
14734
14735 -h, --help print this help, then exit
5213506e
RW
14736 -V, --version print version number and configuration settings, then exit
14737 -q, --quiet, --silent
14738 do not print progress messages
1c710c3c
DJ
14739 -d, --debug don't remove temporary files
14740 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
14741 --file=FILE[:TEMPLATE]
14742 instantiate the configuration file FILE
1c710c3c
DJ
14743
14744Configuration files:
14745$config_files
14746
5213506e 14747Report bugs to the package provider."
2aeb72e9 14748
5213506e
RW
14749_ACEOF
14750cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
14751ac_cs_version="\\
14752config.status
5213506e
RW
14753configured by $0, generated by GNU Autoconf 2.64,
14754 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 14755
5213506e 14756Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
14757This config.status script is free software; the Free Software Foundation
14758gives unlimited permission to copy, distribute and modify it."
5213506e
RW
14759
14760ac_pwd='$ac_pwd'
14761srcdir='$srcdir'
14762INSTALL='$INSTALL'
87264276 14763AWK='$AWK'
5213506e 14764test -n "\$AWK" || AWK=awk
1c710c3c
DJ
14765_ACEOF
14766
5213506e
RW
14767cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14768# The default lists apply if the user does not specify any file.
1c710c3c
DJ
14769ac_need_defaults=:
14770while test $# != 0
a4b9e93e 14771do
1c710c3c
DJ
14772 case $1 in
14773 --*=*)
5213506e
RW
14774 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14775 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
14776 ac_shift=:
14777 ;;
5213506e 14778 *)
1c710c3c
DJ
14779 ac_option=$1
14780 ac_optarg=$2
14781 ac_shift=shift
14782 ;;
1c710c3c
DJ
14783 esac
14784
14785 case $ac_option in
14786 # Handling of the options.
671aa708 14787 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 14788 ac_cs_recheck=: ;;
5213506e
RW
14789 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14790 $as_echo "$ac_cs_version"; exit ;;
14791 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
14792 debug=: ;;
14793 --file | --fil | --fi | --f )
14794 $ac_shift
5213506e
RW
14795 case $ac_optarg in
14796 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14797 esac
14798 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 14799 ac_need_defaults=false;;
5213506e
RW
14800 --he | --h | --help | --hel | -h )
14801 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
14802 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14803 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14804 ac_cs_silent=: ;;
14805
14806 # This is an error.
5213506e
RW
14807 -*) as_fn_error "unrecognized option: \`$1'
14808Try \`$0 --help' for more information." ;;
1c710c3c 14809
5213506e
RW
14810 *) as_fn_append ac_config_targets " $1"
14811 ac_need_defaults=false ;;
1c710c3c 14812
0b0dc272 14813 esac
1c710c3c 14814 shift
0b0dc272
AM
14815done
14816
1c710c3c 14817ac_configure_extra_args=
0b0dc272 14818
1c710c3c
DJ
14819if $ac_cs_silent; then
14820 exec 6>/dev/null
14821 ac_configure_extra_args="$ac_configure_extra_args --silent"
14822fi
0b0dc272 14823
1c710c3c 14824_ACEOF
5213506e 14825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 14826if \$ac_cs_recheck; then
5213506e
RW
14827 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14828 shift
14829 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14830 CONFIG_SHELL='$SHELL'
14831 export CONFIG_SHELL
14832 exec "\$@"
1c710c3c
DJ
14833fi
14834
14835_ACEOF
5213506e
RW
14836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14837exec 5>>config.log
14838{
14839 echo
14840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14841## Running $as_me. ##
14842_ASBOX
14843 $as_echo "$ac_log"
14844} >&5
1c710c3c 14845
5213506e
RW
14846_ACEOF
14847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
14848#
14849# INIT-COMMANDS
14850#
14851extrasub_build="$extrasub_build"
14852 extrasub_host="$extrasub_host"
14853 extrasub_target="$extrasub_target"
14854
5213506e 14855_ACEOF
1c710c3c 14856
5213506e 14857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 14858
5213506e 14859# Handling of arguments.
1c710c3c
DJ
14860for ac_config_target in $ac_config_targets
14861do
5213506e
RW
14862 case $ac_config_target in
14863 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14864
14865 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
14866 esac
14867done
14868
5213506e 14869
1c710c3c
DJ
14870# If the user did not use the arguments to specify the items to instantiate,
14871# then the envvar interface is used. Set only those that are not.
14872# We use the long form for the default assignment because of an extremely
14873# bizarre bug on SunOS 4.1.3.
14874if $ac_need_defaults; then
14875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14876fi
14877
14878# Have a temporary directory for convenience. Make it in the build tree
5213506e 14879# simply because there is no reason against having it here, and in addition,
1c710c3c 14880# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
14881# Hook for its removal unless debugging.
14882# Note that there is a small window in which the directory will not be cleaned:
14883# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
14884$debug ||
14885{
5213506e
RW
14886 tmp=
14887 trap 'exit_status=$?
14888 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14889' 0
14890 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 14891}
1c710c3c
DJ
14892# Create a (secure) tmp directory for tmp files.
14893
14894{
5213506e 14895 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
14896 test -n "$tmp" && test -d "$tmp"
14897} ||
14898{
5213506e
RW
14899 tmp=./conf$$-$RANDOM
14900 (umask 077 && mkdir "$tmp")
14901} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14902
14903# Set up the scripts for CONFIG_FILES section.
14904# No need to generate them if there are no CONFIG_FILES.
14905# This happens for instance with `./config.status config.h'.
14906if test -n "$CONFIG_FILES"; then
14907
14908if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14909 ac_cs_awk_getline=:
14910 ac_cs_awk_pipe_init=
14911 ac_cs_awk_read_file='
14912 while ((getline aline < (F[key])) > 0)
14913 print(aline)
14914 close(F[key])'
14915 ac_cs_awk_pipe_fini=
14916else
14917 ac_cs_awk_getline=false
14918 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14919 ac_cs_awk_read_file='
14920 print "|#_!!_#|"
14921 print "cat " F[key] " &&"
14922 '$ac_cs_awk_pipe_init
14923 # The final `:' finishes the AND list.
14924 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14925fi
14926ac_cr=`echo X | tr X '\015'`
14927# On cygwin, bash can eat \r inside `` if the user requested igncr.
14928# But we know of no other shell where ac_cr would be empty at this
14929# point, so we can use a bashism as a fallback.
14930if test "x$ac_cr" = x; then
14931 eval ac_cr=\$\'\\r\'
14932fi
14933ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14934if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14935 ac_cs_awk_cr='\r'
14936else
14937 ac_cs_awk_cr=$ac_cr
14938fi
14939
14940echo 'BEGIN {' >"$tmp/subs1.awk" &&
14941_ACEOF
14942
14943# Create commands to substitute file output variables.
1c710c3c 14944{
5213506e
RW
14945 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14946 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14947 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14948 echo "_ACAWK" &&
14949 echo "_ACEOF"
14950} >conf$$files.sh &&
14951. ./conf$$files.sh ||
14952 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14953rm -f conf$$files.sh
1c710c3c 14954
5213506e
RW
14955{
14956 echo "cat >conf$$subs.awk <<_ACEOF" &&
14957 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14958 echo "_ACEOF"
14959} >conf$$subs.sh ||
14960 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14961ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14962ac_delim='%!_!# '
14963for ac_last_try in false false false false false :; do
14964 . ./conf$$subs.sh ||
14965 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14966
14967 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14968 if test $ac_delim_n = $ac_delim_num; then
14969 break
14970 elif $ac_last_try; then
14971 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14972 else
14973 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14974 fi
14975done
14976rm -f conf$$subs.sh
14977
14978cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14979cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 14980_ACEOF
5213506e
RW
14981sed -n '
14982h
14983s/^/S["/; s/!.*/"]=/
14984p
14985g
14986s/^[^!]*!//
14987:repl
14988t repl
14989s/'"$ac_delim"'$//
14990t delim
14991:nl
14992h
14993s/\(.\{148\}\).*/\1/
14994t more1
14995s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14996p
14997n
14998b repl
14999:more1
15000s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15001p
15002g
15003s/.\{148\}//
15004t nl
15005:delim
15006h
15007s/\(.\{148\}\).*/\1/
15008t more2
15009s/["\\]/\\&/g; s/^/"/; s/$/"/
15010p
15011b
15012:more2
15013s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15014p
15015g
15016s/.\{148\}//
15017t delim
15018' <conf$$subs.awk | sed '
15019/^[^""]/{
15020 N
15021 s/\n//
15022}
15023' >>$CONFIG_STATUS || ac_write_fail=1
15024rm -f conf$$subs.awk
15025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15026_ACAWK
15027cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15028 for (key in S) S_is_set[key] = 1
15029 FS = "\a"
15030 \$ac_cs_awk_pipe_init
15031}
15032{
15033 line = $ 0
15034 nfields = split(line, field, "@")
15035 substed = 0
15036 len = length(field[1])
15037 for (i = 2; i < nfields; i++) {
15038 key = field[i]
15039 keylen = length(key)
15040 if (S_is_set[key]) {
15041 value = S[key]
15042 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15043 len += length(value) + length(field[++i])
15044 substed = 1
15045 } else
15046 len += 1 + keylen
15047 }
15048 if (nfields == 3 && !substed) {
15049 key = field[2]
15050 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15051 \$ac_cs_awk_read_file
15052 next
15053 }
15054 }
15055 print line
15056}
15057\$ac_cs_awk_pipe_fini
15058_ACAWK
15059_ACEOF
15060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15061if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15062 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15063else
15064 cat
15065fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15066 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15067_ACEOF
15068
15069# VPATH may cause trouble with some makes, so we remove $(srcdir),
15070# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15071# trailing colons and then remove the whole line if VPATH becomes empty
15072# (actually we leave an empty line to preserve line numbers).
15073if test "x$srcdir" = x.; then
15074 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15075s/:*\$(srcdir):*/:/
15076s/:*\${srcdir}:*/:/
15077s/:*@srcdir@:*/:/
15078s/^\([^=]*=[ ]*\):*/\1/
15079s/:*$//
15080s/^[^=]*=[ ]*$//
15081}'
15082fi
2aeb72e9 15083
5213506e
RW
15084cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15085fi # test -n "$CONFIG_FILES"
2aeb72e9 15086
1c710c3c 15087
5213506e
RW
15088eval set X " :F $CONFIG_FILES "
15089shift
15090for ac_tag
15091do
15092 case $ac_tag in
15093 :[FHLC]) ac_mode=$ac_tag; continue;;
15094 esac
15095 case $ac_mode$ac_tag in
15096 :[FHL]*:*);;
15097 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15098 :[FH]-) ac_tag=-:-;;
15099 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15100 esac
15101 ac_save_IFS=$IFS
15102 IFS=:
15103 set x $ac_tag
15104 IFS=$ac_save_IFS
15105 shift
15106 ac_file=$1
15107 shift
79c06341 15108
5213506e
RW
15109 case $ac_mode in
15110 :L) ac_source=$1;;
15111 :[FH])
15112 ac_file_inputs=
15113 for ac_f
15114 do
15115 case $ac_f in
15116 -) ac_f="$tmp/stdin";;
15117 *) # Look for the file first in the build tree, then in the source tree
15118 # (if the path is not absolute). The absolute path cannot be DOS-style,
15119 # because $ac_f cannot contain `:'.
15120 test -f "$ac_f" ||
15121 case $ac_f in
15122 [\\/$]*) false;;
15123 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15124 esac ||
15125 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15126 esac
15127 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15128 as_fn_append ac_file_inputs " '$ac_f'"
15129 done
1c710c3c 15130
5213506e
RW
15131 # Let's still pretend it is `configure' which instantiates (i.e., don't
15132 # use $as_me), people would be surprised to read:
15133 # /* config.h. Generated by config.status. */
15134 configure_input='Generated from '`
15135 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15136 `' by configure.'
15137 if test x"$ac_file" != x-; then
15138 configure_input="$ac_file. $configure_input"
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15140$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15141 fi
5213506e
RW
15142 # Neutralize special characters interpreted by sed in replacement strings.
15143 case $configure_input in #(
15144 *\&* | *\|* | *\\* )
15145 ac_sed_conf_input=`$as_echo "$configure_input" |
15146 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15147 *) ac_sed_conf_input=$configure_input;;
15148 esac
11a67599 15149
5213506e
RW
15150 case $ac_tag in
15151 *:-:* | *:-) cat >"$tmp/stdin" \
15152 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15153 esac
15154 ;;
11a67599
ZW
15155 esac
15156
5213506e 15157 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15158$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15159 X"$ac_file" : 'X\(//\)[^/]' \| \
15160 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15161 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15162$as_echo X"$ac_file" |
15163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15164 s//\1/
15165 q
15166 }
15167 /^X\(\/\/\)[^/].*/{
15168 s//\1/
15169 q
15170 }
15171 /^X\(\/\/\)$/{
15172 s//\1/
15173 q
15174 }
15175 /^X\(\/\).*/{
15176 s//\1/
15177 q
15178 }
15179 s/.*/./; q'`
15180 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15181 ac_builddir=.
0b0dc272 15182
5213506e
RW
15183case "$ac_dir" in
15184.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15185*)
15186 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15187 # A ".." for each directory in $ac_dir_suffix.
15188 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15189 case $ac_top_builddir_sub in
15190 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15191 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15192 esac ;;
15193esac
15194ac_abs_top_builddir=$ac_pwd
15195ac_abs_builddir=$ac_pwd$ac_dir_suffix
15196# for backward compatibility:
15197ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15198
15199case $srcdir in
5213506e 15200 .) # We are building in place.
1c710c3c 15201 ac_srcdir=.
5213506e
RW
15202 ac_top_srcdir=$ac_top_builddir_sub
15203 ac_abs_top_srcdir=$ac_pwd ;;
15204 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15205 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15206 ac_top_srcdir=$srcdir
15207 ac_abs_top_srcdir=$srcdir ;;
15208 *) # Relative name.
15209 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15210 ac_top_srcdir=$ac_top_build_prefix$srcdir
15211 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15212esac
5213506e 15213ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15214
0b0dc272 15215
5213506e
RW
15216 case $ac_mode in
15217 :F)
15218 #
15219 # CONFIG_FILE
15220 #
1c710c3c
DJ
15221
15222 case $INSTALL in
15223 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15224 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15225 esac
5213506e 15226_ACEOF
11a67599 15227
5213506e
RW
15228cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15229# If the template does not know about datarootdir, expand it.
15230# FIXME: This hack should be removed a few years after 2.60.
15231ac_datarootdir_hack=; ac_datarootdir_seen=
15232ac_sed_dataroot='
15233/datarootdir/ {
15234 p
15235 q
15236}
15237/@datadir@/p
15238/@docdir@/p
15239/@infodir@/p
15240/@localedir@/p
15241/@mandir@/p'
15242case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15243*datarootdir*) ac_datarootdir_seen=yes;;
15244*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15246$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15247_ACEOF
5213506e
RW
15248cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15249 ac_datarootdir_hack='
15250 s&@datadir@&$datadir&g
15251 s&@docdir@&$docdir&g
15252 s&@infodir@&$infodir&g
15253 s&@localedir@&$localedir&g
15254 s&@mandir@&$mandir&g
15255 s&\\\${datarootdir}&$datarootdir&g' ;;
15256esac
15257_ACEOF
15258
15259# Neutralize VPATH when `$srcdir' = `.'.
15260# Shell code in configure.ac might set extrasub.
15261# FIXME: do we really want to maintain this feature?
15262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15263ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15264$extrasub
15265_ACEOF
5213506e 15266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15267:t
15268/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15269s|@configure_input@|$ac_sed_conf_input|;t t
15270s&@top_builddir@&$ac_top_builddir_sub&;t t
15271s&@top_build_prefix@&$ac_top_build_prefix&;t t
15272s&@srcdir@&$ac_srcdir&;t t
15273s&@abs_srcdir@&$ac_abs_srcdir&;t t
15274s&@top_srcdir@&$ac_top_srcdir&;t t
15275s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15276s&@builddir@&$ac_builddir&;t t
15277s&@abs_builddir@&$ac_abs_builddir&;t t
15278s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15279s&@INSTALL@&$ac_INSTALL&;t t
15280$ac_datarootdir_hack
15281"
15282eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15283if $ac_cs_awk_getline; then
15284 $AWK -f "$tmp/subs.awk"
15285else
15286 $AWK -f "$tmp/subs.awk" | $SHELL
15287fi >$tmp/out \
15288 || as_fn_error "could not create $ac_file" "$LINENO" 5
15289
15290test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15291 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15292 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15294which seems to be undefined. Please make sure it is defined." >&5
15295$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15296which seems to be undefined. Please make sure it is defined." >&2;}
15297
15298 rm -f "$tmp/stdin"
15299 case $ac_file in
15300 -) cat "$tmp/out" && rm -f "$tmp/out";;
15301 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15302 esac \
15303 || as_fn_error "could not create $ac_file" "$LINENO" 5
15304 ;;
11a67599 15305
11a67599 15306
79c06341 15307
5213506e
RW
15308 esac
15309
3e54529c
RW
15310
15311 case $ac_file$ac_mode in
15312 "Makefile":F) sed "$extrasub_build" Makefile |
15313 sed "$extrasub_host" |
15314 sed "$extrasub_target" > mf$$
15315 mv -f mf$$ Makefile ;;
15316
15317 esac
5213506e
RW
15318done # for ac_tag
15319
15320
15321as_fn_exit 0
1c710c3c 15322_ACEOF
1c710c3c
DJ
15323ac_clean_files=$ac_clean_files_save
15324
5213506e
RW
15325test $ac_write_fail = 0 ||
15326 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15327
1c710c3c
DJ
15328
15329# configure is writing to config.log, and then calls config.status.
15330# config.status does its own redirection, appending to config.log.
15331# Unfortunately, on DOS this fails, as config.log is still kept open
15332# by configure, so config.status won't be able to write to it; its
15333# output is simply discarded. So we exec the FD to /dev/null,
15334# effectively closing config.log, so it can be properly (re)opened and
15335# appended to by config.status. When coming back to configure, we
15336# need to make the FD available again.
15337if test "$no_create" != yes; then
15338 ac_cs_success=:
15339 ac_config_status_args=
15340 test "$silent" = yes &&
15341 ac_config_status_args="$ac_config_status_args --quiet"
15342 exec 5>/dev/null
15343 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15344 exec 5>>config.log
15345 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15346 # would make configure fail if this is the last instruction.
5213506e
RW
15347 $ac_cs_success || as_fn_exit $?
15348fi
15349if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15351$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15352fi
79c06341 15353