2010-12-10 Tobias Burnus <burnus@net-b.de>
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
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.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
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 :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
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 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
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
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
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'\" &&
8e957354
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"
81ecdfbb
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
c6b750e1 184do
81ecdfbb
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."
c6b750e1 228 else
81ecdfbb
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."
c6b750e1 233 fi
81ecdfbb
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
c6b750e1 263
81ecdfbb
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
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
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
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
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'`
c6b750e1 410
c6b750e1
DJ
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
417
c6b750e1 418
81ecdfbb
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 |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
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; }
c6b750e1
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
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
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';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
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'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
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
c6b750e1
DJ
519
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
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
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
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
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
e552509b 581GOC_FOR_TARGET
81ecdfbb
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
e552509b 614GOC_FOR_BUILD
81ecdfbb
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
911e63d0 624target_configdirs
81ecdfbb 625configdirs
81ecdfbb 626build_configdirs
81ecdfbb
RW
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
4074d5f2
RW
634target_configargs
635host_configargs
636build_configargs
96655cc4 637BUILD_CONFIG
81ecdfbb
RW
638CXXFLAGS_FOR_TARGET
639CFLAGS_FOR_TARGET
640DEBUG_PREFIX_CFLAGS_FOR_TARGET
641SYSROOT_CFLAGS_FOR_TARGET
642stage1_languages
700d40ca 643extra_host_libiberty_configure_flags
81ecdfbb
RW
644clooginc
645clooglibs
646pplinc
647ppllibs
81ecdfbb 648poststage1_ldflags
143754cd 649poststage1_libs
81ecdfbb
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
8e957354
PB
674AWK
675SED
81ecdfbb
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
c7791212 744enable_ld
89a1e9c3
PB
745enable_libquadmath
746enable_libquadmath_support
81ecdfbb
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
81ecdfbb 764with_boot_libs
143754cd 765with_boot_ldflags
81ecdfbb
RW
766with_ppl
767with_ppl_include
768with_ppl_lib
769enable_ppl_version_check
770with_cloog
771with_cloog_include
772with_cloog_lib
e552509b 773enable_cloog_backend
81ecdfbb 774enable_cloog_version_check
700d40ca 775enable_lto
81ecdfbb
RW
776enable_stage1_languages
777enable_objc_gc
778with_build_sysroot
779with_debug_prefix_map
780enable_bootstrap
96655cc4 781with_build_config
81ecdfbb
RW
782enable_serial_configure
783with_build_time_tools
784enable_maintainer_mode
785enable_stage1_checking
786enable_werror
81ecdfbb
RW
787'
788 ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796CXX
797CXXFLAGS
798CCC
4074d5f2
RW
799build_configargs
800host_configargs
801target_configargs
81ecdfbb
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
e552509b 819GOC_FOR_TARGET
81ecdfbb
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
a0da8069
NN
832
833# Initialize some variables set by options.
c6b750e1
DJ
834ac_init_help=
835ac_init_version=false
81ecdfbb
RW
836ac_unrecognized_opts=
837ac_unrecognized_sep=
a0da8069
NN
838# The variables have the same names as the options, with
839# dashes changed to underlines.
c6b750e1 840cache_file=/dev/null
a0da8069 841exec_prefix=NONE
a0da8069 842no_create=
a0da8069
NN
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
a0da8069
NN
851verbose=
852x_includes=NONE
853x_libraries=NONE
c6b750e1
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.
81ecdfbb 860# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
a0da8069
NN
866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
a0da8069
NN
869includedir='${prefix}/include'
870oldincludedir='/usr/include'
81ecdfbb
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'
252b5132 880
a0da8069 881ac_prev=
81ecdfbb 882ac_dashdash=
a0da8069
NN
883for ac_option
884do
a0da8069
NN
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
81ecdfbb 887 eval $ac_prev=\$ac_option
a0da8069
NN
888 ac_prev=
889 continue
890 fi
252b5132 891
81ecdfbb
RW
892 case $ac_option in
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *) ac_optarg=yes ;;
895 esac
a0da8069
NN
896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
81ecdfbb
RW
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
a0da8069
NN
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 906 bindir=$ac_optarg ;;
a0da8069
NN
907
908 -build | --build | --buil | --bui | --bu)
c6b750e1 909 ac_prev=build_alias ;;
a0da8069 910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 911 build_alias=$ac_optarg ;;
a0da8069
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=*)
c6b750e1
DJ
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
a0da8069 922
81ecdfbb 923 -datadir | --datadir | --datadi | --datad)
a0da8069 924 ac_prev=datadir ;;
81ecdfbb 925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 926 datadir=$ac_optarg ;;
a0da8069 927
81ecdfbb
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
a0da8069 935 -disable-* | --disable-*)
81ecdfbb 936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 937 # Reject names that are not valid shell variable names.
81ecdfbb
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 ;;
a0da8069
NN
960
961 -enable-* | --enable-*)
81ecdfbb 962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 963 # Reject names that are not valid shell variable names.
81ecdfbb
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=', ';;
a0da8069 974 esac
81ecdfbb 975 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
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=*)
c6b750e1 984 exec_prefix=$ac_optarg ;;
a0da8069
NN
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
c6b750e1
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 ;;
a0da8069
NN
996
997 -host | --host | --hos | --ho)
c6b750e1 998 ac_prev=host_alias ;;
a0da8069 999 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1000 host_alias=$ac_optarg ;;
a0da8069 1001
81ecdfbb
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
a0da8069
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=*)
c6b750e1 1013 includedir=$ac_optarg ;;
a0da8069
NN
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1018 infodir=$ac_optarg ;;
a0da8069
NN
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1023 libdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1030 libexecdir=$ac_optarg ;;
a0da8069 1031
81ecdfbb
RW
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
a0da8069 1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1038 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1042 localstatedir=$ac_optarg ;;
a0da8069
NN
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1047 mandir=$ac_optarg ;;
a0da8069
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 \
c6b750e1 1054 | --no-cr | --no-c | -n)
a0da8069
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=*)
c6b750e1 1068 oldincludedir=$ac_optarg ;;
a0da8069
NN
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1073 prefix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1080 program_prefix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1087 program_suffix=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1104 program_transform_name=$ac_optarg ;;
a0da8069 1105
81ecdfbb
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
a0da8069
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=*)
c6b750e1 1124 sbindir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1135 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
c6b750e1 1140 site=$ac_optarg ;;
a0da8069
NN
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1145 srcdir=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1152 sysconfdir=$ac_optarg ;;
a0da8069
NN
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1155 ac_prev=target_alias ;;
a0da8069 1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1157 target_alias=$ac_optarg ;;
a0da8069
NN
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
c6b750e1
DJ
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
a0da8069
NN
1164
1165 -with-* | --with-*)
81ecdfbb 1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1167 # Reject names that are not valid shell variable names.
81ecdfbb
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=', ';;
a0da8069 1178 esac
81ecdfbb 1179 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1180
1181 -without-* | --without-*)
81ecdfbb 1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1183 # Reject names that are not valid shell variable names.
81ecdfbb
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 ;;
a0da8069
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=*)
c6b750e1 1206 x_includes=$ac_optarg ;;
a0da8069
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=*)
c6b750e1 1213 x_libraries=$ac_optarg ;;
a0da8069 1214
81ecdfbb
RW
1215 -*) as_fn_error "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information."
a0da8069
NN
1217 ;;
1218
c6b750e1
DJ
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
81ecdfbb
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
c6b750e1
DJ
1227 export $ac_envvar ;;
1228
a0da8069 1229 *)
c6b750e1 1230 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1235 ;;
1236
1237 esac
1238done
1239
1240if test -n "$ac_prev"; then
c6b750e1 1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1242 as_fn_error "missing argument to $ac_option"
a0da8069 1243fi
a0da8069 1244
81ecdfbb
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 ;;
c6b750e1 1250 esac
81ecdfbb 1251fi
a0da8069 1252
81ecdfbb
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
a0da8069 1258do
81ecdfbb
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.
c6b750e1 1267 case $ac_val in
81ecdfbb
RW
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1270 esac
81ecdfbb 1271 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1272done
1273
c6b750e1
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
376a0e54 1280
c6b750e1
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
81ecdfbb 1285 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
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
a0da8069 1296
a0da8069 1297
81ecdfbb
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
a0da8069
NN
1306# Find the source files, if location was not specified.
1307if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
81ecdfbb
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'`
a0da8069 1333 srcdir=$ac_confdir
81ecdfbb 1334 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1335 srcdir=..
1336 fi
1337else
1338 ac_srcdir_defaulted=no
1339fi
81ecdfbb
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
6d0cd39e
AM
1358case $srcdir in
1359 *" "*)
1360 as_fn_error "path to source, $srcdir, contains spaces"
1361 ;;
1362esac
9cc8ae67
PB
1363ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1364
81ecdfbb
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
c6b750e1
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
c6b750e1
DJ
1399Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1401 [$ac_default_prefix]
c6b750e1 1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1403 [PREFIX]
c6b750e1
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:
81ecdfbb
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]
c6b750e1
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
a0da8069 1446fi
a0da8069 1447
c6b750e1
DJ
1448if test -n "$ac_init_help"; then
1449
1450 cat <<\_ACEOF
1451
1452Optional Features:
81ecdfbb 1453 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212
NC
1456 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1457 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1458 --disable-libquadmath do not build libquadmath directory
1459 --disable-libquadmath-support
1460 disable libquadmath support for Fortran
521ec477
DD
1461 --enable-libada build libada directory
1462 --enable-libssp build libssp directory
e8a5fa9c 1463 --enable-build-with-cxx build with C++ compiler instead of C compiler
e28c595f 1464 --disable-ppl-version-check disable check for PPL version
ceca0218
PB
1465 --enable-cloog-backend[=BACKEND]
1466 set the CLooG BACKEND used to either isl, ppl or
1467 ppl-legacy (default)
e552509b
ILT
1468 --disable-cloog-version-check
1469 disable check for CLooG version
700d40ca 1470 --enable-lto enable link time optimization support
521ec477 1471 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 1472 stage1. Mostly useful for compiler development.
521ec477
DD
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
c6b750e1 1478 sub-packages for the host, target or build
521ec477 1479 machine, or all sub-packages
c6b750e1
DJ
1480 --enable-maintainer-mode enable make rules and dependencies not useful
1481 (and sometimes confusing) to the casual installer
521ec477
DD
1482 --enable-stage1-checking[=all] choose additional checking for stage1
1483 of the compiler
c6b750e1
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
e8a5fa9c
RW
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
521ec477
DD
1496 --with-mpfr-dir=PATH this option has been REMOVED
1497 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
1498 Equivalent to --with-mpfr-include=PATH/include
1499 plus --with-mpfr-lib=PATH/lib
1500 --with-mpfr-include=PATH
521ec477
DD
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.
c6b750e1
DJ
1505 Equivalent to --with-gmp-include=PATH/include
1506 plus --with-gmp-lib=PATH/lib
521ec477
DD
1507 --with-gmp-include=PATH specify directory for installed GMP include files
1508 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
1509 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1510 when linking with PPL
e8a5fa9c
RW
1511 --with-stage1-ldflags=FLAGS Linker flags for stage1
1512 -with-stage1-libs=LIBS Libraries for stage1
e8a5fa9c 1513 --with-boot-libs=LIBS Libraries for stage2 and later
143754cd 1514 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
e28c595f
JM
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
e552509b
ILT
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
521ec477 1528 --with-build-sysroot=SYSROOT
c6b750e1 1529 use sysroot as the system root during the build
8a6ee3ab
JM
1530 --with-debug-prefix-map='A=B C=D ...'
1531 map A to B, C to D ... in debug information
96655cc4
AO
1532--with-build-config='NAME NAME2...'
1533 Use config/NAME.mk build configuration
521ec477 1534 --with-build-time-tools=PATH
c6b750e1 1535 use given path to find target tools during the build
c6b750e1
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>
81ecdfbb
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>
18f6b6ee
PB
1545 CXX C++ compiler command
1546 CXXFLAGS C++ compiler flags
4074d5f2
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
9a819804
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
0c24b341 1562 WINDMC WINDMC for the host
9a819804
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
e552509b
ILT
1575 GOC_FOR_TARGET
1576 GOC for the target
9a819804
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
0c24b341
NC
1597 WINDMC_FOR_TARGET
1598 WINDMC for the target
c6b750e1
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
81ecdfbb 1603Report bugs to the package provider.
c6b750e1 1604_ACEOF
81ecdfbb 1605ac_status=$?
c6b750e1
DJ
1606fi
1607
1608if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
c6b750e1 1610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1611 test -d "$ac_dir" ||
1612 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1613 continue
c6b750e1
DJ
1614 ac_builddir=.
1615
81ecdfbb
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
c6b750e1
DJ
1631
1632case $srcdir in
81ecdfbb 1633 .) # We are building in place.
c6b750e1 1634 ac_srcdir=.
81ecdfbb
RW
1635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1638 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
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 ;;
c6b750e1 1645esac
81ecdfbb
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
c6b750e1 1656 else
81ecdfbb
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; }
c6b750e1
DJ
1660 done
1661fi
1662
81ecdfbb 1663test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1664if $ac_init_version; then
1665 cat <<\_ACEOF
81ecdfbb
RW
1666configure
1667generated by GNU Autoconf 2.64
c6b750e1 1668
81ecdfbb 1669Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1670This configure script is free software; the Free Software Foundation
1671gives unlimited permission to copy, distribute and modify it.
1672_ACEOF
81ecdfbb 1673 exit
c6b750e1 1674fi
81ecdfbb
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
c6b750e1
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
81ecdfbb 1806generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1807
1808 $ $0 $@
1809
1810_ACEOF
81ecdfbb 1811exec 5>>config.log
c6b750e1
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`
81ecdfbb 1830/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
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=.
81ecdfbb
RW
1842 $as_echo "PATH: $as_dir"
1843 done
1844IFS=$as_save_IFS
c6b750e1
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=
c6b750e1
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 ;;
81ecdfbb
RW
1876 *\'*)
1877 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1878 esac
1879 case $ac_pass in
81ecdfbb 1880 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1881 2)
81ecdfbb 1882 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
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
81ecdfbb 1898 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1899 ;;
1900 esac
1901 done
1902done
81ecdfbb
RW
1903{ ac_configure_args0=; unset ac_configure_args0;}
1904{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
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.
81ecdfbb
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.
c6b750e1
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,
81ecdfbb
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
c6b750e1 1939 (set) 2>&1 |
81ecdfbb
RW
1940 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1941 *${as_nl}ac_space=\ *)
c6b750e1 1942 sed -n \
81ecdfbb
RW
1943 "s/'\''/'\''\\\\'\'''\''/g;
1944 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1945 ;; #(
c6b750e1 1946 *)
81ecdfbb 1947 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1948 ;;
81ecdfbb
RW
1949 esac |
1950 sort
1951)
c6b750e1
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
81ecdfbb
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'\''"
c6b750e1
DJ
1967 done | sort
1968 echo
1969
1970 if test -n "$ac_subst_files"; then
1971 cat <<\_ASBOX
81ecdfbb
RW
1972## ------------------- ##
1973## File substitutions. ##
1974## ------------------- ##
c6b750e1
DJ
1975_ASBOX
1976 echo
1977 for ac_var in $ac_subst_files
1978 do
81ecdfbb
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'\''"
c6b750e1
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
81ecdfbb 1995 cat confdefs.h
c6b750e1
DJ
1996 echo
1997 fi
1998 test "$ac_signal" != 0 &&
81ecdfbb
RW
1999 $as_echo "$as_me: caught signal $ac_signal"
2000 $as_echo "$as_me: exit $exit_status"
c6b750e1 2001 } >&5
81ecdfbb
RW
2002 rm -f core *.core core.conftest.* &&
2003 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2004 exit $exit_status
81ecdfbb 2005' 0
c6b750e1 2006for ac_signal in 1 2 13 15; do
81ecdfbb 2007 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2008done
2009ac_signal=0
2010
2011# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2012rm -f -r conftest* confdefs.h
2013
2014$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2015
2016# Predefined preprocessor variables.
2017
2018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_NAME "$PACKAGE_NAME"
2020_ACEOF
2021
c6b750e1
DJ
2022cat >>confdefs.h <<_ACEOF
2023#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2024_ACEOF
2025
c6b750e1
DJ
2026cat >>confdefs.h <<_ACEOF
2027#define PACKAGE_VERSION "$PACKAGE_VERSION"
2028_ACEOF
2029
c6b750e1
DJ
2030cat >>confdefs.h <<_ACEOF
2031#define PACKAGE_STRING "$PACKAGE_STRING"
2032_ACEOF
2033
c6b750e1
DJ
2034cat >>confdefs.h <<_ACEOF
2035#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2036_ACEOF
2037
81ecdfbb
RW
2038cat >>confdefs.h <<_ACEOF
2039#define PACKAGE_URL "$PACKAGE_URL"
2040_ACEOF
2041
c6b750e1
DJ
2042
2043# Let the site file select an alternate cache file if it wants to.
81ecdfbb
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
a0da8069 2055fi
81ecdfbb
RW
2056for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2057do
2058 test "x$ac_site_file" = xNONE && continue
a0da8069 2059 if test -r "$ac_site_file"; then
81ecdfbb
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;}
c6b750e1 2062 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2063 . "$ac_site_file"
2064 fi
2065done
2066
2067if test -r "$cache_file"; then
c6b750e1
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
81ecdfbb
RW
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2072$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2073 case $cache_file in
81ecdfbb
RW
2074 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2075 *) . "./$cache_file";;
c6b750e1
DJ
2076 esac
2077 fi
a0da8069 2078else
81ecdfbb
RW
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2080$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
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
81ecdfbb 2087for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2088 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2089 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2090 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2091 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2092 case $ac_old_set,$ac_new_set in
2093 set,)
81ecdfbb
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;}
c6b750e1
DJ
2096 ac_cache_corrupted=: ;;
2097 ,set)
81ecdfbb
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;}
c6b750e1
DJ
2100 ac_cache_corrupted=: ;;
2101 ,);;
2102 *)
2103 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
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;}
c6b750e1
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
81ecdfbb 2125 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
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.
81ecdfbb 2130 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2131 esac
2132 fi
2133done
2134if $ac_cache_corrupted; then
81ecdfbb
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
a0da8069 2140fi
81ecdfbb
RW
2141## -------------------- ##
2142## Main body of script. ##
2143## -------------------- ##
a0da8069
NN
2144
2145ac_ext=c
a0da8069 2146ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
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
2151
2152
2153
c6b750e1
DJ
2154
2155
34a0f3cf 2156
c6b750e1 2157
5b553f7e
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
c6b750e1
DJ
2186
2187# Find the build, host, and target systems.
a0da8069 2188ac_aux_dir=
81ecdfbb
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
a0da8069
NN
2197done
2198if test -z "$ac_aux_dir"; then
81ecdfbb 2199 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2200fi
81ecdfbb
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
a0da8069 2210
c6b750e1 2211# Make sure we can run config.sub.
81ecdfbb
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
c6b750e1 2235build=$ac_cv_build
81ecdfbb
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
a0da8069 2247
a0da8069 2248
c6b750e1
DJ
2249 case ${build_alias} in
2250 "") build_noncanonical=${build} ;;
2251 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2252esac
2253
2254
cac3d6c4 2255
c6b750e1
DJ
2256 case ${host_alias} in
2257 "") host_noncanonical=${build_noncanonical} ;;
2258 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2259esac
2260
cac3d6c4 2261
c6b750e1
DJ
2262
2263 case ${target_alias} in
2264 "") target_noncanonical=${host_noncanonical} ;;
2265 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2266esac
2267
cac3d6c4 2268
c6b750e1
DJ
2269
2270
2271test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2272 test "$program_prefix$program_suffix$program_transform_name" = \
2273 NONENONEs,x,x, &&
c6b750e1 2274 program_transform_name=s,y,y,
cac3d6c4 2275
81ecdfbb
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
cac3d6c4 2280else
81ecdfbb
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
c6b750e1
DJ
2287
2288fi
81ecdfbb
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
c6b750e1 2295host=$ac_cv_host
81ecdfbb
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
c6b750e1
DJ
2307
2308
81ecdfbb
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
c6b750e1 2313else
81ecdfbb
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
c6b750e1 2320
cac3d6c4 2321fi
81ecdfbb
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
c6b750e1 2328target=$ac_cv_target
81ecdfbb
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
c6b750e1
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}-
81ecdfbb 2348
a0da8069 2349test "$program_prefix" != NONE &&
81ecdfbb 2350 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2351# Use a double $ so make ignores it.
2352test "$program_suffix" != NONE &&
81ecdfbb
RW
2353 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2354# Double any \ or $.
c6b750e1 2355# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2356ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2357program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2358
a0da8069
NN
2359
2360
e5c3f801
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
c6b750e1 2369# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
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"
c6b750e1 2373# OS/2's system install, which has a completely different semantic
e5c3f801 2374# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2375# Reject install programs that cannot install multiple files.
81ecdfbb
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; }
e5c3f801 2378if test -z "$INSTALL"; then
81ecdfbb
RW
2379if test "${ac_cv_path_install+set}" = set; then :
2380 $as_echo_n "(cached) " >&6
c6b750e1
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=.
81ecdfbb
RW
2387 # Account for people who put trailing slashes in PATH elements.
2388case $as_dir/ in #((
2389 ./ | .// | /[cC]/* | \
c6b750e1 2390 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2391 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
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
81ecdfbb 2399 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2400 if test $ac_prog = install &&
c6b750e1 2401 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2402 # AIX install. It has an incompatible calling convention.
2403 :
c6b750e1
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 :
e5c3f801 2408 else
58c85be7
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
e5c3f801
NN
2421 fi
2422 fi
2423 done
c6b750e1
DJ
2424 done
2425 ;;
2426esac
81ecdfbb
RW
2427
2428 done
2429IFS=$as_save_IFS
c6b750e1 2430
58c85be7 2431rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2432
2433fi
2434 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2435 INSTALL=$ac_cv_path_install
e5c3f801 2436 else
58c85be7
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
e5c3f801 2439 # break other packages using the cache if that directory is
58c85be7 2440 # removed, or if the value is a relative name.
c6b750e1 2441 INSTALL=$ac_install_sh
e5c3f801
NN
2442 fi
2443fi
81ecdfbb
RW
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2445$as_echo "$INSTALL" >&6; }
e5c3f801
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
c6b750e1 2451test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2452
2453test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2454
81ecdfbb
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
656fdd47
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"
81ecdfbb
RW
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2474$as_echo "no, using $LN" >&6; }
656fdd47
PB
2475else
2476 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2478$as_echo "yes" >&6; }
656fdd47
PB
2479fi
2480
81ecdfbb
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; }
c6b750e1
DJ
2483LN_S=$as_ln_s
2484if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2486$as_echo "yes" >&6; }
cac3d6c4 2487else
81ecdfbb
RW
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2489$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2490fi
2491
8e957354
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
e5c3f801 2603
252b5132 2604### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
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*)
a0da8069
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
252b5132
RH
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
a0da8069 2638moveifchange=${srcdir}/move-if-change
252b5132 2639
0fdbe983
DJ
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
a0da8069
NN
2648# Set srcdir to "." if that's what it is.
2649# This is important for multilib support.
2650pwd=`${PWDCMD-pwd}`
a0da8069
NN
2651if test "${pwd}" = "${srcpwd}" ; then
2652 srcdir=.
252b5132
RH
2653fi
2654
a0da8069 2655topsrcdir=$srcpwd
252b5132 2656
a0da8069 2657extra_host_args=
afefada0 2658
a0da8069
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.
252b5132 2662
c6b750e1 2663# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2664# configdirs, or target_configdirs; see the serialization section below.
252b5132 2665
c6b750e1
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
a0da8069 2668# the Makefile, whether or not it's implicitly specified here.
252b5132 2669
a0da8069
NN
2670# Double entries in build_configdirs, configdirs, or target_configdirs may
2671# cause circular dependencies and break everything horribly.
252b5132 2672
6a9cf61e
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
ee025550 2679build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2680
a0da8069
NN
2681# these libraries are used by various programs built for the host environment
2682#
1f53ca9a 2683host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2684
a0da8069
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.
e6de499b 2690# If --enable-gold is used, "gold" may replace "ld".
f9806fa5 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"
a0da8069
NN
2692
2693# libgcj represents the runtime libraries only used by gcj.
2694libgcj="target-libffi \
a0da8069
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#
b1299c4e
DJ
2702target_libraries="target-libgcc \
2703 target-libiberty \
a0da8069
NN
2704 target-libgloss \
2705 target-newlib \
cff87f51 2706 target-libgomp \
b9459e83 2707 target-libstdc++-v3 \
4b1cb4fe 2708 target-libmudflap \
bb780410 2709 target-libssp \
e552509b 2710 target-libquadmath \
4b1cb4fe 2711 target-libgfortran \
4f0ef2d8 2712 target-boehm-gc \
83326456 2713 ${libgcj} \
a2592b1b 2714 target-libobjc \
e552509b
ILT
2715 target-libada \
2716 target-libgo"
a0da8069 2717
9c14acb8
NN
2718# these tools are built using the target libraries, and are intended to
2719# run only in the target environment
a0da8069 2720#
9c14acb8 2721# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
2722# list belongs in this list. those programs are also very likely
2723# candidates for the "native_only" list which follows
2724#
a3dd767d 2725target_tools="target-examples target-groff target-gperf target-rda"
252b5132 2726
a0da8069 2727################################################################################
252b5132 2728
a0da8069
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.
a0da8069 2734configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2735target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2736build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2737
9cc8ae67
PB
2738
2739
a0da8069 2740################################################################################
252b5132 2741
a0da8069 2742srcname="gnu development package"
252b5132 2743
a0da8069
NN
2744# This gets set non-empty for some net releases of packages.
2745appdirs=""
252b5132 2746
a0da8069
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
252b5132 2751else
a0da8069 2752 is_cross_compiler=yes
c6b750e1 2753fi
252b5132 2754
9175bfc0 2755# Find the build and target subdir names.
dd12c3a8 2756
66a79c16
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.
dd12c3a8 2767build_subdir="build-${build_noncanonical}"
c6b750e1 2768
81ecdfbb
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"
66a79c16
DJ
2772else
2773 build_libsubdir="$build_subdir"
81ecdfbb
RW
2774fi
2775
b00612cc
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
dd12c3a8
NN
2783# No prefix.
2784target_subdir=${target_noncanonical}
c6b750e1 2785
2fd0b40b
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
252b5132 2791
a0da8069
NN
2792# Skipdirs are removed silently.
2793skipdirs=
2794# Noconfigdirs are removed loudly.
2795noconfigdirs=""
252b5132 2796
a0da8069
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
93f9b408 2801 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2802fi
2803
a0da8069
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"
252b5132
RH
2809fi
2810
700d40ca
ILT
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
c6b750e1 2818# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2819# it's not even worth trying to configure, much less build, that tool.
252b5132 2820
a0da8069
NN
2821case ${with_x} in
2822 yes | "") ;; # the default value for this tree is that X11 is available
2823 no)
675c6968 2824 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2825 # We won't be able to build gdbtk without X.
c6b750e1 2826 enable_gdbtk=no
a0da8069
NN
2827 ;;
2828 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2829esac
252b5132 2830
a0da8069 2831# Some tools are only suitable for building in a "native" situation.
c6b750e1 2832# Remove these if host!=target.
701628f5 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"
252b5132 2834
a0da8069
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
252b5132 2843
a0da8069
NN
2844# If both --with-headers and --with-libs are specified, default to
2845# --without-newlib.
32be62b5
RS
2846if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2847 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2848 if test x"${with_newlib}" = x ; then
2849 with_newlib=no
2850 fi
252b5132
RH
2851fi
2852
a0da8069
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
252b5132 2858
c7791212
NC
2859# Handle --enable-gold, --enable-ld.
2860# --disable-gold [--enable-ld]
2861# Build only ld. Default option.
d3b50760
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]
c7791212
NC
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
d3b50760
L
2871# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2872# and ld.bfd).
c7791212
NC
2873# In other words, ld is default
2874# --enable-gold=default --enable-ld=default
2875# Error.
2876
2877default_ld=
81ecdfbb
RW
2878# Check whether --enable-gold was given.
2879if test "${enable_gold+set}" = set; then :
2880 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2881else
2882 ENABLE_GOLD=no
81ecdfbb
RW
2883fi
2884
c7791212
NC
2885case "${ENABLE_GOLD}" in
2886 yes|default)
e6de499b
NC
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.
93f9b408 2904 case "${target}" in
e6de499b 2905 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
c7791212
NC
2906 configdirs="$configdirs gold"
2907 if test x${ENABLE_GOLD} = xdefault; then
2908 default_ld=gold
2909 fi
e6de499b 2910 ENABLE_GOLD=yes
93f9b408
ILT
2911 ;;
2912 esac
e6de499b
NC
2913 fi
2914 ;;
2915 no)
2916 ;;
2917 *)
2918 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2919 ;;
c7791212
NC
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)
d3b50760 2932 if test x${default_ld} != x; then
c7791212
NC
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
93f9b408 2949
a0da8069 2950# Configure extra directories which are host specific
252b5132 2951
a0da8069
NN
2952case "${host}" in
2953 *-cygwin*)
2954 configdirs="$configdirs libtermcap" ;;
2955esac
252b5132 2956
59f7ec45
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
c6b750e1 2961# Remove more programs from consideration, based on the host or
a0da8069
NN
2962# target this usually means that a port of the program doesn't
2963# exist yet.
252b5132 2964
a0da8069
NN
2965case "${host}" in
2966 hppa*64*-*-*)
2967 noconfigdirs="$noconfigdirs byacc"
2968 ;;
ec11bdc6 2969 i[3456789]86-*-vsta)
675c6968 2970 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2971 ;;
ec11bdc6 2972 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2973 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2974 ;;
2d1e8239
NC
2975 x86_64-*-mingw*)
2976 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2977 ;;
ec11bdc6 2978 i[3456789]86-*-mingw32*)
675c6968 2979 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2980 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2981 ;;
ec11bdc6 2982 i[3456789]86-*-beos*)
675c6968 2983 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2984 ;;
a0da8069 2985 *-*-cygwin*)
a92834c8 2986 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2987 ;;
2988 *-*-netbsd*)
a92834c8 2989 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2990 ;;
2991 ppc*-*-pe)
675c6968 2992 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2993 ;;
2994 powerpc-*-beos*)
675c6968 2995 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2996 ;;
a0da8069 2997esac
252b5132 2998
4b1cb4fe 2999
89a1e9c3
PB
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
81ecdfbb
RW
3025# Check whether --enable-libada was given.
3026if test "${enable_libada+set}" = set; then :
3027 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3028else
3029 ENABLE_LIBADA=yes
81ecdfbb
RW
3030fi
3031
a2592b1b 3032if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3033 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3034fi
3035
81ecdfbb
RW
3036# Check whether --enable-libssp was given.
3037if test "${enable_libssp+set}" = set; then :
3038 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3039else
3040 ENABLE_LIBSSP=yes
81ecdfbb
RW
3041fi
3042
5f128533 3043
a0da8069
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.
9e1a94f4
ILT
3056 # Don't disable libffi, though, other languages use it.
3057 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
a0da8069
NN
3058 ;;
3059esac
252b5132 3060
4b1cb4fe 3061
a6df5a19
PB
3062# Disable libmudflap on some systems.
3063if test x$enable_libmudflap = x ; then
3e707e94 3064 case "${target}" in
29383458 3065 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3066 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3067 ;;
3068 *-*-freebsd*)
3069 # Enable libmudflap by default in FreeBSD.
3070 ;;
3071 *)
3072 # Disable it by default everywhere else.
3073 noconfigdirs="$noconfigdirs target-libmudflap"
3074 ;;
3075 esac
a6df5a19 3076fi
4b1cb4fe 3077
a6df5a19
PB
3078# Disable libgomp on non POSIX hosted systems.
3079if test x$enable_libgomp = x ; then
b3ded179
PB
3080 # Enable libgomp by default on hosted POSIX systems.
3081 case "${target}" in
29383458 3082 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
3083 ;;
3084 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3085 ;;
64ce424c 3086 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3087 ;;
3088 *-*-darwin* | *-*-aix*)
3089 ;;
3090 *)
3091 noconfigdirs="$noconfigdirs target-libgomp"
3092 ;;
3093 esac
a6df5a19 3094fi
b3ded179 3095
691bb5a1
DD
3096# Default libgloss CPU subdirectory.
3097libgloss_dir="$target_cpu"
4b1cb4fe 3098
a0da8069
NN
3099case "${target}" in
3100 *-*-chorusos)
54d1c879 3101 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3102 ;;
24741ab2 3103 powerpc-*-darwin*)
9d39db92 3104 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3105 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3106 ;;
85bd1942
TG
3107 i[3456789]86-*-darwin*)
3108 noconfigdirs="$noconfigdirs ld gprof"
3109 noconfigdirs="$noconfigdirs sim target-rda"
3110 ;;
e8a5fa9c 3111 x86_64-*-darwin[912]*)
652dec25
TG
3112 noconfigdirs="$noconfigdirs ld gas gprof"
3113 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3114 ;;
04d1ab34 3115 *-*-darwin*)
d320aacb 3116 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3117 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3118 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3119 ;;
a0da8069 3120 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 3121 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3122 ;;
de0b4a87 3123 *-*-freebsd*)
4b1cb4fe
DD
3124 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3125 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3126 && test -f /usr/local/include/gmp.h; then
3127 with_gmp=/usr/local
3128 fi
3129
3130 # Skip some stuff that's unsupported on some FreeBSD configurations.
3131 case "${target}" in
3132 i*86-*-*) ;;
3133 alpha*-*-*) ;;
143754cd 3134 x86_64-*-*) ;;
4b1cb4fe 3135 *)
54d1c879 3136 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3137 ;;
3138 esac
3139 ;;
f8a495c8
NC
3140 *-*-kaos*)
3141 # Remove unsupported stuff on all kaOS configurations.
54d1c879 3142 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
3143 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3144 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3145 noconfigdirs="$noconfigdirs target-libgloss"
3146 ;;
a0da8069
NN
3147 *-*-netbsd*)
3148 # Skip some stuff on all NetBSD configurations.
3149 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3150
3151 # Skip some stuff that's unsupported on some NetBSD configurations.
3152 case "${target}" in
3153 i*86-*-netbsdelf*) ;;
5b474aa8 3154 arm*-*-netbsdelf*) ;;
a0da8069 3155 *)
54d1c879 3156 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3157 ;;
3158 esac
3159 ;;
2a3124ca 3160 *-*-netware*)
54d1c879 3161 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
3162 ;;
3163 *-*-rtems*)
a009f2e7 3164 skipdirs="${skipdirs} target-libiberty"
54d1c879 3165 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3166 ;;
1587117a
EC
3167 # The tpf target doesn't support gdb yet.
3168 *-*-tpf*)
54d1c879 3169 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 3170 ;;
c1968181 3171 *-*-uclinux*)
54d1c879 3172 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3173 ;;
a0da8069 3174 *-*-vxworks*)
54d1c879 3175 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3176 ;;
3177 alpha*-dec-osf*)
3178 # ld works, but does not support shared libraries.
3179 # newlib is not 64 bit ready. I'm not sure about fileutils.
3180 # gas doesn't generate exception information.
3181 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3182 ;;
3183 alpha*-*-*vms*)
d594eacc 3184 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3185 ;;
3186 alpha*-*-linux*)
3187 # newlib is not 64 bit ready
3188 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3189 ;;
a0da8069
NN
3190 alpha*-*-*)
3191 # newlib is not 64 bit ready
54d1c879 3192 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3193 ;;
4a18bd6b 3194 am33_2.0-*-linux*)
54d1c879 3195 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3196 ;;
a0da8069 3197 sh-*-linux*)
54d1c879 3198 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3199 ;;
a0da8069 3200 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3201 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3202 noconfigdirs="$noconfigdirs target-examples"
3203 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 3204 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3205 noconfigdirs="$noconfigdirs expect dejagnu"
3206 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3207 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
3208 noconfigdirs="$noconfigdirs target-newlib"
3209 case "${host}" in
3210 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 3211 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
3212 ;;
3213 esac
691bb5a1 3214 libgloss_dir=wince
a0da8069
NN
3215 ;;
3216 arc-*-*)
54d1c879 3217 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3218 ;;
caeba88f 3219 arm-semi-aof )
caeba88f 3220 ;;
a0da8069 3221 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 3222 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3223 libgloss_dir=arm
a0da8069 3224 ;;
11b04d1f 3225 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 3226 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 3227 libgloss_dir=arm
a0da8069 3228 ;;
bd70a46f 3229 arm*-*-linux-gnueabi)
6d18b86b 3230 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
3231 case ${with_newlib} in
3232 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3233 esac
691bb5a1 3234 libgloss_dir=arm
bd70a46f 3235 ;;
df4a6958 3236 arm*-*-symbianelf*)
54d1c879 3237 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3238 libgloss_dir=arm
df4a6958 3239 ;;
a0da8069 3240 arm-*-pe*)
54d1c879 3241 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3242 ;;
a0da8069 3243 thumb-*-coff)
54d1c879 3244 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3245 ;;
3246 thumb-*-elf)
54d1c879 3247 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3248 ;;
a0da8069 3249 thumb-*-pe)
54d1c879 3250 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3251 ;;
3252 arm-*-riscix*)
54d1c879 3253 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3254 ;;
3255 avr-*-*)
266df637 3256 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3257 ;;
376a0e54 3258 bfin-*-*)
df51e4e1
JZ
3259 unsupported_languages="$unsupported_languages java"
3260 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3cf3372e 3261 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3262 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3263 fi
3264 ;;
a0da8069 3265 c4x-*-* | tic4x-*-*)
54d1c879 3266 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3267 ;;
3268 c54x*-*-* | tic54x-*-*)
54d1c879 3269 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3270 ;;
52310858
NC
3271 cr16-*-*)
3272 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3273 ;;
c7e66c6d 3274 cris-*-* | crisv32-*-*)
59f7ec45 3275 unsupported_languages="$unsupported_languages java"
c7e66c6d 3276 case "${target}" in
2faa2958 3277 *-*-aout)
096f7d00 3278 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3279 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
d357cef7
HPN
3280 *-*-elf) # See PR46792 regarding target-libffi.
3281 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3282 *-*-linux*)
5e818318 3283 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3284 *)
096f7d00 3285 unsupported_languages="$unsupported_languages fortran"
54d1c879 3286 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3287 esac
691bb5a1 3288 libgloss_dir=cris
a0da8069 3289 ;;
3e707e94 3290 crx-*-*)
54d1c879 3291 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 3292 ;;
a0da8069 3293 d10v-*-*)
54d1c879 3294 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3295 ;;
3296 d30v-*-*)
54d1c879 3297 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 3298 ;;
691bb5a1
DD
3299 ep9312-*-elf | ep9312-*-coff)
3300 libgloss_dir=arm
3301 ;;
a0da8069 3302 fr30-*-elf*)
54d1c879 3303 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3304 ;;
3305 frv-*-*)
54d1c879 3306 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3307 ;;
20135e4c
NC
3308 moxie-*-*)
3309 noconfigdirs="$noconfigdirs ${libgcj}"
3310 noconfigdirs="$noconfigdirs gprof"
3311 ;;
a0da8069 3312 h8300*-*-*)
54d1c879 3313 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3314 ;;
3315 h8500-*-*)
54d1c879 3316 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3317 ;;
caeba88f 3318 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3319 ;;
a0da8069
NN
3320 hppa*64*-*-linux* | parisc*64*-*-linux*)
3321 # In this case, it's because the hppa64-linux target is for
3322 # the kernel only at this point and has no libc, and thus no
3323 # headers, crt*.o, etc., all of which are needed by these.
3324 noconfigdirs="$noconfigdirs target-zlib"
3325 ;;
5dcac624
DA
3326 parisc*-*-linux* | hppa*-*-linux*)
3327 ;;
a0da8069 3328 hppa*-*-*elf* | \
a0da8069
NN
3329 hppa*-*-lites* | \
3330 hppa*-*-openbsd* | \
3331 hppa*64*-*-*)
54d1c879 3332 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3333 ;;
3334 hppa*-hp-hpux11*)
3335 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3336 ;;
691bb5a1
DD
3337 hppa*-*-pro*)
3338 libgloss_dir=pa
3339 ;;
a0da8069
NN
3340 hppa*-*-*)
3341 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3342 # build on HP-UX 10.20.
54d1c879 3343 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3344 ;;
b07c2aad 3345 i960-*-*)
54d1c879 3346 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3347 ;;
a0da8069
NN
3348 ia64*-*-elf*)
3349 # No gdb support yet.
675c6968 3350 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3351 ;;
3352 ia64*-**-hpux*)
3353 # No gdb or ld support yet.
54d1c879 3354 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 3355 ;;
19e99079
NC
3356 ia64*-*-*vms*)
3357 # No gdb or ld support yet.
3358 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3359 ;;
caeba88f 3360 i370-*-opened*)
caeba88f 3361 ;;
ec11bdc6 3362 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3363 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3364 libgloss_dir=i386
a0da8069 3365 ;;
ec11bdc6 3366 i[3456789]86-*-linux*)
a0da8069
NN
3367 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3368 # not build java stuff by default.
3369 case "${target}" in
3370 *-*-*libc1*)
54d1c879 3371 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3372 esac
3373
3374 # This section makes it possible to build newlib natively on linux.
3375 # If we are using a cross compiler then don't configure newlib.
3376 if test x${is_cross_compiler} != xno ; then
bba45b8b 3377 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3378 fi
3379 noconfigdirs="$noconfigdirs target-libgloss"
3380 # If we are not using a cross compiler, do configure newlib.
3381 # Note however, that newlib will only be configured in this situation
3382 # if the --with-newlib option has been given, because otherwise
3383 # 'target-newlib' will appear in skipdirs.
3384 ;;
1f53ca9a
AO
3385 i[3456789]86-w64-mingw*)
3386 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3387 ;;
3388 i[3456789]86-*-mingw*)
45055374
CV
3389 target_configdirs="$target_configdirs target-winsup"
3390 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3391 ;;
2d1e8239 3392 x86_64-*-mingw*)
2d1e8239 3393 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3394 ;;
a0da8069
NN
3395 *-*-cygwin*)
3396 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3397 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3398 # always build newlib if winsup directory is present.
45055374 3399 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3400 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3401 elif test -d "$srcdir/newlib"; then
45055374 3402 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3403 fi
c6b750e1 3404 ;;
caeba88f
AL
3405 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3406 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 3407 ;;
ec11bdc6 3408 i[3456789]86-*-pe)
54d1c879 3409 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3410 ;;
ec11bdc6 3411 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3412 # The linker does not yet know about weak symbols in COFF,
3413 # and is not configured to handle mixed ELF and COFF.
54d1c879 3414 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3415 ;;
ec11bdc6 3416 i[3456789]86-*-sco*)
54d1c879 3417 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3418 ;;
ec11bdc6 3419 i[3456789]86-*-solaris2*)
a0da8069
NN
3420 noconfigdirs="$noconfigdirs target-libgloss"
3421 ;;
ec11bdc6 3422 i[3456789]86-*-sysv4*)
54d1c879 3423 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3424 ;;
ec11bdc6 3425 i[3456789]86-*-beos*)
54d1c879 3426 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3427 ;;
b59bea8a 3428 i[3456789]86-*-rdos*)
2429c060
PB
3429 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3430 ;;
b07c2aad 3431 m32r-*-*)
54d1c879 3432 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3433 ;;
a0da8069 3434 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 3435 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 3436 libgloss_dir=m68hc11
a0da8069
NN
3437 ;;
3438 m68k-*-elf*)
54d1c879 3439 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3440 ;;
3441 m68k-*-coff*)
54d1c879 3442 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3443 ;;
691bb5a1
DD
3444 m68*-*-* | fido-*-*)
3445 libgloss_dir=m68k
3446 ;;
a0da8069
NN
3447 mcore-*-pe*)
3448 # The EPOC C++ environment does not support exceptions or rtti,
3449 # and so building libstdc++-v3 tends not to always work.
3450 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3451 ;;
3452 mmix-*-*)
59f7ec45 3453 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3454 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3455 ;;
3456 mn10200-*-*)
54d1c879 3457 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3458 ;;
3459 mn10300-*-*)
54d1c879 3460 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3461 ;;
4970f871 3462 mt-*-*)
cdb9b172
AH
3463 noconfigdirs="$noconfigdirs sim"
3464 ;;
a0da8069
NN
3465 powerpc-*-aix*)
3466 # copied from rs6000-*-* entry
e8a5fa9c 3467 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3468 ;;
3469 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3470 target_configdirs="$target_configdirs target-winsup"
54d1c879 3471 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3472 # always build newlib.
3473 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3474 ;;
3475 # This is temporary until we can link against shared libraries
3476 powerpcle-*-solaris*)
54d1c879 3477 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3478 libgloss_dir=rs6000
a0da8069
NN
3479 ;;
3480 powerpc-*-beos*)
54d1c879 3481 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3482 ;;
a0da8069 3483 powerpc-*-eabi)
54d1c879 3484 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3485 libgloss_dir=rs6000
caeba88f
AL
3486 ;;
3487 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3488 libgloss_dir=rs6000
a0da8069 3489 ;;
a0da8069 3490 rs6000-*-lynxos*)
54d1c879 3491 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3492 ;;
3493 rs6000-*-aix*)
e8a5fa9c 3494 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3495 ;;
3496 rs6000-*-*)
54d1c879 3497 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3498 ;;
3499 m68k-apollo-*)
54d1c879 3500 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3501 ;;
25a07265 3502 microblaze*)
29821356 3503 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
25a07265 3504 ;;
5bd8be13
RS
3505 mips*-sde-elf*)
3506 skipdirs="$skipdirs target-libiberty"
3507 noconfigdirs="$noconfigdirs ${libgcj}"
3508 if test x$with_newlib = xyes; then
3509 noconfigdirs="$noconfigdirs gprof"
3510 fi
3511 libgloss_dir=mips
3512 ;;
a0da8069 3513 mips*-*-irix5*)
54d1c879 3514 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3515 ;;
3516 mips*-*-irix6*)
a0da8069
NN
3517 # Linking libjava exceeds command-line length limits on at least
3518 # IRIX 6.2, but not on IRIX 6.5.
3519 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3520 # <oldham@codesourcery.com>
54d1c879 3521 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3522 ;;
a0da8069 3523 mips*-*-bsd*)
54d1c879 3524 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3525 ;;
a0da8069
NN
3526 mips*-*-linux*)
3527 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3528 ;;
3529 mips*-*-*)
54d1c879 3530 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3531 libgloss_dir=mips
a0da8069
NN
3532 ;;
3533 romp-*-*)
54d1c879 3534 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3535 ;;
dbf85af7 3536 sh-*-* | sh64-*-*)
a0da8069 3537 case "${host}" in
ec11bdc6
DD
3538 i[3456789]86-*-vsta) ;; # don't add gprof back in
3539 i[3456789]86-*-go32*) ;; # don't add gprof back in
3540 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3541 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3542 esac
e8a5fa9c
RW
3543 case "${target}" in
3544 sh*-*-elf)
3545 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3546 *)
3547 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3548 esac
a0da8069 3549 ;;
691bb5a1
DD
3550 sparclet-*-aout* | sparc86x-*-*)
3551 libgloss_dir=sparc
3552 ;;
a0da8069 3553 sparc-*-elf*)
54d1c879 3554 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3555 ;;
3556 sparc64-*-elf*)
54d1c879 3557 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3558 libgloss_dir=sparc
a0da8069
NN
3559 ;;
3560 sparclite-*-*)
54d1c879 3561 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3562 libgloss_dir=sparc
a0da8069
NN
3563 ;;
3564 sparc-*-sunos4*)
54d1c879 3565 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3566 if test x${is_cross_compiler} != xno ; then
3567 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3568 else
3569 use_gnu_ld=no
3570 fi
3571 ;;
e3c770b1 3572 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3573 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3574 ;;
a0da8069
NN
3575 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3576 ;;
619a3713
JM
3577 tic6x-*-*)
3578 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3579 ;;
a0da8069 3580 v810-*-*)
54d1c879 3581 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069 3582 ;;
1cd986c5
NC
3583 v850*-*-*)
3584 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3585 ;;
3586 vax-*-vms)
54d1c879 3587 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3588 ;;
3589 vax-*-*)
54d1c879 3590 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3591 ;;
8b66833e 3592 xtensa*-*-*)
54d1c879 3593 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3594 ;;
a0da8069 3595 ip2k-*-*)
54d1c879 3596 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3597 ;;
29383458 3598 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3599 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3600 ;;
3601 *-*-lynxos*)
54d1c879 3602 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3603 ;;
a0da8069 3604 *-*-*)
54d1c879 3605 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3606 ;;
3607esac
252b5132 3608
a0da8069
NN
3609# If we aren't building newlib, then don't build libgloss, since libgloss
3610# depends upon some newlib header files.
3611case "${noconfigdirs}" in
3612 *target-libgloss*) ;;
3613 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3614esac
3615
a0da8069
NN
3616# Work in distributions that contain no compiler tools, like Autoconf.
3617tentative_cc=""
3618host_makefile_frag=/dev/null
3619if test -d ${srcdir}/config ; then
3620case "${host}" in
3621 m68k-hp-hpux*)
3622 # Avoid "too much defining" errors from HPUX compiler.
3623 tentative_cc="cc -Wp,-H256000"
3624 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3625 # If it's HP/UX ar, this should be harmless.
3626 RANLIB="ar ts"
3627 ;;
3628 m68k-apollo-sysv*)
3629 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3630 ;;
3631 m68k-apollo-bsd*)
3632 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3633 # chokes on bfd, the compiler won't let you assign integers to enums, and
3634 # other problems. Defining CC to gcc is a questionable way to say "don't use
3635 # the apollo compiler" (the preferred version of GCC could be called cc,
3636 # or whatever), but I'm not sure leaving CC as cc is any better...
3637 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3638 # Used to have BISON=yacc.
3639 tentative_cc=gcc
3640 ;;
3641 m88k-dg-dgux*)
3642 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3643 ;;
3644 m88k-harris-cxux*)
3645 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3646 tentative_cc="cc -Xa"
3647 host_makefile_frag="config/mh-cxux"
3648 ;;
3649 m88k-motorola-sysv*)
3650 ;;
3651 mips*-dec-ultrix*)
3652 tentative_cc="cc -Wf,-XNg1000"
3653 host_makefile_frag="config/mh-decstation"
3654 ;;
3655 mips*-nec-sysv4*)
3656 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3657 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3658 host_makefile_frag="config/mh-necv4"
3659 ;;
3660 mips*-sgi-irix4*)
3661 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3662 # environment. Also bump switch table size so that cp-parse will
3663 # compile. Bump string length limit so linker builds.
3664 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3665 ;;
3666 mips*-*-sysv4*)
3667 host_makefile_frag="config/mh-sysv4"
3668 ;;
3669 mips*-*-sysv*)
3670 # This is for a MIPS running RISC/os 4.52C.
3671
3672 # This is needed for GDB, but needs to be in the top-level make because
3673 # if a library is compiled with the bsd headers and gets linked with the
3674 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3675 # a different size).
3676 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3677 # known except to select the sysv environment. Could we use /proc instead?
3678 # These "sysv environments" and "bsd environments" often end up being a pain.
3679 #
3680 # This is not part of CFLAGS because perhaps not all C compilers have this
3681 # option.
3682 tentative_cc="cc -systype sysv"
3683 ;;
3684 i370-ibm-opened*)
3685 tentative_cc="c89"
3686 ;;
ec11bdc6 3687 i[3456789]86-*-sysv5*)
a0da8069
NN
3688 host_makefile_frag="config/mh-sysv5"
3689 ;;
ec11bdc6 3690 i[3456789]86-*-dgux*)
a0da8069
NN
3691 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3692 host_makefile_frag="config/mh-dgux386"
3693 ;;
ec11bdc6 3694 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3695 # The MetaWare compiler will generate a copyright message unless you
3696 # turn it off by adding the -Hnocopyr flag.
3697 tentative_cc="cc -Hnocopyr"
3698 ;;
ec11bdc6 3699 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3700 # for an NCR 3000 (i486/SVR4) system.
3701 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3702 # This compiler not only emits obnoxious copyright messages every time
3703 # you run it, but it chokes and dies on a whole bunch of GNU source
3704 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3705 tentative_cc="/usr/ccs/ATT/cc"
3706 host_makefile_frag="config/mh-ncr3000"
3707 ;;
ec11bdc6 3708 i[3456789]86-*-sco3.2v5*)
a0da8069 3709 ;;
ec11bdc6 3710 i[3456789]86-*-sco*)
a0da8069
NN
3711 # The native C compiler botches some simple uses of const. Unfortunately,
3712 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3713 tentative_cc="cc -Dconst="
3714 host_makefile_frag="config/mh-sco"
3715 ;;
ec11bdc6 3716 i[3456789]86-*-udk*)
a0da8069
NN
3717 host_makefile_frag="config/mh-sysv5"
3718 ;;
ec11bdc6 3719 i[3456789]86-*-solaris2*)
a0da8069
NN
3720 host_makefile_frag="config/mh-sysv4"
3721 ;;
ec11bdc6 3722 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3723 host_makefile_frag="config/mh-djgpp"
3724 ;;
3725 *-cygwin*)
e33b51a6 3726
81ecdfbb
RW
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3728$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3729echo a >cygwin-cat-check
1f53ca9a 3730if test `cat cygwin-cat-check` = a ; then
8ade07e9 3731 rm cygwin-cat-check
81ecdfbb
RW
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3733$as_echo "yes" >&6; }
e33b51a6 3734else
8ade07e9 3735 rm cygwin-cat-check
81ecdfbb
RW
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737$as_echo "no" >&6; }
3738 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3739 Please either mount the build directory in binary mode or run the following
3740 commands before running any configure script:
3741set -o igncr
3742export SHELLOPTS
81ecdfbb 3743 " "$LINENO" 5
e33b51a6 3744fi
e33b51a6 3745
a0da8069
NN
3746 host_makefile_frag="config/mh-cygwin"
3747 ;;
8a1599ab 3748 *-mingw*)
84e7906e 3749 host_makefile_frag="config/mh-mingw"
2d1e8239 3750 ;;
a0da8069
NN
3751 *-interix*)
3752 host_makefile_frag="config/mh-interix"
3753 ;;
3754 vax-*-ultrix2*)
3755 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3756 tentative_cc=gcc
3757 ;;
3758 *-*-solaris2*)
3759 host_makefile_frag="config/mh-solaris"
3760 ;;
3761 m68k-sun-sunos*)
3762 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3763 # without overflowing the jump tables (-J says to use a 32 bit table)
3764 tentative_cc="cc -J"
3765 ;;
da888c87 3766 hppa*-hp-hpux10*)
a0da8069 3767 tentative_cc="cc -Wp,-H256000"
da888c87 3768 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3769 ;;
da888c87
PB
3770 hppa*-hp-hpux* | hppa*-*-hiux*)
3771 tentative_cc="cc -Wp,-H256000"
3772 host_makefile_frag="config/mh-pa"
3773 ;;
3774 hppa*-*)
3775 host_makefile_frag="config/mh-pa"
3776 ;;
3777 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3778 tentative_cc="cc -Wp,-H256000"
3779 ;;
3780 rs6000-*-lynxos*)
3781 # /bin/cc is less than useful for our purposes. Always use GCC
3782 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3783 host_makefile_frag="config/mh-lynxrs6k"
3784 ;;
e552509b
ILT
3785 *-*-darwin*)
3786 host_makefile_frag="config/mh-darwin"
0df3d27f 3787 ;;
f6d183c0
PB
3788 powerpc-*-aix*)
3789 host_makefile_frag="config/mh-ppc-aix"
3790 ;;
3791 rs6000-*-aix*)
3792 host_makefile_frag="config/mh-ppc-aix"
3793 ;;
a0da8069
NN
3794 *-*-lynxos*)
3795 # /bin/cc is less than useful for our purposes. Always use GCC
3796 tentative_cc="/bin/gcc"
3797 ;;
3798 *-*-sysv4*)
3799 host_makefile_frag="config/mh-sysv4"
3800 ;;
fe69863c
DD
3801 # This is placed last to prevent interfering with the cases above.
3802 i[3456789]86-*-*)
3803 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3804 host_makefile_frag="config/mh-x86omitfp"
3805 ;;
a0da8069
NN
3806esac
3807fi
3808
9e07f89d
NN
3809# If we aren't going to be using gcc, see if we can extract a definition
3810# of CC from the fragment.
3811# Actually, use the 'pre-extracted' version above.
3812if test -z "${CC}" && test "${build}" = "${host}" ; then
3813 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3814 found=
3815 for dir in $PATH; do
3816 test -z "$dir" && dir=.
3817 if test -f $dir/gcc; then
3818 found=yes
3819 break
3820 fi
3821 done
3822 IFS="$save_ifs"
3823 if test -z "${found}" && test -n "${tentative_cc}" ; then
3824 CC=$tentative_cc
3825 fi
3826fi
3827
3828if test "${build}" != "${host}" ; then
1576798e
PB
3829 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3830 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3831 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3832 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3833 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3834 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3835 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3836 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3837 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3838 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3839 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3840 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3841 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3842else
3843 AR_FOR_BUILD="\$(AR)"
3844 AS_FOR_BUILD="\$(AS)"
512b7dfb 3845 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3846 CXX_FOR_BUILD="\$(CXX)"
3847 GCJ_FOR_BUILD="\$(GCJ)"
3848 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3849 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3850 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3851 LD_FOR_BUILD="\$(LD)"
3852 NM_FOR_BUILD="\$(NM)"
3853 RANLIB_FOR_BUILD="\$(RANLIB)"
3854 WINDRES_FOR_BUILD="\$(WINDRES)"
3855 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3856fi
3857
3858ac_ext=c
c6b750e1
DJ
3859ac_cpp='$CPP $CPPFLAGS'
3860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3862ac_compiler_gnu=$ac_cv_c_compiler_gnu
3863if test -n "$ac_tool_prefix"; then
3864 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3865set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3867$as_echo_n "checking for $ac_word... " >&6; }
3868if test "${ac_cv_prog_CC+set}" = set; then :
3869 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3870else
3871 if test -n "$CC"; then
3872 ac_cv_prog_CC="$CC" # Let the user override the test.
3873else
3874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3875for as_dir in $PATH
3876do
3877 IFS=$as_save_IFS
3878 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3879 for ac_exec_ext in '' $ac_executable_extensions; do
3880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3881 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3883 break 2
3884 fi
3885done
81ecdfbb
RW
3886 done
3887IFS=$as_save_IFS
c6b750e1
DJ
3888
3889fi
3890fi
3891CC=$ac_cv_prog_CC
3892if test -n "$CC"; then
81ecdfbb
RW
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3894$as_echo "$CC" >&6; }
c6b750e1 3895else
81ecdfbb
RW
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897$as_echo "no" >&6; }
c6b750e1
DJ
3898fi
3899
81ecdfbb 3900
c6b750e1
DJ
3901fi
3902if test -z "$ac_cv_prog_CC"; then
3903 ac_ct_CC=$CC
6a9cf61e 3904 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3905set dummy gcc; ac_word=$2
81ecdfbb
RW
3906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907$as_echo_n "checking for $ac_word... " >&6; }
3908if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3909 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3910else
3911 if test -n "$ac_ct_CC"; then
3912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3913else
3914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915for as_dir in $PATH
3916do
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3921 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3923 break 2
3924 fi
3925done
81ecdfbb
RW
3926 done
3927IFS=$as_save_IFS
c6b750e1
DJ
3928
3929fi
3930fi
3931ac_ct_CC=$ac_cv_prog_ac_ct_CC
3932if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3934$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3935else
81ecdfbb
RW
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937$as_echo "no" >&6; }
c6b750e1
DJ
3938fi
3939
81ecdfbb
RW
3940 if test "x$ac_ct_CC" = x; then
3941 CC=""
3942 else
3943 case $cross_compiling:$ac_tool_warned in
3944yes:)
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3947ac_tool_warned=yes ;;
3948esac
3949 CC=$ac_ct_CC
3950 fi
c6b750e1
DJ
3951else
3952 CC="$ac_cv_prog_CC"
3953fi
3954
3955if test -z "$CC"; then
81ecdfbb
RW
3956 if test -n "$ac_tool_prefix"; then
3957 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3958set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960$as_echo_n "checking for $ac_word... " >&6; }
3961if test "${ac_cv_prog_CC+set}" = set; then :
3962 $as_echo_n "(cached) " >&6
9e07f89d
NN
3963else
3964 if test -n "$CC"; then
3965 ac_cv_prog_CC="$CC" # Let the user override the test.
3966else
c6b750e1
DJ
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970 IFS=$as_save_IFS
3971 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3974 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3976 break 2
3977 fi
3978done
81ecdfbb
RW
3979 done
3980IFS=$as_save_IFS
c6b750e1 3981
9e07f89d
NN
3982fi
3983fi
c6b750e1 3984CC=$ac_cv_prog_CC
9e07f89d 3985if test -n "$CC"; then
81ecdfbb
RW
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3987$as_echo "$CC" >&6; }
c6b750e1 3988else
81ecdfbb
RW
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3990$as_echo "no" >&6; }
c6b750e1
DJ
3991fi
3992
c6b750e1 3993
81ecdfbb 3994 fi
c6b750e1 3995fi
9e07f89d
NN
3996if test -z "$CC"; then
3997 # Extract the first word of "cc", so it can be a program name with args.
3998set dummy cc; ac_word=$2
81ecdfbb
RW
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000$as_echo_n "checking for $ac_word... " >&6; }
4001if test "${ac_cv_prog_CC+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
9e07f89d
NN
4003else
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4006else
9e07f89d 4007 ac_prog_rejected=no
c6b750e1
DJ
4008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009for as_dir in $PATH
4010do
4011 IFS=$as_save_IFS
4012 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4013 for ac_exec_ext in '' $ac_executable_extensions; do
4014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4015 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4016 ac_prog_rejected=yes
4017 continue
4018 fi
4019 ac_cv_prog_CC="cc"
81ecdfbb 4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4021 break 2
4022 fi
4023done
81ecdfbb
RW
4024 done
4025IFS=$as_save_IFS
c6b750e1 4026
9e07f89d
NN
4027if test $ac_prog_rejected = yes; then
4028 # We found a bogon in the path, so make sure we never use it.
4029 set dummy $ac_cv_prog_CC
4030 shift
c6b750e1 4031 if test $# != 0; then
9e07f89d
NN
4032 # We chose a different compiler from the bogus one.
4033 # However, it has the same basename, so the bogon will be chosen
4034 # first if we set CC to just the basename; use the full file name.
4035 shift
c6b750e1 4036 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4037 fi
4038fi
4039fi
4040fi
c6b750e1 4041CC=$ac_cv_prog_CC
9e07f89d 4042if test -n "$CC"; then
81ecdfbb
RW
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4044$as_echo "$CC" >&6; }
9e07f89d 4045else
81ecdfbb
RW
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047$as_echo "no" >&6; }
9e07f89d
NN
4048fi
4049
81ecdfbb 4050
c6b750e1
DJ
4051fi
4052if test -z "$CC"; then
4053 if test -n "$ac_tool_prefix"; then
81ecdfbb 4054 for ac_prog in cl.exe
c6b750e1
DJ
4055 do
4056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4057set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059$as_echo_n "checking for $ac_word... " >&6; }
4060if test "${ac_cv_prog_CC+set}" = set; then :
4061 $as_echo_n "(cached) " >&6
9e07f89d
NN
4062else
4063 if test -n "$CC"; then
4064 ac_cv_prog_CC="$CC" # Let the user override the test.
4065else
c6b750e1
DJ
4066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067for as_dir in $PATH
4068do
4069 IFS=$as_save_IFS
4070 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4073 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4075 break 2
376a0e54 4076 fi
c6b750e1 4077done
81ecdfbb
RW
4078 done
4079IFS=$as_save_IFS
cac3d6c4 4080
c6b750e1
DJ
4081fi
4082fi
4083CC=$ac_cv_prog_CC
4084if test -n "$CC"; then
81ecdfbb
RW
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4086$as_echo "$CC" >&6; }
cac3d6c4 4087else
81ecdfbb
RW
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089$as_echo "no" >&6; }
9e07f89d 4090fi
cac3d6c4 4091
81ecdfbb 4092
c6b750e1
DJ
4093 test -n "$CC" && break
4094 done
cac3d6c4 4095fi
c6b750e1
DJ
4096if test -z "$CC"; then
4097 ac_ct_CC=$CC
81ecdfbb 4098 for ac_prog in cl.exe
c6b750e1
DJ
4099do
4100 # Extract the first word of "$ac_prog", so it can be a program name with args.
4101set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4103$as_echo_n "checking for $ac_word... " >&6; }
4104if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4105 $as_echo_n "(cached) " >&6
cac3d6c4 4106else
c6b750e1
DJ
4107 if test -n "$ac_ct_CC"; then
4108 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4109else
c6b750e1
DJ
4110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111for as_dir in $PATH
4112do
4113 IFS=$as_save_IFS
4114 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4115 for ac_exec_ext in '' $ac_executable_extensions; do
4116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4117 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4119 break 2
4120 fi
4121done
81ecdfbb
RW
4122 done
4123IFS=$as_save_IFS
c6b750e1 4124
cac3d6c4
CM
4125fi
4126fi
c6b750e1
DJ
4127ac_ct_CC=$ac_cv_prog_ac_ct_CC
4128if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4130$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4131else
81ecdfbb
RW
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133$as_echo "no" >&6; }
cac3d6c4 4134fi
376a0e54 4135
81ecdfbb 4136
c6b750e1
DJ
4137 test -n "$ac_ct_CC" && break
4138done
4139
81ecdfbb
RW
4140 if test "x$ac_ct_CC" = x; then
4141 CC=""
4142 else
4143 case $cross_compiling:$ac_tool_warned in
4144yes:)
4145{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4146$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4147ac_tool_warned=yes ;;
4148esac
4149 CC=$ac_ct_CC
4150 fi
c6b750e1
DJ
4151fi
4152
4153fi
4154
4155
81ecdfbb
RW
4156test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158as_fn_error "no acceptable C compiler found in \$PATH
4159See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4160
4161# Provide some information about the compiler.
81ecdfbb
RW
4162$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4163set X $ac_compile
4164ac_compiler=$2
4165for ac_option in --version -v -V -qversion; do
4166 { { ac_try="$ac_compiler $ac_option >&5"
4167case "(($ac_try" in
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4170esac
4171eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4172$as_echo "$ac_try_echo"; } >&5
4173 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4174 ac_status=$?
81ecdfbb
RW
4175 if test -s conftest.err; then
4176 sed '10a\
4177... rest of stderr output deleted ...
4178 10q' conftest.err >conftest.er1
4179 cat conftest.er1 >&5
4180 rm -f conftest.er1 conftest.err
4181 fi
4182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183 test $ac_status = 0; }
4184done
c6b750e1 4185
81ecdfbb 4186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4187/* end confdefs.h. */
4188
4189int
4190main ()
4191{
4192
4193 ;
4194 return 0;
4195}
4196_ACEOF
4197ac_clean_files_save=$ac_clean_files
81ecdfbb 4198ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4199# Try to create an executable without -o first, disregard a.out.
4200# It will help us diagnose broken compilers, and finding out an intuition
4201# of exeext.
81ecdfbb
RW
4202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4203$as_echo_n "checking for C compiler default output file name... " >&6; }
4204ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4205
4206# The possible output files:
4207ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4208
4209ac_rmfiles=
4210for ac_file in $ac_files
4211do
4212 case $ac_file in
4213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4214 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4215 esac
4216done
4217rm -f $ac_rmfiles
4218
4219if { { ac_try="$ac_link_default"
4220case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4223esac
4224eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4225$as_echo "$ac_try_echo"; } >&5
4226 (eval "$ac_link_default") 2>&5
c6b750e1 4227 ac_status=$?
81ecdfbb
RW
4228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4229 test $ac_status = 0; }; then :
4230 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4231# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4232# in a Makefile. We should not override ac_cv_exeext if it was cached,
4233# so that the user can short-circuit this test for compilers unknown to
4234# Autoconf.
4235for ac_file in $ac_files ''
c6b750e1
DJ
4236do
4237 test -f "$ac_file" || continue
4238 case $ac_file in
81ecdfbb 4239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4240 ;;
4241 [ab].out )
4242 # We found the default executable, but exeext='' is most
4243 # certainly right.
4244 break;;
4245 *.* )
81ecdfbb
RW
4246 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4247 then :; else
4248 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4249 fi
4250 # We set ac_cv_exeext here because the later test for it is not
4251 # safe: cross compilers may not add the suffix if given an `-o'
4252 # argument, so we may need to know it at that point already.
4253 # Even if this section looks crufty: it has the advantage of
4254 # actually working.
c6b750e1
DJ
4255 break;;
4256 * )
4257 break;;
4258 esac
4259done
81ecdfbb
RW
4260test "$ac_cv_exeext" = no && ac_cv_exeext=
4261
c6b750e1 4262else
81ecdfbb
RW
4263 ac_file=''
4264fi
4265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4266$as_echo "$ac_file" >&6; }
4267if test -z "$ac_file"; then :
4268 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4269sed 's/^/| /' conftest.$ac_ext >&5
4270
81ecdfbb
RW
4271{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273{ as_fn_set_status 77
4274as_fn_error "C compiler cannot create executables
4275See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4276fi
c6b750e1 4277ac_exeext=$ac_cv_exeext
c6b750e1 4278
81ecdfbb 4279# Check that the compiler produces executables we can run. If not, either
c6b750e1 4280# the compiler is broken, or we cross compile.
81ecdfbb
RW
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4282$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4283# If not cross compiling, check that we can run a simple program.
4284if test "$cross_compiling" != yes; then
4285 if { ac_try='./$ac_file'
81ecdfbb
RW
4286 { { case "(($ac_try" in
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4289esac
4290eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4291$as_echo "$ac_try_echo"; } >&5
4292 (eval "$ac_try") 2>&5
c6b750e1 4293 ac_status=$?
81ecdfbb
RW
4294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295 test $ac_status = 0; }; }; then
c6b750e1
DJ
4296 cross_compiling=no
4297 else
4298 if test "$cross_compiling" = maybe; then
4299 cross_compiling=yes
4300 else
81ecdfbb
RW
4301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4303as_fn_error "cannot run C compiled programs.
c6b750e1 4304If you meant to cross compile, use \`--host'.
81ecdfbb 4305See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4306 fi
4307 fi
4308fi
81ecdfbb
RW
4309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4310$as_echo "yes" >&6; }
c6b750e1 4311
81ecdfbb 4312rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4313ac_clean_files=$ac_clean_files_save
81ecdfbb 4314# Check that the compiler produces executables we can run. If not, either
c6b750e1 4315# the compiler is broken, or we cross compile.
81ecdfbb
RW
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4317$as_echo_n "checking whether we are cross compiling... " >&6; }
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4319$as_echo "$cross_compiling" >&6; }
4320
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4322$as_echo_n "checking for suffix of executables... " >&6; }
4323if { { ac_try="$ac_link"
4324case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4327esac
4328eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4329$as_echo "$ac_try_echo"; } >&5
4330 (eval "$ac_link") 2>&5
c6b750e1 4331 ac_status=$?
81ecdfbb
RW
4332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4333 test $ac_status = 0; }; then :
c6b750e1
DJ
4334 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4335# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4336# work properly (i.e., refer to `conftest.exe'), while it won't with
4337# `rm'.
4338for ac_file in conftest.exe conftest conftest.*; do
4339 test -f "$ac_file" || continue
4340 case $ac_file in
81ecdfbb 4341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4342 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4343 break;;
4344 * ) break;;
4345 esac
4346done
4347else
81ecdfbb
RW
4348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4350as_fn_error "cannot compute suffix of executables: cannot compile and link
4351See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4352fi
c6b750e1 4353rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4355$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4356
4357rm -f conftest.$ac_ext
4358EXEEXT=$ac_cv_exeext
4359ac_exeext=$EXEEXT
81ecdfbb
RW
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4361$as_echo_n "checking for suffix of object files... " >&6; }
4362if test "${ac_cv_objext+set}" = set; then :
4363 $as_echo_n "(cached) " >&6
c6b750e1 4364else
81ecdfbb 4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4366/* end confdefs.h. */
4367
4368int
4369main ()
4370{
4371
4372 ;
4373 return 0;
4374}
4375_ACEOF
4376rm -f conftest.o conftest.obj
81ecdfbb
RW
4377if { { ac_try="$ac_compile"
4378case "(($ac_try" in
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4381esac
4382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383$as_echo "$ac_try_echo"; } >&5
4384 (eval "$ac_compile") 2>&5
c6b750e1 4385 ac_status=$?
81ecdfbb
RW
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; }; then :
4388 for ac_file in conftest.o conftest.obj conftest.*; do
4389 test -f "$ac_file" || continue;
c6b750e1 4390 case $ac_file in
81ecdfbb 4391 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4392 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4393 break;;
4394 esac
4395done
cac3d6c4 4396else
81ecdfbb 4397 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4398sed 's/^/| /' conftest.$ac_ext >&5
4399
81ecdfbb
RW
4400{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4402as_fn_error "cannot compute suffix of object files: cannot compile
4403See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4404fi
c6b750e1
DJ
4405rm -f conftest.$ac_cv_objext conftest.$ac_ext
4406fi
81ecdfbb
RW
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4408$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4409OBJEXT=$ac_cv_objext
4410ac_objext=$OBJEXT
81ecdfbb
RW
4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4412$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4413if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4414 $as_echo_n "(cached) " >&6
c6b750e1 4415else
81ecdfbb 4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4417/* end confdefs.h. */
4418
4419int
4420main ()
4421{
4422#ifndef __GNUC__
4423 choke me
4424#endif
4425
4426 ;
4427 return 0;
4428}
4429_ACEOF
81ecdfbb 4430if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4431 ac_compiler_gnu=yes
4432else
81ecdfbb 4433 ac_compiler_gnu=no
c6b750e1 4434fi
81ecdfbb 4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4436ac_cv_c_compiler_gnu=$ac_compiler_gnu
4437
4438fi
81ecdfbb
RW
4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4440$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4441if test $ac_compiler_gnu = yes; then
4442 GCC=yes
4443else
4444 GCC=
4445fi
c6b750e1
DJ
4446ac_test_CFLAGS=${CFLAGS+set}
4447ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4449$as_echo_n "checking whether $CC accepts -g... " >&6; }
4450if test "${ac_cv_prog_cc_g+set}" = set; then :
4451 $as_echo_n "(cached) " >&6
4452else
4453 ac_save_c_werror_flag=$ac_c_werror_flag
4454 ac_c_werror_flag=yes
4455 ac_cv_prog_cc_g=no
4456 CFLAGS="-g"
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4458/* end confdefs.h. */
4459
4460int
4461main ()
4462{
4463
4464 ;
4465 return 0;
4466}
4467_ACEOF
81ecdfbb 4468if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4469 ac_cv_prog_cc_g=yes
4470else
81ecdfbb
RW
4471 CFLAGS=""
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473/* end confdefs.h. */
4474
4475int
4476main ()
4477{
4478
4479 ;
4480 return 0;
4481}
4482_ACEOF
4483if ac_fn_c_try_compile "$LINENO"; then :
4484
4485else
4486 ac_c_werror_flag=$ac_save_c_werror_flag
4487 CFLAGS="-g"
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489/* end confdefs.h. */
cac3d6c4 4490
81ecdfbb
RW
4491int
4492main ()
4493{
4494
4495 ;
4496 return 0;
4497}
4498_ACEOF
4499if ac_fn_c_try_compile "$LINENO"; then :
4500 ac_cv_prog_cc_g=yes
4501fi
4502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4503fi
81ecdfbb 4504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4505fi
81ecdfbb
RW
4506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 ac_c_werror_flag=$ac_save_c_werror_flag
4508fi
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4510$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4511if test "$ac_test_CFLAGS" = set; then
c6b750e1 4512 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4513elif test $ac_cv_prog_cc_g = yes; then
4514 if test "$GCC" = yes; then
4515 CFLAGS="-g -O2"
4516 else
4517 CFLAGS="-g"
4518 fi
4519else
4520 if test "$GCC" = yes; then
4521 CFLAGS="-O2"
4522 else
4523 CFLAGS=
4524 fi
4525fi
81ecdfbb
RW
4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4527$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4528if test "${ac_cv_prog_cc_c89+set}" = set; then :
4529 $as_echo_n "(cached) " >&6
c6b750e1 4530else
81ecdfbb 4531 ac_cv_prog_cc_c89=no
c6b750e1 4532ac_save_CC=$CC
81ecdfbb 4533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4534/* end confdefs.h. */
4535#include <stdarg.h>
4536#include <stdio.h>
4537#include <sys/types.h>
4538#include <sys/stat.h>
4539/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4540struct buf { int x; };
4541FILE * (*rcsopen) (struct buf *, struct stat *, int);
4542static char *e (p, i)
4543 char **p;
4544 int i;
4545{
4546 return p[i];
4547}
4548static char *f (char * (*g) (char **, int), char **p, ...)
4549{
4550 char *s;
4551 va_list v;
4552 va_start (v,p);
4553 s = g (p, va_arg (v,int));
4554 va_end (v);
4555 return s;
4556}
4557
4558/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4559 function prototypes and stuff, but not '\xHH' hex character constants.
4560 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4561 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4562 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4563 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4564 that's true only with -std. */
c6b750e1
DJ
4565int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4566
81ecdfbb
RW
4567/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4568 inside strings and character constants. */
4569#define FOO(x) 'x'
4570int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4571
c6b750e1
DJ
4572int test (int i, double x);
4573struct s1 {int (*f) (int a);};
4574struct s2 {int (*f) (double a);};
4575int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4576int argc;
4577char **argv;
4578int
4579main ()
4580{
4581return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4582 ;
4583 return 0;
4584}
4585_ACEOF
81ecdfbb
RW
4586for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4587 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4588do
4589 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4590 if ac_fn_c_try_compile "$LINENO"; then :
4591 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4592fi
81ecdfbb
RW
4593rm -f core conftest.err conftest.$ac_objext
4594 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4595done
81ecdfbb 4596rm -f conftest.$ac_ext
c6b750e1
DJ
4597CC=$ac_save_CC
4598
4599fi
81ecdfbb
RW
4600# AC_CACHE_VAL
4601case "x$ac_cv_prog_cc_c89" in
4602 x)
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4604$as_echo "none needed" >&6; } ;;
4605 xno)
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4607$as_echo "unsupported" >&6; } ;;
c6b750e1 4608 *)
81ecdfbb
RW
4609 CC="$CC $ac_cv_prog_cc_c89"
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4611$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4612esac
81ecdfbb 4613if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4614
c6b750e1
DJ
4615fi
4616
c6b750e1
DJ
4617ac_ext=c
4618ac_cpp='$CPP $CPPFLAGS'
4619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4621ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4622
81ecdfbb 4623ac_ext=cpp
18f6b6ee
PB
4624ac_cpp='$CXXCPP $CPPFLAGS'
4625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4628if test -z "$CXX"; then
4629 if test -n "$CCC"; then
4630 CXX=$CCC
4631 else
4632 if test -n "$ac_tool_prefix"; then
4633 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4634 do
4635 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4636set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638$as_echo_n "checking for $ac_word... " >&6; }
4639if test "${ac_cv_prog_CXX+set}" = set; then :
4640 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4641else
4642 if test -n "$CXX"; then
4643 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4652 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4654 break 2
4655 fi
4656done
81ecdfbb
RW
4657 done
4658IFS=$as_save_IFS
512b7dfb 4659
18f6b6ee
PB
4660fi
4661fi
4662CXX=$ac_cv_prog_CXX
4663if test -n "$CXX"; then
81ecdfbb
RW
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4665$as_echo "$CXX" >&6; }
18f6b6ee 4666else
81ecdfbb
RW
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668$as_echo "no" >&6; }
18f6b6ee
PB
4669fi
4670
81ecdfbb 4671
18f6b6ee
PB
4672 test -n "$CXX" && break
4673 done
4674fi
4675if test -z "$CXX"; then
4676 ac_ct_CXX=$CXX
81ecdfbb 4677 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4678do
4679 # Extract the first word of "$ac_prog", so it can be a program name with args.
4680set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682$as_echo_n "checking for $ac_word... " >&6; }
4683if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4685else
4686 if test -n "$ac_ct_CXX"; then
4687 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4688else
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4696 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4698 break 2
512b7dfb 4699 fi
18f6b6ee 4700done
81ecdfbb
RW
4701 done
4702IFS=$as_save_IFS
512b7dfb 4703
18f6b6ee
PB
4704fi
4705fi
4706ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4707if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4709$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4710else
81ecdfbb
RW
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712$as_echo "no" >&6; }
18f6b6ee
PB
4713fi
4714
81ecdfbb 4715
18f6b6ee
PB
4716 test -n "$ac_ct_CXX" && break
4717done
18f6b6ee 4718
81ecdfbb
RW
4719 if test "x$ac_ct_CXX" = x; then
4720 CXX="g++"
4721 else
4722 case $cross_compiling:$ac_tool_warned in
4723yes:)
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726ac_tool_warned=yes ;;
4727esac
4728 CXX=$ac_ct_CXX
4729 fi
18f6b6ee
PB
4730fi
4731
81ecdfbb
RW
4732 fi
4733fi
18f6b6ee 4734# Provide some information about the compiler.
81ecdfbb
RW
4735$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4736set X $ac_compile
4737ac_compiler=$2
4738for ac_option in --version -v -V -qversion; do
4739 { { ac_try="$ac_compiler $ac_option >&5"
4740case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743esac
4744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745$as_echo "$ac_try_echo"; } >&5
4746 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4747 ac_status=$?
81ecdfbb
RW
4748 if test -s conftest.err; then
4749 sed '10a\
4750... rest of stderr output deleted ...
4751 10q' conftest.err >conftest.er1
4752 cat conftest.er1 >&5
4753 rm -f conftest.er1 conftest.err
4754 fi
4755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756 test $ac_status = 0; }
4757done
18f6b6ee 4758
81ecdfbb
RW
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4760$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4761if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
18f6b6ee 4763else
81ecdfbb 4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4765/* end confdefs.h. */
4766
4767int
4768main ()
4769{
4770#ifndef __GNUC__
4771 choke me
4772#endif
4773
4774 ;
4775 return 0;
4776}
4777_ACEOF
81ecdfbb 4778if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4779 ac_compiler_gnu=yes
4780else
81ecdfbb 4781 ac_compiler_gnu=no
18f6b6ee 4782fi
81ecdfbb 4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4784ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4785
4786fi
81ecdfbb
RW
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4788$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4789if test $ac_compiler_gnu = yes; then
4790 GXX=yes
4791else
4792 GXX=
4793fi
18f6b6ee
PB
4794ac_test_CXXFLAGS=${CXXFLAGS+set}
4795ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4797$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4798if test "${ac_cv_prog_cxx_g+set}" = set; then :
4799 $as_echo_n "(cached) " >&6
4800else
4801 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4802 ac_cxx_werror_flag=yes
4803 ac_cv_prog_cxx_g=no
4804 CXXFLAGS="-g"
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4806/* end confdefs.h. */
4807
4808int
4809main ()
4810{
4811
4812 ;
4813 return 0;
4814}
4815_ACEOF
81ecdfbb 4816if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4817 ac_cv_prog_cxx_g=yes
4818else
81ecdfbb
RW
4819 CXXFLAGS=""
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4821/* end confdefs.h. */
81ecdfbb 4822
18f6b6ee
PB
4823int
4824main ()
4825{
81ecdfbb 4826
18f6b6ee
PB
4827 ;
4828 return 0;
4829}
4830_ACEOF
81ecdfbb 4831if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4832
81ecdfbb
RW
4833else
4834 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4835 CXXFLAGS="-g"
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4837/* end confdefs.h. */
81ecdfbb 4838
18f6b6ee
PB
4839int
4840main ()
4841{
81ecdfbb 4842
18f6b6ee
PB
4843 ;
4844 return 0;
4845}
4846_ACEOF
81ecdfbb
RW
4847if ac_fn_cxx_try_compile "$LINENO"; then :
4848 ac_cv_prog_cxx_g=yes
18f6b6ee 4849fi
81ecdfbb
RW
4850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851fi
4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853fi
4854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4856fi
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4858$as_echo "$ac_cv_prog_cxx_g" >&6; }
4859if test "$ac_test_CXXFLAGS" = set; then
4860 CXXFLAGS=$ac_save_CXXFLAGS
4861elif test $ac_cv_prog_cxx_g = yes; then
4862 if test "$GXX" = yes; then
4863 CXXFLAGS="-g -O2"
4864 else
4865 CXXFLAGS="-g"
4866 fi
4867else
4868 if test "$GXX" = yes; then
4869 CXXFLAGS="-O2"
4870 else
4871 CXXFLAGS=
4872 fi
18f6b6ee 4873fi
18f6b6ee
PB
4874ac_ext=c
4875ac_cpp='$CPP $CPPFLAGS'
4876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879
4880
4881# We must set the default linker to the linker used by gcc for the correct
4882# operation of libtool. If LD is not defined and we are using gcc, try to
4883# set the LD default to the ld used by gcc.
4884if test -z "$LD"; then
4885 if test "$GCC" = yes; then
4886 case $build in
4887 *-*-mingw*)
4888 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4889 *)
4890 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4891 esac
4892 case $gcc_prog_ld in
4893 # Accept absolute paths.
4894 [\\/]* | [A-Za-z]:[\\/]*)
4895 LD="$gcc_prog_ld" ;;
4896 esac
4897 fi
512b7dfb
PB
4898fi
4899
4900
4901
4902
c6b750e1 4903if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4904 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4905set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907$as_echo_n "checking for $ac_word... " >&6; }
4908if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
9e07f89d 4910else
512b7dfb
PB
4911 if test -n "$GNATBIND"; then
4912 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4913else
c6b750e1
DJ
4914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915for as_dir in $PATH
4916do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4921 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4923 break 2
4924 fi
4925done
81ecdfbb
RW
4926 done
4927IFS=$as_save_IFS
c6b750e1 4928
9e07f89d
NN
4929fi
4930fi
512b7dfb
PB
4931GNATBIND=$ac_cv_prog_GNATBIND
4932if test -n "$GNATBIND"; then
81ecdfbb
RW
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4934$as_echo "$GNATBIND" >&6; }
9e07f89d 4935else
81ecdfbb
RW
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937$as_echo "no" >&6; }
9e07f89d
NN
4938fi
4939
81ecdfbb 4940
c6b750e1 4941fi
512b7dfb
PB
4942if test -z "$ac_cv_prog_GNATBIND"; then
4943 ac_ct_GNATBIND=$GNATBIND
4944 # Extract the first word of "gnatbind", so it can be a program name with args.
4945set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947$as_echo_n "checking for $ac_word... " >&6; }
4948if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
9e07f89d 4950else
512b7dfb
PB
4951 if test -n "$ac_ct_GNATBIND"; then
4952 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4953else
c6b750e1
DJ
4954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955for as_dir in $PATH
4956do
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4961 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4963 break 2
4964 fi
4965done
81ecdfbb
RW
4966 done
4967IFS=$as_save_IFS
c6b750e1 4968
9e07f89d
NN
4969fi
4970fi
512b7dfb
PB
4971ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4972if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4974$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4975else
81ecdfbb
RW
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977$as_echo "no" >&6; }
9e07f89d
NN
4978fi
4979
81ecdfbb
RW
4980 if test "x$ac_ct_GNATBIND" = x; then
4981 GNATBIND="no"
4982 else
4983 case $cross_compiling:$ac_tool_warned in
4984yes:)
4985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4987ac_tool_warned=yes ;;
4988esac
4989 GNATBIND=$ac_ct_GNATBIND
4990 fi
24ff9987 4991else
512b7dfb 4992 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4993fi
4994
7df2cd5d 4995if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4996 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4997set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4999$as_echo_n "checking for $ac_word... " >&6; }
5000if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5001 $as_echo_n "(cached) " >&6
7df2cd5d 5002else
512b7dfb
PB
5003 if test -n "$GNATMAKE"; then
5004 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5005else
5006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007for as_dir in $PATH
5008do
5009 IFS=$as_save_IFS
5010 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5011 for ac_exec_ext in '' $ac_executable_extensions; do
5012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5013 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5015 break 2
5016 fi
5017done
81ecdfbb
RW
5018 done
5019IFS=$as_save_IFS
7df2cd5d
PB
5020
5021fi
5022fi
512b7dfb
PB
5023GNATMAKE=$ac_cv_prog_GNATMAKE
5024if test -n "$GNATMAKE"; then
81ecdfbb
RW
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5026$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5027else
81ecdfbb
RW
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5029$as_echo "no" >&6; }
7df2cd5d
PB
5030fi
5031
81ecdfbb 5032
7df2cd5d 5033fi
512b7dfb
PB
5034if test -z "$ac_cv_prog_GNATMAKE"; then
5035 ac_ct_GNATMAKE=$GNATMAKE
5036 # Extract the first word of "gnatmake", so it can be a program name with args.
5037set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5039$as_echo_n "checking for $ac_word... " >&6; }
5040if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
7df2cd5d 5042else
512b7dfb
PB
5043 if test -n "$ac_ct_GNATMAKE"; then
5044 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5045else
5046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH
5048do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5053 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5055 break 2
5056 fi
5057done
81ecdfbb
RW
5058 done
5059IFS=$as_save_IFS
7df2cd5d 5060
7df2cd5d
PB
5061fi
5062fi
512b7dfb
PB
5063ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5064if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5066$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5067else
81ecdfbb
RW
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5069$as_echo "no" >&6; }
7df2cd5d
PB
5070fi
5071
81ecdfbb
RW
5072 if test "x$ac_ct_GNATMAKE" = x; then
5073 GNATMAKE="no"
5074 else
5075 case $cross_compiling:$ac_tool_warned in
5076yes:)
5077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5079ac_tool_warned=yes ;;
5080esac
5081 GNATMAKE=$ac_ct_GNATMAKE
5082 fi
7df2cd5d 5083else
512b7dfb 5084 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5085fi
5086
81ecdfbb
RW
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5088$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5089if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
9e07f89d
NN
5091else
5092 cat >conftest.adb <<EOF
5093procedure conftest is begin null; end conftest;
5094EOF
5095acx_cv_cc_gcc_supports_ada=no
5096# There is a bug in old released versions of GCC which causes the
5097# driver to exit successfully when the appropriate language module
5098# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5099# Therefore we must check for the error message as well as an
5100# unsuccessful exit.
b8908782
DD
5101# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5102# given a .adb file, but produce no object file. So we must check
5103# if an object file was really produced to guard against this.
9e07f89d 5104errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5105if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5106 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5107fi
5108rm -f conftest.*
5109fi
81ecdfbb
RW
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5111$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5112
512b7dfb 5113if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5114 have_gnat=yes
5115else
5116 have_gnat=no
5117fi
5118
81ecdfbb
RW
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5120$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5121if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5122 $as_echo_n "(cached) " >&6
b8908782
DD
5123else
5124 echo abfoo >t1
5125 echo cdfoo >t2
5126 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5127 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5128 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5129 :
5130 else
5131 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5132 fi
5133 fi
b8908782
DD
5134 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5135 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5136 :
b8908782
DD
5137 else
5138 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5139 fi
5140 fi
5141 rm t1 t2
5142
5143fi
81ecdfbb
RW
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5145$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5146do_compare="$gcc_cv_prog_cmp_skip"
5147
5148
9e07f89d 5149
e8a5fa9c 5150# See if we are building gcc with C++.
81ecdfbb
RW
5151# Check whether --enable-build-with-cxx was given.
5152if test "${enable_build_with_cxx+set}" = set; then :
5153 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5154else
5155 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5156fi
5157
e8a5fa9c 5158
d5f2ee2e
KG
5159# Used for setting $lt_cv_objdir
5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5161$as_echo_n "checking for objdir... " >&6; }
5162if test "${lt_cv_objdir+set}" = set; then :
5163 $as_echo_n "(cached) " >&6
5164else
5165 rm -f .libs 2>/dev/null
5166mkdir .libs 2>/dev/null
5167if test -d .libs; then
5168 lt_cv_objdir=.libs
5169else
5170 # MS-DOS does not allow filenames that begin with a dot.
5171 lt_cv_objdir=_libs
5172fi
5173rmdir .libs 2>/dev/null
5174fi
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5176$as_echo "$lt_cv_objdir" >&6; }
5177objdir=$lt_cv_objdir
5178
5179
5180
5181
5182
5183cat >>confdefs.h <<_ACEOF
5184#define LT_OBJDIR "$lt_cv_objdir/"
5185_ACEOF
5186
5187
5188
e8a5fa9c 5189# Check for GMP, MPFR and MPC
d9b76ff9 5190gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5191gmpinc=
4b900473 5192have_gmp=no
e8a5fa9c
RW
5193
5194# Specify a location for mpc
5195# check for this first so it ends up on the link line before mpfr.
5196
81ecdfbb
RW
5197# Check whether --with-mpc was given.
5198if test "${with_mpc+set}" = set; then :
5199 withval=$with_mpc;
5200fi
e8a5fa9c 5201
e8a5fa9c 5202
e552509b 5203# Check whether --with-mpc-include was given.
81ecdfbb
RW
5204if test "${with_mpc_include+set}" = set; then :
5205 withval=$with_mpc_include;
5206fi
e8a5fa9c 5207
e8a5fa9c 5208
e552509b 5209# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5210if test "${with_mpc_lib+set}" = set; then :
5211 withval=$with_mpc_lib;
5212fi
e8a5fa9c 5213
e8a5fa9c
RW
5214
5215if test "x$with_mpc" != x; then
d9b76ff9
KG
5216 gmplibs="-L$with_mpc/lib $gmplibs"
5217 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5218fi
5219if test "x$with_mpc_include" != x; then
d9b76ff9 5220 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5221fi
5222if test "x$with_mpc_lib" != x; then
d9b76ff9 5223 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5224fi
5225if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5226 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5227 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5228 # Do not test the mpc version. Assume that it is sufficient, since
5229 # it is in the source tree, and the library has not been built yet
5230 # but it would be included on the link line in the version check below
5231 # hence making the test fail.
d9b76ff9 5232 have_gmp=yes
e8a5fa9c 5233fi
4b900473 5234
11b04d1f
DD
5235# Specify a location for mpfr
5236# check for this first so it ends up on the link line before gmp.
c6b750e1 5237
81ecdfbb
RW
5238# Check whether --with-mpfr-dir was given.
5239if test "${with_mpfr_dir+set}" = set; then :
5240 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5241Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5242fi
5243
11b04d1f
DD
5244
5245
81ecdfbb
RW
5246# Check whether --with-mpfr was given.
5247if test "${with_mpfr+set}" = set; then :
5248 withval=$with_mpfr;
5249fi
c6b750e1 5250
11b04d1f 5251
e552509b 5252# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5253if test "${with_mpfr_include+set}" = set; then :
5254 withval=$with_mpfr_include;
5255fi
c6b750e1 5256
8a0d8a5c 5257
e552509b 5258# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5259if test "${with_mpfr_lib+set}" = set; then :
5260 withval=$with_mpfr_lib;
5261fi
8a0d8a5c 5262
11b04d1f
DD
5263
5264if test "x$with_mpfr" != x; then
5265 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5266 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5267fi
8a0d8a5c 5268if test "x$with_mpfr_include" != x; then
d9b76ff9 5269 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5270fi
5271if test "x$with_mpfr_lib" != x; then
5272 gmplibs="-L$with_mpfr_lib $gmplibs"
5273fi
4b900473 5274if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5275 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5276 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5277 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5278 # Do not test the mpfr version. Assume that it is sufficient, since
5279 # it is in the source tree, and the library has not been built yet
5280 # but it would be included on the link line in the version check below
5281 # hence making the test fail.
5282 have_gmp=yes
5283fi
11b04d1f 5284
4b1cb4fe 5285# Specify a location for gmp
c6b750e1 5286
81ecdfbb
RW
5287# Check whether --with-gmp-dir was given.
5288if test "${with_gmp_dir+set}" = set; then :
5289 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5290Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5291fi
5292
4b1cb4fe
DD
5293
5294
81ecdfbb
RW
5295# Check whether --with-gmp was given.
5296if test "${with_gmp+set}" = set; then :
5297 withval=$with_gmp;
5298fi
c6b750e1 5299
4b1cb4fe 5300
e552509b 5301# Check whether --with-gmp-include was given.
81ecdfbb
RW
5302if test "${with_gmp_include+set}" = set; then :
5303 withval=$with_gmp_include;
5304fi
c6b750e1 5305
8a0d8a5c 5306
e552509b 5307# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5308if test "${with_gmp_lib+set}" = set; then :
5309 withval=$with_gmp_lib;
5310fi
8a0d8a5c
PB
5311
5312
4b1cb4fe 5313
11b04d1f
DD
5314if test "x$with_gmp" != x; then
5315 gmplibs="-L$with_gmp/lib $gmplibs"
5316 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5317fi
8a0d8a5c
PB
5318if test "x$with_gmp_include" != x; then
5319 gmpinc="-I$with_gmp_include $gmpinc"
5320fi
5321if test "x$with_gmp_lib" != x; then
5322 gmplibs="-L$with_gmp_lib $gmplibs"
5323fi
4b900473 5324if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5325 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5326 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5327 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5328 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5329 # Do not test the gmp version. Assume that it is sufficient, since
5330 # it is in the source tree, and the library has not been built yet
5331 # but it would be included on the link line in the version check below
5332 # hence making the test fail.
5333 have_gmp=yes
5334fi
4b1cb4fe 5335
ceb92e78 5336if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5337 have_gmp=yes
5338 saved_CFLAGS="$CFLAGS"
5339 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5340 # Check for the recommended and required versions of GMP.
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5342$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5343
5344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5345/* end confdefs.h. */
5346#include "gmp.h"
5347int
5348main ()
5349{
5350
5351 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5352 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5353 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5354 choke me
5355 #endif
5356
5357 ;
5358 return 0;
5359}
5360_ACEOF
5361if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5363/* end confdefs.h. */
a6b5846e 5364#include <gmp.h>
c6b750e1
DJ
5365int
5366main ()
5367{
4b1cb4fe 5368
a6b5846e
KG
5369 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5370 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5371 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5372 choke me
5373 #endif
c6b750e1
DJ
5374
5375 ;
5376 return 0;
5377}
5378_ACEOF
81ecdfbb
RW
5379if ac_fn_c_try_compile "$LINENO"; then :
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5381$as_echo "yes" >&6; }
a6b5846e
KG
5382else
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5384$as_echo "buggy but acceptable" >&6; }
5385fi
5386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5387else
81ecdfbb
RW
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5389$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5390fi
81ecdfbb 5391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5392
e8a5fa9c 5393 # If we have GMP, check the MPFR version.
4b900473 5394 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5395 # Check for the recommended and required versions of MPFR.
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5397$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5399/* end confdefs.h. */
9b134994 5400#include <gmp.h>
4b900473 5401 #include <mpfr.h>
c6b750e1
DJ
5402int
5403main ()
5404{
9b134994 5405
ef699244 5406 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5407 choke me
5408 #endif
c6b750e1
DJ
5409
5410 ;
5411 return 0;
5412}
5413_ACEOF
81ecdfbb
RW
5414if ac_fn_c_try_compile "$LINENO"; then :
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5416/* end confdefs.h. */
4b1cb4fe 5417#include <gmp.h>
4b900473 5418 #include <mpfr.h>
c6b750e1
DJ
5419int
5420main ()
5421{
9dbaa842 5422
a6b5846e 5423 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5424 choke me
5425 #endif
e8a5fa9c
RW
5426
5427 ;
5428 return 0;
5429}
5430_ACEOF
81ecdfbb
RW
5431if ac_fn_c_try_compile "$LINENO"; then :
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5433$as_echo "yes" >&6; }
e8a5fa9c 5434else
81ecdfbb
RW
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5436$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5437fi
81ecdfbb 5438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5439else
81ecdfbb
RW
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5442fi
81ecdfbb 5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5444 fi
5445
5446 # Check for the MPC header version.
d9b76ff9 5447 if test x"$have_gmp" = xyes ; then
a6b5846e 5448 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5450$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5452/* end confdefs.h. */
5453#include <mpc.h>
5454int
5455main ()
5456{
5457
a6b5846e
KG
5458 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5459 choke me
5460 #endif
5461
5462 ;
5463 return 0;
5464}
5465_ACEOF
5466if ac_fn_c_try_compile "$LINENO"; then :
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468/* end confdefs.h. */
5469#include <mpc.h>
5470int
5471main ()
5472{
5473
5474 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5475 choke me
5476 #endif
5477
5478 ;
5479 return 0;
5480}
5481_ACEOF
81ecdfbb
RW
5482if ac_fn_c_try_compile "$LINENO"; then :
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5484$as_echo "yes" >&6; }
a6b5846e
KG
5485else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5487$as_echo "buggy but acceptable" >&6; }
5488fi
5489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5490else
81ecdfbb 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5492$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5493fi
81ecdfbb 5494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5495 fi
5496
5497 # Now check the MPFR library.
5498 if test x"$have_gmp" = xyes; then
5499 saved_LIBS="$LIBS"
5500 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5502$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5504/* end confdefs.h. */
d9b76ff9 5505#include <mpc.h>
e8a5fa9c
RW
5506int
5507main ()
5508{
5509
5510 mpfr_t n;
5511 mpfr_t x;
d9b76ff9 5512 mpc_t c;
e8a5fa9c
RW
5513 int t;
5514 mpfr_init (n);
5515 mpfr_init (x);
5516 mpfr_atan2 (n, n, x, GMP_RNDN);
5517 mpfr_erfc (n, x, GMP_RNDN);
5518 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5519 mpfr_clear(n);
5520 mpfr_clear(x);
5521 mpc_init2 (c, 53);
5522 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5523 mpc_cosh (c, c, MPC_RNDNN);
5524 mpc_pow (c, c, c, MPC_RNDNN);
5525 mpc_acosh (c, c, MPC_RNDNN);
5526 mpc_clear (c);
c6b750e1
DJ
5527
5528 ;
5529 return 0;
5530}
5531_ACEOF
81ecdfbb
RW
5532if ac_fn_c_try_link "$LINENO"; then :
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5534$as_echo "yes" >&6; }
c6b750e1 5535else
81ecdfbb
RW
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5538fi
81ecdfbb
RW
5539rm -f core conftest.err conftest.$ac_objext \
5540 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5541 LIBS="$saved_LIBS"
5542 fi
5543
4b900473 5544 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5545
a6b5846e
KG
5546# The library versions listed in the error message below should match
5547# the HARD-minimums enforced above.
4b900473 5548 if test x$have_gmp != xyes; then
a6b5846e 5549 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5550Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5551their locations. Source code for these libraries can be found at
5552their respective hosting sites as well as at
5553ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5554http://gcc.gnu.org/install/prerequisites.html for additional info. If
5555you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5556make sure that you have installed both the libraries and the header
5557files. They may be located in separate packages." "$LINENO" 5
4b900473 5558 fi
9dbaa842
DD
5559fi
5560
e8a5fa9c
RW
5561# Flags needed for both GMP, MPFR and/or MPC.
5562
5563
5564
4b1cb4fe
DD
5565
5566
5567
29383458
JM
5568# Allow host libstdc++ to be specified for static linking with PPL.
5569
81ecdfbb
RW
5570# Check whether --with-host-libstdcxx was given.
5571if test "${with_host_libstdcxx+set}" = set; then :
5572 withval=$with_host_libstdcxx;
5573fi
29383458 5574
29383458
JM
5575
5576case $with_host_libstdcxx in
5577 no|yes)
81ecdfbb 5578 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5579 ;;
5580esac
e28c595f 5581
e8a5fa9c
RW
5582# Linker flags to use for stage1 or when not boostrapping.
5583
81ecdfbb
RW
5584# Check whether --with-stage1-ldflags was given.
5585if test "${with_stage1_ldflags+set}" = set; then :
5586 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5587 stage1_ldflags=
5588 else
5589 stage1_ldflags=$withval
5590 fi
5591else
5592 stage1_ldflags=
81ecdfbb
RW
5593fi
5594
e8a5fa9c
RW
5595
5596
5597# Libraries to use for stage1 or when not bootstrapping.
5598
81ecdfbb
RW
5599# Check whether --with-stage1-libs was given.
5600if test "${with_stage1_libs+set}" = set; then :
5601 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5602 stage1_libs=
5603 else
5604 stage1_libs=$withval
5605 fi
5606else
5607 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5608fi
5609
e8a5fa9c
RW
5610
5611
e8a5fa9c
RW
5612# Libraries to use for stage2 and later builds. This defaults to the
5613# argument passed to --with-host-libstdcxx.
5614
81ecdfbb
RW
5615# Check whether --with-boot-libs was given.
5616if test "${with_boot_libs+set}" = set; then :
5617 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5618 poststage1_libs=
5619 else
5620 poststage1_libs=$withval
5621 fi
5622else
5623 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5624fi
5625
e8a5fa9c
RW
5626
5627
143754cd
NC
5628# Linker flags to use for stage2 and later builds.
5629
5630# Check whether --with-boot-ldflags was given.
5631if test "${with_boot_ldflags+set}" = set; then :
5632 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5633 poststage1_ldflags=
5634 else
5635 poststage1_ldflags=$withval
5636 fi
5637else
5638 poststage1_ldflags=
4f11b223
ILT
5639 # In stages 2 and 3, default to linking libstdc++ and libgcc
5640 # statically. But if the user explicitly specified the libraries to
5641 # use, trust that they are doing what they want.
5642 if test "$poststage1_libs" = ""; then
143754cd
NC
5643 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5644 fi
5645fi
5646
5647
5648
e28c595f 5649# Check for PPL
e8a5fa9c 5650ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5651pplinc=
5652
5653
81ecdfbb
RW
5654# Check whether --with-ppl was given.
5655if test "${with_ppl+set}" = set; then :
5656 withval=$with_ppl;
81ecdfbb 5657fi
e28c595f 5658
e28c595f 5659
e552509b 5660# Check whether --with-ppl-include was given.
81ecdfbb
RW
5661if test "${with_ppl_include+set}" = set; then :
5662 withval=$with_ppl_include;
5663fi
5664
e28c595f 5665
e552509b 5666# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5667if test "${with_ppl_lib+set}" = set; then :
5668 withval=$with_ppl_lib;
5669fi
e28c595f 5670
e28c595f 5671
29383458
JM
5672case $with_ppl in
5673 no)
5674 ppllibs=
5675 ;;
1f53ca9a
AO
5676 "" | yes)
5677 ;;
29383458 5678 *)
e8a5fa9c 5679 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458 5680 pplinc="-I$with_ppl/include $pplinc"
29383458
JM
5681 ;;
5682esac
e28c595f
JM
5683if test "x$with_ppl_include" != x; then
5684 pplinc="-I$with_ppl_include $pplinc"
5685fi
5686if test "x$with_ppl_lib" != x; then
e8a5fa9c 5687 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5688fi
5689if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
d5f2ee2e 5690 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
1f53ca9a
AO
5691 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5692 enable_ppl_version_check=no
e28c595f
JM
5693fi
5694
81ecdfbb
RW
5695# Check whether --enable-ppl-version-check was given.
5696if test "${enable_ppl_version_check+set}" = set; then :
5697 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
e28c595f
JM
5698else
5699 ENABLE_PPL_CHECK=yes
81ecdfbb
RW
5700fi
5701
e28c595f 5702
1f53ca9a 5703if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
e28c595f
JM
5704 saved_CFLAGS="$CFLAGS"
5705 CFLAGS="$CFLAGS $pplinc $gmpinc"
a009f2e7
RW
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5707$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
81ecdfbb 5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5709/* end confdefs.h. */
5710#include "ppl_c.h"
5711int
5712main ()
5713{
5714
a009f2e7 5715 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
e28c595f
JM
5716 choke me
5717 #endif
5718
5719 ;
5720 return 0;
5721}
5722_ACEOF
81ecdfbb
RW
5723if ac_fn_c_try_compile "$LINENO"; then :
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5725$as_echo "yes" >&6; }
e28c595f 5726else
81ecdfbb 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5728$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5729fi
81ecdfbb 5730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5731 CFLAGS="$saved_CFLAGS"
5732fi
5733
5734# Flags needed for PPL
5735
5736
5737
5738
5739# Check for CLOOG
e552509b 5740
e28c595f
JM
5741
5742
81ecdfbb
RW
5743# Check whether --with-cloog was given.
5744if test "${with_cloog+set}" = set; then :
5745 withval=$with_cloog;
81ecdfbb
RW
5746fi
5747
e28c595f 5748
e552509b 5749# Check whether --with-cloog-include was given.
81ecdfbb
RW
5750if test "${with_cloog_include+set}" = set; then :
5751 withval=$with_cloog_include;
5752fi
e28c595f 5753
e28c595f 5754
e552509b 5755# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5756if test "${with_cloog_lib+set}" = set; then :
5757 withval=$with_cloog_lib;
5758fi
e28c595f 5759
e28c595f 5760
e552509b
ILT
5761 # Check whether --enable-cloog-backend was given.
5762if test "${enable_cloog_backend+set}" = set; then :
5763 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5764 cloog_backend=isl
5765 elif test "x${enableval}" = "xppl"; then
5766 cloog_backend=ppl
5767 else
5768 cloog_backend=ppl-legacy
5769 fi
5770else
5771 cloog_backend=ppl-legacy
5772fi
5773
5774 # Check whether --enable-cloog-version-check was given.
5775if test "${enable_cloog_version_check+set}" = set; then :
5776 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5777else
5778 ENABLE_CLOOG_CHECK=yes
5779fi
5780
5781
5782 # Initialize clooglibs and clooginc.
5783 case $with_cloog in
5784 no)
5785 clooglibs=
5786 clooginc=
5787 ;;
5788 "" | yes)
5789 ;;
5790 *)
5791 clooglibs="-L$with_cloog/lib"
5792 clooginc="-I$with_cloog/include"
5793 ;;
5794 esac
5795 if test "x${with_cloog_include}" != x ; then
5796 clooginc="-I$with_cloog_include"
5797 fi
5798 if test "x${with_cloog_lib}" != x; then
5799 clooglibs="-L$with_cloog_lib"
5800 fi
5801
5802
5803
5804
5805
1f53ca9a
AO
5806if test "x$with_ppl" = "xno"; then
5807 with_cloog=no
5808fi
e552509b
ILT
5809if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5810 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5811 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5812 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5813fi
5814if test "x$with_cloog" != "xno"; then
1f53ca9a 5815
e552509b
ILT
5816
5817
5818 _cloog_saved_CFLAGS=$CFLAGS
5819 _cloog_saved_CPPFLAGS=$CPPFLAGS
5820 _cloog_saved_LDFLAGS=$LDFLAGS
5821 _cloog_saved_LIBS=$LIBS
5822
5823 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5824
5825 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5826 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5827 LDFLAGS="${LDFLAGS} ${clooglibs}"
5828
5829 case $cloog_backend in
5830 "ppl-legacy")
5831 CFLAGS="${CFLAGS} ${pplinc}"
5832 LDFLAGS="${LDFLAGS} ${ppllibs}"
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5834$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5835if test "${gcc_cv_cloog_type+set}" = set; then :
5836 $as_echo_n "(cached) " >&6
5837else
5838 LIBS="-lcloog ${_cloog_saved_LIBS}"
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840/* end confdefs.h. */
5841#include "cloog/cloog.h"
5842int
5843main ()
5844{
5845#ifndef CLOOG_PPL_BACKEND
5846 choke me
5847 #endif
5848 ;
5849 return 0;
5850}
5851_ACEOF
5852if ac_fn_c_try_link "$LINENO"; then :
5853 gcc_cv_cloog_type="PPL Legacy"
5854else
5855 gcc_cv_cloog_type=no
5856fi
5857rm -f core conftest.err conftest.$ac_objext \
5858 conftest$ac_exeext conftest.$ac_ext
e28c595f 5859fi
e552509b
ILT
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5861$as_echo "$gcc_cv_cloog_type" >&6; }
5862 ;;
5863 "isl")
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5865$as_echo_n "checking for installed CLooG ISL... " >&6; }
5866if test "${gcc_cv_cloog_type+set}" = set; then :
5867 $as_echo_n "(cached) " >&6
5868else
5869 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871/* end confdefs.h. */
5872#include "cloog/cloog.h"
5873int
5874main ()
5875{
5876cloog_version ()
5877 ;
5878 return 0;
5879}
5880_ACEOF
5881if ac_fn_c_try_link "$LINENO"; then :
5882 gcc_cv_cloog_type="ISL"
5883else
5884 gcc_cv_cloog_type=no
e28c595f 5885fi
e552509b
ILT
5886rm -f core conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext conftest.$ac_ext
e28c595f 5888fi
e552509b
ILT
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5890$as_echo "$gcc_cv_cloog_type" >&6; }
5891 ;;
5892 "ppl")
5893 CFLAGS="${CFLAGS} ${pplinc}"
5894 LDFLAGS="${LDFLAGS} ${ppllibs}"
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5896$as_echo_n "checking for installed CLooG PPL... " >&6; }
5897if test "${gcc_cv_cloog_type+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
e28c595f 5899else
e552509b
ILT
5900 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902/* end confdefs.h. */
5903#include "cloog/cloog.h"
5904 #include "cloog/ppl/cloog.h"
5905int
5906main ()
5907{
5908cloog_version ()
5909 ;
5910 return 0;
5911}
5912_ACEOF
5913if ac_fn_c_try_link "$LINENO"; then :
5914 gcc_cv_cloog_type="PPL"
5915else
5916 gcc_cv_cloog_type=no
81ecdfbb 5917fi
e552509b
ILT
5918rm -f core conftest.err conftest.$ac_objext \
5919 conftest$ac_exeext conftest.$ac_ext
5920fi
5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5922$as_echo "$gcc_cv_cloog_type" >&6; }
5923 ;;
5924 *)
5925 gcc_cv_cloog_type=""
5926 esac
5927
5928 case $gcc_cv_cloog_type in
5929 "PPL Legacy")
5930 clooginc="${clooginc}"
5931 clooglibs="${clooglibs} -lcloog"
5932 cloog_org=no
5933 ;;
5934 "ISL")
5935 clooginc="${clooginc} ${_cloogorginc}"
5936 clooglibs="${clooglibs} -lcloog-isl"
5937 cloog_org=yes
5938 ;;
5939 "PPL")
5940 clooginc="${clooginc} ${_cloogorginc}"
5941 clooglibs="${clooglibs} -lcloog-ppl"
5942 cloog_org=yes
5943 ;;
5944 *)
5945 clooglibs=
5946 clooginc=
5947 cloog_org=
5948 ;;
5949 esac
81ecdfbb 5950
e552509b
ILT
5951 LIBS=$_cloog_saved_LIBS
5952 CFLAGS=$_cloog_saved_CFLAGS
5953 CPPFLAGS=$_cloog_saved_CPPFLAGS
5954 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 5955
e552509b
ILT
5956
5957
5958
5959
5960 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5961 _cloog_saved_CFLAGS=$CFLAGS
5962 _cloog_saved_LDFLAGS=$LDFLAGS
5963
5964 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5965 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5966
5967 if test "${cloog_org}" = yes ; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5969$as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5970if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5972else
5973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5974/* end confdefs.h. */
5975#include "cloog/cloog.h"
5976int
5977main ()
5978{
5979#if CLOOG_VERSION_MAJOR != 0 \
5980 || CLOOG_VERSION_MINOR != 14 \
5981 || CLOOG_VERSION_REVISION < 0
5982 choke me
5983 #endif
5984 ;
5985 return 0;
5986}
5987_ACEOF
5988if ac_fn_c_try_compile "$LINENO"; then :
5989 gcc_cv_cloog_ct_0_14_0=yes
5990else
5991 gcc_cv_cloog_ct_0_14_0=no
5992fi
5993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994fi
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5996$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5997 elif test "${cloog_org}" = no ; then
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 5999$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
6000if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
6001 $as_echo_n "(cached) " >&6
6002else
81ecdfbb 6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
6004/* end confdefs.h. */
6005#include "cloog/cloog.h"
6006int
6007main ()
6008{
e552509b
ILT
6009#if CLOOG_VERSION_MAJOR != 0 \
6010 || CLOOG_VERSION_MINOR != 15 \
6011 || CLOOG_VERSION_REVISION < 5
6012 choke me
6013 #endif
e28c595f
JM
6014 ;
6015 return 0;
6016}
6017_ACEOF
a009f2e7
RW
6018if ac_fn_c_try_compile "$LINENO"; then :
6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6020/* end confdefs.h. */
6021#include "cloog/cloog.h"
6022int
6023main ()
6024{
e552509b
ILT
6025#if CLOOG_VERSION_MAJOR != 0 \
6026 || CLOOG_VERSION_MINOR != 15 \
6027 || CLOOG_VERSION_REVISION < 9
6028 choke me
6029 #endif
a009f2e7
RW
6030 ;
6031 return 0;
6032}
6033_ACEOF
81ecdfbb 6034if ac_fn_c_try_compile "$LINENO"; then :
e552509b 6035 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 6036else
e552509b 6037 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
6038fi
6039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6040else
e552509b 6041 gcc_cv_cloog_ct_0_15_5=no
e28c595f 6042fi
81ecdfbb 6043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6044fi
e552509b
ILT
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6046$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6047 fi
6048
6049 CFLAGS=$_cloog_saved_CFLAGS
6050 LDFLAGS=$_cloog_saved_LDFLAGS
6051 fi
6052
6053
6054
e28c595f 6055
e28c595f
JM
6056
6057
6058
e552509b
ILT
6059 if test "x${with_cloog}" != x \
6060 || test "x${with_cloog_include}" != x \
6061 || test "x${with_cloog_lib}" != x ; then
6062 graphite_requested=yes
6063 else
6064 graphite_requested=no
6065 fi
6066
6067
6068
6069 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6070 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6071 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6072 clooglibs=
6073 clooginc=
6074 fi
6075
6076 if test "${graphite_requested}" = yes \
6077 && test "x${clooglibs}" = x \
6078 && test "x${clooginc}" = x ; then
6079
6080 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6081 fi
6082
6083
6084fi
6085
700d40ca
ILT
6086# Check for LTO support.
6087# Check whether --enable-lto was given.
6088if test "${enable_lto+set}" = set; then :
6089 enableval=$enable_lto; enable_lto=$enableval
6090else
6091 enable_lto=yes; default_enable_lto=yes
6092fi
6093
6094
143754cd 6095
e49e5c92
DK
6096
6097
6098target_elf=no
6099case $target in
6100 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6101 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6102 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6103 target_elf=no
6104 ;;
6105 *)
6106 target_elf=yes
6107 ;;
6108esac
6109
6110if test $target_elf = yes; then :
74cea91b
DK
6111 # ELF platforms build the lto-plugin always.
6112 build_lto_plugin=yes
e49e5c92 6113
e49e5c92
DK
6114else
6115 if test x"$default_enable_lto" = x"yes" ; then
29821356 6116 case $target in
a8eb3f0a 6117 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
74cea91b 6118 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6119 *) enable_lto=no ;;
6120 esac
e49e5c92 6121 else
29821356
RW
6122 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6123 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6124 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6125 # warn during gcc/ subconfigure; unless you're bootstrapping with
6126 # -flto it won't be needed until after installation anyway.
6127 case $target in
a8eb3f0a 6128 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6129 *) if test x"$enable_lto" = x"yes"; then
6130 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6131 fi
6132 ;;
6133 esac
6134 fi
a8eb3f0a 6135 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6136 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6137 case $target in
74cea91b 6138 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6139 *) ;;
6140 esac
74cea91b 6141
e49e5c92
DK
6142fi
6143
700d40ca 6144
e28c595f 6145
947f426e 6146# By default, C is the only stage 1 language.
9b134994 6147stage1_languages=,c,
1d39f329 6148
e8a5fa9c 6149# Target libraries that we bootstrap.
2aa2364a 6150bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6151
9e07f89d
NN
6152# Figure out what language subdirectories are present.
6153# Look if the user specified --enable-languages="..."; if not, use
6154# the environment variable $LANGUAGES if defined. $LANGUAGES might
6155# go away some day.
6156# NB: embedded tabs in this IF block -- do not untabify
6157if test -d ${srcdir}/gcc; then
6158 if test x"${enable_languages+set}" != xset; then
6159 if test x"${LANGUAGES+set}" = xset; then
6160 enable_languages="${LANGUAGES}"
6161 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6162 else
6163 enable_languages=all
6164 fi
6165 else
6166 if test x"${enable_languages}" = x ||
6167 test x"${enable_languages}" = xyes;
6168 then
6169 echo configure.in: --enable-languages needs at least one language argument 1>&2
6170 exit 1
6171 fi
6172 fi
6173 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6174
096f7d00
DE
6175 # 'f95' is the old name for the 'fortran' language. We issue a warning
6176 # and make the substitution.
6177 case ,${enable_languages}, in
6178 *,f95,*)
6179 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6180 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6181 ;;
6182 esac
6183
9e07f89d
NN
6184 # First scan to see if an enabled language requires some other language.
6185 # We assume that a given config-lang.in will list all the language
6186 # front ends it requires, even if some are required indirectly.
6187 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6188 case ${lang_frag} in
6189 ..) ;;
6190 # The odd quoting in the next line works around
6191 # an apparent bug in bash 1.12 on linux.
6192 ${srcdir}/gcc/[*]/config-lang.in) ;;
6193 *)
e552509b
ILT
6194 # From the config-lang.in, get $language, $lang_requires, and
6195 # $lang_requires_boot_languages.
9e07f89d
NN
6196 language=
6197 lang_requires=
e552509b 6198 lang_requires_boot_languages=
9e07f89d 6199 . ${lang_frag}
e552509b 6200 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6201 case ,${enable_languages}, in
6202 *,$other,*) ;;
6203 *,all,*) ;;
6204 *,$language,*)
6205 echo " \`$other' language required by \`$language'; enabling" 1>&2
6206 enable_languages="${enable_languages},${other}"
6207 ;;
6208 esac
6209 done
e552509b
ILT
6210 for other in ${lang_requires_boot_languages} ; do
6211 if test "$other" != "c"; then
6212 case ,${enable_stage1_languages}, in
6213 *,$other,*) ;;
6214 *,all,*) ;;
6215 *)
6216 case ,${enable_languages}, in
6217 *,$language,*)
6218 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6219 enable_stage1_languages="$enable_stage1_languages,${other}"
6220 ;;
6221 esac
6222 ;;
6223 esac
6224 fi
6225 done
9e07f89d
NN
6226 ;;
6227 esac
6228 done
6229
9b134994 6230 new_enable_languages=,c,
700d40ca
ILT
6231
6232 # If LTO is enabled, add the LTO front end.
6233 extra_host_libiberty_configure_flags=
6234 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6235 case ,${enable_languages}, in
6236 *,lto,*) ;;
6237 *) enable_languages="${enable_languages},lto" ;;
6238 esac
a8eb3f0a 6239 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6240 configdirs="$configdirs lto-plugin"
6241 extra_host_libiberty_configure_flags=--enable-shared
6242 fi
6243 fi
6244
6245
9e07f89d 6246 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6247 potential_languages=,c,
9e07f89d 6248
9e1a94f4
ILT
6249 enabled_target_libs=
6250 disabled_target_libs=
6251
9e07f89d
NN
6252 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6253 case ${lang_frag} in
6254 ..) ;;
6255 # The odd quoting in the next line works around
6256 # an apparent bug in bash 1.12 on linux.
6257 ${srcdir}/gcc/[*]/config-lang.in) ;;
6258 *)
c6b750e1 6259 # From the config-lang.in, get $language, $target_libs,
1d39f329 6260 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6261 language=
6262 target_libs=
6263 lang_dirs=
64ce424c 6264 subdir_requires=
9b134994
PB
6265 boot_language=no
6266 build_by_default=yes
9e07f89d 6267 . ${lang_frag}
9b134994
PB
6268 if test x${language} = x; then
6269 echo "${lang_frag} doesn't set \$language." 1>&2
6270 exit 1
6271 fi
6272
1f53ca9a
AO
6273 if test "$language" = "c++" \
6274 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6275 boot_language=yes
6276 fi
6277
9b134994
PB
6278 case ,${enable_languages}, in
6279 *,${language},*)
9e07f89d
NN
6280 # Language was explicitly selected; include it.
6281 add_this_lang=yes
6282 ;;
9b134994
PB
6283 *,all,*)
6284 # 'all' was selected, select it if it is a default language
6285 add_this_lang=${build_by_default}
9e07f89d
NN
6286 ;;
6287 *)
6288 add_this_lang=no
6289 ;;
6290 esac
4b1cb4fe 6291
64ce424c 6292 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6293 for i in $subdir_requires; do
3d3adb43 6294 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6295 case ,${enable_languages}, in
6296 *,${language},*)
6297 # Specifically requested language; tell them.
81ecdfbb 6298 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6299 ;;
6300 *)
6301 # Silently disable.
9b134994 6302 add_this_lang=unsupported
64ce424c
PB
6303 ;;
6304 esac
6305 done
6306
9b134994
PB
6307 # Disable Ada if no preexisting GNAT is available.
6308 case ,${enable_languages},:${language}:${have_gnat} in
6309 *,${language},*:ada:no)
6310 # Specifically requested language; tell them.
81ecdfbb 6311 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6312 ;;
6313 *:ada:no)
6314 # Silently disable.
6315 add_this_lang=unsupported
6316 ;;
6317 esac
6318
59f7ec45
HPN
6319 # Disable a language that is unsupported by the target.
6320 case " $unsupported_languages " in
6321 *" $language "*)
9b134994 6322 add_this_lang=unsupported
59f7ec45
HPN
6323 ;;
6324 esac
6325
4b1cb4fe 6326 case $add_this_lang in
9b134994 6327 unsupported)
9e07f89d 6328 # Remove language-dependent dirs.
9e1a94f4
ILT
6329 disabled_target_libs="$disabled_target_libs $target_libs"
6330 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6331 ;;
9b134994
PB
6332 no)
6333 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6334 disabled_target_libs="$disabled_target_libs $target_libs"
6335 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6336 potential_languages="${potential_languages}${language},"
6337 ;;
6338 yes)
6339 new_enable_languages="${new_enable_languages}${language},"
6340 potential_languages="${potential_languages}${language},"
1d39f329 6341 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6342 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6343 case "${boot_language}:,$enable_stage1_languages," in
6344 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6345 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6346 case ",$stage1_languages," in
6347 *,$language,* | ,yes, | ,all,) ;;
6348 *) stage1_languages="${stage1_languages}${language}," ;;
6349 esac
e8a5fa9c
RW
6350 # We need to bootstrap any supporting libraries.
6351 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6352 ;;
6353 esac
6354 ;;
9e07f89d
NN
6355 esac
6356 ;;
6357 esac
6358 done
6359
9e1a94f4
ILT
6360 # Add target libraries which are only needed for disabled languages
6361 # to noconfigdirs.
6362 if test -n "$disabled_target_libs"; then
6363 for dir in $disabled_target_libs; do
6364 case " $enabled_target_libs " in
6365 *" ${dir} "*) ;;
6366 *) noconfigdirs="$noconfigdirs $dir" ;;
6367 esac
6368 done
6369 fi
6370
81ecdfbb
RW
6371 # Check whether --enable-stage1-languages was given.
6372if test "${enable_stage1_languages+set}" = set; then :
6373 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6374 ,no,|,,)
6375 # Set it to something that will have no effect in the loop below
6376 enable_stage1_languages=c ;;
6377 ,yes,)
6378 enable_stage1_languages=`echo $new_enable_languages | \
6379 sed -e "s/^,//" -e "s/,$//" ` ;;
6380 *,all,*)
6381 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6382 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6383 esac
6384
6385 # Add "good" languages from enable_stage1_languages to stage1_languages,
6386 # while "bad" languages go in missing_languages. Leave no duplicates.
6387 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6388 case $potential_languages in
6389 *,$i,*)
6390 case $stage1_languages in
6391 *,$i,*) ;;
6392 *) stage1_languages="$stage1_languages$i," ;;
6393 esac ;;
6394 *)
6395 case $missing_languages in
6396 *,$i,*) ;;
6397 *) missing_languages="$missing_languages$i," ;;
6398 esac ;;
6399 esac
6400 done
81ecdfbb
RW
6401fi
6402
9b134994
PB
6403
6404 # Remove leading/trailing commas that were added for simplicity
6405 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6406 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6407 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6408 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6409
9e07f89d 6410 if test "x$missing_languages" != x; then
81ecdfbb 6411 as_fn_error "
27258dd4 6412The following requested languages could not be built: ${missing_languages}
81ecdfbb 6413Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6414 fi
9e07f89d
NN
6415 if test "x$new_enable_languages" != "x$enable_languages"; then
6416 echo The following languages will be built: ${new_enable_languages}
9b134994 6417 enable_languages="$new_enable_languages"
9e07f89d 6418 fi
9b134994 6419
c6b750e1 6420
81ec575a 6421 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6422fi
6423
a6df5a19
PB
6424# Handle --disable-<component> generically.
6425for dir in $configdirs $build_configdirs $target_configdirs ; do
6426 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6427 varname=`echo $dirname | sed -e s/+/_/g`
6428 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6429 noconfigdirs="$noconfigdirs $dir"
6430 fi
6431done
6432
4f0ef2d8 6433# Check for Boehm's garbage collector
81ecdfbb
RW
6434# Check whether --enable-objc-gc was given.
6435if test "${enable_objc_gc+set}" = set; then :
6436 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6437 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6438 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6439 ;;
6440esac
81ecdfbb
RW
6441fi
6442
4f0ef2d8
CD
6443
6444# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6445case ,${enable_languages},:${enable_objc_gc} in
6446 *,objc,*:yes)
4f0ef2d8
CD
6447 # Keep target-boehm-gc if requested for Objective-C.
6448 ;;
4f0ef2d8 6449 *)
d42c4017
DA
6450 # Otherwise remove target-boehm-gc depending on target-libjava.
6451 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6452 noconfigdirs="$noconfigdirs target-boehm-gc"
6453 fi
4f0ef2d8
CD
6454 ;;
6455esac
6456
caeba88f
AL
6457# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6458# $build_configdirs and $target_configdirs.
9e07f89d
NN
6459# If we have the source for $noconfigdirs entries, add them to $notsupp.
6460
6461notsupp=""
6462for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6463 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6464 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6465 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6466 if test -r $srcdir/$dirname/configure ; then
6467 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6468 true
6469 else
6470 notsupp="$notsupp $dir"
6471 fi
6472 fi
6473 fi
caeba88f
AL
6474 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6475 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6476 if test -r $srcdir/$dirname/configure ; then
6477 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6478 true
6479 else
6480 notsupp="$notsupp $dir"
6481 fi
6482 fi
6483 fi
9e07f89d
NN
6484 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6485 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6486 if test -r $srcdir/$dirname/configure ; then
6487 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6488 true
6489 else
6490 notsupp="$notsupp $dir"
6491 fi
6492 fi
6493 fi
6494done
6495
6496# Sometimes the tools are distributed with libiberty but with no other
6497# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6498# Don't let libgcc imply libiberty either.
9e07f89d 6499if test -n "${target_configdirs}" ; then
f86e35b8 6500 libgcc=
9e07f89d
NN
6501 others=
6502 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6503 if test "$i" = "libgcc"; then
6504 libgcc=target-libgcc
6505 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6506 if test -r $srcdir/$i/configure ; then
6507 others=yes;
6508 break;
6509 fi
6510 fi
6511 done
6512 if test -z "${others}" ; then
f86e35b8 6513 target_configdirs=$libgcc
9e07f89d
NN
6514 fi
6515fi
6516
6517# Quietly strip out all directories which aren't configurable in this tree.
6518# This relies on all configurable subdirectories being autoconfiscated, which
6519# is now the case.
6a9cf61e
PB
6520build_configdirs_all="$build_configdirs"
6521build_configdirs=
6522for i in ${build_configdirs_all} ; do
c6b750e1 6523 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6524 if test -f ${srcdir}/$j/configure ; then
6525 build_configdirs="${build_configdirs} $i"
6526 fi
6527done
6528
9e07f89d
NN
6529configdirs_all="$configdirs"
6530configdirs=
6531for i in ${configdirs_all} ; do
6532 if test -f ${srcdir}/$i/configure ; then
6533 configdirs="${configdirs} $i"
6534 fi
6535done
6a9cf61e 6536
9e07f89d
NN
6537target_configdirs_all="$target_configdirs"
6538target_configdirs=
6539for i in ${target_configdirs_all} ; do
c6b750e1 6540 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6541 if test -f ${srcdir}/$j/configure ; then
6542 target_configdirs="${target_configdirs} $i"
6543 fi
6544done
6545
6546# Produce a warning message for the subdirs we can't configure.
6547# This isn't especially interesting in the Cygnus tree, but in the individual
6548# FSF releases, it's important to let people know when their machine isn't
6549# supported by the one or two programs in a package.
6550
6551if test -n "${notsupp}" && test -z "${norecursion}" ; then
6552 # If $appdirs is non-empty, at least one of those directories must still
6553 # be configured, or we error out. (E.g., if the gas release supports a
6554 # specified target in some subdirs but not the gas subdir, we shouldn't
6555 # pretend that all is well.)
6556 if test -n "$appdirs" ; then
6557 for dir in $appdirs ; do
6558 if test -r $dir/Makefile.in ; then
6559 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6560 appdirs=""
6561 break
6562 fi
6a9cf61e 6563 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6564 appdirs=""
6565 break
6566 fi
6567 fi
6568 done
6569 if test -n "$appdirs" ; then
6570 echo "*** This configuration is not supported by this package." 1>&2
6571 exit 1
6572 fi
6573 fi
6574 # Okay, some application will build, or we don't care to check. Still
6575 # notify of subdirs not getting built.
6576 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6577 echo " ${notsupp}" 1>&2
6578 echo " (Any other directories should still work fine.)" 1>&2
6579fi
6580
6581case "$host" in
6582 *msdosdjgpp*)
6583 enable_gdbtk=no ;;
6584esac
6585
18f6b6ee
PB
6586# To find our prefix, in gcc_cv_tool_prefix.
6587
6588# The user is always right.
6589if test "${PATH_SEPARATOR+set}" != set; then
6590 echo "#! /bin/sh" >conf$$.sh
6591 echo "exit 0" >>conf$$.sh
6592 chmod +x conf$$.sh
6593 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6594 PATH_SEPARATOR=';'
6595 else
6596 PATH_SEPARATOR=:
6597 fi
6598 rm -f conf$$.sh
6599fi
6600
6601
6602
6603if test "x$exec_prefix" = xNONE; then
6604 if test "x$prefix" = xNONE; then
6605 gcc_cv_tool_prefix=$ac_default_prefix
6606 else
6607 gcc_cv_tool_prefix=$prefix
6608 fi
6609else
6610 gcc_cv_tool_prefix=$exec_prefix
6611fi
6612
6613# If there is no compiler in the tree, use the PATH only. In any
6614# case, if there is no compiler in the tree nobody should use
6615# AS_FOR_TARGET and LD_FOR_TARGET.
6616if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6617 gcc_version=`cat $srcdir/gcc/BASE-VER`
6618 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6619 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6620 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6621 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6622 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6623 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6624else
6625 gcc_cv_tool_dirs=
6626fi
6627
6628if test x$build = x$target && test -n "$md_exec_prefix"; then
6629 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6630fi
6631
6632
6633
9e07f89d
NN
6634copy_dirs=
6635
c6b750e1 6636
81ecdfbb
RW
6637# Check whether --with-build-sysroot was given.
6638if test "${with_build_sysroot+set}" = set; then :
6639 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6640 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6641 fi
6642else
6643 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6644fi
a19b6204
MM
6645
6646
8a6ee3ab 6647
81ecdfbb
RW
6648
6649# Check whether --with-debug-prefix-map was given.
6650if test "${with_debug_prefix_map+set}" = set; then :
6651 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6652 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6653 for debug_map in $withval; do
6654 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6655 done
6656 fi
6657else
6658 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6659fi
6660
8a6ee3ab
JM
6661
6662
7f6ef0c0
PB
6663# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6664# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6665# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6666# We want to ensure that TARGET libraries (which we know are built with
6667# gcc) are built with "-O2 -g", so include those options when setting
6668# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6669if test "x$CFLAGS_FOR_TARGET" = x; then
6670 CFLAGS_FOR_TARGET=$CFLAGS
6671 case " $CFLAGS " in
6672 *" -O2 "*) ;;
6673 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6674 esac
6675 case " $CFLAGS " in
6676 *" -g "* | *" -g3 "*) ;;
6677 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6678 esac
6679fi
6680
6681
6682if test "x$CXXFLAGS_FOR_TARGET" = x; then
6683 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6684 case " $CXXFLAGS " in
6685 *" -O2 "*) ;;
6686 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6687 esac
6688 case " $CXXFLAGS " in
6689 *" -g "* | *" -g3 "*) ;;
6690 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6691 esac
6692fi
6693
6694
9e07f89d
NN
6695# Handle --with-headers=XXX. If the value is not "yes", the contents of
6696# the named directory are copied to $(tooldir)/sys-include.
6697if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6698 if test x${is_cross_compiler} = xno ; then
6699 echo 1>&2 '***' --with-headers is only supported when cross compiling
6700 exit 1
6701 fi
6702 if test x"${with_headers}" != xyes ; then
18f6b6ee 6703 x=${gcc_cv_tool_prefix}
c6b750e1 6704 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6705 fi
6706fi
6707
6708# Handle --with-libs=XXX. If the value is not "yes", the contents of
6709# the name directories are copied to $(tooldir)/lib. Multiple directories
6710# are permitted.
6711if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6712 if test x${is_cross_compiler} = xno ; then
6713 echo 1>&2 '***' --with-libs is only supported when cross compiling
6714 exit 1
6715 fi
6716 if test x"${with_libs}" != xyes ; then
6717 # Copy the libraries in reverse order, so that files in the first named
6718 # library override files in subsequent libraries.
18f6b6ee 6719 x=${gcc_cv_tool_prefix}
9e07f89d 6720 for l in ${with_libs}; do
c6b750e1 6721 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6722 done
6723 fi
6724fi
6725
700d40ca 6726# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6727#
6728# This is done by determining whether or not the appropriate directory
6729# is available, and by checking whether or not specific configurations
6730# have requested that this magic not happen.
c6b750e1
DJ
6731#
6732# The command line options always override the explicit settings in
2429c060
PB
6733# configure.in, and the settings in configure.in override this magic.
6734#
c6b750e1 6735# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6736# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6737# --without-gnu-ld options for the configure script. Similarly, if
6738# the default is to use the included zlib and you don't want to do that,
6739# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6740
6741if test x${use_gnu_as} = x &&
6742 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6743 with_gnu_as=yes
6744 extra_host_args="$extra_host_args --with-gnu-as"
6745fi
6746
6747if test x${use_gnu_ld} = x &&
93f9b408 6748 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6749 with_gnu_ld=yes
6750 extra_host_args="$extra_host_args --with-gnu-ld"
6751fi
6752
700d40ca
ILT
6753if test x${use_included_zlib} = x &&
6754 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6755 :
6756else
6757 with_system_zlib=yes
6758 extra_host_args="$extra_host_args --with-system-zlib"
6759fi
6760
2429c060
PB
6761# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6762# can detect this case.
6763
6764if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6765 with_newlib=yes
6766 extra_host_args="$extra_host_args --with-newlib"
6767fi
6768
9e07f89d
NN
6769# Handle ${copy_dirs}
6770set fnord ${copy_dirs}
6771shift
6772while test $# != 0 ; do
6773 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6774 :
6775 else
6776 echo Copying $1 to $2
6777
6778 # Use the install script to create the directory and all required
6779 # parent directories.
6780 if test -d $2 ; then
6781 :
6782 else
6783 echo >config.temp
6784 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6785 fi
6786
6787 # Copy the directory, assuming we have tar.
6788 # FIXME: Should we use B in the second tar? Not all systems support it.
6789 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6790
6791 # It is the responsibility of the user to correctly adjust all
6792 # symlinks. If somebody can figure out how to handle them correctly
6793 # here, feel free to add the code.
6794
6795 echo $1 > $2/COPIED
6796 fi
6797 shift; shift
6798done
6799
2429c060
PB
6800# Determine a target-dependent exec_prefix that the installed
6801# gcc will search in. Keep this list sorted by triplet, with
6802# the *-*-osname triplets last.
6803md_exec_prefix=
6804case "${target}" in
6805 alpha*-*-*vms*)
6806 md_exec_prefix=/gnu/lib/gcc-lib
6807 ;;
521ec477 6808 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6809 md_exec_prefix=/dev/env/DJDIR/bin
6810 ;;
521ec477 6811 i[34567]86-*-sco3.2v5*)
2429c060
PB
6812 if test $with_gnu_as = yes; then
6813 md_exec_prefix=/usr/gnu/bin
6814 else
6815 md_exec_prefix=/usr/ccs/bin/elf
6816 fi
6817 ;;
6818
6819 mn10300-*-* | \
6820 powerpc-*-chorusos* | \
6821 powerpc*-*-eabi* | \
6822 powerpc*-*-sysv* | \
6823 powerpc*-*-kaos* | \
6824 s390x-ibm-tpf*)
6825 md_exec_prefix=/usr/ccs/bin
6826 ;;
6827 sparc64-*-elf*)
6828 ;;
6829 v850*-*-*)
6830 md_exec_prefix=/usr/ccs/bin
6831 ;;
8b66833e 6832 xtensa*-*-elf*)
2429c060
PB
6833 ;;
6834
6835 *-*-beos* | \
6836 *-*-elf* | \
6837 *-*-hpux* | \
6838 *-*-netware* | \
6839 *-*-nto-qnx* | \
6840 *-*-rtems* | \
6841 *-*-solaris2* | \
521ec477 6842 *-*-sysv[45]* | \
2429c060
PB
6843 *-*-vxworks* | \
6844 *-wrs-windiss)
6845 md_exec_prefix=/usr/ccs/bin
6846 ;;
6847esac
6848
a0da8069
NN
6849extra_arflags_for_target=
6850extra_nmflags_for_target=
6851extra_ranlibflags_for_target=
6852target_makefile_frag=/dev/null
6853case "${target}" in
4e206d7e
DB
6854 mep*-*-*)
6855 target_makefile_frag="config/mt-mep"
6856 ;;
77d7106f
AM
6857 spu-*-*)
6858 target_makefile_frag="config/mt-spu"
6859 ;;
429acdec
RS
6860 mips*-sde-elf*)
6861 target_makefile_frag="config/mt-sde"
6862 ;;
f3b1e08e
RS
6863 mipsisa*-*-elfoabi*)
6864 target_makefile_frag="config/mt-mips-elfoabi"
6865 ;;
e7c8859c
RS
6866 mips*-*-*linux* | mips*-*-gnu*)
6867 target_makefile_frag="config/mt-mips-gnu"
6868 ;;
2a3124ca 6869 *-*-netware*)
a0da8069
NN
6870 target_makefile_frag="config/mt-netware"
6871 ;;
29383458 6872 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6873 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6874 ;;
6875 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6876 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6877 # commands to handle both 32-bit and 64-bit objects. These flags are
6878 # harmless if we're using GNU nm or ar.
6879 extra_arflags_for_target=" -X32_64"
6880 extra_nmflags_for_target=" -B -X32_64"
6881 ;;
92f4e989
JM
6882 *-*-darwin[3-9]*)
6883 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6884 extra_ranlibflags_for_target=" -c"
6885 ;;
6886 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6887 target_makefile_frag="config/mt-wince"
6888 ;;
6889esac
6890
6891alphaieee_frag=/dev/null
6892case $target in
6893 alpha*-*-*)
6894 # This just makes sure to use the -mieee option to build target libs.
6895 # This should probably be set individually by each library.
6896 alphaieee_frag="config/mt-alphaieee"
6897 ;;
6898esac
6899
6900# If --enable-target-optspace always use -Os instead of -O2 to build
6901# the target libraries, similarly if it is not specified, use -Os
6902# on selected platforms.
6903ospace_frag=/dev/null
6904case "${enable_target_optspace}:${target}" in
6905 yes:*)
6906 ospace_frag="config/mt-ospace"
6907 ;;
6908 :d30v-*)
6909 ospace_frag="config/mt-d30v"
6910 ;;
6911 :m32r-* | :d10v-* | :fr30-*)
6912 ospace_frag="config/mt-ospace"
6913 ;;
6914 no:* | :*)
6915 ;;
6916 *)
6917 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6918 ;;
6919esac
6920
a0da8069
NN
6921# Default to using --with-stabs for certain targets.
6922if test x${with_stabs} = x ; then
6923 case "${target}" in
e31d1ea3 6924 mips*-*-irix[56]*)
a0da8069
NN
6925 ;;
6926 mips*-*-* | alpha*-*-osf*)
6927 with_stabs=yes;
6928 extra_host_args="${extra_host_args} --with-stabs"
6929 ;;
6930 esac
6931fi
6932
6933# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6934# them automatically.
6935case "${host}" in
c6b750e1 6936 hppa*64*-*-hpux11*)
a0da8069
NN
6937 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6938 ;;
6939esac
6940
a0da8069
NN
6941# Some systems (e.g., one of the i386-aix systems the gas testers are
6942# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6943tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6944build_tooldir=${tooldir}
6945
a0da8069
NN
6946# Create a .gdbinit file which runs the one in srcdir
6947# and tells GDB to look there for source files.
6948
6949if test -r ${srcdir}/.gdbinit ; then
6950 case ${srcdir} in
6951 .) ;;
6952 *) cat > ./.gdbinit <<EOF
6953# ${NO_EDIT}
6954dir ${srcdir}
6955dir .
6956source ${srcdir}/.gdbinit
6957EOF
6958 ;;
6959 esac
6960fi
6961
a0da8069
NN
6962# Make sure that the compiler is able to generate an executable. If it
6963# can't, we are probably in trouble. We don't care whether we can run the
6964# executable--we might be using a cross compiler--we only care whether it
6965# can be created. At this point the main configure script has set CC.
6966we_are_ok=no
6967echo "int main () { return 0; }" > conftest.c
6968${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6969if test $? = 0 ; then
6970 if test -s conftest || test -s conftest.exe ; then
6971 we_are_ok=yes
6972 fi
c6b750e1 6973fi
a0da8069
NN
6974case $we_are_ok in
6975 no)
6976 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6977 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6978 rm -f conftest*
6979 exit 1
6980 ;;
6981esac
6982rm -f conftest*
6983
6984# The Solaris /usr/ucb/cc compiler does not appear to work.
6985case "${host}" in
6986 sparc-sun-solaris2*)
6987 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6988 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6989 could_use=
6990 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6991 if test -d /opt/cygnus/bin ; then
6992 if test "$could_use" = "" ; then
6993 could_use="/opt/cygnus/bin"
6994 else
6995 could_use="$could_use or /opt/cygnus/bin"
6996 fi
6997 fi
6998 if test "$could_use" = "" ; then
6999 echo "Warning: compilation may fail because you're using"
7000 echo "/usr/ucb/cc. You should change your PATH or CC "
7001 echo "variable and rerun configure."
7002 else
7003 echo "Warning: compilation may fail because you're using"
7004 echo "/usr/ucb/cc, when you should use the C compiler from"
7005 echo "$could_use. You should change your"
7006 echo "PATH or CC variable and rerun configure."
7007 fi
7008 fi
7009 ;;
7010esac
7011
3bbd2f8f 7012# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7013case "${host}" in
7014 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 7015 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7016 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7017 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7018esac
7019
3bbd2f8f 7020# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7021# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7022# built executables to PATH.
3bbd2f8f
AL
7023if test "$RPATH_ENVVAR" = PATH; then
7024 GCC_SHLIB_SUBDIR=/shlib
7025else
7026 GCC_SHLIB_SUBDIR=
7027fi
7028
a0da8069
NN
7029# Record target_configdirs and the configure arguments for target and
7030# build configuration in Makefile.
7031target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7032build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 7033
2aa2364a
JR
7034# If we are building libgomp, bootstrap it.
7035if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7036 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7037fi
7038
a0da8069
NN
7039# Determine whether gdb needs tk/tcl or not.
7040# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7041# and in that case we want gdb to be built without tk. Ugh!
7042# In fact I believe gdb is the *only* package directly dependent on tk,
7043# so we should be able to put the 'maybe's in unconditionally and
7044# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7045# 100% sure that that's safe though.
c180f501 7046
675c6968 7047gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7048case "$enable_gdbtk" in
7049 no)
7050 GDB_TK="" ;;
c180f501
AC
7051 yes)
7052 GDB_TK="${gdb_tk}" ;;
a0da8069 7053 *)
c180f501
AC
7054 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7055 # distro. Eventually someone will fix this and move Insight, nee
7056 # gdbtk to a separate directory.
7057 if test -d ${srcdir}/gdb/gdbtk ; then
7058 GDB_TK="${gdb_tk}"
7059 else
7060 GDB_TK=""
7061 fi
7062 ;;
a0da8069 7063esac
907be67c
DJ
7064CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7065INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7066
6bd3dfaa 7067# Strip out unwanted targets.
dd12c3a8
NN
7068
7069# While at that, we remove Makefiles if we were started for recursive
7070# configuration, so that the top-level Makefile reconfigures them,
7071# like we used to do when configure itself was recursive.
dd12c3a8 7072
06a51eac
RW
7073# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7074# but now we're fixing up the Makefile ourselves with the additional
7075# commands passed to AC_CONFIG_FILES. Use separate variables
7076# extrasub-{build,host,target} not because there is any reason to split
7077# the substitutions up that way, but only to remain below the limit of
7078# 99 commands in a script, for HP-UX sed.
7079# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7080
81ecdfbb
RW
7081# Check whether --enable-bootstrap was given.
7082if test "${enable_bootstrap+set}" = set; then :
7083 enableval=$enable_bootstrap;
319cab08 7084else
9cb3fa6f 7085 enable_bootstrap=default
81ecdfbb
RW
7086fi
7087
319cab08 7088
9cb3fa6f
PB
7089# Issue errors and warnings for invalid/strange bootstrap combinations.
7090case "$configdirs" in
7091 *gcc*) have_compiler=yes ;;
7092 *) have_compiler=no ;;
7093esac
7094
7095case "$have_compiler:$host:$target:$enable_bootstrap" in
7096 *:*:*:no) ;;
7097
0aed8855 7098 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
7099 # and we are in a native configuration.
7100 yes:$build:$build:default)
0aed8855 7101 enable_bootstrap=yes ;;
9cb3fa6f
PB
7102
7103 *:*:*:default)
7104 enable_bootstrap=no ;;
7105
7106 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 7107 yes:$build:$build:yes)
9cb3fa6f
PB
7108 ;;
7109
7110 # Other configurations, but we have a compiler. Assume the user knows
7111 # what he's doing.
80911fe1 7112 yes:*:*:yes)
81ecdfbb
RW
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7114$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
7115 ;;
7116
7117 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 7118 no:*:*:yes)
81ecdfbb 7119 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
7120
7121 # Fail if wrong command line
7122 *)
81ecdfbb 7123 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
7124 ;;
7125esac
7126
4385ad3c
RW
7127case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7128 *,c++,*:yes:yes) ;;
7129 *:yes:yes)
7130 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7131 ;;
7132esac
7133
16b1ad29
RW
7134case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7135 yes:yes:*\ gold\ *:*,c++,*) ;;
7136 yes:yes:*\ gold\ *:*)
7137 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7138 ;;
7139esac
7140
9cb3fa6f 7141# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7142case $enable_bootstrap in
319cab08 7143 yes)
96655cc4
AO
7144 bootstrap_suffix=bootstrap
7145 BUILD_CONFIG=bootstrap-debug
7146 ;;
319cab08 7147 no)
96655cc4
AO
7148 bootstrap_suffix=no-bootstrap
7149 BUILD_CONFIG=
7150 ;;
319cab08
PB
7151esac
7152
96655cc4
AO
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7154$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7155
7156
7157# Check whether --with-build-config was given.
7158if test "${with_build_config+set}" = set; then :
7159 withval=$with_build_config; case $with_build_config in
7160 yes) with_build_config= ;;
7161 no) with_build_config= BUILD_CONFIG= ;;
7162 esac
7163fi
7164
7165
7166if test "x${with_build_config}" != x; then
7167 BUILD_CONFIG=$with_build_config
7168else
7169 case $BUILD_CONFIG in
7170 bootstrap-debug)
7171 if echo "int f (void) { return 0; }" > conftest.c &&
7172 ${CC} -c conftest.c &&
7173 mv conftest.o conftest.o.g0 &&
7174 ${CC} -c -g conftest.c &&
7175 mv conftest.o conftest.o.g &&
a009f2e7 7176 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7177 :
7178 else
7179 BUILD_CONFIG=
7180 fi
7181 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7182 ;;
7183 esac
7184fi
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7186$as_echo "$BUILD_CONFIG" >&6; }
7187
7188
06a51eac 7189extrasub_build=
6a9cf61e 7190for module in ${build_configdirs} ; do
498d4a71
CF
7191 if test -z "${no_recursion}" \
7192 && test -f ${build_subdir}/${module}/Makefile; then
7193 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7194 rm -f ${build_subdir}/${module}/Makefile
7195 fi
06a51eac 7196 extrasub_build="$extrasub_build
498d4a71
CF
7197/^@if build-$module\$/d
7198/^@endif build-$module\$/d
7199/^@if build-$module-$bootstrap_suffix\$/d
7200/^@endif build-$module-$bootstrap_suffix\$/d"
7201done
06a51eac 7202extrasub_host=
498d4a71 7203for module in ${configdirs} ; do
80911fe1 7204 if test -z "${no_recursion}"; then
8cf39b1b 7205 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7206 if test -f ${file}; then
7207 echo 1>&2 "*** removing ${file} to force reconfigure"
7208 rm -f ${file}
7209 fi
7210 done
498d4a71 7211 fi
06a51eac 7212 extrasub_host="$extrasub_host
498d4a71
CF
7213/^@if $module\$/d
7214/^@endif $module\$/d
7215/^@if $module-$bootstrap_suffix\$/d
7216/^@endif $module-$bootstrap_suffix\$/d"
7217done
06a51eac 7218extrasub_target=
498d4a71
CF
7219for module in ${target_configdirs} ; do
7220 if test -z "${no_recursion}" \
7221 && test -f ${target_subdir}/${module}/Makefile; then
7222 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7223 rm -f ${target_subdir}/${module}/Makefile
7224 fi
e8a5fa9c
RW
7225
7226 # We only bootstrap target libraries listed in bootstrap_target_libs.
7227 case $bootstrap_target_libs in
7228 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7229 *) target_bootstrap_suffix=no-bootstrap ;;
7230 esac
7231
06a51eac 7232 extrasub_target="$extrasub_target
498d4a71
CF
7233/^@if target-$module\$/d
7234/^@endif target-$module\$/d
e8a5fa9c
RW
7235/^@if target-$module-$target_bootstrap_suffix\$/d
7236/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7237done
7238
06a51eac
RW
7239# Do the final fixup along with target modules.
7240extrasub_target="$extrasub_target
6bd3dfaa 7241/^@if /,/^@endif /d"
a0da8069
NN
7242
7243# Create the serialization dependencies. This uses a temporary file.
7244
81ecdfbb
RW
7245# Check whether --enable-serial-configure was given.
7246if test "${enable_serial_configure+set}" = set; then :
7247 enableval=$enable_serial_configure;
7248fi
e6bfb94a
AO
7249
7250
1047cb91
DD
7251case ${enable_serial_configure} in
7252 yes)
7253 enable_serial_build_configure=yes
7254 enable_serial_host_configure=yes
7255 enable_serial_target_configure=yes
7256 ;;
7257esac
7258
a0da8069
NN
7259# These force 'configure's to be done one at a time, to avoid problems
7260# with contention over a shared config.cache.
7261rm -f serdep.tmp
e6bfb94a 7262echo '# serdep.tmp' > serdep.tmp
a0da8069 7263olditem=
1047cb91 7264test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7265for item in ${build_configdirs} ; do
7266 case ${olditem} in
7267 "") ;;
e6bfb94a 7268 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7269 esac
7270 olditem=${item}
7271done
7272olditem=
1047cb91 7273test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7274for item in ${configdirs} ; do
7275 case ${olditem} in
7276 "") ;;
e6bfb94a 7277 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7278 esac
7279 olditem=${item}
7280done
7281olditem=
1047cb91 7282test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7283for item in ${target_configdirs} ; do
7284 case ${olditem} in
7285 "") ;;
e6bfb94a 7286 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7287 esac
7288 olditem=${item}
7289done
7290serialization_dependencies=serdep.tmp
7291
7292
e6bfb94a 7293# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7294# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7295# might not want to pass down to subconfigures. The exception being
7296# --cache-file=/dev/null, which is used to turn off the use of cache
7297# files altogether, and which should be passed on to subconfigures.
7298# Also strip program-prefix, program-suffix, and program-transform-name,
7299# so that we can pass down a consistent program-transform-name.
c6b750e1
DJ
7300baseargs=
7301keep_next=no
7302skip_next=no
7303eval "set -- $ac_configure_args"
18f6b6ee
PB
7304for ac_arg
7305do
c6b750e1
DJ
7306 if test X"$skip_next" = X"yes"; then
7307 skip_next=no
7308 continue
7309 fi
7310 if test X"$keep_next" = X"yes"; then
7311 case $ac_arg in
7312 *\'*)
7313 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7314 esac
7315 baseargs="$baseargs '$ac_arg'"
7316 keep_next=no
7317 continue
7318 fi
7319
7320 # Handle separated arguments. Based on the logic generated by
7321 # autoconf 2.59.
7322 case $ac_arg in
7323 *=* | --config-cache | -C | -disable-* | --disable-* \
7324 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7325 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7326 | -with-* | --with-* | -without-* | --without-* | --x)
7327 separate_arg=no
7328 ;;
7329 -*)
7330 separate_arg=yes
7331 ;;
7332 *)
7333 separate_arg=no
7334 ;;
7335 esac
7336
7337 case "$ac_arg" in
30167e0a
NC
7338 --cache-file=/dev/null | \
7339 -cache-file=/dev/null )
7340 # Handled here to avoid the test to skip args below.
7341 baseargs="$baseargs '$ac_arg'"
7342 # Assert: $separate_arg should always be no.
7343 keep_next=$separate_arg
7344 ;;
c6b750e1
DJ
7345 --no*)
7346 continue
7347 ;;
7348 --c* | \
7349 --sr* | \
7350 --ho* | \
7351 --bu* | \
7352 --t* | \
7353 --program-* | \
7354 -cache_file* | \
7355 -srcdir* | \
7356 -host* | \
7357 -build* | \
7358 -target* | \
7359 -program-prefix* | \
7360 -program-suffix* | \
7361 -program-transform-name* )
7362 skip_next=$separate_arg
7363 continue
7364 ;;
7365 -*)
7366 # An option. Add it.
7367 case $ac_arg in
7368 *\'*)
7369 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7370 esac
7371 baseargs="$baseargs '$ac_arg'"
7372 keep_next=$separate_arg
7373 ;;
7374 *)
7375 # Either a variable assignment, or a nonopt (triplet). Don't
7376 # pass it down; let the Makefile handle this.
7377 continue
7378 ;;
7379 esac
7380done
7381# Remove the initial space we just introduced and, as these will be
7382# expanded by make, quote '$'.
7383baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7384
f27d4f92
DJ
7385# Add in --program-transform-name, after --program-prefix and
7386# --program-suffix have been applied to it. Autoconf has already
7387# doubled dollar signs and backslashes in program_transform_name; we want
7388# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7389# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7390# Also, because we want to override the logic in subdir configure scripts to
7391# choose program_transform_name, replace any s,x,x, with s,y,y,.
7392sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7393${program_transform_name}
7394EOF_SED
7395gcc_transform_name=`cat conftestsed.out`
7396rm -f conftestsed.out
7397baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7398if test "$silent" = yes; then
7399 baseargs="$baseargs --silent"
7400fi
34a0f3cf 7401baseargs="$baseargs --disable-option-checking"
f27d4f92 7402
4074d5f2
RW
7403# Record and document user additions to sub configure arguments.
7404
7405
7406
7407
a0da8069
NN
7408# For the build-side libraries, we just need to pretend we're native,
7409# and not use the same cache file. Multilibs are neither needed nor
7410# desired.
4074d5f2 7411build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7412
7413# For host modules, accept cache file option, or specification as blank.
7414case "${cache_file}" in
7415"") # empty
7416 cache_file_option="" ;;
7417/* | [A-Za-z]:[\\/]* ) # absolute path
7418 cache_file_option="--cache-file=${cache_file}" ;;
7419*) # relative path
7420 cache_file_option="--cache-file=../${cache_file}" ;;
7421esac
7422
82252c06
NN
7423# Host dirs don't like to share a cache file either, horribly enough.
7424# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7425host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7426
4074d5f2 7427target_configargs="$target_configargs ${baseargs}"
a0da8069
NN
7428
7429# Passing a --with-cross-host argument lets the target libraries know
7430# whether they are being built with a cross-compiler or being built
7431# native. However, it would be better to use other mechanisms to make the
7432# sorts of decisions they want to make on this basis. Please consider
7433# this option to be deprecated. FIXME.
7434if test x${is_cross_compiler} = xyes ; then
c6b750e1 7435 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7436fi
7437
938d2b74
RW
7438# Default to --enable-multilib.
7439if test x${enable_multilib} = x ; then
a0da8069 7440 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7441fi
a0da8069
NN
7442
7443# Pass --with-newlib if appropriate. Note that target_configdirs has
7444# changed from the earlier setting of with_newlib.
7445if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7446 target_configargs="--with-newlib ${target_configargs}"
7447fi
7448
95036d20
NN
7449# Different target subdirs use different values of certain variables
7450# (notably CXX). Worse, multilibs use *lots* of different values.
7451# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7452# it doesn't automatically accept command-line overrides of them.
7453# This means it's not safe for target subdirs to share a cache file,
7454# which is disgusting, but there you have it. Hopefully this can be
7455# fixed in future. It's still worthwhile to use a cache file for each
7456# directory. I think.
7457
ae380b45
MS
7458# Pass the appropriate --build, --host, --target and --cache-file arguments.
7459# We need to pass --target, as newer autoconf's requires consistency
7460# for target_alias and gcc doesn't manage it consistently.
4b900473 7461target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7462
a0da8069
NN
7463FLAGS_FOR_TARGET=
7464case " $target_configdirs " in
7465 *" newlib "*)
7466 case " $target_configargs " in
7467 *" --with-newlib "*)
7468 case "$target" in
1f53ca9a
AO
7469 *-cygwin*)
7470 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'
7471 ;;
a0da8069
NN
7472 esac
7473
7474 # If we're not building GCC, don't discard standard headers.
7475 if test -d ${srcdir}/gcc; then
7476 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7477
7478 if test "${build}" != "${host}"; then
7479 # On Canadian crosses, CC_FOR_TARGET will have already been set
7480 # by `configure', so we won't have an opportunity to add -Bgcc/
7481 # to it. This is right: we don't want to search that directory
7482 # for binaries, but we want the header files in there, so add
7483 # them explicitly.
e552509b 7484 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7485
7486 # Someone might think of using the pre-installed headers on
7487 # Canadian crosses, in case the installed compiler is not fully
7488 # compatible with the compiler being built. In this case, it
7489 # would be better to flag an error than risking having
7490 # incompatible object files being constructed. We can't
7491 # guarantee that an error will be flagged, but let's hope the
7492 # compiler will do it, when presented with incompatible header
7493 # files.
7494 fi
7495 fi
7496
7497 case "${target}-${is_cross_compiler}" in
ec11bdc6 7498 i[3456789]86-*-linux*-no)
a0da8069
NN
7499 # Here host == target, so we don't need to build gcc,
7500 # so we don't want to discard standard headers.
7501 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7502 ;;
7503 *)
7504 # If we're building newlib, use its generic headers last, but search
7505 # for any libc-related directories first (so make it the last -B
7506 # switch).
7507 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
7508
7509 # If we're building libgloss, find the startup file, simulator library
7510 # and linker script.
7511 case " $target_configdirs " in
7512 *" libgloss "*)
7513 # Look for startup file, simulator library and maybe linker script.
7514 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7515 # Look for libnosys.a in case the target needs it.
7516 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7517 # Most targets have the linker script in the source directory.
7518 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7519 ;;
7520 esac
a0da8069
NN
7521 ;;
7522 esac
7523 ;;
7524 esac
7525 ;;
7526esac
1f53ca9a 7527
45055374 7528case "$target" in
1f53ca9a
AO
7529 x86_64-*mingw* | *-w64-mingw*)
7530 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7531 # however, use a symlink named 'mingw' in ${prefix} .
7532 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7533 ;;
7534 *-mingw*)
7535 # MinGW can't be handled as Cygwin above since it does not use newlib.
7536 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'
7537 ;;
45055374 7538esac
a0da8069 7539
5fbad20a
DD
7540# Allow the user to override the flags for
7541# our build compiler if desired.
c66487f8
NC
7542if test x"${build}" = x"${host}" ; then
7543 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7544 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7545 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7546fi
5fbad20a 7547
a0da8069
NN
7548# On Canadian crosses, we'll be searching the right directories for
7549# the previously-installed cross compiler, so don't bother to add
7550# flags for directories within the install tree of the compiler
7551# being built; programs in there won't even run.
7552if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7553 # Search for pre-installed headers if nothing else fits.
bba45b8b 7554 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
7555fi
7556
7557if test "x${use_gnu_ld}" = x &&
7558 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7559 # Arrange for us to find uninstalled linker scripts.
b00612cc 7560 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7561fi
7562
a481dbb7
DD
7563# Search for other target-specific linker scripts and such.
7564case "${target}" in
4e206d7e
DB
7565 mep*)
7566 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7567 ;;
7568esac
7569
a0da8069 7570# Makefile fragments.
3e707e94
PB
7571for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7572do
7573 eval fragval=\$$frag
7574 if test $fragval != /dev/null; then
7575 eval $frag=${srcdir}/$fragval
7576 fi
7577done
a0da8069
NN
7578
7579
7580
7581
7582
7583# Miscellanea: directories, flags, etc.
7584
7585
7586
7587
7588
7589
7590
3bbd2f8f 7591
6a9cf61e 7592# Build module lists & subconfigure args.
a0da8069
NN
7593
7594
7595
be01d343
PB
7596# Host module lists & subconfigure args.
7597
7598
7599
911e63d0 7600
be01d343
PB
7601# Target module lists & subconfigure args.
7602
7603
7604
7605# Build tools.
7606
7607
7608
1576798e
PB
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
e552509b 7623
be01d343
PB
7624# Generate default definitions for YACC, M4, LEX and other programs that run
7625# on the build machine. These are used if the Makefile can't locate these
7626# programs in objdir.
7627MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7628
7629for ac_prog in 'bison -y' byacc yacc
7630do
c6b750e1 7631 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7632set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7634$as_echo_n "checking for $ac_word... " >&6; }
7635if test "${ac_cv_prog_YACC+set}" = set; then :
7636 $as_echo_n "(cached) " >&6
be01d343
PB
7637else
7638 if test -n "$YACC"; then
7639 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7640else
c6b750e1
DJ
7641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642for as_dir in $PATH
7643do
7644 IFS=$as_save_IFS
7645 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7646 for ac_exec_ext in '' $ac_executable_extensions; do
7647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7648 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7650 break 2
7651 fi
7652done
81ecdfbb
RW
7653 done
7654IFS=$as_save_IFS
c6b750e1 7655
be01d343
PB
7656fi
7657fi
c6b750e1 7658YACC=$ac_cv_prog_YACC
be01d343 7659if test -n "$YACC"; then
81ecdfbb
RW
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7661$as_echo "$YACC" >&6; }
be01d343 7662else
81ecdfbb
RW
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7664$as_echo "no" >&6; }
be01d343
PB
7665fi
7666
81ecdfbb 7667
c6b750e1 7668 test -n "$YACC" && break
be01d343
PB
7669done
7670test -n "$YACC" || YACC="$MISSING bison -y"
7671
7672case " $build_configdirs " in
7673 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7674 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7675esac
7676
7677for ac_prog in bison
7678do
c6b750e1 7679 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7680set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7682$as_echo_n "checking for $ac_word... " >&6; }
7683if test "${ac_cv_prog_BISON+set}" = set; then :
7684 $as_echo_n "(cached) " >&6
be01d343
PB
7685else
7686 if test -n "$BISON"; then
7687 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7688else
c6b750e1
DJ
7689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7690for as_dir in $PATH
7691do
7692 IFS=$as_save_IFS
7693 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7694 for ac_exec_ext in '' $ac_executable_extensions; do
7695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7696 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7698 break 2
7699 fi
7700done
81ecdfbb
RW
7701 done
7702IFS=$as_save_IFS
c6b750e1 7703
be01d343
PB
7704fi
7705fi
c6b750e1 7706BISON=$ac_cv_prog_BISON
be01d343 7707if test -n "$BISON"; then
81ecdfbb
RW
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7709$as_echo "$BISON" >&6; }
be01d343 7710else
81ecdfbb
RW
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712$as_echo "no" >&6; }
be01d343
PB
7713fi
7714
81ecdfbb 7715
c6b750e1 7716 test -n "$BISON" && break
be01d343
PB
7717done
7718test -n "$BISON" || BISON="$MISSING bison"
7719
7720case " $build_configdirs " in
7721 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7722esac
7723
7724for ac_prog in gm4 gnum4 m4
7725do
c6b750e1 7726 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7727set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729$as_echo_n "checking for $ac_word... " >&6; }
7730if test "${ac_cv_prog_M4+set}" = set; then :
7731 $as_echo_n "(cached) " >&6
be01d343
PB
7732else
7733 if test -n "$M4"; then
7734 ac_cv_prog_M4="$M4" # Let the user override the test.
7735else
c6b750e1
DJ
7736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737for as_dir in $PATH
7738do
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7743 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7745 break 2
7746 fi
7747done
81ecdfbb
RW
7748 done
7749IFS=$as_save_IFS
c6b750e1 7750
be01d343
PB
7751fi
7752fi
c6b750e1 7753M4=$ac_cv_prog_M4
be01d343 7754if test -n "$M4"; then
81ecdfbb
RW
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7756$as_echo "$M4" >&6; }
be01d343 7757else
81ecdfbb
RW
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759$as_echo "no" >&6; }
be01d343
PB
7760fi
7761
81ecdfbb 7762
c6b750e1 7763 test -n "$M4" && break
be01d343
PB
7764done
7765test -n "$M4" || M4="$MISSING m4"
7766
7767case " $build_configdirs " in
7768 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7769esac
7770
7771for ac_prog in flex lex
7772do
c6b750e1 7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7774set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776$as_echo_n "checking for $ac_word... " >&6; }
7777if test "${ac_cv_prog_LEX+set}" = set; then :
7778 $as_echo_n "(cached) " >&6
be01d343
PB
7779else
7780 if test -n "$LEX"; then
7781 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7782else
c6b750e1
DJ
7783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7784for as_dir in $PATH
7785do
7786 IFS=$as_save_IFS
7787 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7788 for ac_exec_ext in '' $ac_executable_extensions; do
7789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7790 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7792 break 2
7793 fi
7794done
81ecdfbb
RW
7795 done
7796IFS=$as_save_IFS
c6b750e1 7797
be01d343
PB
7798fi
7799fi
c6b750e1 7800LEX=$ac_cv_prog_LEX
be01d343 7801if test -n "$LEX"; then
81ecdfbb
RW
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7803$as_echo "$LEX" >&6; }
be01d343 7804else
81ecdfbb
RW
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7806$as_echo "no" >&6; }
be01d343
PB
7807fi
7808
81ecdfbb 7809
c6b750e1 7810 test -n "$LEX" && break
be01d343
PB
7811done
7812test -n "$LEX" || LEX="$MISSING flex"
7813
7814case " $build_configdirs " in
7815 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7816 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7817esac
7818
7819for ac_prog in flex
7820do
c6b750e1 7821 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7822set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824$as_echo_n "checking for $ac_word... " >&6; }
7825if test "${ac_cv_prog_FLEX+set}" = set; then :
7826 $as_echo_n "(cached) " >&6
be01d343
PB
7827else
7828 if test -n "$FLEX"; then
7829 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7830else
c6b750e1
DJ
7831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7832for as_dir in $PATH
7833do
7834 IFS=$as_save_IFS
7835 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7836 for ac_exec_ext in '' $ac_executable_extensions; do
7837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7838 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7840 break 2
7841 fi
7842done
81ecdfbb
RW
7843 done
7844IFS=$as_save_IFS
c6b750e1 7845
be01d343
PB
7846fi
7847fi
c6b750e1 7848FLEX=$ac_cv_prog_FLEX
be01d343 7849if test -n "$FLEX"; then
81ecdfbb
RW
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7851$as_echo "$FLEX" >&6; }
be01d343 7852else
81ecdfbb
RW
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854$as_echo "no" >&6; }
be01d343
PB
7855fi
7856
81ecdfbb 7857
c6b750e1 7858 test -n "$FLEX" && break
be01d343
PB
7859done
7860test -n "$FLEX" || FLEX="$MISSING flex"
7861
7862case " $build_configdirs " in
7863 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7864esac
7865
7866for ac_prog in makeinfo
7867do
c6b750e1 7868 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7869set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7871$as_echo_n "checking for $ac_word... " >&6; }
7872if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7873 $as_echo_n "(cached) " >&6
be01d343
PB
7874else
7875 if test -n "$MAKEINFO"; then
7876 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7877else
c6b750e1
DJ
7878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7879for as_dir in $PATH
7880do
7881 IFS=$as_save_IFS
7882 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7883 for ac_exec_ext in '' $ac_executable_extensions; do
7884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7885 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7887 break 2
7888 fi
7889done
81ecdfbb
RW
7890 done
7891IFS=$as_save_IFS
c6b750e1 7892
be01d343
PB
7893fi
7894fi
c6b750e1 7895MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7896if test -n "$MAKEINFO"; then
81ecdfbb
RW
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7898$as_echo "$MAKEINFO" >&6; }
be01d343 7899else
81ecdfbb
RW
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7901$as_echo "no" >&6; }
be01d343
PB
7902fi
7903
81ecdfbb 7904
c6b750e1 7905 test -n "$MAKEINFO" && break
be01d343
PB
7906done
7907test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7908
7909case " $build_configdirs " in
7910 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7911 *)
7912
10ad8ef3 7913 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7914 # higher, else we use the "missing" dummy.
7915 if ${MAKEINFO} --version \
10ad8ef3 7916 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7917 :
7918 else
7919 MAKEINFO="$MISSING makeinfo"
7920 fi
7921 ;;
7922
7923esac
a0da8069 7924
be01d343 7925# FIXME: expect and dejagnu may become build tools?
a0da8069 7926
be01d343
PB
7927for ac_prog in expect
7928do
c6b750e1 7929 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7930set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7932$as_echo_n "checking for $ac_word... " >&6; }
7933if test "${ac_cv_prog_EXPECT+set}" = set; then :
7934 $as_echo_n "(cached) " >&6
be01d343
PB
7935else
7936 if test -n "$EXPECT"; then
7937 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7938else
c6b750e1
DJ
7939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7940for as_dir in $PATH
7941do
7942 IFS=$as_save_IFS
7943 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7944 for ac_exec_ext in '' $ac_executable_extensions; do
7945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7946 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7948 break 2
7949 fi
7950done
81ecdfbb
RW
7951 done
7952IFS=$as_save_IFS
c6b750e1 7953
be01d343
PB
7954fi
7955fi
c6b750e1 7956EXPECT=$ac_cv_prog_EXPECT
be01d343 7957if test -n "$EXPECT"; then
81ecdfbb
RW
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7959$as_echo "$EXPECT" >&6; }
be01d343 7960else
81ecdfbb
RW
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7962$as_echo "no" >&6; }
be01d343 7963fi
a0da8069 7964
81ecdfbb 7965
c6b750e1 7966 test -n "$EXPECT" && break
be01d343
PB
7967done
7968test -n "$EXPECT" || EXPECT="expect"
a0da8069 7969
be01d343
PB
7970case " $configdirs " in
7971 *" expect "*)
7972 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7973 ;;
7974esac
a0da8069 7975
be01d343
PB
7976for ac_prog in runtest
7977do
c6b750e1 7978 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7979set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981$as_echo_n "checking for $ac_word... " >&6; }
7982if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
be01d343
PB
7984else
7985 if test -n "$RUNTEST"; then
7986 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7987else
c6b750e1
DJ
7988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989for as_dir in $PATH
7990do
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7995 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7997 break 2
7998 fi
7999done
81ecdfbb
RW
8000 done
8001IFS=$as_save_IFS
c6b750e1 8002
be01d343
PB
8003fi
8004fi
c6b750e1 8005RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8006if test -n "$RUNTEST"; then
81ecdfbb
RW
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8008$as_echo "$RUNTEST" >&6; }
be01d343 8009else
81ecdfbb
RW
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011$as_echo "no" >&6; }
be01d343 8012fi
a0da8069 8013
81ecdfbb 8014
c6b750e1 8015 test -n "$RUNTEST" && break
be01d343
PB
8016done
8017test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8018
be01d343
PB
8019case " $configdirs " in
8020 *" dejagnu "*)
6b89cc21 8021 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8022 ;;
8023esac
a0da8069
NN
8024
8025
a0da8069 8026# Host tools.
859789af
AC
8027ncn_tool_prefix=
8028test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8029ncn_target_tool_prefix=
8030test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8031
9a819804
AO
8032
8033
8034if test -n "$AR"; then
8035 ac_cv_prog_AR=$AR
8036elif test -n "$ac_cv_prog_AR"; then
8037 AR=$ac_cv_prog_AR
8038fi
8039
8040if test -n "$ac_cv_prog_AR"; then
8041 for ncn_progname in ar; do
8042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8043set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045$as_echo_n "checking for $ac_word... " >&6; }
8046if test "${ac_cv_prog_AR+set}" = set; then :
8047 $as_echo_n "(cached) " >&6
9a819804
AO
8048else
8049 if test -n "$AR"; then
8050 ac_cv_prog_AR="$AR" # Let the user override the test.
8051else
8052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8053for as_dir in $PATH
8054do
8055 IFS=$as_save_IFS
8056 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8057 for ac_exec_ext in '' $ac_executable_extensions; do
8058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8059 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8061 break 2
8062 fi
8063done
81ecdfbb
RW
8064 done
8065IFS=$as_save_IFS
9a819804
AO
8066
8067fi
8068fi
8069AR=$ac_cv_prog_AR
8070if test -n "$AR"; then
81ecdfbb
RW
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8072$as_echo "$AR" >&6; }
9a819804 8073else
81ecdfbb
RW
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075$as_echo "no" >&6; }
9a819804
AO
8076fi
8077
81ecdfbb 8078
9a819804
AO
8079 done
8080fi
8081
8082for ncn_progname in ar; do
05cbd757
PB
8083 if test -n "$ncn_tool_prefix"; then
8084 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8085set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087$as_echo_n "checking for $ac_word... " >&6; }
8088if test "${ac_cv_prog_AR+set}" = set; then :
8089 $as_echo_n "(cached) " >&6
859789af
AC
8090else
8091 if test -n "$AR"; then
8092 ac_cv_prog_AR="$AR" # Let the user override the test.
8093else
c6b750e1
DJ
8094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095for as_dir in $PATH
8096do
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8101 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8103 break 2
8104 fi
8105done
81ecdfbb
RW
8106 done
8107IFS=$as_save_IFS
c6b750e1 8108
859789af
AC
8109fi
8110fi
c6b750e1 8111AR=$ac_cv_prog_AR
859789af 8112if test -n "$AR"; then
81ecdfbb
RW
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8114$as_echo "$AR" >&6; }
859789af 8115else
81ecdfbb
RW
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117$as_echo "no" >&6; }
859789af
AC
8118fi
8119
81ecdfbb 8120
05cbd757
PB
8121 fi
8122 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8123 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8124set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126$as_echo_n "checking for $ac_word... " >&6; }
8127if test "${ac_cv_prog_AR+set}" = set; then :
8128 $as_echo_n "(cached) " >&6
859789af 8129else
05cbd757
PB
8130 if test -n "$AR"; then
8131 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8132else
c6b750e1
DJ
8133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134for as_dir in $PATH
8135do
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8140 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8142 break 2
8143 fi
8144done
81ecdfbb
RW
8145 done
8146IFS=$as_save_IFS
c6b750e1 8147
859789af
AC
8148fi
8149fi
c6b750e1 8150AR=$ac_cv_prog_AR
05cbd757 8151if test -n "$AR"; then
81ecdfbb
RW
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8153$as_echo "$AR" >&6; }
859789af 8154else
81ecdfbb
RW
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156$as_echo "no" >&6; }
859789af 8157fi
c6b750e1 8158
81ecdfbb 8159
05cbd757
PB
8160 fi
8161 test -n "$ac_cv_prog_AR" && break
8162done
8163
8164if test -z "$ac_cv_prog_AR" ; then
8165 set dummy ar
8166 if test $build = $host ; then
8167 AR="$2"
859789af 8168 else
05cbd757 8169 AR="${ncn_tool_prefix}$2"
859789af 8170 fi
859789af
AC
8171fi
8172
9a819804
AO
8173
8174
8175if test -n "$AS"; then
8176 ac_cv_prog_AS=$AS
8177elif test -n "$ac_cv_prog_AS"; then
8178 AS=$ac_cv_prog_AS
8179fi
8180
8181if test -n "$ac_cv_prog_AS"; then
8182 for ncn_progname in as; do
8183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8184set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8186$as_echo_n "checking for $ac_word... " >&6; }
8187if test "${ac_cv_prog_AS+set}" = set; then :
8188 $as_echo_n "(cached) " >&6
9a819804
AO
8189else
8190 if test -n "$AS"; then
8191 ac_cv_prog_AS="$AS" # Let the user override the test.
8192else
8193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194for as_dir in $PATH
8195do
8196 IFS=$as_save_IFS
8197 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8198 for ac_exec_ext in '' $ac_executable_extensions; do
8199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8200 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8202 break 2
8203 fi
8204done
81ecdfbb
RW
8205 done
8206IFS=$as_save_IFS
9a819804
AO
8207
8208fi
8209fi
8210AS=$ac_cv_prog_AS
8211if test -n "$AS"; then
81ecdfbb
RW
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8213$as_echo "$AS" >&6; }
9a819804 8214else
81ecdfbb
RW
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216$as_echo "no" >&6; }
9a819804
AO
8217fi
8218
81ecdfbb 8219
9a819804
AO
8220 done
8221fi
8222
8223for ncn_progname in as; do
05cbd757
PB
8224 if test -n "$ncn_tool_prefix"; then
8225 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8226set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228$as_echo_n "checking for $ac_word... " >&6; }
8229if test "${ac_cv_prog_AS+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
859789af
AC
8231else
8232 if test -n "$AS"; then
8233 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8234else
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8242 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8244 break 2
8245 fi
8246done
81ecdfbb
RW
8247 done
8248IFS=$as_save_IFS
c6b750e1 8249
859789af
AC
8250fi
8251fi
c6b750e1 8252AS=$ac_cv_prog_AS
859789af 8253if test -n "$AS"; then
81ecdfbb
RW
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8255$as_echo "$AS" >&6; }
859789af 8256else
81ecdfbb
RW
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258$as_echo "no" >&6; }
859789af
AC
8259fi
8260
81ecdfbb 8261
05cbd757
PB
8262 fi
8263 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8264 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8265set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8267$as_echo_n "checking for $ac_word... " >&6; }
8268if test "${ac_cv_prog_AS+set}" = set; then :
8269 $as_echo_n "(cached) " >&6
859789af 8270else
05cbd757
PB
8271 if test -n "$AS"; then
8272 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8273else
c6b750e1
DJ
8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8275for as_dir in $PATH
8276do
8277 IFS=$as_save_IFS
8278 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8279 for ac_exec_ext in '' $ac_executable_extensions; do
8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8281 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8283 break 2
8284 fi
8285done
81ecdfbb
RW
8286 done
8287IFS=$as_save_IFS
c6b750e1 8288
859789af
AC
8289fi
8290fi
c6b750e1 8291AS=$ac_cv_prog_AS
05cbd757 8292if test -n "$AS"; then
81ecdfbb
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8294$as_echo "$AS" >&6; }
859789af 8295else
81ecdfbb
RW
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297$as_echo "no" >&6; }
859789af 8298fi
c6b750e1 8299
81ecdfbb 8300
05cbd757
PB
8301 fi
8302 test -n "$ac_cv_prog_AS" && break
8303done
8304
8305if test -z "$ac_cv_prog_AS" ; then
8306 set dummy as
8307 if test $build = $host ; then
8308 AS="$2"
859789af 8309 else
05cbd757 8310 AS="${ncn_tool_prefix}$2"
859789af 8311 fi
859789af
AC
8312fi
8313
9a819804
AO
8314
8315
8316if test -n "$DLLTOOL"; then
8317 ac_cv_prog_DLLTOOL=$DLLTOOL
8318elif test -n "$ac_cv_prog_DLLTOOL"; then
8319 DLLTOOL=$ac_cv_prog_DLLTOOL
8320fi
8321
8322if test -n "$ac_cv_prog_DLLTOOL"; then
8323 for ncn_progname in dlltool; do
8324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8325set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327$as_echo_n "checking for $ac_word... " >&6; }
8328if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8329 $as_echo_n "(cached) " >&6
9a819804
AO
8330else
8331 if test -n "$DLLTOOL"; then
8332 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8333else
8334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8335for as_dir in $PATH
8336do
8337 IFS=$as_save_IFS
8338 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8339 for ac_exec_ext in '' $ac_executable_extensions; do
8340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8341 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8343 break 2
8344 fi
8345done
81ecdfbb
RW
8346 done
8347IFS=$as_save_IFS
9a819804
AO
8348
8349fi
8350fi
8351DLLTOOL=$ac_cv_prog_DLLTOOL
8352if test -n "$DLLTOOL"; then
81ecdfbb
RW
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8354$as_echo "$DLLTOOL" >&6; }
9a819804 8355else
81ecdfbb
RW
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357$as_echo "no" >&6; }
9a819804
AO
8358fi
8359
81ecdfbb 8360
9a819804
AO
8361 done
8362fi
8363
8364for ncn_progname in dlltool; do
05cbd757
PB
8365 if test -n "$ncn_tool_prefix"; then
8366 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8367set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369$as_echo_n "checking for $ac_word... " >&6; }
8370if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8371 $as_echo_n "(cached) " >&6
859789af
AC
8372else
8373 if test -n "$DLLTOOL"; then
8374 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8375else
c6b750e1
DJ
8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377for as_dir in $PATH
8378do
8379 IFS=$as_save_IFS
8380 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8381 for ac_exec_ext in '' $ac_executable_extensions; do
8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8383 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8385 break 2
8386 fi
8387done
81ecdfbb
RW
8388 done
8389IFS=$as_save_IFS
c6b750e1 8390
859789af
AC
8391fi
8392fi
c6b750e1 8393DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8394if test -n "$DLLTOOL"; then
81ecdfbb
RW
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8396$as_echo "$DLLTOOL" >&6; }
859789af 8397else
81ecdfbb
RW
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399$as_echo "no" >&6; }
859789af
AC
8400fi
8401
81ecdfbb 8402
05cbd757
PB
8403 fi
8404 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8405 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8406set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408$as_echo_n "checking for $ac_word... " >&6; }
8409if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8410 $as_echo_n "(cached) " >&6
859789af 8411else
05cbd757
PB
8412 if test -n "$DLLTOOL"; then
8413 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8414else
c6b750e1
DJ
8415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416for as_dir in $PATH
8417do
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8422 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8424 break 2
8425 fi
8426done
81ecdfbb
RW
8427 done
8428IFS=$as_save_IFS
c6b750e1 8429
859789af
AC
8430fi
8431fi
c6b750e1 8432DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8433if test -n "$DLLTOOL"; then
81ecdfbb
RW
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8435$as_echo "$DLLTOOL" >&6; }
859789af 8436else
81ecdfbb
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8438$as_echo "no" >&6; }
859789af 8439fi
c6b750e1 8440
81ecdfbb 8441
05cbd757
PB
8442 fi
8443 test -n "$ac_cv_prog_DLLTOOL" && break
8444done
8445
8446if test -z "$ac_cv_prog_DLLTOOL" ; then
8447 set dummy dlltool
8448 if test $build = $host ; then
8449 DLLTOOL="$2"
859789af 8450 else
05cbd757 8451 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8452 fi
859789af
AC
8453fi
8454
9a819804
AO
8455
8456
8457if test -n "$LD"; then
8458 ac_cv_prog_LD=$LD
8459elif test -n "$ac_cv_prog_LD"; then
8460 LD=$ac_cv_prog_LD
8461fi
8462
8463if test -n "$ac_cv_prog_LD"; then
8464 for ncn_progname in ld; do
8465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8466set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8468$as_echo_n "checking for $ac_word... " >&6; }
8469if test "${ac_cv_prog_LD+set}" = set; then :
8470 $as_echo_n "(cached) " >&6
9a819804
AO
8471else
8472 if test -n "$LD"; then
8473 ac_cv_prog_LD="$LD" # Let the user override the test.
8474else
8475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8476for as_dir in $PATH
8477do
8478 IFS=$as_save_IFS
8479 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8480 for ac_exec_ext in '' $ac_executable_extensions; do
8481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8482 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8484 break 2
8485 fi
8486done
81ecdfbb
RW
8487 done
8488IFS=$as_save_IFS
9a819804
AO
8489
8490fi
8491fi
8492LD=$ac_cv_prog_LD
8493if test -n "$LD"; then
81ecdfbb
RW
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8495$as_echo "$LD" >&6; }
9a819804 8496else
81ecdfbb
RW
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498$as_echo "no" >&6; }
9a819804
AO
8499fi
8500
81ecdfbb 8501
9a819804
AO
8502 done
8503fi
8504
8505for ncn_progname in ld; do
05cbd757
PB
8506 if test -n "$ncn_tool_prefix"; then
8507 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8508set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510$as_echo_n "checking for $ac_word... " >&6; }
8511if test "${ac_cv_prog_LD+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
859789af
AC
8513else
8514 if test -n "$LD"; then
8515 ac_cv_prog_LD="$LD" # Let the user override the test.
8516else
c6b750e1
DJ
8517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518for as_dir in $PATH
8519do
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8524 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8526 break 2
8527 fi
8528done
81ecdfbb
RW
8529 done
8530IFS=$as_save_IFS
c6b750e1 8531
859789af
AC
8532fi
8533fi
c6b750e1 8534LD=$ac_cv_prog_LD
859789af 8535if test -n "$LD"; then
81ecdfbb
RW
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8537$as_echo "$LD" >&6; }
859789af 8538else
81ecdfbb
RW
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
859789af
AC
8541fi
8542
81ecdfbb 8543
05cbd757
PB
8544 fi
8545 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8547set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549$as_echo_n "checking for $ac_word... " >&6; }
8550if test "${ac_cv_prog_LD+set}" = set; then :
8551 $as_echo_n "(cached) " >&6
859789af 8552else
05cbd757
PB
8553 if test -n "$LD"; then
8554 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8555else
c6b750e1
DJ
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8563 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8565 break 2
8566 fi
8567done
81ecdfbb
RW
8568 done
8569IFS=$as_save_IFS
c6b750e1 8570
859789af
AC
8571fi
8572fi
c6b750e1 8573LD=$ac_cv_prog_LD
05cbd757 8574if test -n "$LD"; then
81ecdfbb
RW
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8576$as_echo "$LD" >&6; }
859789af 8577else
81ecdfbb
RW
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579$as_echo "no" >&6; }
859789af 8580fi
c6b750e1 8581
81ecdfbb 8582
05cbd757
PB
8583 fi
8584 test -n "$ac_cv_prog_LD" && break
8585done
8586
8587if test -z "$ac_cv_prog_LD" ; then
8588 set dummy ld
8589 if test $build = $host ; then
8590 LD="$2"
859789af 8591 else
05cbd757 8592 LD="${ncn_tool_prefix}$2"
859789af 8593 fi
859789af
AC
8594fi
8595
9a819804
AO
8596
8597
8598if test -n "$LIPO"; then
8599 ac_cv_prog_LIPO=$LIPO
8600elif test -n "$ac_cv_prog_LIPO"; then
8601 LIPO=$ac_cv_prog_LIPO
8602fi
8603
8604if test -n "$ac_cv_prog_LIPO"; then
8605 for ncn_progname in lipo; do
8606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8607set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609$as_echo_n "checking for $ac_word... " >&6; }
8610if test "${ac_cv_prog_LIPO+set}" = set; then :
8611 $as_echo_n "(cached) " >&6
9a819804
AO
8612else
8613 if test -n "$LIPO"; then
8614 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8615else
8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617for as_dir in $PATH
8618do
8619 IFS=$as_save_IFS
8620 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8621 for ac_exec_ext in '' $ac_executable_extensions; do
8622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8623 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8625 break 2
8626 fi
8627done
81ecdfbb
RW
8628 done
8629IFS=$as_save_IFS
9a819804
AO
8630
8631fi
8632fi
8633LIPO=$ac_cv_prog_LIPO
8634if test -n "$LIPO"; then
81ecdfbb
RW
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8636$as_echo "$LIPO" >&6; }
9a819804 8637else
81ecdfbb
RW
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639$as_echo "no" >&6; }
9a819804
AO
8640fi
8641
81ecdfbb 8642
9a819804
AO
8643 done
8644fi
8645
8646for ncn_progname in lipo; do
be01d343
PB
8647 if test -n "$ncn_tool_prefix"; then
8648 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8649set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651$as_echo_n "checking for $ac_word... " >&6; }
8652if test "${ac_cv_prog_LIPO+set}" = set; then :
8653 $as_echo_n "(cached) " >&6
be01d343
PB
8654else
8655 if test -n "$LIPO"; then
8656 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8657else
c6b750e1
DJ
8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661 IFS=$as_save_IFS
8662 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8665 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8667 break 2
8668 fi
8669done
81ecdfbb
RW
8670 done
8671IFS=$as_save_IFS
c6b750e1 8672
be01d343
PB
8673fi
8674fi
c6b750e1 8675LIPO=$ac_cv_prog_LIPO
be01d343 8676if test -n "$LIPO"; then
81ecdfbb
RW
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8678$as_echo "$LIPO" >&6; }
be01d343 8679else
81ecdfbb
RW
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681$as_echo "no" >&6; }
be01d343
PB
8682fi
8683
81ecdfbb 8684
be01d343
PB
8685 fi
8686 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8687 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8688set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690$as_echo_n "checking for $ac_word... " >&6; }
8691if test "${ac_cv_prog_LIPO+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
be01d343
PB
8693else
8694 if test -n "$LIPO"; then
8695 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8696else
c6b750e1
DJ
8697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698for as_dir in $PATH
8699do
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8704 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8706 break 2
8707 fi
8708done
81ecdfbb
RW
8709 done
8710IFS=$as_save_IFS
c6b750e1 8711
be01d343
PB
8712fi
8713fi
c6b750e1 8714LIPO=$ac_cv_prog_LIPO
be01d343 8715if test -n "$LIPO"; then
81ecdfbb
RW
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8717$as_echo "$LIPO" >&6; }
be01d343 8718else
81ecdfbb
RW
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720$as_echo "no" >&6; }
be01d343 8721fi
c6b750e1 8722
81ecdfbb 8723
be01d343
PB
8724 fi
8725 test -n "$ac_cv_prog_LIPO" && break
8726done
8727
8728if test -z "$ac_cv_prog_LIPO" ; then
8729 set dummy lipo
8730 if test $build = $host ; then
8731 LIPO="$2"
8732 else
8733 LIPO="${ncn_tool_prefix}$2"
8734 fi
8735fi
8736
9a819804
AO
8737
8738
8739if test -n "$NM"; then
8740 ac_cv_prog_NM=$NM
8741elif test -n "$ac_cv_prog_NM"; then
8742 NM=$ac_cv_prog_NM
8743fi
8744
8745if test -n "$ac_cv_prog_NM"; then
8746 for ncn_progname in nm; do
8747 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8748set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8750$as_echo_n "checking for $ac_word... " >&6; }
8751if test "${ac_cv_prog_NM+set}" = set; then :
8752 $as_echo_n "(cached) " >&6
859789af
AC
8753else
8754 if test -n "$NM"; then
8755 ac_cv_prog_NM="$NM" # Let the user override the test.
8756else
c6b750e1
DJ
8757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758for as_dir in $PATH
8759do
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8764 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8766 break 2
8767 fi
8768done
81ecdfbb
RW
8769 done
8770IFS=$as_save_IFS
c6b750e1 8771
859789af
AC
8772fi
8773fi
c6b750e1 8774NM=$ac_cv_prog_NM
859789af 8775if test -n "$NM"; then
81ecdfbb
RW
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8777$as_echo "$NM" >&6; }
859789af 8778else
81ecdfbb
RW
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8780$as_echo "no" >&6; }
859789af
AC
8781fi
8782
81ecdfbb 8783
9a819804
AO
8784 done
8785fi
8786
8787for ncn_progname in nm; do
8788 if test -n "$ncn_tool_prefix"; then
8789 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8790set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792$as_echo_n "checking for $ac_word... " >&6; }
8793if test "${ac_cv_prog_NM+set}" = set; then :
8794 $as_echo_n "(cached) " >&6
859789af 8795else
05cbd757
PB
8796 if test -n "$NM"; then
8797 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8798else
c6b750e1
DJ
8799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800for as_dir in $PATH
8801do
8802 IFS=$as_save_IFS
8803 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8804 for ac_exec_ext in '' $ac_executable_extensions; do
8805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8806 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8808 break 2
8809 fi
8810done
81ecdfbb
RW
8811 done
8812IFS=$as_save_IFS
c6b750e1 8813
859789af
AC
8814fi
8815fi
c6b750e1 8816NM=$ac_cv_prog_NM
05cbd757 8817if test -n "$NM"; then
81ecdfbb
RW
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8819$as_echo "$NM" >&6; }
859789af 8820else
81ecdfbb
RW
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822$as_echo "no" >&6; }
859789af 8823fi
c6b750e1 8824
81ecdfbb 8825
05cbd757 8826 fi
9a819804
AO
8827 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8829set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831$as_echo_n "checking for $ac_word... " >&6; }
8832if test "${ac_cv_prog_NM+set}" = set; then :
8833 $as_echo_n "(cached) " >&6
9a819804
AO
8834else
8835 if test -n "$NM"; then
8836 ac_cv_prog_NM="$NM" # Let the user override the test.
8837else
8838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839for as_dir in $PATH
8840do
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8845 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8847 break 2
8848 fi
8849done
81ecdfbb
RW
8850 done
8851IFS=$as_save_IFS
9a819804
AO
8852
8853fi
8854fi
8855NM=$ac_cv_prog_NM
8856if test -n "$NM"; then
81ecdfbb
RW
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8858$as_echo "$NM" >&6; }
9a819804 8859else
81ecdfbb
RW
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861$as_echo "no" >&6; }
9a819804
AO
8862fi
8863
81ecdfbb 8864
9a819804
AO
8865 fi
8866 test -n "$ac_cv_prog_NM" && break
8867done
8868
8869if test -z "$ac_cv_prog_NM" ; then
8870 set dummy nm
8871 if test $build = $host ; then
8872 NM="$2"
8873 else
8874 NM="${ncn_tool_prefix}$2"
8875 fi
8876fi
8877
8878
8879
8880if test -n "$RANLIB"; then
8881 ac_cv_prog_RANLIB=$RANLIB
8882elif test -n "$ac_cv_prog_RANLIB"; then
8883 RANLIB=$ac_cv_prog_RANLIB
8884fi
8885
8886if test -n "$ac_cv_prog_RANLIB"; then
8887 for ncn_progname in ranlib; do
8888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8889set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891$as_echo_n "checking for $ac_word... " >&6; }
8892if test "${ac_cv_prog_RANLIB+set}" = set; then :
8893 $as_echo_n "(cached) " >&6
9a819804
AO
8894else
8895 if test -n "$RANLIB"; then
8896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8897else
8898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899for as_dir in $PATH
8900do
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8905 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8907 break 2
8908 fi
8909done
81ecdfbb
RW
8910 done
8911IFS=$as_save_IFS
9a819804
AO
8912
8913fi
8914fi
8915RANLIB=$ac_cv_prog_RANLIB
8916if test -n "$RANLIB"; then
81ecdfbb
RW
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8918$as_echo "$RANLIB" >&6; }
9a819804 8919else
81ecdfbb
RW
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921$as_echo "no" >&6; }
9a819804
AO
8922fi
8923
81ecdfbb 8924
9a819804
AO
8925 done
8926fi
859789af 8927
9a819804 8928for ncn_progname in ranlib; do
05cbd757
PB
8929 if test -n "$ncn_tool_prefix"; then
8930 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8931set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933$as_echo_n "checking for $ac_word... " >&6; }
8934if test "${ac_cv_prog_RANLIB+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
859789af
AC
8936else
8937 if test -n "$RANLIB"; then
8938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8939else
c6b750e1
DJ
8940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941for as_dir in $PATH
8942do
8943 IFS=$as_save_IFS
8944 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8947 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8949 break 2
8950 fi
8951done
81ecdfbb
RW
8952 done
8953IFS=$as_save_IFS
c6b750e1 8954
859789af
AC
8955fi
8956fi
c6b750e1 8957RANLIB=$ac_cv_prog_RANLIB
859789af 8958if test -n "$RANLIB"; then
81ecdfbb
RW
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8960$as_echo "$RANLIB" >&6; }
859789af 8961else
81ecdfbb
RW
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963$as_echo "no" >&6; }
859789af
AC
8964fi
8965
81ecdfbb 8966
05cbd757
PB
8967 fi
8968 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8969 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8970set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972$as_echo_n "checking for $ac_word... " >&6; }
8973if test "${ac_cv_prog_RANLIB+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
859789af 8975else
05cbd757
PB
8976 if test -n "$RANLIB"; then
8977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8978else
c6b750e1
DJ
8979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980for as_dir in $PATH
8981do
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8986 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8988 break 2
8989 fi
8990done
81ecdfbb
RW
8991 done
8992IFS=$as_save_IFS
c6b750e1 8993
859789af
AC
8994fi
8995fi
c6b750e1 8996RANLIB=$ac_cv_prog_RANLIB
05cbd757 8997if test -n "$RANLIB"; then
81ecdfbb
RW
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8999$as_echo "$RANLIB" >&6; }
859789af 9000else
81ecdfbb
RW
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002$as_echo "no" >&6; }
859789af 9003fi
c6b750e1 9004
81ecdfbb 9005
859789af 9006 fi
05cbd757
PB
9007 test -n "$ac_cv_prog_RANLIB" && break
9008done
9009
9010if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9011 RANLIB="true"
859789af
AC
9012fi
9013
9a819804
AO
9014
9015
9016if test -n "$STRIP"; then
9017 ac_cv_prog_STRIP=$STRIP
9018elif test -n "$ac_cv_prog_STRIP"; then
9019 STRIP=$ac_cv_prog_STRIP
9020fi
9021
9022if test -n "$ac_cv_prog_STRIP"; then
9023 for ncn_progname in strip; do
9024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9025set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9027$as_echo_n "checking for $ac_word... " >&6; }
9028if test "${ac_cv_prog_STRIP+set}" = set; then :
9029 $as_echo_n "(cached) " >&6
9a819804
AO
9030else
9031 if test -n "$STRIP"; then
9032 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9033else
9034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9035for as_dir in $PATH
9036do
9037 IFS=$as_save_IFS
9038 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9039 for ac_exec_ext in '' $ac_executable_extensions; do
9040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9041 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9043 break 2
9044 fi
9045done
81ecdfbb
RW
9046 done
9047IFS=$as_save_IFS
9a819804
AO
9048
9049fi
9050fi
9051STRIP=$ac_cv_prog_STRIP
9052if test -n "$STRIP"; then
81ecdfbb
RW
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9054$as_echo "$STRIP" >&6; }
9a819804 9055else
81ecdfbb
RW
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9057$as_echo "no" >&6; }
9a819804
AO
9058fi
9059
81ecdfbb 9060
9a819804
AO
9061 done
9062fi
9063
9064for ncn_progname in strip; do
be01d343
PB
9065 if test -n "$ncn_tool_prefix"; then
9066 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9067set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069$as_echo_n "checking for $ac_word... " >&6; }
9070if test "${ac_cv_prog_STRIP+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
be01d343
PB
9072else
9073 if test -n "$STRIP"; then
9074 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9075else
c6b750e1
DJ
9076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077for as_dir in $PATH
9078do
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9083 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9085 break 2
9086 fi
9087done
81ecdfbb
RW
9088 done
9089IFS=$as_save_IFS
c6b750e1 9090
be01d343
PB
9091fi
9092fi
c6b750e1 9093STRIP=$ac_cv_prog_STRIP
be01d343 9094if test -n "$STRIP"; then
81ecdfbb
RW
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9096$as_echo "$STRIP" >&6; }
be01d343 9097else
81ecdfbb
RW
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099$as_echo "no" >&6; }
be01d343
PB
9100fi
9101
81ecdfbb 9102
be01d343
PB
9103 fi
9104 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9105 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9106set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9108$as_echo_n "checking for $ac_word... " >&6; }
9109if test "${ac_cv_prog_STRIP+set}" = set; then :
9110 $as_echo_n "(cached) " >&6
be01d343
PB
9111else
9112 if test -n "$STRIP"; then
9113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9114else
c6b750e1
DJ
9115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116for as_dir in $PATH
9117do
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9122 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9124 break 2
9125 fi
9126done
81ecdfbb
RW
9127 done
9128IFS=$as_save_IFS
c6b750e1 9129
be01d343
PB
9130fi
9131fi
c6b750e1 9132STRIP=$ac_cv_prog_STRIP
be01d343 9133if test -n "$STRIP"; then
81ecdfbb
RW
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9135$as_echo "$STRIP" >&6; }
be01d343 9136else
81ecdfbb
RW
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138$as_echo "no" >&6; }
be01d343 9139fi
c6b750e1 9140
81ecdfbb 9141
be01d343
PB
9142 fi
9143 test -n "$ac_cv_prog_STRIP" && break
9144done
9145
9146if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9147 STRIP="true"
be01d343
PB
9148fi
9149
9a819804
AO
9150
9151
9152if test -n "$WINDRES"; then
9153 ac_cv_prog_WINDRES=$WINDRES
9154elif test -n "$ac_cv_prog_WINDRES"; then
9155 WINDRES=$ac_cv_prog_WINDRES
9156fi
9157
9158if test -n "$ac_cv_prog_WINDRES"; then
9159 for ncn_progname in windres; do
9160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9161set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163$as_echo_n "checking for $ac_word... " >&6; }
9164if test "${ac_cv_prog_WINDRES+set}" = set; then :
9165 $as_echo_n "(cached) " >&6
9a819804
AO
9166else
9167 if test -n "$WINDRES"; then
9168 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9169else
9170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171for as_dir in $PATH
9172do
9173 IFS=$as_save_IFS
9174 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9175 for ac_exec_ext in '' $ac_executable_extensions; do
9176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9177 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9179 break 2
9180 fi
9181done
81ecdfbb
RW
9182 done
9183IFS=$as_save_IFS
9a819804
AO
9184
9185fi
9186fi
9187WINDRES=$ac_cv_prog_WINDRES
9188if test -n "$WINDRES"; then
81ecdfbb
RW
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9190$as_echo "$WINDRES" >&6; }
9a819804 9191else
81ecdfbb
RW
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193$as_echo "no" >&6; }
9a819804
AO
9194fi
9195
81ecdfbb 9196
9a819804
AO
9197 done
9198fi
9199
9200for ncn_progname in windres; do
05cbd757
PB
9201 if test -n "$ncn_tool_prefix"; then
9202 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9203set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9205$as_echo_n "checking for $ac_word... " >&6; }
9206if test "${ac_cv_prog_WINDRES+set}" = set; then :
9207 $as_echo_n "(cached) " >&6
859789af
AC
9208else
9209 if test -n "$WINDRES"; then
9210 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9211else
c6b750e1
DJ
9212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9213for as_dir in $PATH
9214do
9215 IFS=$as_save_IFS
9216 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9217 for ac_exec_ext in '' $ac_executable_extensions; do
9218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9219 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9221 break 2
9222 fi
9223done
81ecdfbb
RW
9224 done
9225IFS=$as_save_IFS
c6b750e1 9226
859789af
AC
9227fi
9228fi
c6b750e1 9229WINDRES=$ac_cv_prog_WINDRES
859789af 9230if test -n "$WINDRES"; then
81ecdfbb
RW
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9232$as_echo "$WINDRES" >&6; }
859789af 9233else
81ecdfbb
RW
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9235$as_echo "no" >&6; }
859789af
AC
9236fi
9237
81ecdfbb 9238
05cbd757
PB
9239 fi
9240 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9242set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244$as_echo_n "checking for $ac_word... " >&6; }
9245if test "${ac_cv_prog_WINDRES+set}" = set; then :
9246 $as_echo_n "(cached) " >&6
859789af 9247else
05cbd757
PB
9248 if test -n "$WINDRES"; then
9249 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9250else
c6b750e1
DJ
9251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252for as_dir in $PATH
9253do
9254 IFS=$as_save_IFS
9255 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9256 for ac_exec_ext in '' $ac_executable_extensions; do
9257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9258 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9260 break 2
9261 fi
9262done
81ecdfbb
RW
9263 done
9264IFS=$as_save_IFS
c6b750e1 9265
859789af
AC
9266fi
9267fi
c6b750e1 9268WINDRES=$ac_cv_prog_WINDRES
05cbd757 9269if test -n "$WINDRES"; then
81ecdfbb
RW
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9271$as_echo "$WINDRES" >&6; }
859789af 9272else
81ecdfbb
RW
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274$as_echo "no" >&6; }
859789af 9275fi
c6b750e1 9276
81ecdfbb 9277
05cbd757
PB
9278 fi
9279 test -n "$ac_cv_prog_WINDRES" && break
9280done
9281
9282if test -z "$ac_cv_prog_WINDRES" ; then
9283 set dummy windres
9284 if test $build = $host ; then
9285 WINDRES="$2"
859789af 9286 else
05cbd757 9287 WINDRES="${ncn_tool_prefix}$2"
859789af 9288 fi
859789af
AC
9289fi
9290
9a819804
AO
9291
9292
0c24b341
NC
9293if test -n "$WINDMC"; then
9294 ac_cv_prog_WINDMC=$WINDMC
9295elif test -n "$ac_cv_prog_WINDMC"; then
9296 WINDMC=$ac_cv_prog_WINDMC
9297fi
9298
9299if test -n "$ac_cv_prog_WINDMC"; then
9300 for ncn_progname in windmc; do
9301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9302set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304$as_echo_n "checking for $ac_word... " >&6; }
9305if test "${ac_cv_prog_WINDMC+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
0c24b341
NC
9307else
9308 if test -n "$WINDMC"; then
9309 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9310else
9311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314 IFS=$as_save_IFS
9315 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9316 for ac_exec_ext in '' $ac_executable_extensions; do
9317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9318 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9320 break 2
9321 fi
9322done
81ecdfbb
RW
9323 done
9324IFS=$as_save_IFS
0c24b341
NC
9325
9326fi
9327fi
9328WINDMC=$ac_cv_prog_WINDMC
9329if test -n "$WINDMC"; then
81ecdfbb
RW
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9331$as_echo "$WINDMC" >&6; }
0c24b341 9332else
81ecdfbb
RW
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334$as_echo "no" >&6; }
0c24b341
NC
9335fi
9336
81ecdfbb 9337
0c24b341
NC
9338 done
9339fi
9340
9341for ncn_progname in windmc; do
9342 if test -n "$ncn_tool_prefix"; then
9343 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9344set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346$as_echo_n "checking for $ac_word... " >&6; }
9347if test "${ac_cv_prog_WINDMC+set}" = set; then :
9348 $as_echo_n "(cached) " >&6
0c24b341
NC
9349else
9350 if test -n "$WINDMC"; then
9351 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9352else
9353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354for as_dir in $PATH
9355do
9356 IFS=$as_save_IFS
9357 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9360 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9362 break 2
9363 fi
9364done
81ecdfbb
RW
9365 done
9366IFS=$as_save_IFS
0c24b341
NC
9367
9368fi
9369fi
9370WINDMC=$ac_cv_prog_WINDMC
9371if test -n "$WINDMC"; then
81ecdfbb
RW
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9373$as_echo "$WINDMC" >&6; }
0c24b341 9374else
81ecdfbb
RW
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376$as_echo "no" >&6; }
0c24b341
NC
9377fi
9378
81ecdfbb 9379
0c24b341
NC
9380 fi
9381 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9382 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9383set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9385$as_echo_n "checking for $ac_word... " >&6; }
9386if test "${ac_cv_prog_WINDMC+set}" = set; then :
9387 $as_echo_n "(cached) " >&6
0c24b341
NC
9388else
9389 if test -n "$WINDMC"; then
9390 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9391else
9392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393for as_dir in $PATH
9394do
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9399 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9401 break 2
9402 fi
9403done
81ecdfbb
RW
9404 done
9405IFS=$as_save_IFS
0c24b341
NC
9406
9407fi
9408fi
9409WINDMC=$ac_cv_prog_WINDMC
9410if test -n "$WINDMC"; then
81ecdfbb
RW
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9412$as_echo "$WINDMC" >&6; }
0c24b341 9413else
81ecdfbb
RW
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9415$as_echo "no" >&6; }
0c24b341
NC
9416fi
9417
81ecdfbb 9418
0c24b341
NC
9419 fi
9420 test -n "$ac_cv_prog_WINDMC" && break
9421done
9422
9423if test -z "$ac_cv_prog_WINDMC" ; then
9424 set dummy windmc
9425 if test $build = $host ; then
9426 WINDMC="$2"
9427 else
9428 WINDMC="${ncn_tool_prefix}$2"
9429 fi
9430fi
9431
9432
9433
9a819804
AO
9434if test -n "$OBJCOPY"; then
9435 ac_cv_prog_OBJCOPY=$OBJCOPY
9436elif test -n "$ac_cv_prog_OBJCOPY"; then
9437 OBJCOPY=$ac_cv_prog_OBJCOPY
9438fi
9439
9440if test -n "$ac_cv_prog_OBJCOPY"; then
9441 for ncn_progname in objcopy; do
9442 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9443set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9445$as_echo_n "checking for $ac_word... " >&6; }
9446if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9447 $as_echo_n "(cached) " >&6
9a819804
AO
9448else
9449 if test -n "$OBJCOPY"; then
9450 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9451else
9452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9453for as_dir in $PATH
9454do
9455 IFS=$as_save_IFS
9456 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9457 for ac_exec_ext in '' $ac_executable_extensions; do
9458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9459 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9461 break 2
9462 fi
9463done
81ecdfbb
RW
9464 done
9465IFS=$as_save_IFS
9a819804
AO
9466
9467fi
9468fi
9469OBJCOPY=$ac_cv_prog_OBJCOPY
9470if test -n "$OBJCOPY"; then
81ecdfbb
RW
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9472$as_echo "$OBJCOPY" >&6; }
9a819804 9473else
81ecdfbb
RW
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9475$as_echo "no" >&6; }
9a819804
AO
9476fi
9477
81ecdfbb 9478
9a819804
AO
9479 done
9480fi
9481
9482for ncn_progname in objcopy; do
05cbd757
PB
9483 if test -n "$ncn_tool_prefix"; then
9484 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9485set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9487$as_echo_n "checking for $ac_word... " >&6; }
9488if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9489 $as_echo_n "(cached) " >&6
859789af
AC
9490else
9491 if test -n "$OBJCOPY"; then
9492 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9493else
c6b750e1
DJ
9494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9495for as_dir in $PATH
9496do
9497 IFS=$as_save_IFS
9498 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9499 for ac_exec_ext in '' $ac_executable_extensions; do
9500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9501 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9503 break 2
9504 fi
9505done
81ecdfbb
RW
9506 done
9507IFS=$as_save_IFS
c6b750e1 9508
859789af
AC
9509fi
9510fi
c6b750e1 9511OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9512if test -n "$OBJCOPY"; then
81ecdfbb
RW
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9514$as_echo "$OBJCOPY" >&6; }
859789af 9515else
81ecdfbb
RW
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9517$as_echo "no" >&6; }
859789af
AC
9518fi
9519
81ecdfbb 9520
05cbd757
PB
9521 fi
9522 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9524set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9526$as_echo_n "checking for $ac_word... " >&6; }
9527if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9528 $as_echo_n "(cached) " >&6
859789af 9529else
05cbd757
PB
9530 if test -n "$OBJCOPY"; then
9531 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9532else
c6b750e1
DJ
9533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9534for as_dir in $PATH
9535do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9538 for ac_exec_ext in '' $ac_executable_extensions; do
9539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9540 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9542 break 2
9543 fi
9544done
81ecdfbb
RW
9545 done
9546IFS=$as_save_IFS
c6b750e1 9547
859789af
AC
9548fi
9549fi
c6b750e1 9550OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9551if test -n "$OBJCOPY"; then
81ecdfbb
RW
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9553$as_echo "$OBJCOPY" >&6; }
859789af 9554else
81ecdfbb
RW
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556$as_echo "no" >&6; }
859789af 9557fi
c6b750e1 9558
81ecdfbb 9559
05cbd757
PB
9560 fi
9561 test -n "$ac_cv_prog_OBJCOPY" && break
9562done
9563
9564if test -z "$ac_cv_prog_OBJCOPY" ; then
9565 set dummy objcopy
9566 if test $build = $host ; then
9567 OBJCOPY="$2"
859789af 9568 else
05cbd757 9569 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9570 fi
859789af
AC
9571fi
9572
9a819804
AO
9573
9574
9575if test -n "$OBJDUMP"; then
9576 ac_cv_prog_OBJDUMP=$OBJDUMP
9577elif test -n "$ac_cv_prog_OBJDUMP"; then
9578 OBJDUMP=$ac_cv_prog_OBJDUMP
9579fi
9580
9581if test -n "$ac_cv_prog_OBJDUMP"; then
9582 for ncn_progname in objdump; do
9583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9584set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586$as_echo_n "checking for $ac_word... " >&6; }
9587if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9588 $as_echo_n "(cached) " >&6
9a819804
AO
9589else
9590 if test -n "$OBJDUMP"; then
9591 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9592else
9593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9594for as_dir in $PATH
9595do
9596 IFS=$as_save_IFS
9597 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9598 for ac_exec_ext in '' $ac_executable_extensions; do
9599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9600 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9602 break 2
9603 fi
9604done
81ecdfbb
RW
9605 done
9606IFS=$as_save_IFS
9a819804
AO
9607
9608fi
9609fi
9610OBJDUMP=$ac_cv_prog_OBJDUMP
9611if test -n "$OBJDUMP"; then
81ecdfbb
RW
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9613$as_echo "$OBJDUMP" >&6; }
9a819804 9614else
81ecdfbb
RW
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616$as_echo "no" >&6; }
9a819804
AO
9617fi
9618
81ecdfbb 9619
9a819804
AO
9620 done
9621fi
9622
9623for ncn_progname in objdump; do
05cbd757
PB
9624 if test -n "$ncn_tool_prefix"; then
9625 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9626set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9628$as_echo_n "checking for $ac_word... " >&6; }
9629if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9630 $as_echo_n "(cached) " >&6
859789af
AC
9631else
9632 if test -n "$OBJDUMP"; then
9633 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9634else
c6b750e1
DJ
9635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636for as_dir in $PATH
9637do
9638 IFS=$as_save_IFS
9639 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9640 for ac_exec_ext in '' $ac_executable_extensions; do
9641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9642 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9644 break 2
9645 fi
9646done
81ecdfbb
RW
9647 done
9648IFS=$as_save_IFS
c6b750e1 9649
859789af
AC
9650fi
9651fi
c6b750e1 9652OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9653if test -n "$OBJDUMP"; then
81ecdfbb
RW
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9655$as_echo "$OBJDUMP" >&6; }
859789af 9656else
81ecdfbb
RW
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9658$as_echo "no" >&6; }
859789af
AC
9659fi
9660
81ecdfbb 9661
05cbd757
PB
9662 fi
9663 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9665set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9667$as_echo_n "checking for $ac_word... " >&6; }
9668if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9669 $as_echo_n "(cached) " >&6
859789af 9670else
05cbd757
PB
9671 if test -n "$OBJDUMP"; then
9672 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9673else
c6b750e1
DJ
9674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9675for as_dir in $PATH
9676do
9677 IFS=$as_save_IFS
9678 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9679 for ac_exec_ext in '' $ac_executable_extensions; do
9680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9681 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9683 break 2
9684 fi
9685done
81ecdfbb
RW
9686 done
9687IFS=$as_save_IFS
c6b750e1 9688
859789af
AC
9689fi
9690fi
c6b750e1 9691OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9692if test -n "$OBJDUMP"; then
81ecdfbb
RW
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9694$as_echo "$OBJDUMP" >&6; }
859789af 9695else
81ecdfbb
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9697$as_echo "no" >&6; }
859789af 9698fi
c6b750e1 9699
81ecdfbb 9700
05cbd757
PB
9701 fi
9702 test -n "$ac_cv_prog_OBJDUMP" && break
9703done
9704
9705if test -z "$ac_cv_prog_OBJDUMP" ; then
9706 set dummy objdump
9707 if test $build = $host ; then
9708 OBJDUMP="$2"
859789af 9709 else
05cbd757 9710 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9711 fi
859789af
AC
9712fi
9713
a0da8069
NN
9714
9715
9716
9717
9718
be01d343 9719# Target tools.
c6b750e1 9720
81ecdfbb
RW
9721# Check whether --with-build-time-tools was given.
9722if test "${with_build_time_tools+set}" = set; then :
9723 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9724 x/*) ;;
9725 *)
9726 with_build_time_tools=
81ecdfbb
RW
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9728$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9729 ;;
9730 esac
859789af 9731else
2429c060 9732 with_build_time_tools=
81ecdfbb
RW
9733fi
9734
859789af 9735
9a819804
AO
9736
9737
9738if test -n "$CC_FOR_TARGET"; then
9739 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9740elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9741 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9742fi
9743
9744if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9745 for ncn_progname in cc gcc; do
9746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9747set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9749$as_echo_n "checking for $ac_word... " >&6; }
9750if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9751 $as_echo_n "(cached) " >&6
9a819804
AO
9752else
9753 if test -n "$CC_FOR_TARGET"; then
9754 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9755else
9756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9757for as_dir in $PATH
9758do
9759 IFS=$as_save_IFS
9760 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9761 for ac_exec_ext in '' $ac_executable_extensions; do
9762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9763 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9765 break 2
9766 fi
9767done
81ecdfbb
RW
9768 done
9769IFS=$as_save_IFS
9a819804
AO
9770
9771fi
9772fi
9773CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9774if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9776$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9777else
81ecdfbb
RW
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9779$as_echo "no" >&6; }
9a819804
AO
9780fi
9781
81ecdfbb 9782
9a819804
AO
9783 done
9784fi
9785
9786if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9787 for ncn_progname in cc gcc; do
81ecdfbb
RW
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9789$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9790 if test -x $with_build_time_tools/${ncn_progname}; then
9791 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9793$as_echo "yes" >&6; }
cac3d6c4 9794 break
2429c060 9795 else
81ecdfbb
RW
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9797$as_echo "no" >&6; }
cac3d6c4
CM
9798 fi
9799 done
55db4b87
PB
9800fi
9801
2429c060
PB
9802if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9803 for ncn_progname in cc gcc; do
9804 if test -n "$ncn_target_tool_prefix"; then
9805 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9806set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9808$as_echo_n "checking for $ac_word... " >&6; }
9809if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9810 $as_echo_n "(cached) " >&6
55db4b87
PB
9811else
9812 if test -n "$CC_FOR_TARGET"; then
9813 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9814else
c6b750e1
DJ
9815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9822 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9824 break 2
9825 fi
9826done
81ecdfbb
RW
9827 done
9828IFS=$as_save_IFS
c6b750e1 9829
55db4b87
PB
9830fi
9831fi
c6b750e1 9832CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9833if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9835$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9836else
81ecdfbb
RW
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838$as_echo "no" >&6; }
55db4b87
PB
9839fi
9840
81ecdfbb 9841
2429c060
PB
9842 fi
9843 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9844 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9845set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9847$as_echo_n "checking for $ac_word... " >&6; }
9848if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9849 $as_echo_n "(cached) " >&6
55db4b87 9850else
05cbd757
PB
9851 if test -n "$CC_FOR_TARGET"; then
9852 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9853else
c6b750e1
DJ
9854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855for as_dir in $PATH
9856do
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9861 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9863 break 2
9864 fi
9865done
81ecdfbb
RW
9866 done
9867IFS=$as_save_IFS
c6b750e1 9868
55db4b87
PB
9869fi
9870fi
c6b750e1 9871CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9872if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9874$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9875else
81ecdfbb
RW
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9877$as_echo "no" >&6; }
55db4b87 9878fi
c6b750e1 9879
81ecdfbb 9880
2429c060
PB
9881 fi
9882 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9883 done
9884fi
c6b750e1 9885
05cbd757
PB
9886if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9887 set dummy cc gcc
9888 if test $build = $target ; then
9889 CC_FOR_TARGET="$2"
55db4b87 9890 else
05cbd757 9891 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9892 fi
d3f5afc4
MS
9893else
9894 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9895fi
9896
9a819804
AO
9897
9898
9899if test -n "$CXX_FOR_TARGET"; then
9900 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9901elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9902 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9903fi
9904
9905if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9906 for ncn_progname in c++ g++ cxx gxx; do
9907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9908set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9910$as_echo_n "checking for $ac_word... " >&6; }
9911if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9912 $as_echo_n "(cached) " >&6
9a819804
AO
9913else
9914 if test -n "$CXX_FOR_TARGET"; then
9915 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9916else
9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9922 for ac_exec_ext in '' $ac_executable_extensions; do
9923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9924 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9926 break 2
9927 fi
9928done
81ecdfbb
RW
9929 done
9930IFS=$as_save_IFS
9a819804
AO
9931
9932fi
9933fi
9934CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9935if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9937$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9938else
81ecdfbb
RW
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9940$as_echo "no" >&6; }
9a819804
AO
9941fi
9942
81ecdfbb 9943
9a819804
AO
9944 done
9945fi
9946
9947if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9948 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9950$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9951 if test -x $with_build_time_tools/${ncn_progname}; then
9952 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9954$as_echo "yes" >&6; }
2429c060
PB
9955 break
9956 else
81ecdfbb
RW
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9958$as_echo "no" >&6; }
2429c060
PB
9959 fi
9960 done
9961fi
9962
9963if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9964 for ncn_progname in c++ g++ cxx gxx; do
9965 if test -n "$ncn_target_tool_prefix"; then
9966 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9967set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969$as_echo_n "checking for $ac_word... " >&6; }
9970if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9971 $as_echo_n "(cached) " >&6
55db4b87
PB
9972else
9973 if test -n "$CXX_FOR_TARGET"; then
9974 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9975else
c6b750e1
DJ
9976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977for as_dir in $PATH
9978do
9979 IFS=$as_save_IFS
9980 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9983 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9985 break 2
9986 fi
9987done
81ecdfbb
RW
9988 done
9989IFS=$as_save_IFS
c6b750e1 9990
55db4b87
PB
9991fi
9992fi
c6b750e1 9993CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9994if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9996$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9997else
81ecdfbb
RW
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999$as_echo "no" >&6; }
55db4b87
PB
10000fi
10001
81ecdfbb 10002
2429c060
PB
10003 fi
10004 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10006set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10008$as_echo_n "checking for $ac_word... " >&6; }
10009if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10010 $as_echo_n "(cached) " >&6
55db4b87 10011else
05cbd757
PB
10012 if test -n "$CXX_FOR_TARGET"; then
10013 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10014else
c6b750e1
DJ
10015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10016for as_dir in $PATH
10017do
10018 IFS=$as_save_IFS
10019 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10020 for ac_exec_ext in '' $ac_executable_extensions; do
10021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10022 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10024 break 2
10025 fi
10026done
81ecdfbb
RW
10027 done
10028IFS=$as_save_IFS
c6b750e1 10029
55db4b87
PB
10030fi
10031fi
c6b750e1 10032CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10033if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10035$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10036else
81ecdfbb
RW
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038$as_echo "no" >&6; }
55db4b87 10039fi
c6b750e1 10040
81ecdfbb 10041
2429c060
PB
10042 fi
10043 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10044 done
10045fi
c6b750e1 10046
05cbd757
PB
10047if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10048 set dummy c++ g++ cxx gxx
10049 if test $build = $target ; then
10050 CXX_FOR_TARGET="$2"
55db4b87 10051 else
05cbd757 10052 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10053 fi
d3f5afc4
MS
10054else
10055 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10056fi
10057
9a819804
AO
10058
10059
10060if test -n "$GCC_FOR_TARGET"; then
10061 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10062elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10063 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10064fi
10065
10066if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10067 for ncn_progname in gcc; do
10068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10069set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10071$as_echo_n "checking for $ac_word... " >&6; }
10072if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10073 $as_echo_n "(cached) " >&6
9a819804
AO
10074else
10075 if test -n "$GCC_FOR_TARGET"; then
10076 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10077else
10078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10079for as_dir in $PATH
10080do
10081 IFS=$as_save_IFS
10082 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10083 for ac_exec_ext in '' $ac_executable_extensions; do
10084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10085 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10087 break 2
10088 fi
10089done
81ecdfbb
RW
10090 done
10091IFS=$as_save_IFS
9a819804
AO
10092
10093fi
10094fi
10095GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10096if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10098$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10099else
81ecdfbb
RW
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101$as_echo "no" >&6; }
9a819804
AO
10102fi
10103
81ecdfbb 10104
9a819804
AO
10105 done
10106fi
10107
10108if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10109 for ncn_progname in gcc; do
81ecdfbb
RW
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10111$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10112 if test -x $with_build_time_tools/${ncn_progname}; then
10113 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10115$as_echo "yes" >&6; }
2429c060
PB
10116 break
10117 else
81ecdfbb
RW
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10119$as_echo "no" >&6; }
2429c060
PB
10120 fi
10121 done
10122fi
10123
10124if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10125 for ncn_progname in gcc; do
10126 if test -n "$ncn_target_tool_prefix"; then
10127 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10128set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10130$as_echo_n "checking for $ac_word... " >&6; }
10131if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10132 $as_echo_n "(cached) " >&6
859789af 10133else
2429c060
PB
10134 if test -n "$GCC_FOR_TARGET"; then
10135 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10136else
c6b750e1
DJ
10137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138for as_dir in $PATH
10139do
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10142 for ac_exec_ext in '' $ac_executable_extensions; do
10143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10144 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10146 break 2
10147 fi
10148done
81ecdfbb
RW
10149 done
10150IFS=$as_save_IFS
c6b750e1 10151
55db4b87
PB
10152fi
10153fi
c6b750e1 10154GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10155if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10157$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10158else
81ecdfbb
RW
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10160$as_echo "no" >&6; }
55db4b87
PB
10161fi
10162
81ecdfbb 10163
2429c060
PB
10164 fi
10165 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10167set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10169$as_echo_n "checking for $ac_word... " >&6; }
10170if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10171 $as_echo_n "(cached) " >&6
55db4b87 10172else
05cbd757
PB
10173 if test -n "$GCC_FOR_TARGET"; then
10174 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10175else
c6b750e1
DJ
10176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177for as_dir in $PATH
10178do
10179 IFS=$as_save_IFS
10180 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10183 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10185 break 2
10186 fi
10187done
81ecdfbb
RW
10188 done
10189IFS=$as_save_IFS
c6b750e1 10190
55db4b87
PB
10191fi
10192fi
c6b750e1 10193GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10194if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10196$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10197else
81ecdfbb
RW
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199$as_echo "no" >&6; }
55db4b87 10200fi
c6b750e1 10201
81ecdfbb 10202
2429c060
PB
10203 fi
10204 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10205 done
10206fi
c6b750e1 10207
05cbd757
PB
10208if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10209 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10210else
10211 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10212fi
10213
9a819804
AO
10214
10215
10216if test -n "$GCJ_FOR_TARGET"; then
10217 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10218elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10219 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10220fi
10221
10222if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10223 for ncn_progname in gcj; do
10224 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10225set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10227$as_echo_n "checking for $ac_word... " >&6; }
10228if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10229 $as_echo_n "(cached) " >&6
9a819804
AO
10230else
10231 if test -n "$GCJ_FOR_TARGET"; then
10232 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10233else
10234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10235for as_dir in $PATH
10236do
10237 IFS=$as_save_IFS
10238 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10239 for ac_exec_ext in '' $ac_executable_extensions; do
10240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10241 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10243 break 2
10244 fi
10245done
81ecdfbb
RW
10246 done
10247IFS=$as_save_IFS
9a819804
AO
10248
10249fi
10250fi
10251GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10252if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10254$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10255else
81ecdfbb
RW
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10257$as_echo "no" >&6; }
9a819804
AO
10258fi
10259
81ecdfbb 10260
9a819804
AO
10261 done
10262fi
10263
10264if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10265 for ncn_progname in gcj; do
81ecdfbb
RW
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10267$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10268 if test -x $with_build_time_tools/${ncn_progname}; then
10269 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10271$as_echo "yes" >&6; }
2429c060
PB
10272 break
10273 else
81ecdfbb
RW
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275$as_echo "no" >&6; }
2429c060
PB
10276 fi
10277 done
10278fi
10279
10280if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10281 for ncn_progname in gcj; do
10282 if test -n "$ncn_target_tool_prefix"; then
10283 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10284set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286$as_echo_n "checking for $ac_word... " >&6; }
10287if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
55db4b87
PB
10289else
10290 if test -n "$GCJ_FOR_TARGET"; then
10291 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10292else
c6b750e1
DJ
10293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294for as_dir in $PATH
10295do
10296 IFS=$as_save_IFS
10297 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10298 for ac_exec_ext in '' $ac_executable_extensions; do
10299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10300 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10302 break 2
10303 fi
10304done
81ecdfbb
RW
10305 done
10306IFS=$as_save_IFS
c6b750e1 10307
55db4b87
PB
10308fi
10309fi
9a819804
AO
10310GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10311if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10313$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10314else
81ecdfbb
RW
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316$as_echo "no" >&6; }
9a819804
AO
10317fi
10318
81ecdfbb 10319
9a819804
AO
10320 fi
10321 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10323set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325$as_echo_n "checking for $ac_word... " >&6; }
10326if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10327 $as_echo_n "(cached) " >&6
9a819804
AO
10328else
10329 if test -n "$GCJ_FOR_TARGET"; then
10330 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10331else
10332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333for as_dir in $PATH
10334do
10335 IFS=$as_save_IFS
10336 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10337 for ac_exec_ext in '' $ac_executable_extensions; do
10338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10339 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10341 break 2
10342 fi
10343done
81ecdfbb
RW
10344 done
10345IFS=$as_save_IFS
9a819804
AO
10346
10347fi
10348fi
10349GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10350if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10352$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10353else
81ecdfbb
RW
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355$as_echo "no" >&6; }
9a819804
AO
10356fi
10357
81ecdfbb 10358
9a819804
AO
10359 fi
10360 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10361 done
10362fi
10363
10364if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10365 set dummy gcj
10366 if test $build = $target ; then
10367 GCJ_FOR_TARGET="$2"
10368 else
10369 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10370 fi
d3f5afc4
MS
10371else
10372 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10373fi
10374
10375
10376
10377if test -n "$GFORTRAN_FOR_TARGET"; then
10378 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10379elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10380 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10381fi
10382
9a819804
AO
10383if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10384 for ncn_progname in gfortran; do
10385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10386set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10388$as_echo_n "checking for $ac_word... " >&6; }
10389if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10390 $as_echo_n "(cached) " >&6
55db4b87 10391else
9a819804
AO
10392 if test -n "$GFORTRAN_FOR_TARGET"; then
10393 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10394else
c6b750e1
DJ
10395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396for as_dir in $PATH
10397do
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10402 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10404 break 2
10405 fi
10406done
81ecdfbb
RW
10407 done
10408IFS=$as_save_IFS
c6b750e1 10409
55db4b87
PB
10410fi
10411fi
9a819804
AO
10412GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10413if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10415$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10416else
81ecdfbb
RW
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10418$as_echo "no" >&6; }
55db4b87 10419fi
c6b750e1 10420
81ecdfbb 10421
2429c060
PB
10422 done
10423fi
c6b750e1 10424
9a819804 10425if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10426 for ncn_progname in gfortran; do
81ecdfbb
RW
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10428$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10429 if test -x $with_build_time_tools/${ncn_progname}; then
10430 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10432$as_echo "yes" >&6; }
2429c060
PB
10433 break
10434 else
81ecdfbb
RW
10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10436$as_echo "no" >&6; }
2429c060
PB
10437 fi
10438 done
10439fi
10440
10441if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10442 for ncn_progname in gfortran; do
10443 if test -n "$ncn_target_tool_prefix"; then
10444 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10445set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10447$as_echo_n "checking for $ac_word... " >&6; }
10448if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10449 $as_echo_n "(cached) " >&6
55db4b87
PB
10450else
10451 if test -n "$GFORTRAN_FOR_TARGET"; then
10452 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10453else
c6b750e1
DJ
10454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455for as_dir in $PATH
10456do
10457 IFS=$as_save_IFS
10458 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10459 for ac_exec_ext in '' $ac_executable_extensions; do
10460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10461 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10463 break 2
10464 fi
10465done
81ecdfbb
RW
10466 done
10467IFS=$as_save_IFS
c6b750e1 10468
55db4b87
PB
10469fi
10470fi
c6b750e1 10471GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10472if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10474$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10475else
81ecdfbb
RW
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477$as_echo "no" >&6; }
55db4b87
PB
10478fi
10479
81ecdfbb 10480
2429c060
PB
10481 fi
10482 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10484set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10486$as_echo_n "checking for $ac_word... " >&6; }
10487if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10488 $as_echo_n "(cached) " >&6
55db4b87 10489else
05cbd757 10490 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10491 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10492else
10493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10494for as_dir in $PATH
10495do
10496 IFS=$as_save_IFS
10497 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10498 for ac_exec_ext in '' $ac_executable_extensions; do
10499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10500 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10502 break 2
10503 fi
10504done
81ecdfbb
RW
10505 done
10506IFS=$as_save_IFS
c6b750e1 10507
55db4b87
PB
10508fi
10509fi
c6b750e1 10510GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10511if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10513$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10514else
81ecdfbb
RW
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516$as_echo "no" >&6; }
55db4b87 10517fi
c6b750e1 10518
81ecdfbb 10519
2429c060
PB
10520 fi
10521 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10522 done
10523fi
c6b750e1 10524
05cbd757
PB
10525if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10526 set dummy gfortran
10527 if test $build = $target ; then
10528 GFORTRAN_FOR_TARGET="$2"
55db4b87 10529 else
05cbd757 10530 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10531 fi
d3f5afc4
MS
10532else
10533 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10534fi
10535
2429c060
PB
10536
10537
e552509b
ILT
10538if test -n "$GOC_FOR_TARGET"; then
10539 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10540elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10541 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10542fi
10543
10544if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10545 for ncn_progname in gccgo; do
10546 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10547set dummy ${ncn_progname}; ac_word=$2
10548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10549$as_echo_n "checking for $ac_word... " >&6; }
10550if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10551 $as_echo_n "(cached) " >&6
10552else
10553 if test -n "$GOC_FOR_TARGET"; then
10554 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10555else
10556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10557for as_dir in $PATH
10558do
10559 IFS=$as_save_IFS
10560 test -z "$as_dir" && as_dir=.
10561 for ac_exec_ext in '' $ac_executable_extensions; do
10562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10563 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10565 break 2
10566 fi
10567done
10568 done
10569IFS=$as_save_IFS
10570
10571fi
10572fi
10573GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10574if test -n "$GOC_FOR_TARGET"; then
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10576$as_echo "$GOC_FOR_TARGET" >&6; }
10577else
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579$as_echo "no" >&6; }
10580fi
10581
10582
10583 done
10584fi
10585
10586if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10587 for ncn_progname in gccgo; do
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10589$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10590 if test -x $with_build_time_tools/${ncn_progname}; then
10591 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10593$as_echo "yes" >&6; }
10594 break
10595 else
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597$as_echo "no" >&6; }
10598 fi
10599 done
10600fi
10601
10602if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10603 for ncn_progname in gccgo; do
10604 if test -n "$ncn_target_tool_prefix"; then
10605 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10606set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10608$as_echo_n "checking for $ac_word... " >&6; }
10609if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10610 $as_echo_n "(cached) " >&6
10611else
10612 if test -n "$GOC_FOR_TARGET"; then
10613 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10614else
10615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10616for as_dir in $PATH
10617do
10618 IFS=$as_save_IFS
10619 test -z "$as_dir" && as_dir=.
10620 for ac_exec_ext in '' $ac_executable_extensions; do
10621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10622 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10624 break 2
10625 fi
10626done
10627 done
10628IFS=$as_save_IFS
10629
10630fi
10631fi
10632GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10633if test -n "$GOC_FOR_TARGET"; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10635$as_echo "$GOC_FOR_TARGET" >&6; }
10636else
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10638$as_echo "no" >&6; }
10639fi
10640
10641
10642 fi
10643 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10644 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10645set dummy ${ncn_progname}; ac_word=$2
10646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10647$as_echo_n "checking for $ac_word... " >&6; }
10648if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10649 $as_echo_n "(cached) " >&6
10650else
10651 if test -n "$GOC_FOR_TARGET"; then
10652 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10653else
10654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10655for as_dir in $PATH
10656do
10657 IFS=$as_save_IFS
10658 test -z "$as_dir" && as_dir=.
10659 for ac_exec_ext in '' $ac_executable_extensions; do
10660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10661 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10663 break 2
10664 fi
10665done
10666 done
10667IFS=$as_save_IFS
10668
10669fi
10670fi
10671GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10672if test -n "$GOC_FOR_TARGET"; then
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10674$as_echo "$GOC_FOR_TARGET" >&6; }
10675else
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10677$as_echo "no" >&6; }
10678fi
10679
10680
10681 fi
10682 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10683 done
10684fi
10685
10686if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10687 set dummy gccgo
10688 if test $build = $target ; then
10689 GOC_FOR_TARGET="$2"
10690 else
10691 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10692 fi
10693else
10694 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10695fi
10696
10697
10698
2429c060
PB
10699cat > conftest.c << \EOF
10700#ifdef __GNUC__
10701 gcc_yay;
10702#endif
10703EOF
10704if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10705 have_gcc_for_target=yes
859789af 10706else
2429c060
PB
10707 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10708 have_gcc_for_target=no
859789af 10709fi
2429c060
PB
10710rm conftest.c
10711
10712
10713
859789af 10714
2429c060
PB
10715if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10716 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10718$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10719 if test -x $with_build_time_tools/ar; then
10720 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10721 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10723$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10724 else
81ecdfbb
RW
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726$as_echo "no" >&6; }
3a35eeb3 10727 fi
2429c060
PB
10728 elif test $build != $host && test $have_gcc_for_target = yes; then
10729 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10730 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10731 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10732 fi
2429c060 10733fi
c6b750e1 10734if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10735 # Extract the first word of "ar", so it can be a program name with args.
10736set dummy ar; ac_word=$2
81ecdfbb
RW
10737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10738$as_echo_n "checking for $ac_word... " >&6; }
10739if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10740 $as_echo_n "(cached) " >&6
859789af 10741else
c6b750e1
DJ
10742 case $AR_FOR_TARGET in
10743 [\\/]* | ?:[\\/]*)
2429c060
PB
10744 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10745 ;;
2429c060 10746 *)
c6b750e1
DJ
10747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10748for as_dir in $gcc_cv_tool_dirs
10749do
10750 IFS=$as_save_IFS
10751 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10752 for ac_exec_ext in '' $ac_executable_extensions; do
10753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10754 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10756 break 2
10757 fi
10758done
81ecdfbb
RW
10759 done
10760IFS=$as_save_IFS
c6b750e1 10761
2429c060
PB
10762 ;;
10763esac
859789af 10764fi
c6b750e1 10765AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10766if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10768$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10769else
81ecdfbb
RW
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10771$as_echo "no" >&6; }
859789af 10772fi
05cbd757 10773
81ecdfbb 10774
2429c060
PB
10775fi
10776if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10777
10778
10779if test -n "$AR_FOR_TARGET"; then
10780 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10781elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10782 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10783fi
10784
10785if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10786 for ncn_progname in ar; do
10787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10788set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10790$as_echo_n "checking for $ac_word... " >&6; }
10791if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10792 $as_echo_n "(cached) " >&6
9a819804
AO
10793else
10794 if test -n "$AR_FOR_TARGET"; then
10795 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10796else
10797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798for as_dir in $PATH
10799do
10800 IFS=$as_save_IFS
10801 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10804 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10806 break 2
10807 fi
10808done
81ecdfbb
RW
10809 done
10810IFS=$as_save_IFS
9a819804
AO
10811
10812fi
10813fi
10814AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10815if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10817$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10818else
81ecdfbb
RW
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10820$as_echo "no" >&6; }
9a819804
AO
10821fi
10822
81ecdfbb 10823
9a819804
AO
10824 done
10825fi
10826
10827if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10828 for ncn_progname in ar; do
81ecdfbb
RW
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10830$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10831 if test -x $with_build_time_tools/${ncn_progname}; then
10832 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10834$as_echo "yes" >&6; }
2429c060
PB
10835 break
10836 else
81ecdfbb
RW
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10838$as_echo "no" >&6; }
2429c060
PB
10839 fi
10840 done
859789af
AC
10841fi
10842
2429c060
PB
10843if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10844 for ncn_progname in ar; do
10845 if test -n "$ncn_target_tool_prefix"; then
10846 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10847set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10849$as_echo_n "checking for $ac_word... " >&6; }
10850if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10851 $as_echo_n "(cached) " >&6
7e0f7140 10852else
2429c060
PB
10853 if test -n "$AR_FOR_TARGET"; then
10854 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10855else
c6b750e1
DJ
10856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10857for as_dir in $PATH
10858do
10859 IFS=$as_save_IFS
10860 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10863 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10865 break 2
10866 fi
10867done
81ecdfbb
RW
10868 done
10869IFS=$as_save_IFS
c6b750e1 10870
7e0f7140
GK
10871fi
10872fi
c6b750e1 10873AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10874if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10876$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10877else
81ecdfbb
RW
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879$as_echo "no" >&6; }
7e0f7140
GK
10880fi
10881
81ecdfbb 10882
2429c060
PB
10883 fi
10884 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10886set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10888$as_echo_n "checking for $ac_word... " >&6; }
10889if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10890 $as_echo_n "(cached) " >&6
7e0f7140 10891else
2429c060
PB
10892 if test -n "$AR_FOR_TARGET"; then
10893 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10894else
c6b750e1
DJ
10895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10896for as_dir in $PATH
10897do
10898 IFS=$as_save_IFS
10899 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10900 for ac_exec_ext in '' $ac_executable_extensions; do
10901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10902 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10904 break 2
10905 fi
10906done
81ecdfbb
RW
10907 done
10908IFS=$as_save_IFS
c6b750e1 10909
7e0f7140
GK
10910fi
10911fi
c6b750e1 10912AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10913if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10915$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10916else
81ecdfbb
RW
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918$as_echo "no" >&6; }
7e0f7140 10919fi
c6b750e1 10920
81ecdfbb 10921
2429c060
PB
10922 fi
10923 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10924 done
10925fi
c6b750e1 10926
2429c060
PB
10927if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10928 set dummy ar
7e0f7140 10929 if test $build = $target ; then
2429c060 10930 AR_FOR_TARGET="$2"
7e0f7140 10931 else
2429c060 10932 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10933 fi
d3f5afc4
MS
10934else
10935 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10936fi
10937
3a35eeb3
PB
10938else
10939 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10940fi
10941
10942
10943
10944
10945if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10946 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10948$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10949 if test -x $with_build_time_tools/as; then
10950 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10951 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10953$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10954 else
81ecdfbb
RW
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10956$as_echo "no" >&6; }
3a35eeb3 10957 fi
2429c060
PB
10958 elif test $build != $host && test $have_gcc_for_target = yes; then
10959 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10960 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10961 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10962 fi
10963fi
c6b750e1 10964if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10965 # Extract the first word of "as", so it can be a program name with args.
10966set dummy as; ac_word=$2
81ecdfbb
RW
10967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10968$as_echo_n "checking for $ac_word... " >&6; }
10969if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10970 $as_echo_n "(cached) " >&6
2429c060 10971else
c6b750e1
DJ
10972 case $AS_FOR_TARGET in
10973 [\\/]* | ?:[\\/]*)
2429c060
PB
10974 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10975 ;;
2429c060 10976 *)
c6b750e1
DJ
10977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10978for as_dir in $gcc_cv_tool_dirs
10979do
10980 IFS=$as_save_IFS
10981 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10982 for ac_exec_ext in '' $ac_executable_extensions; do
10983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10984 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10986 break 2
10987 fi
10988done
81ecdfbb
RW
10989 done
10990IFS=$as_save_IFS
c6b750e1 10991
2429c060
PB
10992 ;;
10993esac
10994fi
c6b750e1 10995AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10996if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10998$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10999else
81ecdfbb
RW
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001$as_echo "no" >&6; }
2429c060
PB
11002fi
11003
81ecdfbb 11004
2429c060
PB
11005fi
11006if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11007
11008
11009if test -n "$AS_FOR_TARGET"; then
11010 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11011elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11012 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11013fi
11014
11015if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11016 for ncn_progname in as; do
11017 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11018set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11020$as_echo_n "checking for $ac_word... " >&6; }
11021if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11022 $as_echo_n "(cached) " >&6
9a819804
AO
11023else
11024 if test -n "$AS_FOR_TARGET"; then
11025 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11026else
11027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028for as_dir in $PATH
11029do
11030 IFS=$as_save_IFS
11031 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11032 for ac_exec_ext in '' $ac_executable_extensions; do
11033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11034 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11036 break 2
11037 fi
11038done
81ecdfbb
RW
11039 done
11040IFS=$as_save_IFS
9a819804
AO
11041
11042fi
11043fi
11044AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11045if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11047$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11048else
81ecdfbb
RW
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11050$as_echo "no" >&6; }
9a819804
AO
11051fi
11052
81ecdfbb 11053
9a819804
AO
11054 done
11055fi
11056
11057if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11058 for ncn_progname in as; do
81ecdfbb
RW
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11060$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11061 if test -x $with_build_time_tools/${ncn_progname}; then
11062 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11064$as_echo "yes" >&6; }
2429c060
PB
11065 break
11066 else
81ecdfbb
RW
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068$as_echo "no" >&6; }
2429c060
PB
11069 fi
11070 done
11071fi
11072
11073if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11074 for ncn_progname in as; do
11075 if test -n "$ncn_target_tool_prefix"; then
11076 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11077set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11079$as_echo_n "checking for $ac_word... " >&6; }
11080if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11081 $as_echo_n "(cached) " >&6
2429c060
PB
11082else
11083 if test -n "$AS_FOR_TARGET"; then
11084 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11085else
c6b750e1
DJ
11086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087for as_dir in $PATH
11088do
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11091 for ac_exec_ext in '' $ac_executable_extensions; do
11092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11093 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11095 break 2
11096 fi
11097done
81ecdfbb
RW
11098 done
11099IFS=$as_save_IFS
c6b750e1 11100
2429c060
PB
11101fi
11102fi
c6b750e1 11103AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11104if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11106$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11107else
81ecdfbb
RW
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11109$as_echo "no" >&6; }
2429c060
PB
11110fi
11111
81ecdfbb 11112
2429c060
PB
11113 fi
11114 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11116set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11118$as_echo_n "checking for $ac_word... " >&6; }
11119if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11120 $as_echo_n "(cached) " >&6
2429c060
PB
11121else
11122 if test -n "$AS_FOR_TARGET"; then
11123 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11124else
c6b750e1
DJ
11125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $PATH
11127do
11128 IFS=$as_save_IFS
11129 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11132 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11134 break 2
11135 fi
11136done
81ecdfbb
RW
11137 done
11138IFS=$as_save_IFS
c6b750e1 11139
2429c060
PB
11140fi
11141fi
c6b750e1 11142AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11143if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11145$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11146else
81ecdfbb
RW
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148$as_echo "no" >&6; }
2429c060 11149fi
c6b750e1 11150
81ecdfbb 11151
2429c060
PB
11152 fi
11153 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11154 done
11155fi
c6b750e1 11156
2429c060
PB
11157if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11158 set dummy as
11159 if test $build = $target ; then
11160 AS_FOR_TARGET="$2"
11161 else
11162 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11163 fi
d3f5afc4
MS
11164else
11165 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11166fi
11167
3a35eeb3
PB
11168else
11169 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11170fi
11171
11172
11173
11174
11175if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11176 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11178$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11179 if test -x $with_build_time_tools/dlltool; then
11180 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11181 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11183$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11184 else
81ecdfbb
RW
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186$as_echo "no" >&6; }
3a35eeb3 11187 fi
2429c060
PB
11188 elif test $build != $host && test $have_gcc_for_target = yes; then
11189 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11190 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11191 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11192 fi
11193fi
c6b750e1 11194if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11195 # Extract the first word of "dlltool", so it can be a program name with args.
11196set dummy dlltool; ac_word=$2
81ecdfbb
RW
11197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11198$as_echo_n "checking for $ac_word... " >&6; }
11199if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11200 $as_echo_n "(cached) " >&6
2429c060 11201else
c6b750e1
DJ
11202 case $DLLTOOL_FOR_TARGET in
11203 [\\/]* | ?:[\\/]*)
2429c060
PB
11204 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11205 ;;
2429c060 11206 *)
c6b750e1
DJ
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208for as_dir in $gcc_cv_tool_dirs
11209do
11210 IFS=$as_save_IFS
11211 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11214 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11216 break 2
11217 fi
11218done
81ecdfbb
RW
11219 done
11220IFS=$as_save_IFS
c6b750e1 11221
2429c060
PB
11222 ;;
11223esac
11224fi
c6b750e1 11225DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11226if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11228$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11229else
81ecdfbb
RW
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11231$as_echo "no" >&6; }
2429c060
PB
11232fi
11233
81ecdfbb 11234
2429c060
PB
11235fi
11236if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11237
11238
11239if test -n "$DLLTOOL_FOR_TARGET"; then
11240 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11241elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11242 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11243fi
11244
11245if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11246 for ncn_progname in dlltool; do
11247 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11248set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11250$as_echo_n "checking for $ac_word... " >&6; }
11251if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11252 $as_echo_n "(cached) " >&6
9a819804
AO
11253else
11254 if test -n "$DLLTOOL_FOR_TARGET"; then
11255 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11256else
11257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11258for as_dir in $PATH
11259do
11260 IFS=$as_save_IFS
11261 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11262 for ac_exec_ext in '' $ac_executable_extensions; do
11263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11264 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11266 break 2
11267 fi
11268done
81ecdfbb
RW
11269 done
11270IFS=$as_save_IFS
9a819804
AO
11271
11272fi
11273fi
11274DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11275if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11277$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11278else
81ecdfbb
RW
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11280$as_echo "no" >&6; }
9a819804
AO
11281fi
11282
81ecdfbb 11283
9a819804
AO
11284 done
11285fi
11286
11287if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11288 for ncn_progname in dlltool; do
81ecdfbb
RW
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11290$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11291 if test -x $with_build_time_tools/${ncn_progname}; then
11292 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11294$as_echo "yes" >&6; }
2429c060
PB
11295 break
11296 else
81ecdfbb
RW
11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11298$as_echo "no" >&6; }
2429c060
PB
11299 fi
11300 done
11301fi
11302
11303if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11304 for ncn_progname in dlltool; do
11305 if test -n "$ncn_target_tool_prefix"; then
11306 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11307set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309$as_echo_n "checking for $ac_word... " >&6; }
11310if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
2429c060
PB
11312else
11313 if test -n "$DLLTOOL_FOR_TARGET"; then
11314 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11315else
c6b750e1
DJ
11316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317for as_dir in $PATH
11318do
11319 IFS=$as_save_IFS
11320 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11321 for ac_exec_ext in '' $ac_executable_extensions; do
11322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11323 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11325 break 2
11326 fi
11327done
81ecdfbb
RW
11328 done
11329IFS=$as_save_IFS
c6b750e1 11330
2429c060
PB
11331fi
11332fi
c6b750e1 11333DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11334if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11336$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11337else
81ecdfbb
RW
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339$as_echo "no" >&6; }
2429c060
PB
11340fi
11341
81ecdfbb 11342
2429c060
PB
11343 fi
11344 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11346set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11348$as_echo_n "checking for $ac_word... " >&6; }
11349if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11350 $as_echo_n "(cached) " >&6
2429c060
PB
11351else
11352 if test -n "$DLLTOOL_FOR_TARGET"; then
11353 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11354else
c6b750e1
DJ
11355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356for as_dir in $PATH
11357do
11358 IFS=$as_save_IFS
11359 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11360 for ac_exec_ext in '' $ac_executable_extensions; do
11361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11362 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11364 break 2
11365 fi
11366done
81ecdfbb
RW
11367 done
11368IFS=$as_save_IFS
c6b750e1 11369
2429c060
PB
11370fi
11371fi
c6b750e1 11372DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11373if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11375$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11376else
81ecdfbb
RW
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11378$as_echo "no" >&6; }
2429c060 11379fi
c6b750e1 11380
81ecdfbb 11381
2429c060
PB
11382 fi
11383 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11384 done
11385fi
c6b750e1 11386
2429c060
PB
11387if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11388 set dummy dlltool
11389 if test $build = $target ; then
11390 DLLTOOL_FOR_TARGET="$2"
11391 else
11392 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11393 fi
d3f5afc4
MS
11394else
11395 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11396fi
11397
3a35eeb3
PB
11398else
11399 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11400fi
11401
11402
11403
11404
11405if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11406 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11408$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11409 if test -x $with_build_time_tools/ld; then
11410 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11411 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11413$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11414 else
81ecdfbb
RW
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11416$as_echo "no" >&6; }
3a35eeb3 11417 fi
2429c060
PB
11418 elif test $build != $host && test $have_gcc_for_target = yes; then
11419 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11420 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11421 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11422 fi
11423fi
c6b750e1 11424if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11425 # Extract the first word of "ld", so it can be a program name with args.
11426set dummy ld; ac_word=$2
81ecdfbb
RW
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428$as_echo_n "checking for $ac_word... " >&6; }
11429if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11430 $as_echo_n "(cached) " >&6
2429c060 11431else
c6b750e1
DJ
11432 case $LD_FOR_TARGET in
11433 [\\/]* | ?:[\\/]*)
2429c060
PB
11434 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11435 ;;
2429c060 11436 *)
c6b750e1
DJ
11437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11438for as_dir in $gcc_cv_tool_dirs
11439do
11440 IFS=$as_save_IFS
11441 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11442 for ac_exec_ext in '' $ac_executable_extensions; do
11443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11444 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11446 break 2
11447 fi
11448done
81ecdfbb
RW
11449 done
11450IFS=$as_save_IFS
c6b750e1 11451
2429c060
PB
11452 ;;
11453esac
11454fi
c6b750e1 11455LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11456if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11458$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11459else
81ecdfbb
RW
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461$as_echo "no" >&6; }
2429c060
PB
11462fi
11463
81ecdfbb 11464
2429c060
PB
11465fi
11466if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11467
11468
11469if test -n "$LD_FOR_TARGET"; then
11470 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11471elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11472 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11473fi
11474
11475if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11476 for ncn_progname in ld; do
11477 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11478set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480$as_echo_n "checking for $ac_word... " >&6; }
11481if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11482 $as_echo_n "(cached) " >&6
9a819804
AO
11483else
11484 if test -n "$LD_FOR_TARGET"; then
11485 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11486else
11487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488for as_dir in $PATH
11489do
11490 IFS=$as_save_IFS
11491 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11492 for ac_exec_ext in '' $ac_executable_extensions; do
11493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11494 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11496 break 2
11497 fi
11498done
81ecdfbb
RW
11499 done
11500IFS=$as_save_IFS
9a819804
AO
11501
11502fi
11503fi
11504LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11505if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11507$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11508else
81ecdfbb
RW
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510$as_echo "no" >&6; }
9a819804
AO
11511fi
11512
81ecdfbb 11513
9a819804
AO
11514 done
11515fi
11516
11517if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11518 for ncn_progname in ld; do
81ecdfbb
RW
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11520$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11521 if test -x $with_build_time_tools/${ncn_progname}; then
11522 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11524$as_echo "yes" >&6; }
2429c060
PB
11525 break
11526 else
81ecdfbb
RW
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11528$as_echo "no" >&6; }
2429c060
PB
11529 fi
11530 done
11531fi
11532
11533if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11534 for ncn_progname in ld; do
11535 if test -n "$ncn_target_tool_prefix"; then
11536 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11537set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11539$as_echo_n "checking for $ac_word... " >&6; }
11540if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11541 $as_echo_n "(cached) " >&6
2429c060
PB
11542else
11543 if test -n "$LD_FOR_TARGET"; then
11544 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11545else
c6b750e1
DJ
11546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547for as_dir in $PATH
11548do
11549 IFS=$as_save_IFS
11550 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11551 for ac_exec_ext in '' $ac_executable_extensions; do
11552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11553 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11555 break 2
11556 fi
11557done
81ecdfbb
RW
11558 done
11559IFS=$as_save_IFS
c6b750e1 11560
2429c060
PB
11561fi
11562fi
c6b750e1 11563LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11564if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11566$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11567else
81ecdfbb
RW
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569$as_echo "no" >&6; }
2429c060
PB
11570fi
11571
81ecdfbb 11572
2429c060
PB
11573 fi
11574 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11576set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578$as_echo_n "checking for $ac_word... " >&6; }
11579if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11580 $as_echo_n "(cached) " >&6
2429c060
PB
11581else
11582 if test -n "$LD_FOR_TARGET"; then
11583 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11584else
c6b750e1
DJ
11585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586for as_dir in $PATH
11587do
11588 IFS=$as_save_IFS
11589 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11590 for ac_exec_ext in '' $ac_executable_extensions; do
11591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11592 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11594 break 2
11595 fi
11596done
81ecdfbb
RW
11597 done
11598IFS=$as_save_IFS
c6b750e1 11599
2429c060
PB
11600fi
11601fi
c6b750e1 11602LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11603if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11605$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11606else
81ecdfbb
RW
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608$as_echo "no" >&6; }
2429c060 11609fi
c6b750e1 11610
81ecdfbb 11611
2429c060
PB
11612 fi
11613 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11614 done
11615fi
c6b750e1 11616
2429c060
PB
11617if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11618 set dummy ld
11619 if test $build = $target ; then
11620 LD_FOR_TARGET="$2"
11621 else
11622 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11623 fi
d3f5afc4
MS
11624else
11625 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11626fi
11627
3a35eeb3
PB
11628else
11629 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11630fi
11631
11632
11633
11634
11635if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11636 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11638$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11639 if test -x $with_build_time_tools/lipo; then
11640 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11641 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11643$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11644 else
81ecdfbb
RW
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11646$as_echo "no" >&6; }
3a35eeb3 11647 fi
2429c060
PB
11648 elif test $build != $host && test $have_gcc_for_target = yes; then
11649 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11650 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11651 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11652 fi
11653fi
9a819804
AO
11654if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11655 # Extract the first word of "lipo", so it can be a program name with args.
11656set dummy lipo; ac_word=$2
81ecdfbb
RW
11657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11658$as_echo_n "checking for $ac_word... " >&6; }
11659if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
9a819804
AO
11661else
11662 case $LIPO_FOR_TARGET in
11663 [\\/]* | ?:[\\/]*)
11664 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11665 ;;
11666 *)
11667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11668for as_dir in $gcc_cv_tool_dirs
11669do
11670 IFS=$as_save_IFS
11671 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11672 for ac_exec_ext in '' $ac_executable_extensions; do
11673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11674 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11676 break 2
11677 fi
11678done
81ecdfbb
RW
11679 done
11680IFS=$as_save_IFS
9a819804
AO
11681
11682 ;;
11683esac
11684fi
11685LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11686if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11688$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11689else
81ecdfbb
RW
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11691$as_echo "no" >&6; }
9a819804
AO
11692fi
11693
81ecdfbb 11694
9a819804
AO
11695fi
11696if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11697
11698
11699if test -n "$LIPO_FOR_TARGET"; then
11700 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11701elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11702 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11703fi
11704
11705if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11706 for ncn_progname in lipo; do
11707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11708set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11710$as_echo_n "checking for $ac_word... " >&6; }
11711if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11712 $as_echo_n "(cached) " >&6
2429c060 11713else
9a819804
AO
11714 if test -n "$LIPO_FOR_TARGET"; then
11715 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11716else
11717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718for as_dir in $PATH
c6b750e1
DJ
11719do
11720 IFS=$as_save_IFS
11721 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11722 for ac_exec_ext in '' $ac_executable_extensions; do
11723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11724 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11726 break 2
11727 fi
11728done
81ecdfbb
RW
11729 done
11730IFS=$as_save_IFS
c6b750e1 11731
2429c060 11732fi
9a819804
AO
11733fi
11734LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11735if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11737$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11738else
81ecdfbb
RW
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11740$as_echo "no" >&6; }
2429c060
PB
11741fi
11742
81ecdfbb 11743
9a819804 11744 done
2429c060 11745fi
9a819804
AO
11746
11747if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11748 for ncn_progname in lipo; do
81ecdfbb
RW
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11750$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11751 if test -x $with_build_time_tools/${ncn_progname}; then
11752 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11754$as_echo "yes" >&6; }
2429c060
PB
11755 break
11756 else
81ecdfbb
RW
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758$as_echo "no" >&6; }
2429c060
PB
11759 fi
11760 done
11761fi
11762
11763if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11764 for ncn_progname in lipo; do
11765 if test -n "$ncn_target_tool_prefix"; then
11766 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11767set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11769$as_echo_n "checking for $ac_word... " >&6; }
11770if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11771 $as_echo_n "(cached) " >&6
2429c060
PB
11772else
11773 if test -n "$LIPO_FOR_TARGET"; then
11774 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11775else
c6b750e1
DJ
11776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777for as_dir in $PATH
11778do
11779 IFS=$as_save_IFS
11780 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11783 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11785 break 2
11786 fi
11787done
81ecdfbb
RW
11788 done
11789IFS=$as_save_IFS
c6b750e1 11790
2429c060
PB
11791fi
11792fi
c6b750e1 11793LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11794if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11796$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11797else
81ecdfbb
RW
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799$as_echo "no" >&6; }
2429c060
PB
11800fi
11801
81ecdfbb 11802
2429c060
PB
11803 fi
11804 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11805 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11806set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808$as_echo_n "checking for $ac_word... " >&6; }
11809if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11810 $as_echo_n "(cached) " >&6
2429c060
PB
11811else
11812 if test -n "$LIPO_FOR_TARGET"; then
11813 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11814else
c6b750e1
DJ
11815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816for as_dir in $PATH
11817do
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11820 for ac_exec_ext in '' $ac_executable_extensions; do
11821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11822 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11824 break 2
11825 fi
11826done
81ecdfbb
RW
11827 done
11828IFS=$as_save_IFS
c6b750e1 11829
2429c060
PB
11830fi
11831fi
c6b750e1 11832LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11833if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11835$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11836else
81ecdfbb
RW
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838$as_echo "no" >&6; }
2429c060 11839fi
c6b750e1 11840
81ecdfbb 11841
2429c060
PB
11842 fi
11843 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11844 done
11845fi
c6b750e1 11846
2429c060
PB
11847if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11848 set dummy lipo
11849 if test $build = $target ; then
11850 LIPO_FOR_TARGET="$2"
11851 else
11852 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11853 fi
d3f5afc4
MS
11854else
11855 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11856fi
11857
3a35eeb3
PB
11858else
11859 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11860fi
11861
11862
11863
11864
11865if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11866 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11868$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11869 if test -x $with_build_time_tools/nm; then
11870 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11871 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11873$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11874 else
81ecdfbb
RW
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11876$as_echo "no" >&6; }
3a35eeb3 11877 fi
2429c060
PB
11878 elif test $build != $host && test $have_gcc_for_target = yes; then
11879 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11880 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11881 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11882 fi
11883fi
c6b750e1 11884if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11885 # Extract the first word of "nm", so it can be a program name with args.
11886set dummy nm; ac_word=$2
81ecdfbb
RW
11887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888$as_echo_n "checking for $ac_word... " >&6; }
11889if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11890 $as_echo_n "(cached) " >&6
2429c060 11891else
c6b750e1
DJ
11892 case $NM_FOR_TARGET in
11893 [\\/]* | ?:[\\/]*)
2429c060
PB
11894 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11895 ;;
2429c060 11896 *)
c6b750e1
DJ
11897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11898for as_dir in $gcc_cv_tool_dirs
11899do
11900 IFS=$as_save_IFS
11901 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11904 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11906 break 2
11907 fi
11908done
81ecdfbb
RW
11909 done
11910IFS=$as_save_IFS
c6b750e1 11911
2429c060
PB
11912 ;;
11913esac
11914fi
c6b750e1 11915NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11916if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11918$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11919else
81ecdfbb
RW
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11921$as_echo "no" >&6; }
2429c060
PB
11922fi
11923
81ecdfbb 11924
2429c060
PB
11925fi
11926if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11927
11928
11929if test -n "$NM_FOR_TARGET"; then
11930 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11931elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11932 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11933fi
11934
11935if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11936 for ncn_progname in nm; do
11937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11938set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11940$as_echo_n "checking for $ac_word... " >&6; }
11941if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11942 $as_echo_n "(cached) " >&6
9a819804
AO
11943else
11944 if test -n "$NM_FOR_TARGET"; then
11945 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11946else
11947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948for as_dir in $PATH
11949do
11950 IFS=$as_save_IFS
11951 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11952 for ac_exec_ext in '' $ac_executable_extensions; do
11953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11954 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11956 break 2
11957 fi
11958done
81ecdfbb
RW
11959 done
11960IFS=$as_save_IFS
9a819804
AO
11961
11962fi
11963fi
11964NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11965if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11967$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11968else
81ecdfbb
RW
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970$as_echo "no" >&6; }
9a819804
AO
11971fi
11972
81ecdfbb 11973
9a819804
AO
11974 done
11975fi
11976
11977if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11978 for ncn_progname in nm; do
81ecdfbb
RW
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11980$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11981 if test -x $with_build_time_tools/${ncn_progname}; then
11982 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11984$as_echo "yes" >&6; }
2429c060
PB
11985 break
11986 else
81ecdfbb
RW
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988$as_echo "no" >&6; }
2429c060
PB
11989 fi
11990 done
11991fi
11992
11993if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11994 for ncn_progname in nm; do
11995 if test -n "$ncn_target_tool_prefix"; then
11996 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11997set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999$as_echo_n "checking for $ac_word... " >&6; }
12000if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12001 $as_echo_n "(cached) " >&6
859789af 12002else
55db4b87
PB
12003 if test -n "$NM_FOR_TARGET"; then
12004 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12005else
c6b750e1
DJ
12006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007for as_dir in $PATH
12008do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12013 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12015 break 2
12016 fi
12017done
81ecdfbb
RW
12018 done
12019IFS=$as_save_IFS
c6b750e1 12020
859789af
AC
12021fi
12022fi
c6b750e1 12023NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12024if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12026$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12027else
81ecdfbb
RW
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029$as_echo "no" >&6; }
859789af
AC
12030fi
12031
81ecdfbb 12032
2429c060
PB
12033 fi
12034 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12035 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12036set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12038$as_echo_n "checking for $ac_word... " >&6; }
12039if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12040 $as_echo_n "(cached) " >&6
859789af 12041else
05cbd757
PB
12042 if test -n "$NM_FOR_TARGET"; then
12043 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12044else
c6b750e1
DJ
12045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046for as_dir in $PATH
12047do
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12052 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12054 break 2
12055 fi
12056done
81ecdfbb
RW
12057 done
12058IFS=$as_save_IFS
c6b750e1 12059
859789af
AC
12060fi
12061fi
c6b750e1 12062NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12063if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12065$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12066else
81ecdfbb
RW
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068$as_echo "no" >&6; }
859789af 12069fi
c6b750e1 12070
81ecdfbb 12071
2429c060
PB
12072 fi
12073 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12074 done
12075fi
c6b750e1 12076
05cbd757
PB
12077if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12078 set dummy nm
12079 if test $build = $target ; then
12080 NM_FOR_TARGET="$2"
859789af 12081 else
05cbd757 12082 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12083 fi
d3f5afc4
MS
12084else
12085 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12086fi
12087
3a35eeb3
PB
12088else
12089 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12090fi
12091
12092
12093
12094
12095if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12096 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12098$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12099 if test -x $with_build_time_tools/objdump; then
12100 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12101 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12103$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12104 else
81ecdfbb
RW
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106$as_echo "no" >&6; }
3a35eeb3 12107 fi
2429c060
PB
12108 elif test $build != $host && test $have_gcc_for_target = yes; then
12109 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12110 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12111 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12112 fi
12113fi
c6b750e1 12114if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12115 # Extract the first word of "objdump", so it can be a program name with args.
12116set dummy objdump; ac_word=$2
81ecdfbb
RW
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12118$as_echo_n "checking for $ac_word... " >&6; }
12119if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12120 $as_echo_n "(cached) " >&6
2429c060 12121else
c6b750e1
DJ
12122 case $OBJDUMP_FOR_TARGET in
12123 [\\/]* | ?:[\\/]*)
2429c060
PB
12124 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12125 ;;
2429c060 12126 *)
c6b750e1
DJ
12127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12128for as_dir in $gcc_cv_tool_dirs
12129do
12130 IFS=$as_save_IFS
12131 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12132 for ac_exec_ext in '' $ac_executable_extensions; do
12133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12134 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12136 break 2
12137 fi
12138done
81ecdfbb
RW
12139 done
12140IFS=$as_save_IFS
c6b750e1 12141
2429c060
PB
12142 ;;
12143esac
12144fi
c6b750e1 12145OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12146if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12148$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12149else
81ecdfbb
RW
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12151$as_echo "no" >&6; }
2429c060
PB
12152fi
12153
81ecdfbb 12154
2429c060
PB
12155fi
12156if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12157
12158
12159if test -n "$OBJDUMP_FOR_TARGET"; then
12160 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12161elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12162 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12163fi
12164
12165if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12166 for ncn_progname in objdump; do
12167 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12168set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12170$as_echo_n "checking for $ac_word... " >&6; }
12171if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12172 $as_echo_n "(cached) " >&6
9a819804
AO
12173else
12174 if test -n "$OBJDUMP_FOR_TARGET"; then
12175 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12176else
12177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12178for as_dir in $PATH
12179do
12180 IFS=$as_save_IFS
12181 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12182 for ac_exec_ext in '' $ac_executable_extensions; do
12183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12184 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12186 break 2
12187 fi
12188done
81ecdfbb
RW
12189 done
12190IFS=$as_save_IFS
9a819804
AO
12191
12192fi
12193fi
12194OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12195if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12197$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12198else
81ecdfbb
RW
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12200$as_echo "no" >&6; }
9a819804
AO
12201fi
12202
81ecdfbb 12203
9a819804
AO
12204 done
12205fi
12206
12207if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12208 for ncn_progname in objdump; do
81ecdfbb
RW
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12210$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12211 if test -x $with_build_time_tools/${ncn_progname}; then
12212 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12214$as_echo "yes" >&6; }
2429c060
PB
12215 break
12216 else
81ecdfbb
RW
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12218$as_echo "no" >&6; }
2429c060
PB
12219 fi
12220 done
12221fi
12222
12223if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12224 for ncn_progname in objdump; do
12225 if test -n "$ncn_target_tool_prefix"; then
12226 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12227set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12229$as_echo_n "checking for $ac_word... " >&6; }
12230if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12231 $as_echo_n "(cached) " >&6
5ae72758
DJ
12232else
12233 if test -n "$OBJDUMP_FOR_TARGET"; then
12234 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12235else
c6b750e1
DJ
12236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12237for as_dir in $PATH
12238do
12239 IFS=$as_save_IFS
12240 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12241 for ac_exec_ext in '' $ac_executable_extensions; do
12242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12243 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12245 break 2
12246 fi
12247done
81ecdfbb
RW
12248 done
12249IFS=$as_save_IFS
c6b750e1 12250
5ae72758
DJ
12251fi
12252fi
c6b750e1 12253OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12254if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12256$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12257else
81ecdfbb
RW
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259$as_echo "no" >&6; }
5ae72758
DJ
12260fi
12261
81ecdfbb 12262
2429c060
PB
12263 fi
12264 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12266set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12268$as_echo_n "checking for $ac_word... " >&6; }
12269if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12270 $as_echo_n "(cached) " >&6
5ae72758
DJ
12271else
12272 if test -n "$OBJDUMP_FOR_TARGET"; then
12273 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12274else
c6b750e1
DJ
12275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12276for as_dir in $PATH
12277do
12278 IFS=$as_save_IFS
12279 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12280 for ac_exec_ext in '' $ac_executable_extensions; do
12281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12282 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12284 break 2
12285 fi
12286done
81ecdfbb
RW
12287 done
12288IFS=$as_save_IFS
c6b750e1 12289
5ae72758
DJ
12290fi
12291fi
c6b750e1 12292OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12293if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12295$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12296else
81ecdfbb
RW
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12298$as_echo "no" >&6; }
5ae72758 12299fi
c6b750e1 12300
81ecdfbb 12301
2429c060
PB
12302 fi
12303 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12304 done
12305fi
c6b750e1 12306
5ae72758
DJ
12307if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12308 set dummy objdump
12309 if test $build = $target ; then
12310 OBJDUMP_FOR_TARGET="$2"
12311 else
12312 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12313 fi
d3f5afc4
MS
12314else
12315 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12316fi
12317
3a35eeb3
PB
12318else
12319 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12320fi
12321
12322
12323
12324
12325if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12326 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12328$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12329 if test -x $with_build_time_tools/ranlib; then
12330 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12331 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12333$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12334 else
81ecdfbb
RW
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12336$as_echo "no" >&6; }
3a35eeb3 12337 fi
2429c060
PB
12338 elif test $build != $host && test $have_gcc_for_target = yes; then
12339 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12340 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12341 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12342 fi
12343fi
c6b750e1 12344if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12345 # Extract the first word of "ranlib", so it can be a program name with args.
12346set dummy ranlib; ac_word=$2
81ecdfbb
RW
12347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12348$as_echo_n "checking for $ac_word... " >&6; }
12349if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12350 $as_echo_n "(cached) " >&6
2429c060 12351else
c6b750e1
DJ
12352 case $RANLIB_FOR_TARGET in
12353 [\\/]* | ?:[\\/]*)
2429c060
PB
12354 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12355 ;;
2429c060 12356 *)
c6b750e1
DJ
12357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12358for as_dir in $gcc_cv_tool_dirs
12359do
12360 IFS=$as_save_IFS
12361 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12362 for ac_exec_ext in '' $ac_executable_extensions; do
12363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12364 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12366 break 2
12367 fi
12368done
81ecdfbb
RW
12369 done
12370IFS=$as_save_IFS
c6b750e1 12371
2429c060
PB
12372 ;;
12373esac
12374fi
c6b750e1 12375RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12376if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12378$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12379else
81ecdfbb
RW
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12381$as_echo "no" >&6; }
2429c060
PB
12382fi
12383
81ecdfbb 12384
2429c060
PB
12385fi
12386if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12387
12388
12389if test -n "$RANLIB_FOR_TARGET"; then
12390 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12391elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12392 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12393fi
12394
12395if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12396 for ncn_progname in ranlib; do
12397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12398set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12400$as_echo_n "checking for $ac_word... " >&6; }
12401if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12402 $as_echo_n "(cached) " >&6
9a819804
AO
12403else
12404 if test -n "$RANLIB_FOR_TARGET"; then
12405 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12406else
12407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12408for as_dir in $PATH
12409do
12410 IFS=$as_save_IFS
12411 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12412 for ac_exec_ext in '' $ac_executable_extensions; do
12413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12414 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12416 break 2
12417 fi
12418done
81ecdfbb
RW
12419 done
12420IFS=$as_save_IFS
9a819804
AO
12421
12422fi
12423fi
12424RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12425if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12427$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12428else
81ecdfbb
RW
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12430$as_echo "no" >&6; }
9a819804
AO
12431fi
12432
81ecdfbb 12433
9a819804
AO
12434 done
12435fi
12436
12437if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12438 for ncn_progname in ranlib; do
81ecdfbb
RW
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12440$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12441 if test -x $with_build_time_tools/${ncn_progname}; then
12442 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12444$as_echo "yes" >&6; }
2429c060
PB
12445 break
12446 else
81ecdfbb
RW
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448$as_echo "no" >&6; }
2429c060
PB
12449 fi
12450 done
12451fi
12452
12453if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12454 for ncn_progname in ranlib; do
12455 if test -n "$ncn_target_tool_prefix"; then
12456 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12457set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459$as_echo_n "checking for $ac_word... " >&6; }
12460if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12461 $as_echo_n "(cached) " >&6
859789af 12462else
55db4b87
PB
12463 if test -n "$RANLIB_FOR_TARGET"; then
12464 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12465else
c6b750e1
DJ
12466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467for as_dir in $PATH
12468do
12469 IFS=$as_save_IFS
12470 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12471 for ac_exec_ext in '' $ac_executable_extensions; do
12472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12473 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12475 break 2
12476 fi
12477done
81ecdfbb
RW
12478 done
12479IFS=$as_save_IFS
c6b750e1 12480
859789af
AC
12481fi
12482fi
c6b750e1 12483RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12484if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12486$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12487else
81ecdfbb
RW
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489$as_echo "no" >&6; }
859789af
AC
12490fi
12491
81ecdfbb 12492
2429c060
PB
12493 fi
12494 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12495 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12496set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498$as_echo_n "checking for $ac_word... " >&6; }
12499if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12500 $as_echo_n "(cached) " >&6
859789af 12501else
05cbd757
PB
12502 if test -n "$RANLIB_FOR_TARGET"; then
12503 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12504else
c6b750e1
DJ
12505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506for as_dir in $PATH
12507do
12508 IFS=$as_save_IFS
12509 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12510 for ac_exec_ext in '' $ac_executable_extensions; do
12511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12512 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12514 break 2
12515 fi
12516done
81ecdfbb
RW
12517 done
12518IFS=$as_save_IFS
c6b750e1 12519
859789af
AC
12520fi
12521fi
c6b750e1 12522RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12523if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12525$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12526else
81ecdfbb
RW
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528$as_echo "no" >&6; }
859789af 12529fi
c6b750e1 12530
81ecdfbb 12531
2429c060
PB
12532 fi
12533 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12534 done
12535fi
c6b750e1 12536
2429c060
PB
12537if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12538 set dummy ranlib
12539 if test $build = $target ; then
12540 RANLIB_FOR_TARGET="$2"
12541 else
12542 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12543 fi
d3f5afc4
MS
12544else
12545 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12546fi
05cbd757 12547
3a35eeb3
PB
12548else
12549 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12550fi
12551
2429c060
PB
12552
12553
12554
12555if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12556 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12558$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12559 if test -x $with_build_time_tools/strip; then
12560 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12561 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12563$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12564 else
81ecdfbb
RW
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12566$as_echo "no" >&6; }
3a35eeb3 12567 fi
2429c060
PB
12568 elif test $build != $host && test $have_gcc_for_target = yes; then
12569 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12570 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12571 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12572 fi
12573fi
c6b750e1 12574if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12575 # Extract the first word of "strip", so it can be a program name with args.
12576set dummy strip; ac_word=$2
81ecdfbb
RW
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12578$as_echo_n "checking for $ac_word... " >&6; }
12579if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12580 $as_echo_n "(cached) " >&6
2429c060 12581else
c6b750e1
DJ
12582 case $STRIP_FOR_TARGET in
12583 [\\/]* | ?:[\\/]*)
2429c060
PB
12584 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12585 ;;
2429c060 12586 *)
c6b750e1
DJ
12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12588for as_dir in $gcc_cv_tool_dirs
12589do
12590 IFS=$as_save_IFS
12591 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12592 for ac_exec_ext in '' $ac_executable_extensions; do
12593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12594 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12596 break 2
12597 fi
12598done
81ecdfbb
RW
12599 done
12600IFS=$as_save_IFS
c6b750e1 12601
2429c060
PB
12602 ;;
12603esac
12604fi
c6b750e1 12605STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12606if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12608$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12609else
81ecdfbb
RW
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611$as_echo "no" >&6; }
2429c060
PB
12612fi
12613
81ecdfbb 12614
2429c060
PB
12615fi
12616if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12617
12618
12619if test -n "$STRIP_FOR_TARGET"; then
12620 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12621elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12622 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12623fi
12624
12625if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12626 for ncn_progname in strip; do
12627 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12628set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630$as_echo_n "checking for $ac_word... " >&6; }
12631if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12632 $as_echo_n "(cached) " >&6
9a819804
AO
12633else
12634 if test -n "$STRIP_FOR_TARGET"; then
12635 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12636else
12637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638for as_dir in $PATH
12639do
12640 IFS=$as_save_IFS
12641 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12642 for ac_exec_ext in '' $ac_executable_extensions; do
12643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12644 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12646 break 2
12647 fi
12648done
81ecdfbb
RW
12649 done
12650IFS=$as_save_IFS
9a819804
AO
12651
12652fi
12653fi
12654STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12655if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12657$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12658else
81ecdfbb
RW
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660$as_echo "no" >&6; }
9a819804
AO
12661fi
12662
81ecdfbb 12663
9a819804
AO
12664 done
12665fi
12666
12667if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12668 for ncn_progname in strip; do
81ecdfbb
RW
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12670$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12671 if test -x $with_build_time_tools/${ncn_progname}; then
12672 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12674$as_echo "yes" >&6; }
2429c060
PB
12675 break
12676 else
81ecdfbb
RW
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678$as_echo "no" >&6; }
2429c060
PB
12679 fi
12680 done
12681fi
12682
12683if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12684 for ncn_progname in strip; do
12685 if test -n "$ncn_target_tool_prefix"; then
12686 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12687set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12689$as_echo_n "checking for $ac_word... " >&6; }
12690if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12691 $as_echo_n "(cached) " >&6
7e0f7140
GK
12692else
12693 if test -n "$STRIP_FOR_TARGET"; then
12694 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12695else
12696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697for as_dir in $PATH
12698do
12699 IFS=$as_save_IFS
12700 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12703 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12705 break 2
12706 fi
12707done
81ecdfbb
RW
12708 done
12709IFS=$as_save_IFS
c6b750e1 12710
7e0f7140
GK
12711fi
12712fi
c6b750e1 12713STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12714if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12716$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12717else
81ecdfbb
RW
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12719$as_echo "no" >&6; }
7e0f7140
GK
12720fi
12721
81ecdfbb 12722
2429c060
PB
12723 fi
12724 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12725 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12726set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12728$as_echo_n "checking for $ac_word... " >&6; }
12729if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12730 $as_echo_n "(cached) " >&6
7e0f7140
GK
12731else
12732 if test -n "$STRIP_FOR_TARGET"; then
12733 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12734else
c6b750e1
DJ
12735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12736for as_dir in $PATH
12737do
12738 IFS=$as_save_IFS
12739 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12740 for ac_exec_ext in '' $ac_executable_extensions; do
12741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12742 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12744 break 2
12745 fi
12746done
81ecdfbb
RW
12747 done
12748IFS=$as_save_IFS
c6b750e1 12749
7e0f7140
GK
12750fi
12751fi
c6b750e1 12752STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12753if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12755$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12756else
81ecdfbb
RW
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758$as_echo "no" >&6; }
7e0f7140 12759fi
c6b750e1 12760
81ecdfbb 12761
2429c060
PB
12762 fi
12763 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12764 done
12765fi
c6b750e1 12766
7e0f7140
GK
12767if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12768 set dummy strip
12769 if test $build = $target ; then
12770 STRIP_FOR_TARGET="$2"
12771 else
12772 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12773 fi
d3f5afc4
MS
12774else
12775 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12776fi
12777
3a35eeb3
PB
12778else
12779 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12780fi
12781
12782
12783
12784
12785if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12786 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12788$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12789 if test -x $with_build_time_tools/windres; then
12790 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12791 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12793$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12794 else
81ecdfbb
RW
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12796$as_echo "no" >&6; }
3a35eeb3 12797 fi
2429c060
PB
12798 elif test $build != $host && test $have_gcc_for_target = yes; then
12799 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12800 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12801 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12802 fi
12803fi
c6b750e1 12804if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12805 # Extract the first word of "windres", so it can be a program name with args.
12806set dummy windres; ac_word=$2
81ecdfbb
RW
12807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12808$as_echo_n "checking for $ac_word... " >&6; }
12809if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12810 $as_echo_n "(cached) " >&6
2429c060 12811else
c6b750e1
DJ
12812 case $WINDRES_FOR_TARGET in
12813 [\\/]* | ?:[\\/]*)
2429c060
PB
12814 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12815 ;;
2429c060 12816 *)
c6b750e1
DJ
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818for as_dir in $gcc_cv_tool_dirs
12819do
12820 IFS=$as_save_IFS
12821 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12824 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12826 break 2
12827 fi
12828done
81ecdfbb
RW
12829 done
12830IFS=$as_save_IFS
c6b750e1 12831
2429c060
PB
12832 ;;
12833esac
12834fi
c6b750e1 12835WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12836if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12838$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12839else
81ecdfbb
RW
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841$as_echo "no" >&6; }
2429c060
PB
12842fi
12843
81ecdfbb 12844
2429c060
PB
12845fi
12846if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12847
12848
12849if test -n "$WINDRES_FOR_TARGET"; then
12850 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12851elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12852 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12853fi
12854
12855if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12856 for ncn_progname in windres; do
12857 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12858set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860$as_echo_n "checking for $ac_word... " >&6; }
12861if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
9a819804
AO
12863else
12864 if test -n "$WINDRES_FOR_TARGET"; then
12865 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12866else
12867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868for as_dir in $PATH
12869do
12870 IFS=$as_save_IFS
12871 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12874 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12876 break 2
12877 fi
12878done
81ecdfbb
RW
12879 done
12880IFS=$as_save_IFS
9a819804
AO
12881
12882fi
12883fi
12884WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12885if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12887$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12888else
81ecdfbb
RW
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890$as_echo "no" >&6; }
9a819804
AO
12891fi
12892
81ecdfbb 12893
9a819804
AO
12894 done
12895fi
12896
12897if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12898 for ncn_progname in windres; do
81ecdfbb
RW
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12900$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12901 if test -x $with_build_time_tools/${ncn_progname}; then
12902 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12904$as_echo "yes" >&6; }
2429c060
PB
12905 break
12906 else
81ecdfbb
RW
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12908$as_echo "no" >&6; }
2429c060
PB
12909 fi
12910 done
12911fi
12912
12913if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12914 for ncn_progname in windres; do
12915 if test -n "$ncn_target_tool_prefix"; then
12916 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12917set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919$as_echo_n "checking for $ac_word... " >&6; }
12920if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12921 $as_echo_n "(cached) " >&6
859789af 12922else
55db4b87
PB
12923 if test -n "$WINDRES_FOR_TARGET"; then
12924 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12925else
c6b750e1
DJ
12926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927for as_dir in $PATH
12928do
12929 IFS=$as_save_IFS
12930 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12931 for ac_exec_ext in '' $ac_executable_extensions; do
12932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12933 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12935 break 2
12936 fi
12937done
81ecdfbb
RW
12938 done
12939IFS=$as_save_IFS
c6b750e1 12940
859789af
AC
12941fi
12942fi
c6b750e1 12943WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12944if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12946$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12947else
81ecdfbb
RW
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949$as_echo "no" >&6; }
859789af
AC
12950fi
12951
81ecdfbb 12952
2429c060
PB
12953 fi
12954 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12955 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12956set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12958$as_echo_n "checking for $ac_word... " >&6; }
12959if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12960 $as_echo_n "(cached) " >&6
859789af 12961else
05cbd757
PB
12962 if test -n "$WINDRES_FOR_TARGET"; then
12963 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12964else
c6b750e1
DJ
12965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966for as_dir in $PATH
12967do
12968 IFS=$as_save_IFS
12969 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12970 for ac_exec_ext in '' $ac_executable_extensions; do
12971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12972 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12974 break 2
12975 fi
12976done
81ecdfbb
RW
12977 done
12978IFS=$as_save_IFS
c6b750e1 12979
859789af
AC
12980fi
12981fi
c6b750e1 12982WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12983if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12985$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12986else
81ecdfbb
RW
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12988$as_echo "no" >&6; }
859789af 12989fi
c6b750e1 12990
81ecdfbb 12991
2429c060
PB
12992 fi
12993 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12994 done
12995fi
c6b750e1 12996
05cbd757
PB
12997if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12998 set dummy windres
12999 if test $build = $target ; then
13000 WINDRES_FOR_TARGET="$2"
859789af 13001 else
05cbd757 13002 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13003 fi
d3f5afc4
MS
13004else
13005 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13006fi
13007
3a35eeb3
PB
13008else
13009 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13010fi
13011
852e5f18 13012
0c24b341
NC
13013
13014
13015if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13016 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13018$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13019 if test -x $with_build_time_tools/windmc; then
13020 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13021 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13023$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13024 else
81ecdfbb
RW
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026$as_echo "no" >&6; }
0c24b341
NC
13027 fi
13028 elif test $build != $host && test $have_gcc_for_target = yes; then
13029 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13030 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13031 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13032 fi
13033fi
13034if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13035 # Extract the first word of "windmc", so it can be a program name with args.
13036set dummy windmc; ac_word=$2
81ecdfbb
RW
13037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13038$as_echo_n "checking for $ac_word... " >&6; }
13039if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13040 $as_echo_n "(cached) " >&6
0c24b341
NC
13041else
13042 case $WINDMC_FOR_TARGET in
13043 [\\/]* | ?:[\\/]*)
13044 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13045 ;;
13046 *)
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048for as_dir in $gcc_cv_tool_dirs
13049do
13050 IFS=$as_save_IFS
13051 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13054 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13056 break 2
13057 fi
13058done
81ecdfbb
RW
13059 done
13060IFS=$as_save_IFS
0c24b341
NC
13061
13062 ;;
13063esac
13064fi
13065WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13066if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13068$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13069else
81ecdfbb
RW
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071$as_echo "no" >&6; }
0c24b341
NC
13072fi
13073
81ecdfbb 13074
0c24b341
NC
13075fi
13076if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13077
13078
13079if test -n "$WINDMC_FOR_TARGET"; then
13080 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13081elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13082 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13083fi
13084
13085if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13086 for ncn_progname in windmc; do
13087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13088set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13090$as_echo_n "checking for $ac_word... " >&6; }
13091if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
0c24b341
NC
13093else
13094 if test -n "$WINDMC_FOR_TARGET"; then
13095 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13096else
13097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13098for as_dir in $PATH
13099do
13100 IFS=$as_save_IFS
13101 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13102 for ac_exec_ext in '' $ac_executable_extensions; do
13103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13104 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13106 break 2
13107 fi
13108done
81ecdfbb
RW
13109 done
13110IFS=$as_save_IFS
0c24b341
NC
13111
13112fi
13113fi
13114WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13115if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13117$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13118else
81ecdfbb
RW
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120$as_echo "no" >&6; }
0c24b341
NC
13121fi
13122
81ecdfbb 13123
0c24b341
NC
13124 done
13125fi
13126
13127if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13128 for ncn_progname in windmc; do
81ecdfbb
RW
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13130$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13131 if test -x $with_build_time_tools/${ncn_progname}; then
13132 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13134$as_echo "yes" >&6; }
0c24b341
NC
13135 break
13136 else
81ecdfbb
RW
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138$as_echo "no" >&6; }
0c24b341
NC
13139 fi
13140 done
13141fi
13142
13143if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13144 for ncn_progname in windmc; do
13145 if test -n "$ncn_target_tool_prefix"; then
13146 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13147set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13149$as_echo_n "checking for $ac_word... " >&6; }
13150if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13151 $as_echo_n "(cached) " >&6
0c24b341
NC
13152else
13153 if test -n "$WINDMC_FOR_TARGET"; then
13154 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13155else
13156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157for as_dir in $PATH
13158do
13159 IFS=$as_save_IFS
13160 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13161 for ac_exec_ext in '' $ac_executable_extensions; do
13162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13163 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13165 break 2
13166 fi
13167done
81ecdfbb
RW
13168 done
13169IFS=$as_save_IFS
0c24b341
NC
13170
13171fi
13172fi
13173WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13174if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13176$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13177else
81ecdfbb
RW
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13179$as_echo "no" >&6; }
0c24b341
NC
13180fi
13181
81ecdfbb 13182
0c24b341
NC
13183 fi
13184 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13185 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13186set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13188$as_echo_n "checking for $ac_word... " >&6; }
13189if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13190 $as_echo_n "(cached) " >&6
0c24b341
NC
13191else
13192 if test -n "$WINDMC_FOR_TARGET"; then
13193 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13194else
13195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13196for as_dir in $PATH
13197do
13198 IFS=$as_save_IFS
13199 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13200 for ac_exec_ext in '' $ac_executable_extensions; do
13201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13202 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13204 break 2
13205 fi
13206done
81ecdfbb
RW
13207 done
13208IFS=$as_save_IFS
0c24b341
NC
13209
13210fi
13211fi
13212WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13213if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13215$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13216else
81ecdfbb
RW
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13218$as_echo "no" >&6; }
0c24b341
NC
13219fi
13220
81ecdfbb 13221
0c24b341
NC
13222 fi
13223 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13224 done
13225fi
13226
13227if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13228 set dummy windmc
13229 if test $build = $target ; then
13230 WINDMC_FOR_TARGET="$2"
13231 else
13232 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13233 fi
13234else
13235 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13236fi
13237
13238else
13239 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13240fi
13241
13242
be01d343
PB
13243RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13244
81ecdfbb
RW
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13246$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13247if test "x${build}" != "x${host}" ; then
2429c060
PB
13248 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13249 # We already found the complete path
b8025f34 13250 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13252$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13253 else
13254 # Canadian cross, just use what we found
81ecdfbb
RW
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13256$as_echo "pre-installed" >&6; }
2429c060 13257 fi
be01d343
PB
13258else
13259 ok=yes
13260 case " ${configdirs} " in
13261 *" binutils "*) ;;
13262 *) ok=no ;;
13263 esac
c6b750e1 13264
be01d343
PB
13265 if test $ok = yes; then
13266 # An in-tree tool is available and we can use it
13267 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13269$as_echo "just compiled" >&6; }
2429c060
PB
13270 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13271 # We already found the complete path
b8025f34 13272 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13274$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13275 elif test "x$target" = "x$host"; then
13276 # We can use an host tool
13277 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13279$as_echo "host tool" >&6; }
be01d343
PB
13280 else
13281 # We need a cross tool
81ecdfbb
RW
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13283$as_echo "pre-installed" >&6; }
be01d343
PB
13284 fi
13285fi
4b900473 13286
81ecdfbb
RW
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13288$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13289if test "x${build}" != "x${host}" ; then
2429c060
PB
13290 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13291 # We already found the complete path
b8025f34 13292 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13294$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13295 else
13296 # Canadian cross, just use what we found
81ecdfbb
RW
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13298$as_echo "pre-installed" >&6; }
2429c060 13299 fi
be01d343
PB
13300else
13301 ok=yes
13302 case " ${configdirs} " in
13303 *" gas "*) ;;
13304 *) ok=no ;;
13305 esac
c6b750e1 13306
be01d343
PB
13307 if test $ok = yes; then
13308 # An in-tree tool is available and we can use it
13309 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13311$as_echo "just compiled" >&6; }
2429c060
PB
13312 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13313 # We already found the complete path
b8025f34 13314 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13316$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13317 elif test "x$target" = "x$host"; then
13318 # We can use an host tool
13319 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13321$as_echo "host tool" >&6; }
be01d343
PB
13322 else
13323 # We need a cross tool
81ecdfbb
RW
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13325$as_echo "pre-installed" >&6; }
be01d343
PB
13326 fi
13327fi
4b900473 13328
81ecdfbb
RW
13329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13330$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13331if test "x${build}" != "x${host}" ; then
2429c060
PB
13332 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13333 # We already found the complete path
b8025f34 13334 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13336$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13337 else
13338 # Canadian cross, just use what we found
81ecdfbb
RW
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13340$as_echo "pre-installed" >&6; }
2429c060 13341 fi
be01d343
PB
13342else
13343 ok=yes
13344 case " ${configdirs} " in
13345 *" gcc "*) ;;
13346 *) ok=no ;;
13347 esac
c6b750e1 13348
be01d343
PB
13349 if test $ok = yes; then
13350 # An in-tree tool is available and we can use it
13351 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13353$as_echo "just compiled" >&6; }
2429c060
PB
13354 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13355 # We already found the complete path
b8025f34 13356 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13358$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13359 elif test "x$target" = "x$host"; then
13360 # We can use an host tool
13361 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13363$as_echo "host tool" >&6; }
be01d343
PB
13364 else
13365 # We need a cross tool
81ecdfbb
RW
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13367$as_echo "pre-installed" >&6; }
be01d343
PB
13368 fi
13369fi
4b900473 13370
81ecdfbb
RW
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13372$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13373if test "x${build}" != "x${host}" ; then
2429c060
PB
13374 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13375 # We already found the complete path
b8025f34 13376 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13378$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13379 else
13380 # Canadian cross, just use what we found
81ecdfbb
RW
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13382$as_echo "pre-installed" >&6; }
2429c060 13383 fi
be01d343
PB
13384else
13385 ok=yes
13386 case " ${configdirs} " in
13387 *" gcc "*) ;;
13388 *) ok=no ;;
13389 esac
13390 case ,${enable_languages}, in
13391 *,c++,*) ;;
13392 *) ok=no ;;
13393 esac
13394 if test $ok = yes; then
13395 # An in-tree tool is available and we can use it
87cda2cf 13396 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'
81ecdfbb
RW
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13398$as_echo "just compiled" >&6; }
2429c060
PB
13399 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13400 # We already found the complete path
b8025f34 13401 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13403$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13404 elif test "x$target" = "x$host"; then
13405 # We can use an host tool
13406 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13408$as_echo "host tool" >&6; }
be01d343
PB
13409 else
13410 # We need a cross tool
81ecdfbb
RW
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13412$as_echo "pre-installed" >&6; }
be01d343
PB
13413 fi
13414fi
4b900473 13415
81ecdfbb
RW
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13417$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13418if test "x${build}" != "x${host}" ; then
2429c060
PB
13419 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13420 # We already found the complete path
b8025f34 13421 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13423$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13424 else
13425 # Canadian cross, just use what we found
81ecdfbb
RW
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13427$as_echo "pre-installed" >&6; }
2429c060 13428 fi
be01d343
PB
13429else
13430 ok=yes
13431 case " ${configdirs} " in
13432 *" gcc "*) ;;
13433 *) ok=no ;;
13434 esac
13435 case ,${enable_languages}, in
13436 *,c++,*) ;;
13437 *) ok=no ;;
13438 esac
13439 if test $ok = yes; then
13440 # An in-tree tool is available and we can use it
13441 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'
81ecdfbb
RW
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13443$as_echo "just compiled" >&6; }
2429c060
PB
13444 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13445 # We already found the complete path
b8025f34 13446 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13448$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13449 elif test "x$target" = "x$host"; then
13450 # We can use an host tool
13451 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13453$as_echo "host tool" >&6; }
be01d343
PB
13454 else
13455 # We need a cross tool
81ecdfbb
RW
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13457$as_echo "pre-installed" >&6; }
be01d343
PB
13458 fi
13459fi
4b900473 13460
81ecdfbb
RW
13461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13462$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13463if test "x${build}" != "x${host}" ; then
2429c060
PB
13464 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13465 # We already found the complete path
b8025f34 13466 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13468$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13469 else
13470 # Canadian cross, just use what we found
81ecdfbb
RW
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13472$as_echo "pre-installed" >&6; }
2429c060 13473 fi
be01d343
PB
13474else
13475 ok=yes
13476 case " ${configdirs} " in
13477 *" binutils "*) ;;
13478 *) ok=no ;;
13479 esac
c6b750e1 13480
be01d343
PB
13481 if test $ok = yes; then
13482 # An in-tree tool is available and we can use it
13483 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13485$as_echo "just compiled" >&6; }
2429c060
PB
13486 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13487 # We already found the complete path
b8025f34 13488 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13490$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13491 elif test "x$target" = "x$host"; then
13492 # We can use an host tool
13493 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13495$as_echo "host tool" >&6; }
be01d343
PB
13496 else
13497 # We need a cross tool
81ecdfbb
RW
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13499$as_echo "pre-installed" >&6; }
be01d343
PB
13500 fi
13501fi
4b900473 13502
81ecdfbb
RW
13503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13504$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13505if test "x${build}" != "x${host}" ; then
2429c060
PB
13506 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13507 # We already found the complete path
b8025f34 13508 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13510$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13511 else
13512 # Canadian cross, just use what we found
81ecdfbb
RW
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13514$as_echo "pre-installed" >&6; }
2429c060 13515 fi
be01d343
PB
13516else
13517 ok=yes
13518 case " ${configdirs} " in
13519 *" gcc "*) ;;
13520 *) ok=no ;;
13521 esac
c6b750e1 13522
be01d343
PB
13523 if test $ok = yes; then
13524 # An in-tree tool is available and we can use it
13525 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13527$as_echo "just compiled" >&6; }
2429c060
PB
13528 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13529 # We already found the complete path
b8025f34 13530 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13532$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13533 elif test "x$target" = "x$host"; then
13534 # We can use an host tool
13535 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13537$as_echo "host tool" >&6; }
be01d343
PB
13538 else
13539 # We need a cross tool
81ecdfbb
RW
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13541$as_echo "pre-installed" >&6; }
be01d343
PB
13542 fi
13543fi
4b900473 13544
81ecdfbb
RW
13545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13546$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13547if test "x${build}" != "x${host}" ; then
2429c060
PB
13548 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13549 # We already found the complete path
b8025f34 13550 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13552$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13553 else
13554 # Canadian cross, just use what we found
81ecdfbb
RW
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13556$as_echo "pre-installed" >&6; }
2429c060 13557 fi
be01d343
PB
13558else
13559 ok=yes
13560 case " ${configdirs} " in
13561 *" gcc "*) ;;
13562 *) ok=no ;;
13563 esac
13564 case ,${enable_languages}, in
13565 *,java,*) ;;
13566 *) ok=no ;;
13567 esac
13568 if test $ok = yes; then
13569 # An in-tree tool is available and we can use it
13570 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13572$as_echo "just compiled" >&6; }
2429c060
PB
13573 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13574 # We already found the complete path
b8025f34 13575 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13577$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13578 elif test "x$target" = "x$host"; then
13579 # We can use an host tool
13580 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13582$as_echo "host tool" >&6; }
be01d343
PB
13583 else
13584 # We need a cross tool
81ecdfbb
RW
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13586$as_echo "pre-installed" >&6; }
be01d343
PB
13587 fi
13588fi
4b900473 13589
81ecdfbb
RW
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13591$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13592if test "x${build}" != "x${host}" ; then
2429c060
PB
13593 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13594 # We already found the complete path
b8025f34 13595 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13597$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13598 else
13599 # Canadian cross, just use what we found
81ecdfbb
RW
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13601$as_echo "pre-installed" >&6; }
2429c060 13602 fi
be01d343
PB
13603else
13604 ok=yes
13605 case " ${configdirs} " in
13606 *" gcc "*) ;;
13607 *) ok=no ;;
13608 esac
13609 case ,${enable_languages}, in
13610 *,fortran,*) ;;
13611 *) ok=no ;;
13612 esac
13613 if test $ok = yes; then
13614 # An in-tree tool is available and we can use it
13615 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13617$as_echo "just compiled" >&6; }
2429c060
PB
13618 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13619 # We already found the complete path
b8025f34 13620 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13622$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13623 elif test "x$target" = "x$host"; then
13624 # We can use an host tool
13625 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13627$as_echo "host tool" >&6; }
be01d343
PB
13628 else
13629 # We need a cross tool
81ecdfbb
RW
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13631$as_echo "pre-installed" >&6; }
be01d343
PB
13632 fi
13633fi
4b900473 13634
e552509b
ILT
13635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13636$as_echo_n "checking where to find the target gccgo... " >&6; }
13637if test "x${build}" != "x${host}" ; then
13638 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13639 # We already found the complete path
13640 ac_dir=`dirname $GOC_FOR_TARGET`
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13642$as_echo "pre-installed in $ac_dir" >&6; }
13643 else
13644 # Canadian cross, just use what we found
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13646$as_echo "pre-installed" >&6; }
13647 fi
13648else
13649 ok=yes
13650 case " ${configdirs} " in
13651 *" gcc "*) ;;
13652 *) ok=no ;;
13653 esac
13654 case ,${enable_languages}, in
13655 *,go,*) ;;
13656 *) ok=no ;;
13657 esac
13658 if test $ok = yes; then
13659 # An in-tree tool is available and we can use it
13660 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13662$as_echo "just compiled" >&6; }
13663 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13664 # We already found the complete path
13665 ac_dir=`dirname $GOC_FOR_TARGET`
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13667$as_echo "pre-installed in $ac_dir" >&6; }
13668 elif test "x$target" = "x$host"; then
13669 # We can use an host tool
13670 GOC_FOR_TARGET='$(GOC)'
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13672$as_echo "host tool" >&6; }
13673 else
13674 # We need a cross tool
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13676$as_echo "pre-installed" >&6; }
13677 fi
13678fi
13679
81ecdfbb
RW
13680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13681$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13682if test "x${build}" != "x${host}" ; then
2429c060
PB
13683 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13684 # We already found the complete path
b8025f34 13685 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13687$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13688 else
13689 # Canadian cross, just use what we found
81ecdfbb
RW
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13691$as_echo "pre-installed" >&6; }
2429c060 13692 fi
be01d343
PB
13693else
13694 ok=yes
13695 case " ${configdirs} " in
13696 *" ld "*) ;;
13697 *) ok=no ;;
13698 esac
c6b750e1 13699
be01d343
PB
13700 if test $ok = yes; then
13701 # An in-tree tool is available and we can use it
13702 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13704$as_echo "just compiled" >&6; }
2429c060
PB
13705 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13706 # We already found the complete path
b8025f34 13707 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13709$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13710 elif test "x$target" = "x$host"; then
13711 # We can use an host tool
13712 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13714$as_echo "host tool" >&6; }
be01d343
PB
13715 else
13716 # We need a cross tool
81ecdfbb
RW
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13718$as_echo "pre-installed" >&6; }
be01d343
PB
13719 fi
13720fi
4b900473 13721
81ecdfbb
RW
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13723$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13724if test "x${build}" != "x${host}" ; then
2429c060
PB
13725 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13726 # We already found the complete path
b8025f34 13727 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13729$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13730 else
13731 # Canadian cross, just use what we found
81ecdfbb
RW
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13733$as_echo "pre-installed" >&6; }
2429c060 13734 fi
be01d343 13735else
2429c060
PB
13736 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13737 # We already found the complete path
b8025f34 13738 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13740$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13741 elif test "x$target" = "x$host"; then
be01d343
PB
13742 # We can use an host tool
13743 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13745$as_echo "host tool" >&6; }
be01d343
PB
13746 else
13747 # We need a cross tool
81ecdfbb
RW
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13749$as_echo "pre-installed" >&6; }
be01d343
PB
13750 fi
13751fi
4b900473 13752
81ecdfbb
RW
13753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13754$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13755if test "x${build}" != "x${host}" ; then
2429c060
PB
13756 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13757 # We already found the complete path
b8025f34 13758 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13760$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13761 else
13762 # Canadian cross, just use what we found
81ecdfbb
RW
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13764$as_echo "pre-installed" >&6; }
2429c060 13765 fi
be01d343
PB
13766else
13767 ok=yes
13768 case " ${configdirs} " in
13769 *" binutils "*) ;;
13770 *) ok=no ;;
13771 esac
c6b750e1 13772
be01d343
PB
13773 if test $ok = yes; then
13774 # An in-tree tool is available and we can use it
13775 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13777$as_echo "just compiled" >&6; }
2429c060
PB
13778 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13779 # We already found the complete path
b8025f34 13780 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13782$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13783 elif test "x$target" = "x$host"; then
13784 # We can use an host tool
13785 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13787$as_echo "host tool" >&6; }
be01d343
PB
13788 else
13789 # We need a cross tool
81ecdfbb
RW
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13791$as_echo "pre-installed" >&6; }
be01d343
PB
13792 fi
13793fi
4b900473 13794
81ecdfbb
RW
13795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13796$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13797if test "x${build}" != "x${host}" ; then
2429c060
PB
13798 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13799 # We already found the complete path
b8025f34 13800 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13802$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13803 else
13804 # Canadian cross, just use what we found
81ecdfbb
RW
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13806$as_echo "pre-installed" >&6; }
2429c060 13807 fi
be01d343
PB
13808else
13809 ok=yes
13810 case " ${configdirs} " in
13811 *" binutils "*) ;;
13812 *) ok=no ;;
13813 esac
c6b750e1 13814
be01d343
PB
13815 if test $ok = yes; then
13816 # An in-tree tool is available and we can use it
13817 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13819$as_echo "just compiled" >&6; }
2429c060
PB
13820 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13821 # We already found the complete path
b8025f34 13822 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13824$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13825 elif test "x$target" = "x$host"; then
13826 # We can use an host tool
13827 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13829$as_echo "host tool" >&6; }
be01d343
PB
13830 else
13831 # We need a cross tool
81ecdfbb
RW
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13833$as_echo "pre-installed" >&6; }
be01d343
PB
13834 fi
13835fi
4b900473 13836
81ecdfbb
RW
13837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13838$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13839if test "x${build}" != "x${host}" ; then
2429c060
PB
13840 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13841 # We already found the complete path
b8025f34 13842 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13844$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13845 else
13846 # Canadian cross, just use what we found
81ecdfbb
RW
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13848$as_echo "pre-installed" >&6; }
2429c060 13849 fi
be01d343
PB
13850else
13851 ok=yes
13852 case " ${configdirs} " in
13853 *" binutils "*) ;;
13854 *) ok=no ;;
13855 esac
c6b750e1 13856
be01d343
PB
13857 if test $ok = yes; then
13858 # An in-tree tool is available and we can use it
13859 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13861$as_echo "just compiled" >&6; }
2429c060
PB
13862 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13863 # We already found the complete path
b8025f34 13864 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13866$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13867 elif test "x$target" = "x$host"; then
13868 # We can use an host tool
13869 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13871$as_echo "host tool" >&6; }
be01d343
PB
13872 else
13873 # We need a cross tool
81ecdfbb
RW
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13875$as_echo "pre-installed" >&6; }
be01d343
PB
13876 fi
13877fi
4b900473 13878
81ecdfbb
RW
13879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13880$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13881if test "x${build}" != "x${host}" ; then
2429c060
PB
13882 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13883 # We already found the complete path
b8025f34 13884 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13886$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13887 else
13888 # Canadian cross, just use what we found
81ecdfbb
RW
13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13890$as_echo "pre-installed" >&6; }
2429c060 13891 fi
be01d343
PB
13892else
13893 ok=yes
13894 case " ${configdirs} " in
13895 *" binutils "*) ;;
13896 *) ok=no ;;
13897 esac
c6b750e1 13898
be01d343
PB
13899 if test $ok = yes; then
13900 # An in-tree tool is available and we can use it
9b980aa1 13901 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13903$as_echo "just compiled" >&6; }
2429c060
PB
13904 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13905 # We already found the complete path
b8025f34 13906 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13908$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13909 elif test "x$target" = "x$host"; then
13910 # We can use an host tool
13911 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13913$as_echo "host tool" >&6; }
be01d343
PB
13914 else
13915 # We need a cross tool
81ecdfbb
RW
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13917$as_echo "pre-installed" >&6; }
be01d343
PB
13918 fi
13919fi
4b900473 13920
81ecdfbb
RW
13921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13922$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13923if test "x${build}" != "x${host}" ; then
2429c060
PB
13924 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13925 # We already found the complete path
b8025f34 13926 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13928$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13929 else
13930 # Canadian cross, just use what we found
81ecdfbb
RW
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13932$as_echo "pre-installed" >&6; }
2429c060 13933 fi
be01d343
PB
13934else
13935 ok=yes
13936 case " ${configdirs} " in
13937 *" binutils "*) ;;
13938 *) ok=no ;;
13939 esac
c6b750e1 13940
be01d343
PB
13941 if test $ok = yes; then
13942 # An in-tree tool is available and we can use it
13943 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13945$as_echo "just compiled" >&6; }
2429c060
PB
13946 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13947 # We already found the complete path
b8025f34 13948 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13950$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13951 elif test "x$target" = "x$host"; then
13952 # We can use an host tool
13953 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13955$as_echo "host tool" >&6; }
be01d343
PB
13956 else
13957 # We need a cross tool
81ecdfbb
RW
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13959$as_echo "pre-installed" >&6; }
be01d343 13960 fi
a0da8069 13961fi
54752a6b 13962
81ecdfbb
RW
13963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13964$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13965if test "x${build}" != "x${host}" ; then
13966 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13967 # We already found the complete path
13968 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13970$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13971 else
13972 # Canadian cross, just use what we found
81ecdfbb
RW
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13974$as_echo "pre-installed" >&6; }
0c24b341
NC
13975 fi
13976else
13977 ok=yes
13978 case " ${configdirs} " in
13979 *" binutils "*) ;;
13980 *) ok=no ;;
13981 esac
13982
13983 if test $ok = yes; then
13984 # An in-tree tool is available and we can use it
13985 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13987$as_echo "just compiled" >&6; }
0c24b341
NC
13988 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13989 # We already found the complete path
13990 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13992$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13993 elif test "x$target" = "x$host"; then
13994 # We can use an host tool
13995 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13997$as_echo "host tool" >&6; }
0c24b341
NC
13998 else
13999 # We need a cross tool
81ecdfbb
RW
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14001$as_echo "pre-installed" >&6; }
0c24b341
NC
14002 fi
14003fi
14004
54752a6b
NN
14005
14006
be01d343 14007
4b900473 14008
a0da8069
NN
14009# Certain tools may need extra flags.
14010AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14011RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14012NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14013
be01d343
PB
14014# When building target libraries, except in a Canadian cross, we use
14015# the same toolchain as the compiler we just built.
14016COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14017COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14018COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14019if test $host = $build; then
14020 case " $configdirs " in
14021 *" gcc "*)
14022 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14023 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14024 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14025 ;;
14026 esac
14027fi
14028
14029
14030
14031
14032
81ecdfbb
RW
14033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14034$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14035# Check whether --enable-maintainer-mode was given.
14036if test "${enable_maintainer_mode+set}" = set; then :
14037 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14038else
14039 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14040fi
14041
14042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14043$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14044
14045
14046if test "$USE_MAINTAINER_MODE" = yes; then
14047 MAINTAINER_MODE_TRUE=
14048 MAINTAINER_MODE_FALSE='#'
14049else
14050 MAINTAINER_MODE_TRUE='#'
14051 MAINTAINER_MODE_FALSE=
c6b750e1 14052fi
3d5e36ae
AO
14053MAINT=$MAINTAINER_MODE_TRUE
14054
1d39f329
NN
14055# ---------------------
14056# GCC bootstrap support
14057# ---------------------
14058
14059# Stage specific cflags for build.
14060stage1_cflags="-g"
14061case $build in
14062 vax-*-*)
14063 case ${GCC} in
14064 yes) stage1_cflags="-g -Wa,-J" ;;
14065 *) stage1_cflags="-g -J" ;;
14066 esac ;;
1d39f329
NN
14067esac
14068
1d89b610 14069# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 14070if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
14071 saved_CFLAGS="$CFLAGS"
14072
14073 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14074 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14076$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
14078/* end confdefs.h. */
14079
2038f525
PB
14080#if (__GNUC__ < 3) \
14081 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14082 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14083#error http://gcc.gnu.org/PR29382
14084#endif
14085
c6b750e1
DJ
14086int
14087main ()
14088{
14089
14090 ;
14091 return 0;
14092}
14093_ACEOF
81ecdfbb
RW
14094if ac_fn_c_try_compile "$LINENO"; then :
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14096$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14097else
81ecdfbb
RW
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14099$as_echo "no" >&6; }
c6b750e1 14100fi
81ecdfbb 14101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14102
14103 CFLAGS="$saved_CFLAGS"
14104fi
14105
14106
1d39f329 14107
8a0d8a5c 14108# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14109# Check whether --enable-stage1-checking was given.
14110if test "${enable_stage1_checking+set}" = set; then :
14111 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14112else
5566c1fa 14113 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14114 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14115else
5566c1fa 14116 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14117fi
81ecdfbb 14118fi
8a0d8a5c
PB
14119
14120
c6b750e1 14121
81ecdfbb
RW
14122# Enable -Werror in bootstrap stage2 and later.
14123# Check whether --enable-werror was given.
14124if test "${enable_werror+set}" = set; then :
14125 enableval=$enable_werror;
1d39f329 14126else
a0323144 14127 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14128 enable_werror=yes
79fcd0ec
PB
14129else
14130 enable_werror=no
14131fi
81ecdfbb
RW
14132fi
14133
1a6f2dc7
NN
14134case ${enable_werror} in
14135 yes) stage2_werror_flag="--enable-werror-always" ;;
14136 *) stage2_werror_flag="" ;;
1d39f329
NN
14137esac
14138
14139
e8a5fa9c
RW
14140# Specify what files to not compare during bootstrap.
14141
14142compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14143case "$target" in
14144 hppa*64*-*-hpux*) ;;
14145 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14146esac
1f53ca9a
AO
14147case " $configdirs " in
14148*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14149esac
e8a5fa9c
RW
14150
14151
81ecdfbb
RW
14152ac_config_files="$ac_config_files Makefile"
14153
c6b750e1 14154cat >confcache <<\_ACEOF
a0da8069
NN
14155# This file is a shell script that caches the results of configure
14156# tests run on this system so they can be shared between configure
c6b750e1
DJ
14157# scripts and configure runs, see configure's option --config-cache.
14158# It is not useful on other systems. If it contains results you don't
14159# want to keep, you may remove or edit it.
a0da8069 14160#
c6b750e1
DJ
14161# config.status only pays attention to the cache file if you give it
14162# the --recheck option to rerun configure.
a0da8069 14163#
c6b750e1
DJ
14164# `ac_cv_env_foo' variables (set or unset) will be overridden when
14165# loading this file, other *unset* `ac_cv_foo' will be assigned the
14166# following values.
14167
14168_ACEOF
14169
a0da8069
NN
14170# The following way of writing the cache mishandles newlines in values,
14171# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14172# So, we kill variables containing newlines.
a0da8069
NN
14173# Ultrix sh set writes to stderr and can't be redirected directly,
14174# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14175(
14176 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14177 eval ac_val=\$$ac_var
14178 case $ac_val in #(
14179 *${as_nl}*)
14180 case $ac_var in #(
14181 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14182$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14183 esac
14184 case $ac_var in #(
14185 _ | IFS | as_nl) ;; #(
14186 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14187 *) { eval $ac_var=; unset $ac_var;} ;;
14188 esac ;;
14189 esac
14190 done
14191
c6b750e1 14192 (set) 2>&1 |
81ecdfbb
RW
14193 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14194 *${as_nl}ac_space=\ *)
14195 # `set' does not quote correctly, so add quotes: double-quote
14196 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14197 sed -n \
14198 "s/'/'\\\\''/g;
14199 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14200 ;; #(
c6b750e1
DJ
14201 *)
14202 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14203 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14204 ;;
81ecdfbb
RW
14205 esac |
14206 sort
14207) |
c6b750e1 14208 sed '
81ecdfbb 14209 /^ac_cv_env_/b end
c6b750e1 14210 t clear
81ecdfbb 14211 :clear
c6b750e1
DJ
14212 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14213 t end
81ecdfbb
RW
14214 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14215 :end' >>confcache
14216if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14217 if test -w "$cache_file"; then
14218 test "x$cache_file" != "x/dev/null" &&
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14220$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14221 cat confcache >$cache_file
a0da8069 14222 else
81ecdfbb
RW
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14224$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14225 fi
852e5f18 14226fi
a0da8069 14227rm -f confcache
852e5f18 14228
a0da8069
NN
14229test "x$prefix" = xNONE && prefix=$ac_default_prefix
14230# Let make expand exec_prefix.
14231test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14232
a0da8069
NN
14233# Transform confdefs.h into DEFS.
14234# Protect against shell expansion while executing Makefile rules.
14235# Protect against Makefile macro expansion.
c6b750e1
DJ
14236#
14237# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14238# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14239# look for a macro that doesn't take arguments.
81ecdfbb
RW
14240ac_script='
14241:mline
14242/\\$/{
14243 N
14244 s,\\\n,,
14245 b mline
14246}
c6b750e1 14247t clear
81ecdfbb
RW
14248:clear
14249s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14250t quote
81ecdfbb 14251s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14252t quote
81ecdfbb
RW
14253b any
14254:quote
14255s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14256s/\[/\\&/g
14257s/\]/\\&/g
14258s/\$/$$/g
14259H
14260:any
14261${
14262 g
14263 s/^\n//
14264 s/\n/ /g
14265 p
14266}
14267'
14268DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14269
14270
14271ac_libobjs=
14272ac_ltlibobjs=
14273for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14274 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14275 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14276 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14278 # will be set to the directory where LIBOBJS objects are built.
14279 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14280 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14281done
14282LIBOBJS=$ac_libobjs
852e5f18 14283
c6b750e1 14284LTLIBOBJS=$ac_ltlibobjs
376a0e54 14285
cac3d6c4 14286
c6b750e1
DJ
14287
14288: ${CONFIG_STATUS=./config.status}
81ecdfbb 14289ac_write_fail=0
c6b750e1
DJ
14290ac_clean_files_save=$ac_clean_files
14291ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14292{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14293$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14294as_write_fail=0
14295cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14296#! $SHELL
14297# Generated by $as_me.
a0da8069 14298# Run this file to recreate the current configuration.
a0da8069 14299# Compiler output produced by configure, useful for debugging
c6b750e1 14300# configure, is in config.log if it exists.
376a0e54 14301
c6b750e1
DJ
14302debug=false
14303ac_cs_recheck=false
14304ac_cs_silent=false
c6b750e1 14305
81ecdfbb
RW
14306SHELL=\${CONFIG_SHELL-$SHELL}
14307export SHELL
14308_ASEOF
14309cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14310## -------------------- ##
14311## M4sh Initialization. ##
14312## -------------------- ##
14313
14314# Be more Bourne compatible
14315DUALCASE=1; export DUALCASE # for MKS sh
14316if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14317 emulate sh
14318 NULLCMD=:
81ecdfbb 14319 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14320 # is contrary to our usage. Disable this feature.
14321 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14322 setopt NO_GLOB_SUBST
14323else
14324 case `(set -o) 2>/dev/null` in #(
14325 *posix*) :
14326 set -o posix ;; #(
14327 *) :
14328 ;;
14329esac
c6b750e1 14330fi
c6b750e1 14331
81ecdfbb
RW
14332
14333as_nl='
14334'
14335export as_nl
14336# Printing a long string crashes Solaris 7 /usr/bin/printf.
14337as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14338as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14339as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14340# Prefer a ksh shell builtin over an external printf program on Solaris,
14341# but without wasting forks for bash or zsh.
14342if test -z "$BASH_VERSION$ZSH_VERSION" \
14343 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14344 as_echo='print -r --'
14345 as_echo_n='print -rn --'
14346elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14347 as_echo='printf %s\n'
14348 as_echo_n='printf %s'
14349else
14350 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14351 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14352 as_echo_n='/usr/ucb/echo -n'
14353 else
14354 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14355 as_echo_n_body='eval
14356 arg=$1;
14357 case $arg in #(
14358 *"$as_nl"*)
14359 expr "X$arg" : "X\\(.*\\)$as_nl";
14360 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14361 esac;
14362 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14363 '
14364 export as_echo_n_body
14365 as_echo_n='sh -c $as_echo_n_body as_echo'
14366 fi
14367 export as_echo_body
14368 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14369fi
14370
81ecdfbb
RW
14371# The user is always right.
14372if test "${PATH_SEPARATOR+set}" != set; then
14373 PATH_SEPARATOR=:
14374 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14375 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14376 PATH_SEPARATOR=';'
14377 }
14378fi
14379
14380
14381# IFS
14382# We need space, tab and new line, in precisely that order. Quoting is
14383# there to prevent editors from complaining about space-tab.
14384# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14385# splitting by setting IFS to empty value.)
14386IFS=" "" $as_nl"
14387
14388# Find who we are. Look in the path if we contain no directory separator.
14389case $0 in #((
14390 *[\\/]* ) as_myself=$0 ;;
14391 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392for as_dir in $PATH
14393do
14394 IFS=$as_save_IFS
14395 test -z "$as_dir" && as_dir=.
14396 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14397 done
14398IFS=$as_save_IFS
14399
14400 ;;
14401esac
14402# We did not find ourselves, most probably we were run as `sh COMMAND'
14403# in which case we are not to be found in the path.
14404if test "x$as_myself" = x; then
14405 as_myself=$0
14406fi
14407if test ! -f "$as_myself"; then
14408 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14409 exit 1
14410fi
c6b750e1 14411
81ecdfbb
RW
14412# Unset variables that we do not need and which cause bugs (e.g. in
14413# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14414# suppresses any "Segmentation fault" message there. '((' could
14415# trigger a bug in pdksh 5.2.14.
14416for as_var in BASH_ENV ENV MAIL MAILPATH
14417do eval test x\${$as_var+set} = xset \
14418 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14419done
c6b750e1
DJ
14420PS1='$ '
14421PS2='> '
14422PS4='+ '
14423
14424# NLS nuisances.
81ecdfbb
RW
14425LC_ALL=C
14426export LC_ALL
14427LANGUAGE=C
14428export LANGUAGE
14429
14430# CDPATH.
14431(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14432
14433
14434# as_fn_error ERROR [LINENO LOG_FD]
14435# ---------------------------------
14436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14438# script with status $?, using 1 if that was 0.
14439as_fn_error ()
14440{
14441 as_status=$?; test $as_status -eq 0 && as_status=1
14442 if test "$3"; then
14443 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14444 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14445 fi
81ecdfbb
RW
14446 $as_echo "$as_me: error: $1" >&2
14447 as_fn_exit $as_status
14448} # as_fn_error
14449
14450
14451# as_fn_set_status STATUS
14452# -----------------------
14453# Set $? to STATUS, without forking.
14454as_fn_set_status ()
14455{
14456 return $1
14457} # as_fn_set_status
14458
14459# as_fn_exit STATUS
14460# -----------------
14461# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14462as_fn_exit ()
14463{
14464 set +e
14465 as_fn_set_status $1
14466 exit $1
14467} # as_fn_exit
14468
14469# as_fn_unset VAR
14470# ---------------
14471# Portably unset VAR.
14472as_fn_unset ()
14473{
14474 { eval $1=; unset $1;}
14475}
14476as_unset=as_fn_unset
14477# as_fn_append VAR VALUE
14478# ----------------------
14479# Append the text in VALUE to the end of the definition contained in VAR. Take
14480# advantage of any shell optimizations that allow amortized linear growth over
14481# repeated appends, instead of the typical quadratic growth present in naive
14482# implementations.
14483if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14484 eval 'as_fn_append ()
14485 {
14486 eval $1+=\$2
14487 }'
14488else
14489 as_fn_append ()
14490 {
14491 eval $1=\$$1\$2
14492 }
14493fi # as_fn_append
14494
14495# as_fn_arith ARG...
14496# ------------------
14497# Perform arithmetic evaluation on the ARGs, and store the result in the
14498# global $as_val. Take advantage of shells that can avoid forks. The arguments
14499# must be portable across $(()) and expr.
14500if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14501 eval 'as_fn_arith ()
14502 {
14503 as_val=$(( $* ))
14504 }'
14505else
14506 as_fn_arith ()
14507 {
14508 as_val=`expr "$@" || test $? -eq 1`
14509 }
14510fi # as_fn_arith
14511
c6b750e1 14512
81ecdfbb
RW
14513if expr a : '\(a\)' >/dev/null 2>&1 &&
14514 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14515 as_expr=expr
14516else
14517 as_expr=false
14518fi
14519
81ecdfbb 14520if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14521 as_basename=basename
14522else
14523 as_basename=false
14524fi
14525
81ecdfbb
RW
14526if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14527 as_dirname=dirname
14528else
14529 as_dirname=false
14530fi
c6b750e1 14531
81ecdfbb 14532as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14533$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14534 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14535 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14536$as_echo X/"$0" |
14537 sed '/^.*\/\([^/][^/]*\)\/*$/{
14538 s//\1/
14539 q
14540 }
14541 /^X\/\(\/\/\)$/{
14542 s//\1/
14543 q
14544 }
14545 /^X\/\(\/\).*/{
14546 s//\1/
14547 q
14548 }
14549 s/.*/./; q'`
c6b750e1 14550
c6b750e1
DJ
14551# Avoid depending upon Character Ranges.
14552as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14553as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14554as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14555as_cr_digits='0123456789'
14556as_cr_alnum=$as_cr_Letters$as_cr_digits
14557
81ecdfbb
RW
14558ECHO_C= ECHO_N= ECHO_T=
14559case `echo -n x` in #(((((
14560-n*)
14561 case `echo 'xy\c'` in
14562 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14563 xy) ECHO_C='\c';;
14564 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14565 ECHO_T=' ';;
14566 esac;;
14567*)
14568 ECHO_N='-n';;
c6b750e1
DJ
14569esac
14570
81ecdfbb
RW
14571rm -f conf$$ conf$$.exe conf$$.file
14572if test -d conf$$.dir; then
14573 rm -f conf$$.dir/conf$$.file
c6b750e1 14574else
81ecdfbb
RW
14575 rm -f conf$$.dir
14576 mkdir conf$$.dir 2>/dev/null
c6b750e1 14577fi
81ecdfbb
RW
14578if (echo >conf$$.file) 2>/dev/null; then
14579 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14580 as_ln_s='ln -s'
81ecdfbb
RW
14581 # ... but there are two gotchas:
14582 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14583 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14584 # In both cases, we have to default to `cp -p'.
14585 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14586 as_ln_s='cp -p'
14587 elif ln conf$$.file conf$$ 2>/dev/null; then
14588 as_ln_s=ln
14589 else
14590 as_ln_s='cp -p'
c6b750e1 14591 fi
c6b750e1
DJ
14592else
14593 as_ln_s='cp -p'
14594fi
81ecdfbb
RW
14595rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14596rmdir conf$$.dir 2>/dev/null
14597
14598
14599# as_fn_mkdir_p
14600# -------------
14601# Create "$as_dir" as a directory, including parents if necessary.
14602as_fn_mkdir_p ()
14603{
14604
14605 case $as_dir in #(
14606 -*) as_dir=./$as_dir;;
14607 esac
14608 test -d "$as_dir" || eval $as_mkdir_p || {
14609 as_dirs=
14610 while :; do
14611 case $as_dir in #(
14612 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14613 *) as_qdir=$as_dir;;
14614 esac
14615 as_dirs="'$as_qdir' $as_dirs"
14616 as_dir=`$as_dirname -- "$as_dir" ||
14617$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14618 X"$as_dir" : 'X\(//\)[^/]' \| \
14619 X"$as_dir" : 'X\(//\)$' \| \
14620 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14621$as_echo X"$as_dir" |
14622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14623 s//\1/
14624 q
14625 }
14626 /^X\(\/\/\)[^/].*/{
14627 s//\1/
14628 q
14629 }
14630 /^X\(\/\/\)$/{
14631 s//\1/
14632 q
14633 }
14634 /^X\(\/\).*/{
14635 s//\1/
14636 q
14637 }
14638 s/.*/./; q'`
14639 test -d "$as_dir" && break
14640 done
14641 test -z "$as_dirs" || eval "mkdir $as_dirs"
14642 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14643
c6b750e1 14644
81ecdfbb 14645} # as_fn_mkdir_p
c6b750e1 14646if mkdir -p . 2>/dev/null; then
81ecdfbb 14647 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14648else
14649 test -d ./-p && rmdir ./-p
14650 as_mkdir_p=false
14651fi
14652
81ecdfbb
RW
14653if test -x / >/dev/null 2>&1; then
14654 as_test_x='test -x'
14655else
14656 if ls -dL / >/dev/null 2>&1; then
14657 as_ls_L_option=L
14658 else
14659 as_ls_L_option=
14660 fi
14661 as_test_x='
14662 eval sh -c '\''
14663 if test -d "$1"; then
14664 test -d "$1/.";
14665 else
14666 case $1 in #(
14667 -*)set "./$1";;
14668 esac;
14669 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14670 ???[sx]*):;;*)false;;esac;fi
14671 '\'' sh
14672 '
14673fi
14674as_executable_p=$as_test_x
c6b750e1
DJ
14675
14676# Sed expression to map a string onto a valid CPP name.
14677as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14678
14679# Sed expression to map a string onto a valid variable name.
14680as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14681
14682
c6b750e1 14683exec 6>&1
81ecdfbb
RW
14684## ----------------------------------- ##
14685## Main body of $CONFIG_STATUS script. ##
14686## ----------------------------------- ##
14687_ASEOF
14688test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14689
14690cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14691# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14692# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14693# values after options handling.
14694ac_log="
c6b750e1 14695This file was extended by $as_me, which was
81ecdfbb 14696generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14697
14698 CONFIG_FILES = $CONFIG_FILES
14699 CONFIG_HEADERS = $CONFIG_HEADERS
14700 CONFIG_LINKS = $CONFIG_LINKS
14701 CONFIG_COMMANDS = $CONFIG_COMMANDS
14702 $ $0 $@
14703
81ecdfbb
RW
14704on `(hostname || uname -n) 2>/dev/null | sed 1q`
14705"
14706
c6b750e1
DJ
14707_ACEOF
14708
81ecdfbb
RW
14709case $ac_config_files in *"
14710"*) set x $ac_config_files; shift; ac_config_files=$*;;
14711esac
c6b750e1 14712
c6b750e1 14713
c6b750e1 14714
81ecdfbb
RW
14715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14716# Files that config.status was made for.
14717config_files="$ac_config_files"
c6b750e1 14718
81ecdfbb 14719_ACEOF
c6b750e1 14720
81ecdfbb 14721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14722ac_cs_usage="\
81ecdfbb
RW
14723\`$as_me' instantiates files and other configuration actions
14724from templates according to the current configuration. Unless the files
14725and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14726
81ecdfbb 14727Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14728
14729 -h, --help print this help, then exit
81ecdfbb
RW
14730 -V, --version print version number and configuration settings, then exit
14731 -q, --quiet, --silent
14732 do not print progress messages
c6b750e1
DJ
14733 -d, --debug don't remove temporary files
14734 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14735 --file=FILE[:TEMPLATE]
14736 instantiate the configuration file FILE
c6b750e1
DJ
14737
14738Configuration files:
14739$config_files
14740
81ecdfbb 14741Report bugs to the package provider."
c6b750e1 14742
81ecdfbb
RW
14743_ACEOF
14744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14745ac_cs_version="\\
14746config.status
81ecdfbb
RW
14747configured by $0, generated by GNU Autoconf 2.64,
14748 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14749
81ecdfbb 14750Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14751This config.status script is free software; the Free Software Foundation
14752gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14753
14754ac_pwd='$ac_pwd'
14755srcdir='$srcdir'
14756INSTALL='$INSTALL'
8e957354 14757AWK='$AWK'
81ecdfbb 14758test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14759_ACEOF
14760
81ecdfbb
RW
14761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14762# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14763ac_need_defaults=:
14764while test $# != 0
a0da8069 14765do
c6b750e1
DJ
14766 case $1 in
14767 --*=*)
81ecdfbb
RW
14768 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14769 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14770 ac_shift=:
14771 ;;
81ecdfbb 14772 *)
c6b750e1
DJ
14773 ac_option=$1
14774 ac_optarg=$2
14775 ac_shift=shift
14776 ;;
c6b750e1
DJ
14777 esac
14778
14779 case $ac_option in
14780 # Handling of the options.
a0da8069 14781 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14782 ac_cs_recheck=: ;;
81ecdfbb
RW
14783 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14784 $as_echo "$ac_cs_version"; exit ;;
14785 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14786 debug=: ;;
14787 --file | --fil | --fi | --f )
14788 $ac_shift
81ecdfbb
RW
14789 case $ac_optarg in
14790 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14791 esac
14792 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14793 ac_need_defaults=false;;
81ecdfbb
RW
14794 --he | --h | --help | --hel | -h )
14795 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14796 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14797 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14798 ac_cs_silent=: ;;
14799
14800 # This is an error.
81ecdfbb
RW
14801 -*) as_fn_error "unrecognized option: \`$1'
14802Try \`$0 --help' for more information." ;;
c6b750e1 14803
81ecdfbb
RW
14804 *) as_fn_append ac_config_targets " $1"
14805 ac_need_defaults=false ;;
c6b750e1 14806
376a0e54 14807 esac
c6b750e1 14808 shift
376a0e54
CM
14809done
14810
c6b750e1 14811ac_configure_extra_args=
376a0e54 14812
c6b750e1
DJ
14813if $ac_cs_silent; then
14814 exec 6>/dev/null
14815 ac_configure_extra_args="$ac_configure_extra_args --silent"
14816fi
376a0e54 14817
c6b750e1 14818_ACEOF
81ecdfbb 14819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14820if \$ac_cs_recheck; then
81ecdfbb
RW
14821 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14822 shift
14823 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14824 CONFIG_SHELL='$SHELL'
14825 export CONFIG_SHELL
14826 exec "\$@"
c6b750e1
DJ
14827fi
14828
14829_ACEOF
81ecdfbb
RW
14830cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14831exec 5>>config.log
14832{
14833 echo
14834 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14835## Running $as_me. ##
14836_ASBOX
14837 $as_echo "$ac_log"
14838} >&5
c6b750e1 14839
81ecdfbb
RW
14840_ACEOF
14841cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14842#
14843# INIT-COMMANDS
14844#
14845extrasub_build="$extrasub_build"
14846 extrasub_host="$extrasub_host"
14847 extrasub_target="$extrasub_target"
14848
81ecdfbb 14849_ACEOF
c6b750e1 14850
81ecdfbb 14851cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14852
81ecdfbb 14853# Handling of arguments.
c6b750e1
DJ
14854for ac_config_target in $ac_config_targets
14855do
81ecdfbb
RW
14856 case $ac_config_target in
14857 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14858
14859 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14860 esac
14861done
14862
81ecdfbb 14863
c6b750e1
DJ
14864# If the user did not use the arguments to specify the items to instantiate,
14865# then the envvar interface is used. Set only those that are not.
14866# We use the long form for the default assignment because of an extremely
14867# bizarre bug on SunOS 4.1.3.
14868if $ac_need_defaults; then
14869 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14870fi
14871
14872# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14873# simply because there is no reason against having it here, and in addition,
c6b750e1 14874# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14875# Hook for its removal unless debugging.
14876# Note that there is a small window in which the directory will not be cleaned:
14877# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14878$debug ||
14879{
81ecdfbb
RW
14880 tmp=
14881 trap 'exit_status=$?
14882 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14883' 0
14884 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14885}
c6b750e1
DJ
14886# Create a (secure) tmp directory for tmp files.
14887
14888{
81ecdfbb 14889 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14890 test -n "$tmp" && test -d "$tmp"
14891} ||
14892{
81ecdfbb
RW
14893 tmp=./conf$$-$RANDOM
14894 (umask 077 && mkdir "$tmp")
14895} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14896
14897# Set up the scripts for CONFIG_FILES section.
14898# No need to generate them if there are no CONFIG_FILES.
14899# This happens for instance with `./config.status config.h'.
14900if test -n "$CONFIG_FILES"; then
14901
14902if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14903 ac_cs_awk_getline=:
14904 ac_cs_awk_pipe_init=
14905 ac_cs_awk_read_file='
14906 while ((getline aline < (F[key])) > 0)
14907 print(aline)
14908 close(F[key])'
14909 ac_cs_awk_pipe_fini=
14910else
14911 ac_cs_awk_getline=false
14912 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14913 ac_cs_awk_read_file='
14914 print "|#_!!_#|"
14915 print "cat " F[key] " &&"
14916 '$ac_cs_awk_pipe_init
14917 # The final `:' finishes the AND list.
14918 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14919fi
14920ac_cr=`echo X | tr X '\015'`
14921# On cygwin, bash can eat \r inside `` if the user requested igncr.
14922# But we know of no other shell where ac_cr would be empty at this
14923# point, so we can use a bashism as a fallback.
14924if test "x$ac_cr" = x; then
14925 eval ac_cr=\$\'\\r\'
14926fi
14927ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14928if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14929 ac_cs_awk_cr='\r'
14930else
14931 ac_cs_awk_cr=$ac_cr
14932fi
14933
14934echo 'BEGIN {' >"$tmp/subs1.awk" &&
14935_ACEOF
14936
14937# Create commands to substitute file output variables.
c6b750e1 14938{
81ecdfbb
RW
14939 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14940 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14941 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14942 echo "_ACAWK" &&
14943 echo "_ACEOF"
14944} >conf$$files.sh &&
14945. ./conf$$files.sh ||
14946 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14947rm -f conf$$files.sh
c6b750e1 14948
81ecdfbb
RW
14949{
14950 echo "cat >conf$$subs.awk <<_ACEOF" &&
14951 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14952 echo "_ACEOF"
14953} >conf$$subs.sh ||
14954 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14955ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14956ac_delim='%!_!# '
14957for ac_last_try in false false false false false :; do
14958 . ./conf$$subs.sh ||
14959 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14960
14961 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14962 if test $ac_delim_n = $ac_delim_num; then
14963 break
14964 elif $ac_last_try; then
14965 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14966 else
14967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14968 fi
14969done
14970rm -f conf$$subs.sh
14971
14972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14973cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14974_ACEOF
81ecdfbb
RW
14975sed -n '
14976h
14977s/^/S["/; s/!.*/"]=/
14978p
14979g
14980s/^[^!]*!//
14981:repl
14982t repl
14983s/'"$ac_delim"'$//
14984t delim
14985:nl
14986h
14987s/\(.\{148\}\).*/\1/
14988t more1
14989s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14990p
14991n
14992b repl
14993:more1
14994s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14995p
14996g
14997s/.\{148\}//
14998t nl
14999:delim
15000h
15001s/\(.\{148\}\).*/\1/
15002t more2
15003s/["\\]/\\&/g; s/^/"/; s/$/"/
15004p
15005b
15006:more2
15007s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15008p
15009g
15010s/.\{148\}//
15011t delim
15012' <conf$$subs.awk | sed '
15013/^[^""]/{
15014 N
15015 s/\n//
15016}
15017' >>$CONFIG_STATUS || ac_write_fail=1
15018rm -f conf$$subs.awk
15019cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15020_ACAWK
15021cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15022 for (key in S) S_is_set[key] = 1
15023 FS = "\a"
15024 \$ac_cs_awk_pipe_init
15025}
15026{
15027 line = $ 0
15028 nfields = split(line, field, "@")
15029 substed = 0
15030 len = length(field[1])
15031 for (i = 2; i < nfields; i++) {
15032 key = field[i]
15033 keylen = length(key)
15034 if (S_is_set[key]) {
15035 value = S[key]
15036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15037 len += length(value) + length(field[++i])
15038 substed = 1
15039 } else
15040 len += 1 + keylen
15041 }
15042 if (nfields == 3 && !substed) {
15043 key = field[2]
15044 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15045 \$ac_cs_awk_read_file
15046 next
15047 }
15048 }
15049 print line
15050}
15051\$ac_cs_awk_pipe_fini
15052_ACAWK
15053_ACEOF
15054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15055if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15056 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15057else
15058 cat
15059fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15060 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15061_ACEOF
15062
15063# VPATH may cause trouble with some makes, so we remove $(srcdir),
15064# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15065# trailing colons and then remove the whole line if VPATH becomes empty
15066# (actually we leave an empty line to preserve line numbers).
15067if test "x$srcdir" = x.; then
15068 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15069s/:*\$(srcdir):*/:/
15070s/:*\${srcdir}:*/:/
15071s/:*@srcdir@:*/:/
15072s/^\([^=]*=[ ]*\):*/\1/
15073s/:*$//
15074s/^[^=]*=[ ]*$//
15075}'
15076fi
c6b750e1 15077
81ecdfbb
RW
15078cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15079fi # test -n "$CONFIG_FILES"
c6b750e1 15080
c6b750e1 15081
81ecdfbb
RW
15082eval set X " :F $CONFIG_FILES "
15083shift
15084for ac_tag
15085do
15086 case $ac_tag in
15087 :[FHLC]) ac_mode=$ac_tag; continue;;
15088 esac
15089 case $ac_mode$ac_tag in
15090 :[FHL]*:*);;
15091 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15092 :[FH]-) ac_tag=-:-;;
15093 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15094 esac
15095 ac_save_IFS=$IFS
15096 IFS=:
15097 set x $ac_tag
15098 IFS=$ac_save_IFS
15099 shift
15100 ac_file=$1
15101 shift
252b5132 15102
81ecdfbb
RW
15103 case $ac_mode in
15104 :L) ac_source=$1;;
15105 :[FH])
15106 ac_file_inputs=
15107 for ac_f
15108 do
15109 case $ac_f in
15110 -) ac_f="$tmp/stdin";;
15111 *) # Look for the file first in the build tree, then in the source tree
15112 # (if the path is not absolute). The absolute path cannot be DOS-style,
15113 # because $ac_f cannot contain `:'.
15114 test -f "$ac_f" ||
15115 case $ac_f in
15116 [\\/$]*) false;;
15117 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15118 esac ||
15119 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15120 esac
15121 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15122 as_fn_append ac_file_inputs " '$ac_f'"
15123 done
c6b750e1 15124
81ecdfbb
RW
15125 # Let's still pretend it is `configure' which instantiates (i.e., don't
15126 # use $as_me), people would be surprised to read:
15127 # /* config.h. Generated by config.status. */
15128 configure_input='Generated from '`
15129 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15130 `' by configure.'
15131 if test x"$ac_file" != x-; then
15132 configure_input="$ac_file. $configure_input"
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15134$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15135 fi
81ecdfbb
RW
15136 # Neutralize special characters interpreted by sed in replacement strings.
15137 case $configure_input in #(
15138 *\&* | *\|* | *\\* )
15139 ac_sed_conf_input=`$as_echo "$configure_input" |
15140 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15141 *) ac_sed_conf_input=$configure_input;;
15142 esac
cac3d6c4 15143
81ecdfbb
RW
15144 case $ac_tag in
15145 *:-:* | *:-) cat >"$tmp/stdin" \
15146 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15147 esac
15148 ;;
a0da8069 15149 esac
252b5132 15150
81ecdfbb 15151 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15152$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15153 X"$ac_file" : 'X\(//\)[^/]' \| \
15154 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15155 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15156$as_echo X"$ac_file" |
15157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15158 s//\1/
15159 q
15160 }
15161 /^X\(\/\/\)[^/].*/{
15162 s//\1/
15163 q
15164 }
15165 /^X\(\/\/\)$/{
15166 s//\1/
15167 q
15168 }
15169 /^X\(\/\).*/{
15170 s//\1/
15171 q
15172 }
15173 s/.*/./; q'`
15174 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15175 ac_builddir=.
252b5132 15176
81ecdfbb
RW
15177case "$ac_dir" in
15178.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15179*)
15180 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15181 # A ".." for each directory in $ac_dir_suffix.
15182 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15183 case $ac_top_builddir_sub in
15184 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15185 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15186 esac ;;
15187esac
15188ac_abs_top_builddir=$ac_pwd
15189ac_abs_builddir=$ac_pwd$ac_dir_suffix
15190# for backward compatibility:
15191ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15192
15193case $srcdir in
81ecdfbb 15194 .) # We are building in place.
c6b750e1 15195 ac_srcdir=.
81ecdfbb
RW
15196 ac_top_srcdir=$ac_top_builddir_sub
15197 ac_abs_top_srcdir=$ac_pwd ;;
15198 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15199 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15200 ac_top_srcdir=$srcdir
15201 ac_abs_top_srcdir=$srcdir ;;
15202 *) # Relative name.
15203 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15204 ac_top_srcdir=$ac_top_build_prefix$srcdir
15205 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15206esac
81ecdfbb 15207ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15208
252b5132 15209
81ecdfbb
RW
15210 case $ac_mode in
15211 :F)
15212 #
15213 # CONFIG_FILE
15214 #
c6b750e1
DJ
15215
15216 case $INSTALL in
15217 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15218 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15219 esac
81ecdfbb 15220_ACEOF
252b5132 15221
81ecdfbb
RW
15222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15223# If the template does not know about datarootdir, expand it.
15224# FIXME: This hack should be removed a few years after 2.60.
15225ac_datarootdir_hack=; ac_datarootdir_seen=
15226ac_sed_dataroot='
15227/datarootdir/ {
15228 p
15229 q
15230}
15231/@datadir@/p
15232/@docdir@/p
15233/@infodir@/p
15234/@localedir@/p
15235/@mandir@/p'
15236case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15237*datarootdir*) ac_datarootdir_seen=yes;;
15238*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15240$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15241_ACEOF
81ecdfbb
RW
15242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15243 ac_datarootdir_hack='
15244 s&@datadir@&$datadir&g
15245 s&@docdir@&$docdir&g
15246 s&@infodir@&$infodir&g
15247 s&@localedir@&$localedir&g
15248 s&@mandir@&$mandir&g
15249 s&\\\${datarootdir}&$datarootdir&g' ;;
15250esac
15251_ACEOF
15252
15253# Neutralize VPATH when `$srcdir' = `.'.
15254# Shell code in configure.ac might set extrasub.
15255# FIXME: do we really want to maintain this feature?
15256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15257ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15258$extrasub
15259_ACEOF
81ecdfbb 15260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15261:t
15262/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15263s|@configure_input@|$ac_sed_conf_input|;t t
15264s&@top_builddir@&$ac_top_builddir_sub&;t t
15265s&@top_build_prefix@&$ac_top_build_prefix&;t t
15266s&@srcdir@&$ac_srcdir&;t t
15267s&@abs_srcdir@&$ac_abs_srcdir&;t t
15268s&@top_srcdir@&$ac_top_srcdir&;t t
15269s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15270s&@builddir@&$ac_builddir&;t t
15271s&@abs_builddir@&$ac_abs_builddir&;t t
15272s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15273s&@INSTALL@&$ac_INSTALL&;t t
15274$ac_datarootdir_hack
15275"
15276eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15277if $ac_cs_awk_getline; then
15278 $AWK -f "$tmp/subs.awk"
15279else
15280 $AWK -f "$tmp/subs.awk" | $SHELL
15281fi >$tmp/out \
15282 || as_fn_error "could not create $ac_file" "$LINENO" 5
15283
15284test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15285 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15286 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15288which seems to be undefined. Please make sure it is defined." >&5
15289$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15290which seems to be undefined. Please make sure it is defined." >&2;}
15291
15292 rm -f "$tmp/stdin"
15293 case $ac_file in
15294 -) cat "$tmp/out" && rm -f "$tmp/out";;
15295 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15296 esac \
15297 || as_fn_error "could not create $ac_file" "$LINENO" 5
15298 ;;
c148b4cb 15299
c148b4cb 15300
c148b4cb 15301
81ecdfbb
RW
15302 esac
15303
06a51eac
RW
15304
15305 case $ac_file$ac_mode in
15306 "Makefile":F) sed "$extrasub_build" Makefile |
15307 sed "$extrasub_host" |
15308 sed "$extrasub_target" > mf$$
15309 mv -f mf$$ Makefile ;;
15310
15311 esac
81ecdfbb
RW
15312done # for ac_tag
15313
15314
15315as_fn_exit 0
c6b750e1 15316_ACEOF
c6b750e1
DJ
15317ac_clean_files=$ac_clean_files_save
15318
81ecdfbb
RW
15319test $ac_write_fail = 0 ||
15320 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15321
c6b750e1
DJ
15322
15323# configure is writing to config.log, and then calls config.status.
15324# config.status does its own redirection, appending to config.log.
15325# Unfortunately, on DOS this fails, as config.log is still kept open
15326# by configure, so config.status won't be able to write to it; its
15327# output is simply discarded. So we exec the FD to /dev/null,
15328# effectively closing config.log, so it can be properly (re)opened and
15329# appended to by config.status. When coming back to configure, we
15330# need to make the FD available again.
15331if test "$no_create" != yes; then
15332 ac_cs_success=:
15333 ac_config_status_args=
15334 test "$silent" = yes &&
15335 ac_config_status_args="$ac_config_status_args --quiet"
15336 exec 5>/dev/null
15337 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15338 exec 5>>config.log
15339 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15340 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15341 $ac_cs_success || as_fn_exit $?
15342fi
15343if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15345$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15346fi
c148b4cb 15347
This page took 1.615725 seconds and 4 git commands to generate.