2010-12-23 Yao Qi <yao@codesourcery.com>
[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//'`"
33d23ee8
ILT
3058 # Clear libgcj_saved so that even if java is enabled libffi won't be
3059 # built.
3060 libgcj_saved=
a0da8069
NN
3061 ;;
3062esac
252b5132 3063
4b1cb4fe 3064
a6df5a19
PB
3065# Disable libmudflap on some systems.
3066if test x$enable_libmudflap = x ; then
3e707e94 3067 case "${target}" in
29383458 3068 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3069 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3070 ;;
3071 *-*-freebsd*)
3072 # Enable libmudflap by default in FreeBSD.
3073 ;;
3074 *)
3075 # Disable it by default everywhere else.
3076 noconfigdirs="$noconfigdirs target-libmudflap"
3077 ;;
3078 esac
a6df5a19 3079fi
4b1cb4fe 3080
a6df5a19
PB
3081# Disable libgomp on non POSIX hosted systems.
3082if test x$enable_libgomp = x ; then
b3ded179
PB
3083 # Enable libgomp by default on hosted POSIX systems.
3084 case "${target}" in
29383458 3085 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
3086 ;;
3087 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3088 ;;
64ce424c 3089 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3090 ;;
3091 *-*-darwin* | *-*-aix*)
3092 ;;
3093 *)
3094 noconfigdirs="$noconfigdirs target-libgomp"
3095 ;;
3096 esac
a6df5a19 3097fi
b3ded179 3098
691bb5a1
DD
3099# Default libgloss CPU subdirectory.
3100libgloss_dir="$target_cpu"
4b1cb4fe 3101
a0da8069
NN
3102case "${target}" in
3103 *-*-chorusos)
54d1c879 3104 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3105 ;;
24741ab2 3106 powerpc-*-darwin*)
9d39db92 3107 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3108 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3109 ;;
85bd1942
TG
3110 i[3456789]86-*-darwin*)
3111 noconfigdirs="$noconfigdirs ld gprof"
3112 noconfigdirs="$noconfigdirs sim target-rda"
3113 ;;
e8a5fa9c 3114 x86_64-*-darwin[912]*)
652dec25
TG
3115 noconfigdirs="$noconfigdirs ld gas gprof"
3116 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3117 ;;
04d1ab34 3118 *-*-darwin*)
d320aacb 3119 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3120 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3121 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3122 ;;
a0da8069 3123 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 3124 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3125 ;;
de0b4a87 3126 *-*-freebsd*)
4b1cb4fe
DD
3127 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3128 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3129 && test -f /usr/local/include/gmp.h; then
3130 with_gmp=/usr/local
3131 fi
3132
3133 # Skip some stuff that's unsupported on some FreeBSD configurations.
3134 case "${target}" in
3135 i*86-*-*) ;;
3136 alpha*-*-*) ;;
143754cd 3137 x86_64-*-*) ;;
4b1cb4fe 3138 *)
54d1c879 3139 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3140 ;;
3141 esac
3142 ;;
f8a495c8
NC
3143 *-*-kaos*)
3144 # Remove unsupported stuff on all kaOS configurations.
54d1c879 3145 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
3146 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3147 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3148 noconfigdirs="$noconfigdirs target-libgloss"
3149 ;;
a0da8069
NN
3150 *-*-netbsd*)
3151 # Skip some stuff on all NetBSD configurations.
3152 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3153
3154 # Skip some stuff that's unsupported on some NetBSD configurations.
3155 case "${target}" in
3156 i*86-*-netbsdelf*) ;;
5b474aa8 3157 arm*-*-netbsdelf*) ;;
a0da8069 3158 *)
54d1c879 3159 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3160 ;;
3161 esac
3162 ;;
2a3124ca 3163 *-*-netware*)
54d1c879 3164 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
3165 ;;
3166 *-*-rtems*)
a009f2e7 3167 skipdirs="${skipdirs} target-libiberty"
54d1c879 3168 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3169 ;;
1587117a
EC
3170 # The tpf target doesn't support gdb yet.
3171 *-*-tpf*)
54d1c879 3172 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 3173 ;;
c1968181 3174 *-*-uclinux*)
54d1c879 3175 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3176 ;;
a0da8069 3177 *-*-vxworks*)
54d1c879 3178 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3179 ;;
3180 alpha*-dec-osf*)
3181 # ld works, but does not support shared libraries.
3182 # newlib is not 64 bit ready. I'm not sure about fileutils.
3183 # gas doesn't generate exception information.
3184 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3185 ;;
3186 alpha*-*-*vms*)
d594eacc 3187 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3188 ;;
3189 alpha*-*-linux*)
3190 # newlib is not 64 bit ready
3191 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3192 ;;
a0da8069
NN
3193 alpha*-*-*)
3194 # newlib is not 64 bit ready
54d1c879 3195 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3196 ;;
4a18bd6b 3197 am33_2.0-*-linux*)
54d1c879 3198 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3199 ;;
a0da8069 3200 sh-*-linux*)
54d1c879 3201 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3202 ;;
a0da8069 3203 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3204 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3205 noconfigdirs="$noconfigdirs target-examples"
3206 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 3207 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3208 noconfigdirs="$noconfigdirs expect dejagnu"
3209 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3210 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
3211 noconfigdirs="$noconfigdirs target-newlib"
3212 case "${host}" in
3213 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 3214 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
3215 ;;
3216 esac
691bb5a1 3217 libgloss_dir=wince
a0da8069
NN
3218 ;;
3219 arc-*-*)
54d1c879 3220 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3221 ;;
caeba88f 3222 arm-semi-aof )
caeba88f 3223 ;;
a0da8069 3224 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 3225 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3226 libgloss_dir=arm
a0da8069 3227 ;;
11b04d1f 3228 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 3229 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 3230 libgloss_dir=arm
a0da8069 3231 ;;
bd70a46f 3232 arm*-*-linux-gnueabi)
6d18b86b 3233 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
3234 case ${with_newlib} in
3235 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3236 esac
691bb5a1 3237 libgloss_dir=arm
bd70a46f 3238 ;;
df4a6958 3239 arm*-*-symbianelf*)
54d1c879 3240 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3241 libgloss_dir=arm
df4a6958 3242 ;;
a0da8069 3243 arm-*-pe*)
54d1c879 3244 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3245 ;;
a0da8069 3246 thumb-*-coff)
54d1c879 3247 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3248 ;;
3249 thumb-*-elf)
54d1c879 3250 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3251 ;;
a0da8069 3252 thumb-*-pe)
54d1c879 3253 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3254 ;;
3255 arm-*-riscix*)
54d1c879 3256 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3257 ;;
3258 avr-*-*)
266df637 3259 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3260 ;;
376a0e54 3261 bfin-*-*)
df51e4e1
JZ
3262 unsupported_languages="$unsupported_languages java"
3263 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3cf3372e 3264 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3265 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3266 fi
3267 ;;
a0da8069 3268 c4x-*-* | tic4x-*-*)
54d1c879 3269 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3270 ;;
3271 c54x*-*-* | tic54x-*-*)
54d1c879 3272 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3273 ;;
52310858
NC
3274 cr16-*-*)
3275 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3276 ;;
c7e66c6d 3277 cris-*-* | crisv32-*-*)
59f7ec45 3278 unsupported_languages="$unsupported_languages java"
c7e66c6d 3279 case "${target}" in
2faa2958 3280 *-*-aout)
096f7d00 3281 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3282 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
d357cef7
HPN
3283 *-*-elf) # See PR46792 regarding target-libffi.
3284 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3285 *-*-linux*)
5e818318 3286 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3287 *)
096f7d00 3288 unsupported_languages="$unsupported_languages fortran"
54d1c879 3289 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3290 esac
691bb5a1 3291 libgloss_dir=cris
a0da8069 3292 ;;
3e707e94 3293 crx-*-*)
54d1c879 3294 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 3295 ;;
a0da8069 3296 d10v-*-*)
54d1c879 3297 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3298 ;;
3299 d30v-*-*)
54d1c879 3300 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 3301 ;;
691bb5a1
DD
3302 ep9312-*-elf | ep9312-*-coff)
3303 libgloss_dir=arm
3304 ;;
a0da8069 3305 fr30-*-elf*)
54d1c879 3306 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3307 ;;
3308 frv-*-*)
54d1c879 3309 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3310 ;;
20135e4c
NC
3311 moxie-*-*)
3312 noconfigdirs="$noconfigdirs ${libgcj}"
3313 noconfigdirs="$noconfigdirs gprof"
3314 ;;
a0da8069 3315 h8300*-*-*)
54d1c879 3316 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3317 ;;
3318 h8500-*-*)
54d1c879 3319 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3320 ;;
caeba88f 3321 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3322 ;;
a0da8069
NN
3323 hppa*64*-*-linux* | parisc*64*-*-linux*)
3324 # In this case, it's because the hppa64-linux target is for
3325 # the kernel only at this point and has no libc, and thus no
3326 # headers, crt*.o, etc., all of which are needed by these.
3327 noconfigdirs="$noconfigdirs target-zlib"
3328 ;;
5dcac624
DA
3329 parisc*-*-linux* | hppa*-*-linux*)
3330 ;;
a0da8069 3331 hppa*-*-*elf* | \
a0da8069
NN
3332 hppa*-*-lites* | \
3333 hppa*-*-openbsd* | \
3334 hppa*64*-*-*)
54d1c879 3335 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3336 ;;
3337 hppa*-hp-hpux11*)
3338 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3339 ;;
691bb5a1
DD
3340 hppa*-*-pro*)
3341 libgloss_dir=pa
3342 ;;
a0da8069
NN
3343 hppa*-*-*)
3344 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3345 # build on HP-UX 10.20.
54d1c879 3346 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3347 ;;
b07c2aad 3348 i960-*-*)
54d1c879 3349 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3350 ;;
a0da8069
NN
3351 ia64*-*-elf*)
3352 # No gdb support yet.
675c6968 3353 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3354 ;;
3355 ia64*-**-hpux*)
3356 # No gdb or ld support yet.
54d1c879 3357 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 3358 ;;
19e99079
NC
3359 ia64*-*-*vms*)
3360 # No gdb or ld support yet.
3361 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3362 ;;
caeba88f 3363 i370-*-opened*)
caeba88f 3364 ;;
ec11bdc6 3365 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3366 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3367 libgloss_dir=i386
a0da8069 3368 ;;
ec11bdc6 3369 i[3456789]86-*-linux*)
a0da8069
NN
3370 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3371 # not build java stuff by default.
3372 case "${target}" in
3373 *-*-*libc1*)
54d1c879 3374 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3375 esac
3376
3377 # This section makes it possible to build newlib natively on linux.
3378 # If we are using a cross compiler then don't configure newlib.
3379 if test x${is_cross_compiler} != xno ; then
bba45b8b 3380 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3381 fi
3382 noconfigdirs="$noconfigdirs target-libgloss"
3383 # If we are not using a cross compiler, do configure newlib.
3384 # Note however, that newlib will only be configured in this situation
3385 # if the --with-newlib option has been given, because otherwise
3386 # 'target-newlib' will appear in skipdirs.
3387 ;;
1f53ca9a
AO
3388 i[3456789]86-w64-mingw*)
3389 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3390 ;;
3391 i[3456789]86-*-mingw*)
45055374
CV
3392 target_configdirs="$target_configdirs target-winsup"
3393 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3394 ;;
2d1e8239 3395 x86_64-*-mingw*)
2d1e8239 3396 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3397 ;;
a0da8069
NN
3398 *-*-cygwin*)
3399 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3400 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3401 # always build newlib if winsup directory is present.
45055374 3402 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3403 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3404 elif test -d "$srcdir/newlib"; then
45055374 3405 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3406 fi
c6b750e1 3407 ;;
caeba88f
AL
3408 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3409 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 3410 ;;
ec11bdc6 3411 i[3456789]86-*-pe)
54d1c879 3412 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3413 ;;
ec11bdc6 3414 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3415 # The linker does not yet know about weak symbols in COFF,
3416 # and is not configured to handle mixed ELF and COFF.
54d1c879 3417 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3418 ;;
ec11bdc6 3419 i[3456789]86-*-sco*)
54d1c879 3420 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3421 ;;
ec11bdc6 3422 i[3456789]86-*-solaris2*)
a0da8069
NN
3423 noconfigdirs="$noconfigdirs target-libgloss"
3424 ;;
ec11bdc6 3425 i[3456789]86-*-sysv4*)
54d1c879 3426 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3427 ;;
ec11bdc6 3428 i[3456789]86-*-beos*)
54d1c879 3429 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3430 ;;
b59bea8a 3431 i[3456789]86-*-rdos*)
2429c060
PB
3432 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3433 ;;
b07c2aad 3434 m32r-*-*)
54d1c879 3435 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3436 ;;
a0da8069 3437 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 3438 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 3439 libgloss_dir=m68hc11
a0da8069
NN
3440 ;;
3441 m68k-*-elf*)
54d1c879 3442 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3443 ;;
3444 m68k-*-coff*)
54d1c879 3445 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3446 ;;
691bb5a1
DD
3447 m68*-*-* | fido-*-*)
3448 libgloss_dir=m68k
3449 ;;
a0da8069
NN
3450 mcore-*-pe*)
3451 # The EPOC C++ environment does not support exceptions or rtti,
3452 # and so building libstdc++-v3 tends not to always work.
3453 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3454 ;;
3455 mmix-*-*)
59f7ec45 3456 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3457 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3458 ;;
3459 mn10200-*-*)
54d1c879 3460 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3461 ;;
3462 mn10300-*-*)
54d1c879 3463 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3464 ;;
4970f871 3465 mt-*-*)
cdb9b172
AH
3466 noconfigdirs="$noconfigdirs sim"
3467 ;;
a0da8069
NN
3468 powerpc-*-aix*)
3469 # copied from rs6000-*-* entry
e8a5fa9c 3470 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3471 ;;
3472 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3473 target_configdirs="$target_configdirs target-winsup"
54d1c879 3474 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3475 # always build newlib.
3476 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3477 ;;
3478 # This is temporary until we can link against shared libraries
3479 powerpcle-*-solaris*)
54d1c879 3480 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3481 libgloss_dir=rs6000
a0da8069
NN
3482 ;;
3483 powerpc-*-beos*)
54d1c879 3484 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3485 ;;
a0da8069 3486 powerpc-*-eabi)
54d1c879 3487 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3488 libgloss_dir=rs6000
caeba88f
AL
3489 ;;
3490 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3491 libgloss_dir=rs6000
a0da8069 3492 ;;
a0da8069 3493 rs6000-*-lynxos*)
54d1c879 3494 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3495 ;;
3496 rs6000-*-aix*)
e8a5fa9c 3497 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3498 ;;
3499 rs6000-*-*)
54d1c879 3500 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3501 ;;
3502 m68k-apollo-*)
54d1c879 3503 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3504 ;;
25a07265 3505 microblaze*)
29821356 3506 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
25a07265 3507 ;;
5bd8be13
RS
3508 mips*-sde-elf*)
3509 skipdirs="$skipdirs target-libiberty"
3510 noconfigdirs="$noconfigdirs ${libgcj}"
3511 if test x$with_newlib = xyes; then
3512 noconfigdirs="$noconfigdirs gprof"
3513 fi
3514 libgloss_dir=mips
3515 ;;
a0da8069 3516 mips*-*-irix5*)
54d1c879 3517 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3518 ;;
3519 mips*-*-irix6*)
a0da8069
NN
3520 # Linking libjava exceeds command-line length limits on at least
3521 # IRIX 6.2, but not on IRIX 6.5.
3522 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3523 # <oldham@codesourcery.com>
54d1c879 3524 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3525 ;;
a0da8069 3526 mips*-*-bsd*)
54d1c879 3527 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3528 ;;
a0da8069
NN
3529 mips*-*-linux*)
3530 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3531 ;;
3532 mips*-*-*)
54d1c879 3533 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3534 libgloss_dir=mips
a0da8069
NN
3535 ;;
3536 romp-*-*)
54d1c879 3537 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3538 ;;
dbf85af7 3539 sh-*-* | sh64-*-*)
a0da8069 3540 case "${host}" in
ec11bdc6
DD
3541 i[3456789]86-*-vsta) ;; # don't add gprof back in
3542 i[3456789]86-*-go32*) ;; # don't add gprof back in
3543 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3544 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3545 esac
e8a5fa9c
RW
3546 case "${target}" in
3547 sh*-*-elf)
3548 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3549 *)
3550 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3551 esac
a0da8069 3552 ;;
691bb5a1
DD
3553 sparclet-*-aout* | sparc86x-*-*)
3554 libgloss_dir=sparc
3555 ;;
a0da8069 3556 sparc-*-elf*)
54d1c879 3557 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3558 ;;
3559 sparc64-*-elf*)
54d1c879 3560 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3561 libgloss_dir=sparc
a0da8069
NN
3562 ;;
3563 sparclite-*-*)
54d1c879 3564 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3565 libgloss_dir=sparc
a0da8069
NN
3566 ;;
3567 sparc-*-sunos4*)
54d1c879 3568 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3569 if test x${is_cross_compiler} != xno ; then
3570 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3571 else
3572 use_gnu_ld=no
3573 fi
3574 ;;
e3c770b1 3575 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3576 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3577 ;;
a0da8069
NN
3578 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3579 ;;
619a3713
JM
3580 tic6x-*-*)
3581 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3582 ;;
a0da8069 3583 v810-*-*)
54d1c879 3584 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069 3585 ;;
1cd986c5
NC
3586 v850*-*-*)
3587 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3588 ;;
3589 vax-*-vms)
54d1c879 3590 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3591 ;;
3592 vax-*-*)
54d1c879 3593 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3594 ;;
8b66833e 3595 xtensa*-*-*)
54d1c879 3596 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3597 ;;
a0da8069 3598 ip2k-*-*)
54d1c879 3599 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3600 ;;
29383458 3601 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3602 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3603 ;;
3604 *-*-lynxos*)
54d1c879 3605 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3606 ;;
a0da8069 3607 *-*-*)
54d1c879 3608 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3609 ;;
3610esac
252b5132 3611
a0da8069
NN
3612# If we aren't building newlib, then don't build libgloss, since libgloss
3613# depends upon some newlib header files.
3614case "${noconfigdirs}" in
3615 *target-libgloss*) ;;
3616 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3617esac
3618
a0da8069
NN
3619# Work in distributions that contain no compiler tools, like Autoconf.
3620tentative_cc=""
3621host_makefile_frag=/dev/null
3622if test -d ${srcdir}/config ; then
3623case "${host}" in
3624 m68k-hp-hpux*)
3625 # Avoid "too much defining" errors from HPUX compiler.
3626 tentative_cc="cc -Wp,-H256000"
3627 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3628 # If it's HP/UX ar, this should be harmless.
3629 RANLIB="ar ts"
3630 ;;
3631 m68k-apollo-sysv*)
3632 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3633 ;;
3634 m68k-apollo-bsd*)
3635 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3636 # chokes on bfd, the compiler won't let you assign integers to enums, and
3637 # other problems. Defining CC to gcc is a questionable way to say "don't use
3638 # the apollo compiler" (the preferred version of GCC could be called cc,
3639 # or whatever), but I'm not sure leaving CC as cc is any better...
3640 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3641 # Used to have BISON=yacc.
3642 tentative_cc=gcc
3643 ;;
3644 m88k-dg-dgux*)
3645 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3646 ;;
3647 m88k-harris-cxux*)
3648 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3649 tentative_cc="cc -Xa"
3650 host_makefile_frag="config/mh-cxux"
3651 ;;
3652 m88k-motorola-sysv*)
3653 ;;
3654 mips*-dec-ultrix*)
3655 tentative_cc="cc -Wf,-XNg1000"
3656 host_makefile_frag="config/mh-decstation"
3657 ;;
3658 mips*-nec-sysv4*)
3659 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3660 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3661 host_makefile_frag="config/mh-necv4"
3662 ;;
3663 mips*-sgi-irix4*)
3664 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3665 # environment. Also bump switch table size so that cp-parse will
3666 # compile. Bump string length limit so linker builds.
3667 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3668 ;;
3669 mips*-*-sysv4*)
3670 host_makefile_frag="config/mh-sysv4"
3671 ;;
3672 mips*-*-sysv*)
3673 # This is for a MIPS running RISC/os 4.52C.
3674
3675 # This is needed for GDB, but needs to be in the top-level make because
3676 # if a library is compiled with the bsd headers and gets linked with the
3677 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3678 # a different size).
3679 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3680 # known except to select the sysv environment. Could we use /proc instead?
3681 # These "sysv environments" and "bsd environments" often end up being a pain.
3682 #
3683 # This is not part of CFLAGS because perhaps not all C compilers have this
3684 # option.
3685 tentative_cc="cc -systype sysv"
3686 ;;
3687 i370-ibm-opened*)
3688 tentative_cc="c89"
3689 ;;
ec11bdc6 3690 i[3456789]86-*-sysv5*)
a0da8069
NN
3691 host_makefile_frag="config/mh-sysv5"
3692 ;;
ec11bdc6 3693 i[3456789]86-*-dgux*)
a0da8069
NN
3694 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3695 host_makefile_frag="config/mh-dgux386"
3696 ;;
ec11bdc6 3697 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3698 # The MetaWare compiler will generate a copyright message unless you
3699 # turn it off by adding the -Hnocopyr flag.
3700 tentative_cc="cc -Hnocopyr"
3701 ;;
ec11bdc6 3702 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3703 # for an NCR 3000 (i486/SVR4) system.
3704 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3705 # This compiler not only emits obnoxious copyright messages every time
3706 # you run it, but it chokes and dies on a whole bunch of GNU source
3707 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3708 tentative_cc="/usr/ccs/ATT/cc"
3709 host_makefile_frag="config/mh-ncr3000"
3710 ;;
ec11bdc6 3711 i[3456789]86-*-sco3.2v5*)
a0da8069 3712 ;;
ec11bdc6 3713 i[3456789]86-*-sco*)
a0da8069
NN
3714 # The native C compiler botches some simple uses of const. Unfortunately,
3715 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3716 tentative_cc="cc -Dconst="
3717 host_makefile_frag="config/mh-sco"
3718 ;;
ec11bdc6 3719 i[3456789]86-*-udk*)
a0da8069
NN
3720 host_makefile_frag="config/mh-sysv5"
3721 ;;
ec11bdc6 3722 i[3456789]86-*-solaris2*)
a0da8069
NN
3723 host_makefile_frag="config/mh-sysv4"
3724 ;;
ec11bdc6 3725 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3726 host_makefile_frag="config/mh-djgpp"
3727 ;;
3728 *-cygwin*)
e33b51a6 3729
81ecdfbb
RW
3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3731$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3732echo a >cygwin-cat-check
1f53ca9a 3733if test `cat cygwin-cat-check` = a ; then
8ade07e9 3734 rm cygwin-cat-check
81ecdfbb
RW
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3736$as_echo "yes" >&6; }
e33b51a6 3737else
8ade07e9 3738 rm cygwin-cat-check
81ecdfbb
RW
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740$as_echo "no" >&6; }
3741 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3742 Please either mount the build directory in binary mode or run the following
3743 commands before running any configure script:
3744set -o igncr
3745export SHELLOPTS
81ecdfbb 3746 " "$LINENO" 5
e33b51a6 3747fi
e33b51a6 3748
a0da8069
NN
3749 host_makefile_frag="config/mh-cygwin"
3750 ;;
8a1599ab 3751 *-mingw*)
84e7906e 3752 host_makefile_frag="config/mh-mingw"
2d1e8239 3753 ;;
a0da8069
NN
3754 *-interix*)
3755 host_makefile_frag="config/mh-interix"
3756 ;;
3757 vax-*-ultrix2*)
3758 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3759 tentative_cc=gcc
3760 ;;
3761 *-*-solaris2*)
3762 host_makefile_frag="config/mh-solaris"
3763 ;;
3764 m68k-sun-sunos*)
3765 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3766 # without overflowing the jump tables (-J says to use a 32 bit table)
3767 tentative_cc="cc -J"
3768 ;;
da888c87 3769 hppa*-hp-hpux10*)
a0da8069 3770 tentative_cc="cc -Wp,-H256000"
da888c87 3771 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3772 ;;
da888c87
PB
3773 hppa*-hp-hpux* | hppa*-*-hiux*)
3774 tentative_cc="cc -Wp,-H256000"
3775 host_makefile_frag="config/mh-pa"
3776 ;;
3777 hppa*-*)
3778 host_makefile_frag="config/mh-pa"
3779 ;;
3780 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3781 tentative_cc="cc -Wp,-H256000"
3782 ;;
3783 rs6000-*-lynxos*)
3784 # /bin/cc is less than useful for our purposes. Always use GCC
3785 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3786 host_makefile_frag="config/mh-lynxrs6k"
3787 ;;
e552509b
ILT
3788 *-*-darwin*)
3789 host_makefile_frag="config/mh-darwin"
0df3d27f 3790 ;;
f6d183c0
PB
3791 powerpc-*-aix*)
3792 host_makefile_frag="config/mh-ppc-aix"
3793 ;;
3794 rs6000-*-aix*)
3795 host_makefile_frag="config/mh-ppc-aix"
3796 ;;
a0da8069
NN
3797 *-*-lynxos*)
3798 # /bin/cc is less than useful for our purposes. Always use GCC
3799 tentative_cc="/bin/gcc"
3800 ;;
3801 *-*-sysv4*)
3802 host_makefile_frag="config/mh-sysv4"
3803 ;;
fe69863c
DD
3804 # This is placed last to prevent interfering with the cases above.
3805 i[3456789]86-*-*)
3806 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3807 host_makefile_frag="config/mh-x86omitfp"
3808 ;;
a0da8069
NN
3809esac
3810fi
3811
9e07f89d
NN
3812# If we aren't going to be using gcc, see if we can extract a definition
3813# of CC from the fragment.
3814# Actually, use the 'pre-extracted' version above.
3815if test -z "${CC}" && test "${build}" = "${host}" ; then
3816 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3817 found=
3818 for dir in $PATH; do
3819 test -z "$dir" && dir=.
3820 if test -f $dir/gcc; then
3821 found=yes
3822 break
3823 fi
3824 done
3825 IFS="$save_ifs"
3826 if test -z "${found}" && test -n "${tentative_cc}" ; then
3827 CC=$tentative_cc
3828 fi
3829fi
3830
3831if test "${build}" != "${host}" ; then
1576798e
PB
3832 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3833 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3834 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3835 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3836 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3837 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3838 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3839 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3840 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3841 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3842 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3843 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3844 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3845else
3846 AR_FOR_BUILD="\$(AR)"
3847 AS_FOR_BUILD="\$(AS)"
512b7dfb 3848 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3849 CXX_FOR_BUILD="\$(CXX)"
3850 GCJ_FOR_BUILD="\$(GCJ)"
3851 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3852 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3853 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3854 LD_FOR_BUILD="\$(LD)"
3855 NM_FOR_BUILD="\$(NM)"
3856 RANLIB_FOR_BUILD="\$(RANLIB)"
3857 WINDRES_FOR_BUILD="\$(WINDRES)"
3858 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3859fi
3860
3861ac_ext=c
c6b750e1
DJ
3862ac_cpp='$CPP $CPPFLAGS'
3863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866if test -n "$ac_tool_prefix"; then
3867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3868set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870$as_echo_n "checking for $ac_word... " >&6; }
3871if test "${ac_cv_prog_CC+set}" = set; then :
3872 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3873else
3874 if test -n "$CC"; then
3875 ac_cv_prog_CC="$CC" # Let the user override the test.
3876else
3877as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3878for as_dir in $PATH
3879do
3880 IFS=$as_save_IFS
3881 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3884 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3886 break 2
3887 fi
3888done
81ecdfbb
RW
3889 done
3890IFS=$as_save_IFS
c6b750e1
DJ
3891
3892fi
3893fi
3894CC=$ac_cv_prog_CC
3895if test -n "$CC"; then
81ecdfbb
RW
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3897$as_echo "$CC" >&6; }
c6b750e1 3898else
81ecdfbb
RW
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900$as_echo "no" >&6; }
c6b750e1
DJ
3901fi
3902
81ecdfbb 3903
c6b750e1
DJ
3904fi
3905if test -z "$ac_cv_prog_CC"; then
3906 ac_ct_CC=$CC
6a9cf61e 3907 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3908set dummy gcc; ac_word=$2
81ecdfbb
RW
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3910$as_echo_n "checking for $ac_word... " >&6; }
3911if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3912 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3913else
3914 if test -n "$ac_ct_CC"; then
3915 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3916else
3917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918for as_dir in $PATH
3919do
3920 IFS=$as_save_IFS
3921 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3924 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3926 break 2
3927 fi
3928done
81ecdfbb
RW
3929 done
3930IFS=$as_save_IFS
c6b750e1
DJ
3931
3932fi
3933fi
3934ac_ct_CC=$ac_cv_prog_ac_ct_CC
3935if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3937$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3938else
81ecdfbb
RW
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940$as_echo "no" >&6; }
c6b750e1
DJ
3941fi
3942
81ecdfbb
RW
3943 if test "x$ac_ct_CC" = x; then
3944 CC=""
3945 else
3946 case $cross_compiling:$ac_tool_warned in
3947yes:)
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3950ac_tool_warned=yes ;;
3951esac
3952 CC=$ac_ct_CC
3953 fi
c6b750e1
DJ
3954else
3955 CC="$ac_cv_prog_CC"
3956fi
3957
3958if test -z "$CC"; then
81ecdfbb
RW
3959 if test -n "$ac_tool_prefix"; then
3960 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3961set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963$as_echo_n "checking for $ac_word... " >&6; }
3964if test "${ac_cv_prog_CC+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
9e07f89d
NN
3966else
3967 if test -n "$CC"; then
3968 ac_cv_prog_CC="$CC" # Let the user override the test.
3969else
c6b750e1
DJ
3970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971for as_dir in $PATH
3972do
3973 IFS=$as_save_IFS
3974 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3975 for ac_exec_ext in '' $ac_executable_extensions; do
3976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3977 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3979 break 2
3980 fi
3981done
81ecdfbb
RW
3982 done
3983IFS=$as_save_IFS
c6b750e1 3984
9e07f89d
NN
3985fi
3986fi
c6b750e1 3987CC=$ac_cv_prog_CC
9e07f89d 3988if test -n "$CC"; then
81ecdfbb
RW
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3990$as_echo "$CC" >&6; }
c6b750e1 3991else
81ecdfbb
RW
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993$as_echo "no" >&6; }
c6b750e1
DJ
3994fi
3995
c6b750e1 3996
81ecdfbb 3997 fi
c6b750e1 3998fi
9e07f89d
NN
3999if test -z "$CC"; then
4000 # Extract the first word of "cc", so it can be a program name with args.
4001set dummy cc; ac_word=$2
81ecdfbb
RW
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003$as_echo_n "checking for $ac_word... " >&6; }
4004if test "${ac_cv_prog_CC+set}" = set; then :
4005 $as_echo_n "(cached) " >&6
9e07f89d
NN
4006else
4007 if test -n "$CC"; then
4008 ac_cv_prog_CC="$CC" # Let the user override the test.
4009else
9e07f89d 4010 ac_prog_rejected=no
c6b750e1
DJ
4011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012for as_dir in $PATH
4013do
4014 IFS=$as_save_IFS
4015 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4016 for ac_exec_ext in '' $ac_executable_extensions; do
4017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4018 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4019 ac_prog_rejected=yes
4020 continue
4021 fi
4022 ac_cv_prog_CC="cc"
81ecdfbb 4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4024 break 2
4025 fi
4026done
81ecdfbb
RW
4027 done
4028IFS=$as_save_IFS
c6b750e1 4029
9e07f89d
NN
4030if test $ac_prog_rejected = yes; then
4031 # We found a bogon in the path, so make sure we never use it.
4032 set dummy $ac_cv_prog_CC
4033 shift
c6b750e1 4034 if test $# != 0; then
9e07f89d
NN
4035 # We chose a different compiler from the bogus one.
4036 # However, it has the same basename, so the bogon will be chosen
4037 # first if we set CC to just the basename; use the full file name.
4038 shift
c6b750e1 4039 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4040 fi
4041fi
4042fi
4043fi
c6b750e1 4044CC=$ac_cv_prog_CC
9e07f89d 4045if test -n "$CC"; then
81ecdfbb
RW
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4047$as_echo "$CC" >&6; }
9e07f89d 4048else
81ecdfbb
RW
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050$as_echo "no" >&6; }
9e07f89d
NN
4051fi
4052
81ecdfbb 4053
c6b750e1
DJ
4054fi
4055if test -z "$CC"; then
4056 if test -n "$ac_tool_prefix"; then
81ecdfbb 4057 for ac_prog in cl.exe
c6b750e1
DJ
4058 do
4059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4060set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062$as_echo_n "checking for $ac_word... " >&6; }
4063if test "${ac_cv_prog_CC+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
9e07f89d
NN
4065else
4066 if test -n "$CC"; then
4067 ac_cv_prog_CC="$CC" # Let the user override the test.
4068else
c6b750e1
DJ
4069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070for as_dir in $PATH
4071do
4072 IFS=$as_save_IFS
4073 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4074 for ac_exec_ext in '' $ac_executable_extensions; do
4075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4076 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4078 break 2
376a0e54 4079 fi
c6b750e1 4080done
81ecdfbb
RW
4081 done
4082IFS=$as_save_IFS
cac3d6c4 4083
c6b750e1
DJ
4084fi
4085fi
4086CC=$ac_cv_prog_CC
4087if test -n "$CC"; then
81ecdfbb
RW
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4089$as_echo "$CC" >&6; }
cac3d6c4 4090else
81ecdfbb
RW
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4092$as_echo "no" >&6; }
9e07f89d 4093fi
cac3d6c4 4094
81ecdfbb 4095
c6b750e1
DJ
4096 test -n "$CC" && break
4097 done
cac3d6c4 4098fi
c6b750e1
DJ
4099if test -z "$CC"; then
4100 ac_ct_CC=$CC
81ecdfbb 4101 for ac_prog in cl.exe
c6b750e1
DJ
4102do
4103 # Extract the first word of "$ac_prog", so it can be a program name with args.
4104set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4106$as_echo_n "checking for $ac_word... " >&6; }
4107if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4108 $as_echo_n "(cached) " >&6
cac3d6c4 4109else
c6b750e1
DJ
4110 if test -n "$ac_ct_CC"; then
4111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4112else
c6b750e1
DJ
4113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114for as_dir in $PATH
4115do
4116 IFS=$as_save_IFS
4117 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4118 for ac_exec_ext in '' $ac_executable_extensions; do
4119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4120 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4122 break 2
4123 fi
4124done
81ecdfbb
RW
4125 done
4126IFS=$as_save_IFS
c6b750e1 4127
cac3d6c4
CM
4128fi
4129fi
c6b750e1
DJ
4130ac_ct_CC=$ac_cv_prog_ac_ct_CC
4131if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4133$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4134else
81ecdfbb
RW
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4136$as_echo "no" >&6; }
cac3d6c4 4137fi
376a0e54 4138
81ecdfbb 4139
c6b750e1
DJ
4140 test -n "$ac_ct_CC" && break
4141done
4142
81ecdfbb
RW
4143 if test "x$ac_ct_CC" = x; then
4144 CC=""
4145 else
4146 case $cross_compiling:$ac_tool_warned in
4147yes:)
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4150ac_tool_warned=yes ;;
4151esac
4152 CC=$ac_ct_CC
4153 fi
c6b750e1
DJ
4154fi
4155
4156fi
4157
4158
81ecdfbb
RW
4159test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4161as_fn_error "no acceptable C compiler found in \$PATH
4162See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4163
4164# Provide some information about the compiler.
81ecdfbb
RW
4165$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4166set X $ac_compile
4167ac_compiler=$2
4168for ac_option in --version -v -V -qversion; do
4169 { { ac_try="$ac_compiler $ac_option >&5"
4170case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173esac
4174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175$as_echo "$ac_try_echo"; } >&5
4176 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4177 ac_status=$?
81ecdfbb
RW
4178 if test -s conftest.err; then
4179 sed '10a\
4180... rest of stderr output deleted ...
4181 10q' conftest.err >conftest.er1
4182 cat conftest.er1 >&5
4183 rm -f conftest.er1 conftest.err
4184 fi
4185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4186 test $ac_status = 0; }
4187done
c6b750e1 4188
81ecdfbb 4189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4190/* end confdefs.h. */
4191
4192int
4193main ()
4194{
4195
4196 ;
4197 return 0;
4198}
4199_ACEOF
4200ac_clean_files_save=$ac_clean_files
81ecdfbb 4201ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4202# Try to create an executable without -o first, disregard a.out.
4203# It will help us diagnose broken compilers, and finding out an intuition
4204# of exeext.
81ecdfbb
RW
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4206$as_echo_n "checking for C compiler default output file name... " >&6; }
4207ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4208
4209# The possible output files:
4210ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4211
4212ac_rmfiles=
4213for ac_file in $ac_files
4214do
4215 case $ac_file in
4216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4217 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4218 esac
4219done
4220rm -f $ac_rmfiles
4221
4222if { { ac_try="$ac_link_default"
4223case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226esac
4227eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4228$as_echo "$ac_try_echo"; } >&5
4229 (eval "$ac_link_default") 2>&5
c6b750e1 4230 ac_status=$?
81ecdfbb
RW
4231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4232 test $ac_status = 0; }; then :
4233 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4234# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4235# in a Makefile. We should not override ac_cv_exeext if it was cached,
4236# so that the user can short-circuit this test for compilers unknown to
4237# Autoconf.
4238for ac_file in $ac_files ''
c6b750e1
DJ
4239do
4240 test -f "$ac_file" || continue
4241 case $ac_file in
81ecdfbb 4242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4243 ;;
4244 [ab].out )
4245 # We found the default executable, but exeext='' is most
4246 # certainly right.
4247 break;;
4248 *.* )
81ecdfbb
RW
4249 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4250 then :; else
4251 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4252 fi
4253 # We set ac_cv_exeext here because the later test for it is not
4254 # safe: cross compilers may not add the suffix if given an `-o'
4255 # argument, so we may need to know it at that point already.
4256 # Even if this section looks crufty: it has the advantage of
4257 # actually working.
c6b750e1
DJ
4258 break;;
4259 * )
4260 break;;
4261 esac
4262done
81ecdfbb
RW
4263test "$ac_cv_exeext" = no && ac_cv_exeext=
4264
c6b750e1 4265else
81ecdfbb
RW
4266 ac_file=''
4267fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4269$as_echo "$ac_file" >&6; }
4270if test -z "$ac_file"; then :
4271 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4272sed 's/^/| /' conftest.$ac_ext >&5
4273
81ecdfbb
RW
4274{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4276{ as_fn_set_status 77
4277as_fn_error "C compiler cannot create executables
4278See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4279fi
c6b750e1 4280ac_exeext=$ac_cv_exeext
c6b750e1 4281
81ecdfbb 4282# Check that the compiler produces executables we can run. If not, either
c6b750e1 4283# the compiler is broken, or we cross compile.
81ecdfbb
RW
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4285$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4286# If not cross compiling, check that we can run a simple program.
4287if test "$cross_compiling" != yes; then
4288 if { ac_try='./$ac_file'
81ecdfbb
RW
4289 { { case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292esac
4293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294$as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_try") 2>&5
c6b750e1 4296 ac_status=$?
81ecdfbb
RW
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; }; }; then
c6b750e1
DJ
4299 cross_compiling=no
4300 else
4301 if test "$cross_compiling" = maybe; then
4302 cross_compiling=yes
4303 else
81ecdfbb
RW
4304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4306as_fn_error "cannot run C compiled programs.
c6b750e1 4307If you meant to cross compile, use \`--host'.
81ecdfbb 4308See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4309 fi
4310 fi
4311fi
81ecdfbb
RW
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4313$as_echo "yes" >&6; }
c6b750e1 4314
81ecdfbb 4315rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4316ac_clean_files=$ac_clean_files_save
81ecdfbb 4317# Check that the compiler produces executables we can run. If not, either
c6b750e1 4318# the compiler is broken, or we cross compile.
81ecdfbb
RW
4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4320$as_echo_n "checking whether we are cross compiling... " >&6; }
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4322$as_echo "$cross_compiling" >&6; }
4323
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4325$as_echo_n "checking for suffix of executables... " >&6; }
4326if { { ac_try="$ac_link"
4327case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330esac
4331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4332$as_echo "$ac_try_echo"; } >&5
4333 (eval "$ac_link") 2>&5
c6b750e1 4334 ac_status=$?
81ecdfbb
RW
4335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4336 test $ac_status = 0; }; then :
c6b750e1
DJ
4337 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4338# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4339# work properly (i.e., refer to `conftest.exe'), while it won't with
4340# `rm'.
4341for ac_file in conftest.exe conftest conftest.*; do
4342 test -f "$ac_file" || continue
4343 case $ac_file in
81ecdfbb 4344 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4345 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4346 break;;
4347 * ) break;;
4348 esac
4349done
4350else
81ecdfbb
RW
4351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4353as_fn_error "cannot compute suffix of executables: cannot compile and link
4354See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4355fi
c6b750e1 4356rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4358$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4359
4360rm -f conftest.$ac_ext
4361EXEEXT=$ac_cv_exeext
4362ac_exeext=$EXEEXT
81ecdfbb
RW
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4364$as_echo_n "checking for suffix of object files... " >&6; }
4365if test "${ac_cv_objext+set}" = set; then :
4366 $as_echo_n "(cached) " >&6
c6b750e1 4367else
81ecdfbb 4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4369/* end confdefs.h. */
4370
4371int
4372main ()
4373{
4374
4375 ;
4376 return 0;
4377}
4378_ACEOF
4379rm -f conftest.o conftest.obj
81ecdfbb
RW
4380if { { ac_try="$ac_compile"
4381case "(($ac_try" in
4382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4383 *) ac_try_echo=$ac_try;;
4384esac
4385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4386$as_echo "$ac_try_echo"; } >&5
4387 (eval "$ac_compile") 2>&5
c6b750e1 4388 ac_status=$?
81ecdfbb
RW
4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }; then :
4391 for ac_file in conftest.o conftest.obj conftest.*; do
4392 test -f "$ac_file" || continue;
c6b750e1 4393 case $ac_file in
81ecdfbb 4394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4396 break;;
4397 esac
4398done
cac3d6c4 4399else
81ecdfbb 4400 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4401sed 's/^/| /' conftest.$ac_ext >&5
4402
81ecdfbb
RW
4403{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4405as_fn_error "cannot compute suffix of object files: cannot compile
4406See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4407fi
c6b750e1
DJ
4408rm -f conftest.$ac_cv_objext conftest.$ac_ext
4409fi
81ecdfbb
RW
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4411$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4412OBJEXT=$ac_cv_objext
4413ac_objext=$OBJEXT
81ecdfbb
RW
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4415$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4416if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4417 $as_echo_n "(cached) " >&6
c6b750e1 4418else
81ecdfbb 4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4420/* end confdefs.h. */
4421
4422int
4423main ()
4424{
4425#ifndef __GNUC__
4426 choke me
4427#endif
4428
4429 ;
4430 return 0;
4431}
4432_ACEOF
81ecdfbb 4433if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4434 ac_compiler_gnu=yes
4435else
81ecdfbb 4436 ac_compiler_gnu=no
c6b750e1 4437fi
81ecdfbb 4438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4439ac_cv_c_compiler_gnu=$ac_compiler_gnu
4440
4441fi
81ecdfbb
RW
4442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4443$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4444if test $ac_compiler_gnu = yes; then
4445 GCC=yes
4446else
4447 GCC=
4448fi
c6b750e1
DJ
4449ac_test_CFLAGS=${CFLAGS+set}
4450ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4452$as_echo_n "checking whether $CC accepts -g... " >&6; }
4453if test "${ac_cv_prog_cc_g+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
4455else
4456 ac_save_c_werror_flag=$ac_c_werror_flag
4457 ac_c_werror_flag=yes
4458 ac_cv_prog_cc_g=no
4459 CFLAGS="-g"
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4461/* end confdefs.h. */
4462
4463int
4464main ()
4465{
4466
4467 ;
4468 return 0;
4469}
4470_ACEOF
81ecdfbb 4471if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4472 ac_cv_prog_cc_g=yes
4473else
81ecdfbb
RW
4474 CFLAGS=""
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h. */
4477
4478int
4479main ()
4480{
4481
4482 ;
4483 return 0;
4484}
4485_ACEOF
4486if ac_fn_c_try_compile "$LINENO"; then :
4487
4488else
4489 ac_c_werror_flag=$ac_save_c_werror_flag
4490 CFLAGS="-g"
4491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492/* end confdefs.h. */
cac3d6c4 4493
81ecdfbb
RW
4494int
4495main ()
4496{
4497
4498 ;
4499 return 0;
4500}
4501_ACEOF
4502if ac_fn_c_try_compile "$LINENO"; then :
4503 ac_cv_prog_cc_g=yes
4504fi
4505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4506fi
81ecdfbb 4507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4508fi
81ecdfbb
RW
4509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510 ac_c_werror_flag=$ac_save_c_werror_flag
4511fi
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4513$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4514if test "$ac_test_CFLAGS" = set; then
c6b750e1 4515 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4516elif test $ac_cv_prog_cc_g = yes; then
4517 if test "$GCC" = yes; then
4518 CFLAGS="-g -O2"
4519 else
4520 CFLAGS="-g"
4521 fi
4522else
4523 if test "$GCC" = yes; then
4524 CFLAGS="-O2"
4525 else
4526 CFLAGS=
4527 fi
4528fi
81ecdfbb
RW
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4530$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4531if test "${ac_cv_prog_cc_c89+set}" = set; then :
4532 $as_echo_n "(cached) " >&6
c6b750e1 4533else
81ecdfbb 4534 ac_cv_prog_cc_c89=no
c6b750e1 4535ac_save_CC=$CC
81ecdfbb 4536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4537/* end confdefs.h. */
4538#include <stdarg.h>
4539#include <stdio.h>
4540#include <sys/types.h>
4541#include <sys/stat.h>
4542/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4543struct buf { int x; };
4544FILE * (*rcsopen) (struct buf *, struct stat *, int);
4545static char *e (p, i)
4546 char **p;
4547 int i;
4548{
4549 return p[i];
4550}
4551static char *f (char * (*g) (char **, int), char **p, ...)
4552{
4553 char *s;
4554 va_list v;
4555 va_start (v,p);
4556 s = g (p, va_arg (v,int));
4557 va_end (v);
4558 return s;
4559}
4560
4561/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4562 function prototypes and stuff, but not '\xHH' hex character constants.
4563 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4564 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4565 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4566 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4567 that's true only with -std. */
c6b750e1
DJ
4568int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4569
81ecdfbb
RW
4570/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4571 inside strings and character constants. */
4572#define FOO(x) 'x'
4573int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4574
c6b750e1
DJ
4575int test (int i, double x);
4576struct s1 {int (*f) (int a);};
4577struct s2 {int (*f) (double a);};
4578int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4579int argc;
4580char **argv;
4581int
4582main ()
4583{
4584return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4585 ;
4586 return 0;
4587}
4588_ACEOF
81ecdfbb
RW
4589for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4590 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4591do
4592 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4593 if ac_fn_c_try_compile "$LINENO"; then :
4594 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4595fi
81ecdfbb
RW
4596rm -f core conftest.err conftest.$ac_objext
4597 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4598done
81ecdfbb 4599rm -f conftest.$ac_ext
c6b750e1
DJ
4600CC=$ac_save_CC
4601
4602fi
81ecdfbb
RW
4603# AC_CACHE_VAL
4604case "x$ac_cv_prog_cc_c89" in
4605 x)
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4607$as_echo "none needed" >&6; } ;;
4608 xno)
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4610$as_echo "unsupported" >&6; } ;;
c6b750e1 4611 *)
81ecdfbb
RW
4612 CC="$CC $ac_cv_prog_cc_c89"
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4614$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4615esac
81ecdfbb 4616if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4617
c6b750e1
DJ
4618fi
4619
c6b750e1
DJ
4620ac_ext=c
4621ac_cpp='$CPP $CPPFLAGS'
4622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4624ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4625
81ecdfbb 4626ac_ext=cpp
18f6b6ee
PB
4627ac_cpp='$CXXCPP $CPPFLAGS'
4628ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4631if test -z "$CXX"; then
4632 if test -n "$CCC"; then
4633 CXX=$CCC
4634 else
4635 if test -n "$ac_tool_prefix"; then
4636 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4637 do
4638 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4639set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4641$as_echo_n "checking for $ac_word... " >&6; }
4642if test "${ac_cv_prog_CXX+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4644else
4645 if test -n "$CXX"; then
4646 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4647else
4648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649for as_dir in $PATH
4650do
4651 IFS=$as_save_IFS
4652 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4655 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4657 break 2
4658 fi
4659done
81ecdfbb
RW
4660 done
4661IFS=$as_save_IFS
512b7dfb 4662
18f6b6ee
PB
4663fi
4664fi
4665CXX=$ac_cv_prog_CXX
4666if test -n "$CXX"; then
81ecdfbb
RW
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4668$as_echo "$CXX" >&6; }
18f6b6ee 4669else
81ecdfbb
RW
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4671$as_echo "no" >&6; }
18f6b6ee
PB
4672fi
4673
81ecdfbb 4674
18f6b6ee
PB
4675 test -n "$CXX" && break
4676 done
4677fi
4678if test -z "$CXX"; then
4679 ac_ct_CXX=$CXX
81ecdfbb 4680 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4681do
4682 # Extract the first word of "$ac_prog", so it can be a program name with args.
4683set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4685$as_echo_n "checking for $ac_word... " >&6; }
4686if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4688else
4689 if test -n "$ac_ct_CXX"; then
4690 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4691else
4692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4693for as_dir in $PATH
4694do
4695 IFS=$as_save_IFS
4696 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4697 for ac_exec_ext in '' $ac_executable_extensions; do
4698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4699 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4701 break 2
512b7dfb 4702 fi
18f6b6ee 4703done
81ecdfbb
RW
4704 done
4705IFS=$as_save_IFS
512b7dfb 4706
18f6b6ee
PB
4707fi
4708fi
4709ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4710if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4712$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4713else
81ecdfbb
RW
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715$as_echo "no" >&6; }
18f6b6ee
PB
4716fi
4717
81ecdfbb 4718
18f6b6ee
PB
4719 test -n "$ac_ct_CXX" && break
4720done
18f6b6ee 4721
81ecdfbb
RW
4722 if test "x$ac_ct_CXX" = x; then
4723 CXX="g++"
4724 else
4725 case $cross_compiling:$ac_tool_warned in
4726yes:)
4727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4729ac_tool_warned=yes ;;
4730esac
4731 CXX=$ac_ct_CXX
4732 fi
18f6b6ee
PB
4733fi
4734
81ecdfbb
RW
4735 fi
4736fi
18f6b6ee 4737# Provide some information about the compiler.
81ecdfbb
RW
4738$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4739set X $ac_compile
4740ac_compiler=$2
4741for ac_option in --version -v -V -qversion; do
4742 { { ac_try="$ac_compiler $ac_option >&5"
4743case "(($ac_try" in
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4746esac
4747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4748$as_echo "$ac_try_echo"; } >&5
4749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4750 ac_status=$?
81ecdfbb
RW
4751 if test -s conftest.err; then
4752 sed '10a\
4753... rest of stderr output deleted ...
4754 10q' conftest.err >conftest.er1
4755 cat conftest.er1 >&5
4756 rm -f conftest.er1 conftest.err
4757 fi
4758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4759 test $ac_status = 0; }
4760done
18f6b6ee 4761
81ecdfbb
RW
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4763$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4764if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
18f6b6ee 4766else
81ecdfbb 4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4768/* end confdefs.h. */
4769
4770int
4771main ()
4772{
4773#ifndef __GNUC__
4774 choke me
4775#endif
4776
4777 ;
4778 return 0;
4779}
4780_ACEOF
81ecdfbb 4781if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4782 ac_compiler_gnu=yes
4783else
81ecdfbb 4784 ac_compiler_gnu=no
18f6b6ee 4785fi
81ecdfbb 4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4787ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4788
4789fi
81ecdfbb
RW
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4791$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4792if test $ac_compiler_gnu = yes; then
4793 GXX=yes
4794else
4795 GXX=
4796fi
18f6b6ee
PB
4797ac_test_CXXFLAGS=${CXXFLAGS+set}
4798ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4800$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4801if test "${ac_cv_prog_cxx_g+set}" = set; then :
4802 $as_echo_n "(cached) " >&6
4803else
4804 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4805 ac_cxx_werror_flag=yes
4806 ac_cv_prog_cxx_g=no
4807 CXXFLAGS="-g"
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4809/* end confdefs.h. */
4810
4811int
4812main ()
4813{
4814
4815 ;
4816 return 0;
4817}
4818_ACEOF
81ecdfbb 4819if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4820 ac_cv_prog_cxx_g=yes
4821else
81ecdfbb
RW
4822 CXXFLAGS=""
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4824/* end confdefs.h. */
81ecdfbb 4825
18f6b6ee
PB
4826int
4827main ()
4828{
81ecdfbb 4829
18f6b6ee
PB
4830 ;
4831 return 0;
4832}
4833_ACEOF
81ecdfbb 4834if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4835
81ecdfbb
RW
4836else
4837 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4838 CXXFLAGS="-g"
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4840/* end confdefs.h. */
81ecdfbb 4841
18f6b6ee
PB
4842int
4843main ()
4844{
81ecdfbb 4845
18f6b6ee
PB
4846 ;
4847 return 0;
4848}
4849_ACEOF
81ecdfbb
RW
4850if ac_fn_cxx_try_compile "$LINENO"; then :
4851 ac_cv_prog_cxx_g=yes
18f6b6ee 4852fi
81ecdfbb
RW
4853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4854fi
4855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856fi
4857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4859fi
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4861$as_echo "$ac_cv_prog_cxx_g" >&6; }
4862if test "$ac_test_CXXFLAGS" = set; then
4863 CXXFLAGS=$ac_save_CXXFLAGS
4864elif test $ac_cv_prog_cxx_g = yes; then
4865 if test "$GXX" = yes; then
4866 CXXFLAGS="-g -O2"
4867 else
4868 CXXFLAGS="-g"
4869 fi
4870else
4871 if test "$GXX" = yes; then
4872 CXXFLAGS="-O2"
4873 else
4874 CXXFLAGS=
4875 fi
18f6b6ee 4876fi
18f6b6ee
PB
4877ac_ext=c
4878ac_cpp='$CPP $CPPFLAGS'
4879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882
4883
4884# We must set the default linker to the linker used by gcc for the correct
4885# operation of libtool. If LD is not defined and we are using gcc, try to
4886# set the LD default to the ld used by gcc.
4887if test -z "$LD"; then
4888 if test "$GCC" = yes; then
4889 case $build in
4890 *-*-mingw*)
4891 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4892 *)
4893 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4894 esac
4895 case $gcc_prog_ld in
4896 # Accept absolute paths.
4897 [\\/]* | [A-Za-z]:[\\/]*)
4898 LD="$gcc_prog_ld" ;;
4899 esac
4900 fi
512b7dfb
PB
4901fi
4902
4903
4904
4905
c6b750e1 4906if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4907 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4908set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910$as_echo_n "checking for $ac_word... " >&6; }
4911if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
9e07f89d 4913else
512b7dfb
PB
4914 if test -n "$GNATBIND"; then
4915 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4916else
c6b750e1
DJ
4917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in $PATH
4919do
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4924 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4926 break 2
4927 fi
4928done
81ecdfbb
RW
4929 done
4930IFS=$as_save_IFS
c6b750e1 4931
9e07f89d
NN
4932fi
4933fi
512b7dfb
PB
4934GNATBIND=$ac_cv_prog_GNATBIND
4935if test -n "$GNATBIND"; then
81ecdfbb
RW
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4937$as_echo "$GNATBIND" >&6; }
9e07f89d 4938else
81ecdfbb
RW
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940$as_echo "no" >&6; }
9e07f89d
NN
4941fi
4942
81ecdfbb 4943
c6b750e1 4944fi
512b7dfb
PB
4945if test -z "$ac_cv_prog_GNATBIND"; then
4946 ac_ct_GNATBIND=$GNATBIND
4947 # Extract the first word of "gnatbind", so it can be a program name with args.
4948set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950$as_echo_n "checking for $ac_word... " >&6; }
4951if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
9e07f89d 4953else
512b7dfb
PB
4954 if test -n "$ac_ct_GNATBIND"; then
4955 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4956else
c6b750e1
DJ
4957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH
4959do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4964 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4966 break 2
4967 fi
4968done
81ecdfbb
RW
4969 done
4970IFS=$as_save_IFS
c6b750e1 4971
9e07f89d
NN
4972fi
4973fi
512b7dfb
PB
4974ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4975if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4977$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4978else
81ecdfbb
RW
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980$as_echo "no" >&6; }
9e07f89d
NN
4981fi
4982
81ecdfbb
RW
4983 if test "x$ac_ct_GNATBIND" = x; then
4984 GNATBIND="no"
4985 else
4986 case $cross_compiling:$ac_tool_warned in
4987yes:)
4988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4990ac_tool_warned=yes ;;
4991esac
4992 GNATBIND=$ac_ct_GNATBIND
4993 fi
24ff9987 4994else
512b7dfb 4995 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4996fi
4997
7df2cd5d 4998if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4999 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5000set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002$as_echo_n "checking for $ac_word... " >&6; }
5003if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
7df2cd5d 5005else
512b7dfb
PB
5006 if test -n "$GNATMAKE"; then
5007 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5008else
5009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5010for as_dir in $PATH
5011do
5012 IFS=$as_save_IFS
5013 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5014 for ac_exec_ext in '' $ac_executable_extensions; do
5015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5016 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5018 break 2
5019 fi
5020done
81ecdfbb
RW
5021 done
5022IFS=$as_save_IFS
7df2cd5d
PB
5023
5024fi
5025fi
512b7dfb
PB
5026GNATMAKE=$ac_cv_prog_GNATMAKE
5027if test -n "$GNATMAKE"; then
81ecdfbb
RW
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5029$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5030else
81ecdfbb
RW
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032$as_echo "no" >&6; }
7df2cd5d
PB
5033fi
5034
81ecdfbb 5035
7df2cd5d 5036fi
512b7dfb
PB
5037if test -z "$ac_cv_prog_GNATMAKE"; then
5038 ac_ct_GNATMAKE=$GNATMAKE
5039 # Extract the first word of "gnatmake", so it can be a program name with args.
5040set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5042$as_echo_n "checking for $ac_word... " >&6; }
5043if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5044 $as_echo_n "(cached) " >&6
7df2cd5d 5045else
512b7dfb
PB
5046 if test -n "$ac_ct_GNATMAKE"; then
5047 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5048else
5049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050for as_dir in $PATH
5051do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5056 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5058 break 2
5059 fi
5060done
81ecdfbb
RW
5061 done
5062IFS=$as_save_IFS
7df2cd5d 5063
7df2cd5d
PB
5064fi
5065fi
512b7dfb
PB
5066ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5067if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5069$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5070else
81ecdfbb
RW
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072$as_echo "no" >&6; }
7df2cd5d
PB
5073fi
5074
81ecdfbb
RW
5075 if test "x$ac_ct_GNATMAKE" = x; then
5076 GNATMAKE="no"
5077 else
5078 case $cross_compiling:$ac_tool_warned in
5079yes:)
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5082ac_tool_warned=yes ;;
5083esac
5084 GNATMAKE=$ac_ct_GNATMAKE
5085 fi
7df2cd5d 5086else
512b7dfb 5087 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5088fi
5089
81ecdfbb
RW
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5091$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5092if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5093 $as_echo_n "(cached) " >&6
9e07f89d
NN
5094else
5095 cat >conftest.adb <<EOF
5096procedure conftest is begin null; end conftest;
5097EOF
5098acx_cv_cc_gcc_supports_ada=no
5099# There is a bug in old released versions of GCC which causes the
5100# driver to exit successfully when the appropriate language module
5101# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5102# Therefore we must check for the error message as well as an
5103# unsuccessful exit.
b8908782
DD
5104# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5105# given a .adb file, but produce no object file. So we must check
5106# if an object file was really produced to guard against this.
9e07f89d 5107errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5108if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5109 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5110fi
5111rm -f conftest.*
5112fi
81ecdfbb
RW
5113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5114$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5115
512b7dfb 5116if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5117 have_gnat=yes
5118else
5119 have_gnat=no
5120fi
5121
81ecdfbb
RW
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5123$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5124if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
b8908782
DD
5126else
5127 echo abfoo >t1
5128 echo cdfoo >t2
5129 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5130 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5131 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5132 :
5133 else
5134 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5135 fi
5136 fi
b8908782
DD
5137 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5138 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5139 :
b8908782
DD
5140 else
5141 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5142 fi
5143 fi
5144 rm t1 t2
5145
5146fi
81ecdfbb
RW
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5148$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5149do_compare="$gcc_cv_prog_cmp_skip"
5150
5151
9e07f89d 5152
e8a5fa9c 5153# See if we are building gcc with C++.
81ecdfbb
RW
5154# Check whether --enable-build-with-cxx was given.
5155if test "${enable_build_with_cxx+set}" = set; then :
5156 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5157else
5158 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5159fi
5160
e8a5fa9c 5161
d5f2ee2e
KG
5162# Used for setting $lt_cv_objdir
5163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5164$as_echo_n "checking for objdir... " >&6; }
5165if test "${lt_cv_objdir+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5167else
5168 rm -f .libs 2>/dev/null
5169mkdir .libs 2>/dev/null
5170if test -d .libs; then
5171 lt_cv_objdir=.libs
5172else
5173 # MS-DOS does not allow filenames that begin with a dot.
5174 lt_cv_objdir=_libs
5175fi
5176rmdir .libs 2>/dev/null
5177fi
5178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5179$as_echo "$lt_cv_objdir" >&6; }
5180objdir=$lt_cv_objdir
5181
5182
5183
5184
5185
5186cat >>confdefs.h <<_ACEOF
5187#define LT_OBJDIR "$lt_cv_objdir/"
5188_ACEOF
5189
5190
5191
e8a5fa9c 5192# Check for GMP, MPFR and MPC
d9b76ff9 5193gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5194gmpinc=
4b900473 5195have_gmp=no
e8a5fa9c
RW
5196
5197# Specify a location for mpc
5198# check for this first so it ends up on the link line before mpfr.
5199
81ecdfbb
RW
5200# Check whether --with-mpc was given.
5201if test "${with_mpc+set}" = set; then :
5202 withval=$with_mpc;
5203fi
e8a5fa9c 5204
e8a5fa9c 5205
e552509b 5206# Check whether --with-mpc-include was given.
81ecdfbb
RW
5207if test "${with_mpc_include+set}" = set; then :
5208 withval=$with_mpc_include;
5209fi
e8a5fa9c 5210
e8a5fa9c 5211
e552509b 5212# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5213if test "${with_mpc_lib+set}" = set; then :
5214 withval=$with_mpc_lib;
5215fi
e8a5fa9c 5216
e8a5fa9c
RW
5217
5218if test "x$with_mpc" != x; then
d9b76ff9
KG
5219 gmplibs="-L$with_mpc/lib $gmplibs"
5220 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5221fi
5222if test "x$with_mpc_include" != x; then
d9b76ff9 5223 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5224fi
5225if test "x$with_mpc_lib" != x; then
d9b76ff9 5226 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5227fi
5228if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5229 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5230 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5231 # Do not test the mpc version. Assume that it is sufficient, since
5232 # it is in the source tree, and the library has not been built yet
5233 # but it would be included on the link line in the version check below
5234 # hence making the test fail.
d9b76ff9 5235 have_gmp=yes
e8a5fa9c 5236fi
4b900473 5237
11b04d1f
DD
5238# Specify a location for mpfr
5239# check for this first so it ends up on the link line before gmp.
c6b750e1 5240
81ecdfbb
RW
5241# Check whether --with-mpfr-dir was given.
5242if test "${with_mpfr_dir+set}" = set; then :
5243 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5244Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5245fi
5246
11b04d1f
DD
5247
5248
81ecdfbb
RW
5249# Check whether --with-mpfr was given.
5250if test "${with_mpfr+set}" = set; then :
5251 withval=$with_mpfr;
5252fi
c6b750e1 5253
11b04d1f 5254
e552509b 5255# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5256if test "${with_mpfr_include+set}" = set; then :
5257 withval=$with_mpfr_include;
5258fi
c6b750e1 5259
8a0d8a5c 5260
e552509b 5261# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5262if test "${with_mpfr_lib+set}" = set; then :
5263 withval=$with_mpfr_lib;
5264fi
8a0d8a5c 5265
11b04d1f
DD
5266
5267if test "x$with_mpfr" != x; then
5268 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5269 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5270fi
8a0d8a5c 5271if test "x$with_mpfr_include" != x; then
d9b76ff9 5272 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5273fi
5274if test "x$with_mpfr_lib" != x; then
5275 gmplibs="-L$with_mpfr_lib $gmplibs"
5276fi
4b900473 5277if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5278 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5279 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5280 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5281 # Do not test the mpfr version. Assume that it is sufficient, since
5282 # it is in the source tree, and the library has not been built yet
5283 # but it would be included on the link line in the version check below
5284 # hence making the test fail.
5285 have_gmp=yes
5286fi
11b04d1f 5287
4b1cb4fe 5288# Specify a location for gmp
c6b750e1 5289
81ecdfbb
RW
5290# Check whether --with-gmp-dir was given.
5291if test "${with_gmp_dir+set}" = set; then :
5292 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5293Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5294fi
5295
4b1cb4fe
DD
5296
5297
81ecdfbb
RW
5298# Check whether --with-gmp was given.
5299if test "${with_gmp+set}" = set; then :
5300 withval=$with_gmp;
5301fi
c6b750e1 5302
4b1cb4fe 5303
e552509b 5304# Check whether --with-gmp-include was given.
81ecdfbb
RW
5305if test "${with_gmp_include+set}" = set; then :
5306 withval=$with_gmp_include;
5307fi
c6b750e1 5308
8a0d8a5c 5309
e552509b 5310# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5311if test "${with_gmp_lib+set}" = set; then :
5312 withval=$with_gmp_lib;
5313fi
8a0d8a5c
PB
5314
5315
4b1cb4fe 5316
11b04d1f
DD
5317if test "x$with_gmp" != x; then
5318 gmplibs="-L$with_gmp/lib $gmplibs"
5319 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5320fi
8a0d8a5c
PB
5321if test "x$with_gmp_include" != x; then
5322 gmpinc="-I$with_gmp_include $gmpinc"
5323fi
5324if test "x$with_gmp_lib" != x; then
5325 gmplibs="-L$with_gmp_lib $gmplibs"
5326fi
4b900473 5327if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5328 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5329 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5330 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5331 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5332 # Do not test the gmp version. Assume that it is sufficient, since
5333 # it is in the source tree, and the library has not been built yet
5334 # but it would be included on the link line in the version check below
5335 # hence making the test fail.
5336 have_gmp=yes
5337fi
4b1cb4fe 5338
ceb92e78 5339if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5340 have_gmp=yes
5341 saved_CFLAGS="$CFLAGS"
5342 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5343 # Check for the recommended and required versions of GMP.
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5345$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5346
5347cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5348/* end confdefs.h. */
5349#include "gmp.h"
5350int
5351main ()
5352{
5353
5354 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5355 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5356 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5357 choke me
5358 #endif
5359
5360 ;
5361 return 0;
5362}
5363_ACEOF
5364if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5366/* end confdefs.h. */
a6b5846e 5367#include <gmp.h>
c6b750e1
DJ
5368int
5369main ()
5370{
4b1cb4fe 5371
a6b5846e
KG
5372 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5373 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5374 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5375 choke me
5376 #endif
c6b750e1
DJ
5377
5378 ;
5379 return 0;
5380}
5381_ACEOF
81ecdfbb
RW
5382if ac_fn_c_try_compile "$LINENO"; then :
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5384$as_echo "yes" >&6; }
a6b5846e
KG
5385else
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5387$as_echo "buggy but acceptable" >&6; }
5388fi
5389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5390else
81ecdfbb
RW
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5393fi
81ecdfbb 5394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5395
e8a5fa9c 5396 # If we have GMP, check the MPFR version.
4b900473 5397 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5398 # Check for the recommended and required versions of MPFR.
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5400$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5402/* end confdefs.h. */
9b134994 5403#include <gmp.h>
4b900473 5404 #include <mpfr.h>
c6b750e1
DJ
5405int
5406main ()
5407{
9b134994 5408
ef699244 5409 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5410 choke me
5411 #endif
c6b750e1
DJ
5412
5413 ;
5414 return 0;
5415}
5416_ACEOF
81ecdfbb
RW
5417if ac_fn_c_try_compile "$LINENO"; then :
5418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5419/* end confdefs.h. */
4b1cb4fe 5420#include <gmp.h>
4b900473 5421 #include <mpfr.h>
c6b750e1
DJ
5422int
5423main ()
5424{
9dbaa842 5425
a6b5846e 5426 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5427 choke me
5428 #endif
e8a5fa9c
RW
5429
5430 ;
5431 return 0;
5432}
5433_ACEOF
81ecdfbb
RW
5434if ac_fn_c_try_compile "$LINENO"; then :
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5436$as_echo "yes" >&6; }
e8a5fa9c 5437else
81ecdfbb
RW
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5439$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5440fi
81ecdfbb 5441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5442else
81ecdfbb
RW
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5445fi
81ecdfbb 5446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5447 fi
5448
5449 # Check for the MPC header version.
d9b76ff9 5450 if test x"$have_gmp" = xyes ; then
a6b5846e 5451 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5453$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5455/* end confdefs.h. */
5456#include <mpc.h>
5457int
5458main ()
5459{
5460
a6b5846e
KG
5461 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5462 choke me
5463 #endif
5464
5465 ;
5466 return 0;
5467}
5468_ACEOF
5469if ac_fn_c_try_compile "$LINENO"; then :
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h. */
5472#include <mpc.h>
5473int
5474main ()
5475{
5476
5477 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5478 choke me
5479 #endif
5480
5481 ;
5482 return 0;
5483}
5484_ACEOF
81ecdfbb
RW
5485if ac_fn_c_try_compile "$LINENO"; then :
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5487$as_echo "yes" >&6; }
a6b5846e
KG
5488else
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5490$as_echo "buggy but acceptable" >&6; }
5491fi
5492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5493else
81ecdfbb 5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5495$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5496fi
81ecdfbb 5497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5498 fi
5499
5500 # Now check the MPFR library.
5501 if test x"$have_gmp" = xyes; then
5502 saved_LIBS="$LIBS"
5503 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5505$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5507/* end confdefs.h. */
d9b76ff9 5508#include <mpc.h>
e8a5fa9c
RW
5509int
5510main ()
5511{
5512
5513 mpfr_t n;
5514 mpfr_t x;
d9b76ff9 5515 mpc_t c;
e8a5fa9c
RW
5516 int t;
5517 mpfr_init (n);
5518 mpfr_init (x);
5519 mpfr_atan2 (n, n, x, GMP_RNDN);
5520 mpfr_erfc (n, x, GMP_RNDN);
5521 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5522 mpfr_clear(n);
5523 mpfr_clear(x);
5524 mpc_init2 (c, 53);
5525 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5526 mpc_cosh (c, c, MPC_RNDNN);
5527 mpc_pow (c, c, c, MPC_RNDNN);
5528 mpc_acosh (c, c, MPC_RNDNN);
5529 mpc_clear (c);
c6b750e1
DJ
5530
5531 ;
5532 return 0;
5533}
5534_ACEOF
81ecdfbb
RW
5535if ac_fn_c_try_link "$LINENO"; then :
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5537$as_echo "yes" >&6; }
c6b750e1 5538else
81ecdfbb
RW
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5541fi
81ecdfbb
RW
5542rm -f core conftest.err conftest.$ac_objext \
5543 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5544 LIBS="$saved_LIBS"
5545 fi
5546
4b900473 5547 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5548
a6b5846e
KG
5549# The library versions listed in the error message below should match
5550# the HARD-minimums enforced above.
4b900473 5551 if test x$have_gmp != xyes; then
a6b5846e 5552 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5553Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5554their locations. Source code for these libraries can be found at
5555their respective hosting sites as well as at
5556ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5557http://gcc.gnu.org/install/prerequisites.html for additional info. If
5558you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5559make sure that you have installed both the libraries and the header
5560files. They may be located in separate packages." "$LINENO" 5
4b900473 5561 fi
9dbaa842
DD
5562fi
5563
e8a5fa9c
RW
5564# Flags needed for both GMP, MPFR and/or MPC.
5565
5566
5567
4b1cb4fe
DD
5568
5569
5570
29383458
JM
5571# Allow host libstdc++ to be specified for static linking with PPL.
5572
81ecdfbb
RW
5573# Check whether --with-host-libstdcxx was given.
5574if test "${with_host_libstdcxx+set}" = set; then :
5575 withval=$with_host_libstdcxx;
5576fi
29383458 5577
29383458
JM
5578
5579case $with_host_libstdcxx in
5580 no|yes)
81ecdfbb 5581 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5582 ;;
5583esac
e28c595f 5584
e8a5fa9c
RW
5585# Linker flags to use for stage1 or when not boostrapping.
5586
81ecdfbb
RW
5587# Check whether --with-stage1-ldflags was given.
5588if test "${with_stage1_ldflags+set}" = set; then :
5589 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5590 stage1_ldflags=
5591 else
5592 stage1_ldflags=$withval
5593 fi
5594else
5595 stage1_ldflags=
81ecdfbb
RW
5596fi
5597
e8a5fa9c
RW
5598
5599
5600# Libraries to use for stage1 or when not bootstrapping.
5601
81ecdfbb
RW
5602# Check whether --with-stage1-libs was given.
5603if test "${with_stage1_libs+set}" = set; then :
5604 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5605 stage1_libs=
5606 else
5607 stage1_libs=$withval
5608 fi
5609else
5610 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5611fi
5612
e8a5fa9c
RW
5613
5614
e8a5fa9c
RW
5615# Libraries to use for stage2 and later builds. This defaults to the
5616# argument passed to --with-host-libstdcxx.
5617
81ecdfbb
RW
5618# Check whether --with-boot-libs was given.
5619if test "${with_boot_libs+set}" = set; then :
5620 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5621 poststage1_libs=
5622 else
5623 poststage1_libs=$withval
5624 fi
5625else
5626 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5627fi
5628
e8a5fa9c
RW
5629
5630
143754cd
NC
5631# Linker flags to use for stage2 and later builds.
5632
5633# Check whether --with-boot-ldflags was given.
5634if test "${with_boot_ldflags+set}" = set; then :
5635 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5636 poststage1_ldflags=
5637 else
5638 poststage1_ldflags=$withval
5639 fi
5640else
5641 poststage1_ldflags=
4f11b223
ILT
5642 # In stages 2 and 3, default to linking libstdc++ and libgcc
5643 # statically. But if the user explicitly specified the libraries to
5644 # use, trust that they are doing what they want.
5645 if test "$poststage1_libs" = ""; then
143754cd
NC
5646 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5647 fi
5648fi
5649
5650
5651
e28c595f 5652# Check for PPL
e8a5fa9c 5653ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5654pplinc=
5655
5656
81ecdfbb
RW
5657# Check whether --with-ppl was given.
5658if test "${with_ppl+set}" = set; then :
5659 withval=$with_ppl;
81ecdfbb 5660fi
e28c595f 5661
e28c595f 5662
e552509b 5663# Check whether --with-ppl-include was given.
81ecdfbb
RW
5664if test "${with_ppl_include+set}" = set; then :
5665 withval=$with_ppl_include;
5666fi
5667
e28c595f 5668
e552509b 5669# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5670if test "${with_ppl_lib+set}" = set; then :
5671 withval=$with_ppl_lib;
5672fi
e28c595f 5673
e28c595f 5674
29383458
JM
5675case $with_ppl in
5676 no)
5677 ppllibs=
5678 ;;
1f53ca9a
AO
5679 "" | yes)
5680 ;;
29383458 5681 *)
e8a5fa9c 5682 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458 5683 pplinc="-I$with_ppl/include $pplinc"
29383458
JM
5684 ;;
5685esac
e28c595f
JM
5686if test "x$with_ppl_include" != x; then
5687 pplinc="-I$with_ppl_include $pplinc"
5688fi
5689if test "x$with_ppl_lib" != x; then
e8a5fa9c 5690 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5691fi
5692if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
d5f2ee2e 5693 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
5694 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5695 enable_ppl_version_check=no
e28c595f
JM
5696fi
5697
81ecdfbb
RW
5698# Check whether --enable-ppl-version-check was given.
5699if test "${enable_ppl_version_check+set}" = set; then :
5700 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
e28c595f
JM
5701else
5702 ENABLE_PPL_CHECK=yes
81ecdfbb
RW
5703fi
5704
e28c595f 5705
1f53ca9a 5706if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
e28c595f
JM
5707 saved_CFLAGS="$CFLAGS"
5708 CFLAGS="$CFLAGS $pplinc $gmpinc"
a009f2e7
RW
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5710$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
81ecdfbb 5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5712/* end confdefs.h. */
5713#include "ppl_c.h"
5714int
5715main ()
5716{
5717
a009f2e7 5718 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
e28c595f
JM
5719 choke me
5720 #endif
5721
5722 ;
5723 return 0;
5724}
5725_ACEOF
81ecdfbb
RW
5726if ac_fn_c_try_compile "$LINENO"; then :
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5728$as_echo "yes" >&6; }
e28c595f 5729else
81ecdfbb 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5731$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5732fi
81ecdfbb 5733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5734 CFLAGS="$saved_CFLAGS"
5735fi
5736
5737# Flags needed for PPL
5738
5739
5740
5741
5742# Check for CLOOG
e552509b 5743
e28c595f
JM
5744
5745
81ecdfbb
RW
5746# Check whether --with-cloog was given.
5747if test "${with_cloog+set}" = set; then :
5748 withval=$with_cloog;
81ecdfbb
RW
5749fi
5750
e28c595f 5751
e552509b 5752# Check whether --with-cloog-include was given.
81ecdfbb
RW
5753if test "${with_cloog_include+set}" = set; then :
5754 withval=$with_cloog_include;
5755fi
e28c595f 5756
e28c595f 5757
e552509b 5758# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5759if test "${with_cloog_lib+set}" = set; then :
5760 withval=$with_cloog_lib;
5761fi
e28c595f 5762
e28c595f 5763
e552509b
ILT
5764 # Check whether --enable-cloog-backend was given.
5765if test "${enable_cloog_backend+set}" = set; then :
5766 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5767 cloog_backend=isl
5768 elif test "x${enableval}" = "xppl"; then
5769 cloog_backend=ppl
5770 else
5771 cloog_backend=ppl-legacy
5772 fi
5773else
5774 cloog_backend=ppl-legacy
5775fi
5776
5777 # Check whether --enable-cloog-version-check was given.
5778if test "${enable_cloog_version_check+set}" = set; then :
5779 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5780else
5781 ENABLE_CLOOG_CHECK=yes
5782fi
5783
5784
5785 # Initialize clooglibs and clooginc.
5786 case $with_cloog in
5787 no)
5788 clooglibs=
5789 clooginc=
5790 ;;
5791 "" | yes)
5792 ;;
5793 *)
5794 clooglibs="-L$with_cloog/lib"
5795 clooginc="-I$with_cloog/include"
5796 ;;
5797 esac
5798 if test "x${with_cloog_include}" != x ; then
5799 clooginc="-I$with_cloog_include"
5800 fi
5801 if test "x${with_cloog_lib}" != x; then
5802 clooglibs="-L$with_cloog_lib"
5803 fi
5804
5805
5806
5807
5808
1f53ca9a
AO
5809if test "x$with_ppl" = "xno"; then
5810 with_cloog=no
5811fi
e552509b
ILT
5812if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5813 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5814 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5815 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5816fi
5817if test "x$with_cloog" != "xno"; then
1f53ca9a 5818
e552509b
ILT
5819
5820
5821 _cloog_saved_CFLAGS=$CFLAGS
5822 _cloog_saved_CPPFLAGS=$CPPFLAGS
5823 _cloog_saved_LDFLAGS=$LDFLAGS
5824 _cloog_saved_LIBS=$LIBS
5825
5826 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5827
5828 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5829 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5830 LDFLAGS="${LDFLAGS} ${clooglibs}"
5831
5832 case $cloog_backend in
5833 "ppl-legacy")
5834 CFLAGS="${CFLAGS} ${pplinc}"
5835 LDFLAGS="${LDFLAGS} ${ppllibs}"
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5837$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5838if test "${gcc_cv_cloog_type+set}" = set; then :
5839 $as_echo_n "(cached) " >&6
5840else
5841 LIBS="-lcloog ${_cloog_saved_LIBS}"
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h. */
5844#include "cloog/cloog.h"
5845int
5846main ()
5847{
5848#ifndef CLOOG_PPL_BACKEND
5849 choke me
5850 #endif
5851 ;
5852 return 0;
5853}
5854_ACEOF
5855if ac_fn_c_try_link "$LINENO"; then :
5856 gcc_cv_cloog_type="PPL Legacy"
5857else
5858 gcc_cv_cloog_type=no
5859fi
5860rm -f core conftest.err conftest.$ac_objext \
5861 conftest$ac_exeext conftest.$ac_ext
e28c595f 5862fi
e552509b
ILT
5863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5864$as_echo "$gcc_cv_cloog_type" >&6; }
5865 ;;
5866 "isl")
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5868$as_echo_n "checking for installed CLooG ISL... " >&6; }
5869if test "${gcc_cv_cloog_type+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5871else
5872 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874/* end confdefs.h. */
5875#include "cloog/cloog.h"
5876int
5877main ()
5878{
5879cloog_version ()
5880 ;
5881 return 0;
5882}
5883_ACEOF
5884if ac_fn_c_try_link "$LINENO"; then :
5885 gcc_cv_cloog_type="ISL"
5886else
5887 gcc_cv_cloog_type=no
e28c595f 5888fi
e552509b
ILT
5889rm -f core conftest.err conftest.$ac_objext \
5890 conftest$ac_exeext conftest.$ac_ext
e28c595f 5891fi
e552509b
ILT
5892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5893$as_echo "$gcc_cv_cloog_type" >&6; }
5894 ;;
5895 "ppl")
5896 CFLAGS="${CFLAGS} ${pplinc}"
5897 LDFLAGS="${LDFLAGS} ${ppllibs}"
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5899$as_echo_n "checking for installed CLooG PPL... " >&6; }
5900if test "${gcc_cv_cloog_type+set}" = set; then :
5901 $as_echo_n "(cached) " >&6
e28c595f 5902else
e552509b
ILT
5903 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5905/* end confdefs.h. */
5906#include "cloog/cloog.h"
5907 #include "cloog/ppl/cloog.h"
5908int
5909main ()
5910{
5911cloog_version ()
5912 ;
5913 return 0;
5914}
5915_ACEOF
5916if ac_fn_c_try_link "$LINENO"; then :
5917 gcc_cv_cloog_type="PPL"
5918else
5919 gcc_cv_cloog_type=no
81ecdfbb 5920fi
e552509b
ILT
5921rm -f core conftest.err conftest.$ac_objext \
5922 conftest$ac_exeext conftest.$ac_ext
5923fi
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5925$as_echo "$gcc_cv_cloog_type" >&6; }
5926 ;;
5927 *)
5928 gcc_cv_cloog_type=""
5929 esac
5930
5931 case $gcc_cv_cloog_type in
5932 "PPL Legacy")
5933 clooginc="${clooginc}"
5934 clooglibs="${clooglibs} -lcloog"
5935 cloog_org=no
5936 ;;
5937 "ISL")
5938 clooginc="${clooginc} ${_cloogorginc}"
5939 clooglibs="${clooglibs} -lcloog-isl"
5940 cloog_org=yes
5941 ;;
5942 "PPL")
5943 clooginc="${clooginc} ${_cloogorginc}"
5944 clooglibs="${clooglibs} -lcloog-ppl"
5945 cloog_org=yes
5946 ;;
5947 *)
5948 clooglibs=
5949 clooginc=
5950 cloog_org=
5951 ;;
5952 esac
81ecdfbb 5953
e552509b
ILT
5954 LIBS=$_cloog_saved_LIBS
5955 CFLAGS=$_cloog_saved_CFLAGS
5956 CPPFLAGS=$_cloog_saved_CPPFLAGS
5957 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 5958
e552509b
ILT
5959
5960
5961
5962
5963 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5964 _cloog_saved_CFLAGS=$CFLAGS
5965 _cloog_saved_LDFLAGS=$LDFLAGS
5966
5967 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5968 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5969
5970 if test "${cloog_org}" = yes ; then
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5972$as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5973if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5974 $as_echo_n "(cached) " >&6
5975else
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977/* end confdefs.h. */
5978#include "cloog/cloog.h"
5979int
5980main ()
5981{
5982#if CLOOG_VERSION_MAJOR != 0 \
5983 || CLOOG_VERSION_MINOR != 14 \
5984 || CLOOG_VERSION_REVISION < 0
5985 choke me
5986 #endif
5987 ;
5988 return 0;
5989}
5990_ACEOF
5991if ac_fn_c_try_compile "$LINENO"; then :
5992 gcc_cv_cloog_ct_0_14_0=yes
5993else
5994 gcc_cv_cloog_ct_0_14_0=no
5995fi
5996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997fi
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5999$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
6000 elif test "${cloog_org}" = no ; then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 6002$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
6003if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6005else
81ecdfbb 6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
6007/* end confdefs.h. */
6008#include "cloog/cloog.h"
6009int
6010main ()
6011{
e552509b
ILT
6012#if CLOOG_VERSION_MAJOR != 0 \
6013 || CLOOG_VERSION_MINOR != 15 \
6014 || CLOOG_VERSION_REVISION < 5
6015 choke me
6016 #endif
e28c595f
JM
6017 ;
6018 return 0;
6019}
6020_ACEOF
a009f2e7
RW
6021if ac_fn_c_try_compile "$LINENO"; then :
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023/* end confdefs.h. */
6024#include "cloog/cloog.h"
6025int
6026main ()
6027{
e552509b
ILT
6028#if CLOOG_VERSION_MAJOR != 0 \
6029 || CLOOG_VERSION_MINOR != 15 \
6030 || CLOOG_VERSION_REVISION < 9
6031 choke me
6032 #endif
a009f2e7
RW
6033 ;
6034 return 0;
6035}
6036_ACEOF
81ecdfbb 6037if ac_fn_c_try_compile "$LINENO"; then :
e552509b 6038 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 6039else
e552509b 6040 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
6041fi
6042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6043else
e552509b 6044 gcc_cv_cloog_ct_0_15_5=no
e28c595f 6045fi
81ecdfbb 6046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6047fi
e552509b
ILT
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6049$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6050 fi
6051
6052 CFLAGS=$_cloog_saved_CFLAGS
6053 LDFLAGS=$_cloog_saved_LDFLAGS
6054 fi
6055
6056
6057
e28c595f 6058
e28c595f
JM
6059
6060
6061
e552509b
ILT
6062 if test "x${with_cloog}" != x \
6063 || test "x${with_cloog_include}" != x \
6064 || test "x${with_cloog_lib}" != x ; then
6065 graphite_requested=yes
6066 else
6067 graphite_requested=no
6068 fi
6069
6070
6071
6072 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6073 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6074 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6075 clooglibs=
6076 clooginc=
6077 fi
6078
6079 if test "${graphite_requested}" = yes \
6080 && test "x${clooglibs}" = x \
6081 && test "x${clooginc}" = x ; then
6082
6083 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6084 fi
6085
6086
6087fi
6088
700d40ca
ILT
6089# Check for LTO support.
6090# Check whether --enable-lto was given.
6091if test "${enable_lto+set}" = set; then :
6092 enableval=$enable_lto; enable_lto=$enableval
6093else
6094 enable_lto=yes; default_enable_lto=yes
6095fi
6096
6097
143754cd 6098
e49e5c92
DK
6099
6100
6101target_elf=no
6102case $target in
6103 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6104 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6105 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6106 target_elf=no
6107 ;;
6108 *)
6109 target_elf=yes
6110 ;;
6111esac
6112
6113if test $target_elf = yes; then :
74cea91b
DK
6114 # ELF platforms build the lto-plugin always.
6115 build_lto_plugin=yes
e49e5c92 6116
e49e5c92
DK
6117else
6118 if test x"$default_enable_lto" = x"yes" ; then
29821356 6119 case $target in
a8eb3f0a 6120 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
74cea91b 6121 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6122 *) enable_lto=no ;;
6123 esac
e49e5c92 6124 else
29821356
RW
6125 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6126 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6127 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6128 # warn during gcc/ subconfigure; unless you're bootstrapping with
6129 # -flto it won't be needed until after installation anyway.
6130 case $target in
a8eb3f0a 6131 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6132 *) if test x"$enable_lto" = x"yes"; then
6133 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6134 fi
6135 ;;
6136 esac
6137 fi
a8eb3f0a 6138 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6139 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6140 case $target in
74cea91b 6141 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6142 *) ;;
6143 esac
74cea91b 6144
e49e5c92
DK
6145fi
6146
700d40ca 6147
e28c595f 6148
947f426e 6149# By default, C is the only stage 1 language.
9b134994 6150stage1_languages=,c,
1d39f329 6151
e8a5fa9c 6152# Target libraries that we bootstrap.
2aa2364a 6153bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6154
9e07f89d
NN
6155# Figure out what language subdirectories are present.
6156# Look if the user specified --enable-languages="..."; if not, use
6157# the environment variable $LANGUAGES if defined. $LANGUAGES might
6158# go away some day.
6159# NB: embedded tabs in this IF block -- do not untabify
6160if test -d ${srcdir}/gcc; then
6161 if test x"${enable_languages+set}" != xset; then
6162 if test x"${LANGUAGES+set}" = xset; then
6163 enable_languages="${LANGUAGES}"
6164 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6165 else
6166 enable_languages=all
6167 fi
6168 else
6169 if test x"${enable_languages}" = x ||
6170 test x"${enable_languages}" = xyes;
6171 then
6172 echo configure.in: --enable-languages needs at least one language argument 1>&2
6173 exit 1
6174 fi
6175 fi
6176 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6177
096f7d00
DE
6178 # 'f95' is the old name for the 'fortran' language. We issue a warning
6179 # and make the substitution.
6180 case ,${enable_languages}, in
6181 *,f95,*)
6182 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6183 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6184 ;;
6185 esac
6186
9e07f89d
NN
6187 # First scan to see if an enabled language requires some other language.
6188 # We assume that a given config-lang.in will list all the language
6189 # front ends it requires, even if some are required indirectly.
6190 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6191 case ${lang_frag} in
6192 ..) ;;
6193 # The odd quoting in the next line works around
6194 # an apparent bug in bash 1.12 on linux.
6195 ${srcdir}/gcc/[*]/config-lang.in) ;;
6196 *)
e552509b
ILT
6197 # From the config-lang.in, get $language, $lang_requires, and
6198 # $lang_requires_boot_languages.
9e07f89d
NN
6199 language=
6200 lang_requires=
e552509b 6201 lang_requires_boot_languages=
9e07f89d 6202 . ${lang_frag}
e552509b 6203 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6204 case ,${enable_languages}, in
6205 *,$other,*) ;;
6206 *,all,*) ;;
6207 *,$language,*)
6208 echo " \`$other' language required by \`$language'; enabling" 1>&2
6209 enable_languages="${enable_languages},${other}"
6210 ;;
6211 esac
6212 done
e552509b
ILT
6213 for other in ${lang_requires_boot_languages} ; do
6214 if test "$other" != "c"; then
6215 case ,${enable_stage1_languages}, in
6216 *,$other,*) ;;
6217 *,all,*) ;;
6218 *)
6219 case ,${enable_languages}, in
6220 *,$language,*)
6221 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6222 enable_stage1_languages="$enable_stage1_languages,${other}"
6223 ;;
6224 esac
6225 ;;
6226 esac
6227 fi
6228 done
9e07f89d
NN
6229 ;;
6230 esac
6231 done
6232
9b134994 6233 new_enable_languages=,c,
700d40ca
ILT
6234
6235 # If LTO is enabled, add the LTO front end.
6236 extra_host_libiberty_configure_flags=
6237 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6238 case ,${enable_languages}, in
6239 *,lto,*) ;;
6240 *) enable_languages="${enable_languages},lto" ;;
6241 esac
a8eb3f0a 6242 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6243 configdirs="$configdirs lto-plugin"
6244 extra_host_libiberty_configure_flags=--enable-shared
6245 fi
6246 fi
6247
6248
9e07f89d 6249 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6250 potential_languages=,c,
9e07f89d 6251
9e1a94f4
ILT
6252 enabled_target_libs=
6253 disabled_target_libs=
6254
9e07f89d
NN
6255 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6256 case ${lang_frag} in
6257 ..) ;;
6258 # The odd quoting in the next line works around
6259 # an apparent bug in bash 1.12 on linux.
6260 ${srcdir}/gcc/[*]/config-lang.in) ;;
6261 *)
c6b750e1 6262 # From the config-lang.in, get $language, $target_libs,
1d39f329 6263 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6264 language=
6265 target_libs=
6266 lang_dirs=
64ce424c 6267 subdir_requires=
9b134994
PB
6268 boot_language=no
6269 build_by_default=yes
9e07f89d 6270 . ${lang_frag}
9b134994
PB
6271 if test x${language} = x; then
6272 echo "${lang_frag} doesn't set \$language." 1>&2
6273 exit 1
6274 fi
6275
1f53ca9a
AO
6276 if test "$language" = "c++" \
6277 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6278 boot_language=yes
6279 fi
6280
9b134994
PB
6281 case ,${enable_languages}, in
6282 *,${language},*)
9e07f89d
NN
6283 # Language was explicitly selected; include it.
6284 add_this_lang=yes
6285 ;;
9b134994
PB
6286 *,all,*)
6287 # 'all' was selected, select it if it is a default language
6288 add_this_lang=${build_by_default}
9e07f89d
NN
6289 ;;
6290 *)
6291 add_this_lang=no
6292 ;;
6293 esac
4b1cb4fe 6294
64ce424c 6295 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6296 for i in $subdir_requires; do
3d3adb43 6297 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6298 case ,${enable_languages}, in
6299 *,${language},*)
6300 # Specifically requested language; tell them.
81ecdfbb 6301 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6302 ;;
6303 *)
6304 # Silently disable.
9b134994 6305 add_this_lang=unsupported
64ce424c
PB
6306 ;;
6307 esac
6308 done
6309
9b134994
PB
6310 # Disable Ada if no preexisting GNAT is available.
6311 case ,${enable_languages},:${language}:${have_gnat} in
6312 *,${language},*:ada:no)
6313 # Specifically requested language; tell them.
81ecdfbb 6314 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6315 ;;
6316 *:ada:no)
6317 # Silently disable.
6318 add_this_lang=unsupported
6319 ;;
6320 esac
6321
59f7ec45
HPN
6322 # Disable a language that is unsupported by the target.
6323 case " $unsupported_languages " in
6324 *" $language "*)
9b134994 6325 add_this_lang=unsupported
59f7ec45
HPN
6326 ;;
6327 esac
6328
4b1cb4fe 6329 case $add_this_lang in
9b134994 6330 unsupported)
9e07f89d 6331 # Remove language-dependent dirs.
9e1a94f4
ILT
6332 disabled_target_libs="$disabled_target_libs $target_libs"
6333 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6334 ;;
9b134994
PB
6335 no)
6336 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6337 disabled_target_libs="$disabled_target_libs $target_libs"
6338 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6339 potential_languages="${potential_languages}${language},"
6340 ;;
6341 yes)
6342 new_enable_languages="${new_enable_languages}${language},"
6343 potential_languages="${potential_languages}${language},"
1d39f329 6344 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6345 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6346 case "${boot_language}:,$enable_stage1_languages," in
6347 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6348 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6349 case ",$stage1_languages," in
6350 *,$language,* | ,yes, | ,all,) ;;
6351 *) stage1_languages="${stage1_languages}${language}," ;;
6352 esac
e8a5fa9c
RW
6353 # We need to bootstrap any supporting libraries.
6354 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6355 ;;
6356 esac
6357 ;;
9e07f89d
NN
6358 esac
6359 ;;
6360 esac
6361 done
6362
9e1a94f4
ILT
6363 # Add target libraries which are only needed for disabled languages
6364 # to noconfigdirs.
6365 if test -n "$disabled_target_libs"; then
6366 for dir in $disabled_target_libs; do
6367 case " $enabled_target_libs " in
6368 *" ${dir} "*) ;;
6369 *) noconfigdirs="$noconfigdirs $dir" ;;
6370 esac
6371 done
6372 fi
6373
81ecdfbb
RW
6374 # Check whether --enable-stage1-languages was given.
6375if test "${enable_stage1_languages+set}" = set; then :
6376 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6377 ,no,|,,)
6378 # Set it to something that will have no effect in the loop below
6379 enable_stage1_languages=c ;;
6380 ,yes,)
6381 enable_stage1_languages=`echo $new_enable_languages | \
6382 sed -e "s/^,//" -e "s/,$//" ` ;;
6383 *,all,*)
6384 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6385 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6386 esac
6387
6388 # Add "good" languages from enable_stage1_languages to stage1_languages,
6389 # while "bad" languages go in missing_languages. Leave no duplicates.
6390 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6391 case $potential_languages in
6392 *,$i,*)
6393 case $stage1_languages in
6394 *,$i,*) ;;
6395 *) stage1_languages="$stage1_languages$i," ;;
6396 esac ;;
6397 *)
6398 case $missing_languages in
6399 *,$i,*) ;;
6400 *) missing_languages="$missing_languages$i," ;;
6401 esac ;;
6402 esac
6403 done
81ecdfbb
RW
6404fi
6405
9b134994
PB
6406
6407 # Remove leading/trailing commas that were added for simplicity
6408 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6409 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6410 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6411 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6412
9e07f89d 6413 if test "x$missing_languages" != x; then
81ecdfbb 6414 as_fn_error "
27258dd4 6415The following requested languages could not be built: ${missing_languages}
81ecdfbb 6416Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6417 fi
9e07f89d
NN
6418 if test "x$new_enable_languages" != "x$enable_languages"; then
6419 echo The following languages will be built: ${new_enable_languages}
9b134994 6420 enable_languages="$new_enable_languages"
9e07f89d 6421 fi
9b134994 6422
c6b750e1 6423
81ec575a 6424 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6425fi
6426
a6df5a19
PB
6427# Handle --disable-<component> generically.
6428for dir in $configdirs $build_configdirs $target_configdirs ; do
6429 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6430 varname=`echo $dirname | sed -e s/+/_/g`
6431 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6432 noconfigdirs="$noconfigdirs $dir"
6433 fi
6434done
6435
4f0ef2d8 6436# Check for Boehm's garbage collector
81ecdfbb
RW
6437# Check whether --enable-objc-gc was given.
6438if test "${enable_objc_gc+set}" = set; then :
6439 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6440 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6441 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6442 ;;
6443esac
81ecdfbb
RW
6444fi
6445
4f0ef2d8
CD
6446
6447# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6448case ,${enable_languages},:${enable_objc_gc} in
6449 *,objc,*:yes)
4f0ef2d8
CD
6450 # Keep target-boehm-gc if requested for Objective-C.
6451 ;;
4f0ef2d8 6452 *)
d42c4017
DA
6453 # Otherwise remove target-boehm-gc depending on target-libjava.
6454 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6455 noconfigdirs="$noconfigdirs target-boehm-gc"
6456 fi
4f0ef2d8
CD
6457 ;;
6458esac
6459
caeba88f
AL
6460# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6461# $build_configdirs and $target_configdirs.
9e07f89d
NN
6462# If we have the source for $noconfigdirs entries, add them to $notsupp.
6463
6464notsupp=""
6465for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6466 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6467 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6468 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6469 if test -r $srcdir/$dirname/configure ; then
6470 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471 true
6472 else
6473 notsupp="$notsupp $dir"
6474 fi
6475 fi
6476 fi
caeba88f
AL
6477 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6478 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6479 if test -r $srcdir/$dirname/configure ; then
6480 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6481 true
6482 else
6483 notsupp="$notsupp $dir"
6484 fi
6485 fi
6486 fi
9e07f89d
NN
6487 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6488 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6489 if test -r $srcdir/$dirname/configure ; then
6490 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6491 true
6492 else
6493 notsupp="$notsupp $dir"
6494 fi
6495 fi
6496 fi
6497done
6498
6499# Sometimes the tools are distributed with libiberty but with no other
6500# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6501# Don't let libgcc imply libiberty either.
9e07f89d 6502if test -n "${target_configdirs}" ; then
f86e35b8 6503 libgcc=
9e07f89d
NN
6504 others=
6505 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6506 if test "$i" = "libgcc"; then
6507 libgcc=target-libgcc
6508 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6509 if test -r $srcdir/$i/configure ; then
6510 others=yes;
6511 break;
6512 fi
6513 fi
6514 done
6515 if test -z "${others}" ; then
f86e35b8 6516 target_configdirs=$libgcc
9e07f89d
NN
6517 fi
6518fi
6519
6520# Quietly strip out all directories which aren't configurable in this tree.
6521# This relies on all configurable subdirectories being autoconfiscated, which
6522# is now the case.
6a9cf61e
PB
6523build_configdirs_all="$build_configdirs"
6524build_configdirs=
6525for i in ${build_configdirs_all} ; do
c6b750e1 6526 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6527 if test -f ${srcdir}/$j/configure ; then
6528 build_configdirs="${build_configdirs} $i"
6529 fi
6530done
6531
9e07f89d
NN
6532configdirs_all="$configdirs"
6533configdirs=
6534for i in ${configdirs_all} ; do
6535 if test -f ${srcdir}/$i/configure ; then
6536 configdirs="${configdirs} $i"
6537 fi
6538done
6a9cf61e 6539
9e07f89d
NN
6540target_configdirs_all="$target_configdirs"
6541target_configdirs=
6542for i in ${target_configdirs_all} ; do
c6b750e1 6543 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6544 if test -f ${srcdir}/$j/configure ; then
6545 target_configdirs="${target_configdirs} $i"
6546 fi
6547done
6548
6549# Produce a warning message for the subdirs we can't configure.
6550# This isn't especially interesting in the Cygnus tree, but in the individual
6551# FSF releases, it's important to let people know when their machine isn't
6552# supported by the one or two programs in a package.
6553
6554if test -n "${notsupp}" && test -z "${norecursion}" ; then
6555 # If $appdirs is non-empty, at least one of those directories must still
6556 # be configured, or we error out. (E.g., if the gas release supports a
6557 # specified target in some subdirs but not the gas subdir, we shouldn't
6558 # pretend that all is well.)
6559 if test -n "$appdirs" ; then
6560 for dir in $appdirs ; do
6561 if test -r $dir/Makefile.in ; then
6562 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6563 appdirs=""
6564 break
6565 fi
6a9cf61e 6566 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6567 appdirs=""
6568 break
6569 fi
6570 fi
6571 done
6572 if test -n "$appdirs" ; then
6573 echo "*** This configuration is not supported by this package." 1>&2
6574 exit 1
6575 fi
6576 fi
6577 # Okay, some application will build, or we don't care to check. Still
6578 # notify of subdirs not getting built.
6579 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6580 echo " ${notsupp}" 1>&2
6581 echo " (Any other directories should still work fine.)" 1>&2
6582fi
6583
6584case "$host" in
6585 *msdosdjgpp*)
6586 enable_gdbtk=no ;;
6587esac
6588
18f6b6ee
PB
6589# To find our prefix, in gcc_cv_tool_prefix.
6590
6591# The user is always right.
6592if test "${PATH_SEPARATOR+set}" != set; then
6593 echo "#! /bin/sh" >conf$$.sh
6594 echo "exit 0" >>conf$$.sh
6595 chmod +x conf$$.sh
6596 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6597 PATH_SEPARATOR=';'
6598 else
6599 PATH_SEPARATOR=:
6600 fi
6601 rm -f conf$$.sh
6602fi
6603
6604
6605
6606if test "x$exec_prefix" = xNONE; then
6607 if test "x$prefix" = xNONE; then
6608 gcc_cv_tool_prefix=$ac_default_prefix
6609 else
6610 gcc_cv_tool_prefix=$prefix
6611 fi
6612else
6613 gcc_cv_tool_prefix=$exec_prefix
6614fi
6615
6616# If there is no compiler in the tree, use the PATH only. In any
6617# case, if there is no compiler in the tree nobody should use
6618# AS_FOR_TARGET and LD_FOR_TARGET.
6619if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6620 gcc_version=`cat $srcdir/gcc/BASE-VER`
6621 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6622 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6623 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6624 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6625 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6626 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6627else
6628 gcc_cv_tool_dirs=
6629fi
6630
6631if test x$build = x$target && test -n "$md_exec_prefix"; then
6632 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6633fi
6634
6635
6636
9e07f89d
NN
6637copy_dirs=
6638
c6b750e1 6639
81ecdfbb
RW
6640# Check whether --with-build-sysroot was given.
6641if test "${with_build_sysroot+set}" = set; then :
6642 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6643 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6644 fi
6645else
6646 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6647fi
a19b6204
MM
6648
6649
8a6ee3ab 6650
81ecdfbb
RW
6651
6652# Check whether --with-debug-prefix-map was given.
6653if test "${with_debug_prefix_map+set}" = set; then :
6654 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6655 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6656 for debug_map in $withval; do
6657 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6658 done
6659 fi
6660else
6661 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6662fi
6663
8a6ee3ab
JM
6664
6665
7f6ef0c0
PB
6666# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6667# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6668# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6669# We want to ensure that TARGET libraries (which we know are built with
6670# gcc) are built with "-O2 -g", so include those options when setting
6671# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6672if test "x$CFLAGS_FOR_TARGET" = x; then
6673 CFLAGS_FOR_TARGET=$CFLAGS
6674 case " $CFLAGS " in
6675 *" -O2 "*) ;;
6676 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6677 esac
6678 case " $CFLAGS " in
6679 *" -g "* | *" -g3 "*) ;;
6680 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6681 esac
6682fi
6683
6684
6685if test "x$CXXFLAGS_FOR_TARGET" = x; then
6686 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6687 case " $CXXFLAGS " in
6688 *" -O2 "*) ;;
6689 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6690 esac
6691 case " $CXXFLAGS " in
6692 *" -g "* | *" -g3 "*) ;;
6693 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6694 esac
6695fi
6696
6697
9e07f89d
NN
6698# Handle --with-headers=XXX. If the value is not "yes", the contents of
6699# the named directory are copied to $(tooldir)/sys-include.
6700if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6701 if test x${is_cross_compiler} = xno ; then
6702 echo 1>&2 '***' --with-headers is only supported when cross compiling
6703 exit 1
6704 fi
6705 if test x"${with_headers}" != xyes ; then
18f6b6ee 6706 x=${gcc_cv_tool_prefix}
c6b750e1 6707 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6708 fi
6709fi
6710
6711# Handle --with-libs=XXX. If the value is not "yes", the contents of
6712# the name directories are copied to $(tooldir)/lib. Multiple directories
6713# are permitted.
6714if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6715 if test x${is_cross_compiler} = xno ; then
6716 echo 1>&2 '***' --with-libs is only supported when cross compiling
6717 exit 1
6718 fi
6719 if test x"${with_libs}" != xyes ; then
6720 # Copy the libraries in reverse order, so that files in the first named
6721 # library override files in subsequent libraries.
18f6b6ee 6722 x=${gcc_cv_tool_prefix}
9e07f89d 6723 for l in ${with_libs}; do
c6b750e1 6724 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6725 done
6726 fi
6727fi
6728
700d40ca 6729# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6730#
6731# This is done by determining whether or not the appropriate directory
6732# is available, and by checking whether or not specific configurations
6733# have requested that this magic not happen.
c6b750e1
DJ
6734#
6735# The command line options always override the explicit settings in
2429c060
PB
6736# configure.in, and the settings in configure.in override this magic.
6737#
c6b750e1 6738# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6739# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6740# --without-gnu-ld options for the configure script. Similarly, if
6741# the default is to use the included zlib and you don't want to do that,
6742# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6743
6744if test x${use_gnu_as} = x &&
6745 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6746 with_gnu_as=yes
6747 extra_host_args="$extra_host_args --with-gnu-as"
6748fi
6749
6750if test x${use_gnu_ld} = x &&
93f9b408 6751 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6752 with_gnu_ld=yes
6753 extra_host_args="$extra_host_args --with-gnu-ld"
6754fi
6755
700d40ca
ILT
6756if test x${use_included_zlib} = x &&
6757 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6758 :
6759else
6760 with_system_zlib=yes
6761 extra_host_args="$extra_host_args --with-system-zlib"
6762fi
6763
2429c060
PB
6764# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6765# can detect this case.
6766
6767if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6768 with_newlib=yes
6769 extra_host_args="$extra_host_args --with-newlib"
6770fi
6771
9e07f89d
NN
6772# Handle ${copy_dirs}
6773set fnord ${copy_dirs}
6774shift
6775while test $# != 0 ; do
6776 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6777 :
6778 else
6779 echo Copying $1 to $2
6780
6781 # Use the install script to create the directory and all required
6782 # parent directories.
6783 if test -d $2 ; then
6784 :
6785 else
6786 echo >config.temp
6787 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6788 fi
6789
6790 # Copy the directory, assuming we have tar.
6791 # FIXME: Should we use B in the second tar? Not all systems support it.
6792 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6793
6794 # It is the responsibility of the user to correctly adjust all
6795 # symlinks. If somebody can figure out how to handle them correctly
6796 # here, feel free to add the code.
6797
6798 echo $1 > $2/COPIED
6799 fi
6800 shift; shift
6801done
6802
2429c060
PB
6803# Determine a target-dependent exec_prefix that the installed
6804# gcc will search in. Keep this list sorted by triplet, with
6805# the *-*-osname triplets last.
6806md_exec_prefix=
6807case "${target}" in
6808 alpha*-*-*vms*)
6809 md_exec_prefix=/gnu/lib/gcc-lib
6810 ;;
521ec477 6811 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6812 md_exec_prefix=/dev/env/DJDIR/bin
6813 ;;
521ec477 6814 i[34567]86-*-sco3.2v5*)
2429c060
PB
6815 if test $with_gnu_as = yes; then
6816 md_exec_prefix=/usr/gnu/bin
6817 else
6818 md_exec_prefix=/usr/ccs/bin/elf
6819 fi
6820 ;;
6821
6822 mn10300-*-* | \
6823 powerpc-*-chorusos* | \
6824 powerpc*-*-eabi* | \
6825 powerpc*-*-sysv* | \
6826 powerpc*-*-kaos* | \
6827 s390x-ibm-tpf*)
6828 md_exec_prefix=/usr/ccs/bin
6829 ;;
6830 sparc64-*-elf*)
6831 ;;
6832 v850*-*-*)
6833 md_exec_prefix=/usr/ccs/bin
6834 ;;
8b66833e 6835 xtensa*-*-elf*)
2429c060
PB
6836 ;;
6837
6838 *-*-beos* | \
6839 *-*-elf* | \
6840 *-*-hpux* | \
6841 *-*-netware* | \
6842 *-*-nto-qnx* | \
6843 *-*-rtems* | \
6844 *-*-solaris2* | \
521ec477 6845 *-*-sysv[45]* | \
2429c060
PB
6846 *-*-vxworks* | \
6847 *-wrs-windiss)
6848 md_exec_prefix=/usr/ccs/bin
6849 ;;
6850esac
6851
a0da8069
NN
6852extra_arflags_for_target=
6853extra_nmflags_for_target=
6854extra_ranlibflags_for_target=
6855target_makefile_frag=/dev/null
6856case "${target}" in
4e206d7e
DB
6857 mep*-*-*)
6858 target_makefile_frag="config/mt-mep"
6859 ;;
77d7106f
AM
6860 spu-*-*)
6861 target_makefile_frag="config/mt-spu"
6862 ;;
429acdec
RS
6863 mips*-sde-elf*)
6864 target_makefile_frag="config/mt-sde"
6865 ;;
f3b1e08e
RS
6866 mipsisa*-*-elfoabi*)
6867 target_makefile_frag="config/mt-mips-elfoabi"
6868 ;;
e7c8859c
RS
6869 mips*-*-*linux* | mips*-*-gnu*)
6870 target_makefile_frag="config/mt-mips-gnu"
6871 ;;
2a3124ca 6872 *-*-netware*)
a0da8069
NN
6873 target_makefile_frag="config/mt-netware"
6874 ;;
29383458 6875 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6876 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6877 ;;
6878 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6879 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6880 # commands to handle both 32-bit and 64-bit objects. These flags are
6881 # harmless if we're using GNU nm or ar.
6882 extra_arflags_for_target=" -X32_64"
6883 extra_nmflags_for_target=" -B -X32_64"
6884 ;;
92f4e989
JM
6885 *-*-darwin[3-9]*)
6886 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6887 extra_ranlibflags_for_target=" -c"
6888 ;;
6889 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6890 target_makefile_frag="config/mt-wince"
6891 ;;
6892esac
6893
6894alphaieee_frag=/dev/null
6895case $target in
6896 alpha*-*-*)
6897 # This just makes sure to use the -mieee option to build target libs.
6898 # This should probably be set individually by each library.
6899 alphaieee_frag="config/mt-alphaieee"
6900 ;;
6901esac
6902
6903# If --enable-target-optspace always use -Os instead of -O2 to build
6904# the target libraries, similarly if it is not specified, use -Os
6905# on selected platforms.
6906ospace_frag=/dev/null
6907case "${enable_target_optspace}:${target}" in
6908 yes:*)
6909 ospace_frag="config/mt-ospace"
6910 ;;
6911 :d30v-*)
6912 ospace_frag="config/mt-d30v"
6913 ;;
6914 :m32r-* | :d10v-* | :fr30-*)
6915 ospace_frag="config/mt-ospace"
6916 ;;
6917 no:* | :*)
6918 ;;
6919 *)
6920 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6921 ;;
6922esac
6923
a0da8069
NN
6924# Default to using --with-stabs for certain targets.
6925if test x${with_stabs} = x ; then
6926 case "${target}" in
e31d1ea3 6927 mips*-*-irix[56]*)
a0da8069
NN
6928 ;;
6929 mips*-*-* | alpha*-*-osf*)
6930 with_stabs=yes;
6931 extra_host_args="${extra_host_args} --with-stabs"
6932 ;;
6933 esac
6934fi
6935
6936# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6937# them automatically.
6938case "${host}" in
c6b750e1 6939 hppa*64*-*-hpux11*)
a0da8069
NN
6940 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6941 ;;
6942esac
6943
a0da8069
NN
6944# Some systems (e.g., one of the i386-aix systems the gas testers are
6945# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6946tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6947build_tooldir=${tooldir}
6948
a0da8069
NN
6949# Create a .gdbinit file which runs the one in srcdir
6950# and tells GDB to look there for source files.
6951
6952if test -r ${srcdir}/.gdbinit ; then
6953 case ${srcdir} in
6954 .) ;;
6955 *) cat > ./.gdbinit <<EOF
6956# ${NO_EDIT}
6957dir ${srcdir}
6958dir .
6959source ${srcdir}/.gdbinit
6960EOF
6961 ;;
6962 esac
6963fi
6964
a0da8069
NN
6965# Make sure that the compiler is able to generate an executable. If it
6966# can't, we are probably in trouble. We don't care whether we can run the
6967# executable--we might be using a cross compiler--we only care whether it
6968# can be created. At this point the main configure script has set CC.
6969we_are_ok=no
6970echo "int main () { return 0; }" > conftest.c
6971${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6972if test $? = 0 ; then
6973 if test -s conftest || test -s conftest.exe ; then
6974 we_are_ok=yes
6975 fi
c6b750e1 6976fi
a0da8069
NN
6977case $we_are_ok in
6978 no)
6979 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6980 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6981 rm -f conftest*
6982 exit 1
6983 ;;
6984esac
6985rm -f conftest*
6986
6987# The Solaris /usr/ucb/cc compiler does not appear to work.
6988case "${host}" in
6989 sparc-sun-solaris2*)
6990 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6991 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6992 could_use=
6993 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6994 if test -d /opt/cygnus/bin ; then
6995 if test "$could_use" = "" ; then
6996 could_use="/opt/cygnus/bin"
6997 else
6998 could_use="$could_use or /opt/cygnus/bin"
6999 fi
7000 fi
7001 if test "$could_use" = "" ; then
7002 echo "Warning: compilation may fail because you're using"
7003 echo "/usr/ucb/cc. You should change your PATH or CC "
7004 echo "variable and rerun configure."
7005 else
7006 echo "Warning: compilation may fail because you're using"
7007 echo "/usr/ucb/cc, when you should use the C compiler from"
7008 echo "$could_use. You should change your"
7009 echo "PATH or CC variable and rerun configure."
7010 fi
7011 fi
7012 ;;
7013esac
7014
3bbd2f8f 7015# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7016case "${host}" in
7017 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 7018 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7019 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7020 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7021esac
7022
3bbd2f8f 7023# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7024# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7025# built executables to PATH.
3bbd2f8f
AL
7026if test "$RPATH_ENVVAR" = PATH; then
7027 GCC_SHLIB_SUBDIR=/shlib
7028else
7029 GCC_SHLIB_SUBDIR=
7030fi
7031
a0da8069
NN
7032# Record target_configdirs and the configure arguments for target and
7033# build configuration in Makefile.
7034target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7035build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 7036
2aa2364a
JR
7037# If we are building libgomp, bootstrap it.
7038if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7039 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7040fi
7041
a0da8069
NN
7042# Determine whether gdb needs tk/tcl or not.
7043# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7044# and in that case we want gdb to be built without tk. Ugh!
7045# In fact I believe gdb is the *only* package directly dependent on tk,
7046# so we should be able to put the 'maybe's in unconditionally and
7047# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7048# 100% sure that that's safe though.
c180f501 7049
675c6968 7050gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7051case "$enable_gdbtk" in
7052 no)
7053 GDB_TK="" ;;
c180f501
AC
7054 yes)
7055 GDB_TK="${gdb_tk}" ;;
a0da8069 7056 *)
c180f501
AC
7057 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7058 # distro. Eventually someone will fix this and move Insight, nee
7059 # gdbtk to a separate directory.
7060 if test -d ${srcdir}/gdb/gdbtk ; then
7061 GDB_TK="${gdb_tk}"
7062 else
7063 GDB_TK=""
7064 fi
7065 ;;
a0da8069 7066esac
907be67c
DJ
7067CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7068INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7069
6bd3dfaa 7070# Strip out unwanted targets.
dd12c3a8
NN
7071
7072# While at that, we remove Makefiles if we were started for recursive
7073# configuration, so that the top-level Makefile reconfigures them,
7074# like we used to do when configure itself was recursive.
dd12c3a8 7075
06a51eac
RW
7076# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7077# but now we're fixing up the Makefile ourselves with the additional
7078# commands passed to AC_CONFIG_FILES. Use separate variables
7079# extrasub-{build,host,target} not because there is any reason to split
7080# the substitutions up that way, but only to remain below the limit of
7081# 99 commands in a script, for HP-UX sed.
7082# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7083
81ecdfbb
RW
7084# Check whether --enable-bootstrap was given.
7085if test "${enable_bootstrap+set}" = set; then :
7086 enableval=$enable_bootstrap;
319cab08 7087else
9cb3fa6f 7088 enable_bootstrap=default
81ecdfbb
RW
7089fi
7090
319cab08 7091
9cb3fa6f
PB
7092# Issue errors and warnings for invalid/strange bootstrap combinations.
7093case "$configdirs" in
7094 *gcc*) have_compiler=yes ;;
7095 *) have_compiler=no ;;
7096esac
7097
7098case "$have_compiler:$host:$target:$enable_bootstrap" in
7099 *:*:*:no) ;;
7100
0aed8855 7101 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
7102 # and we are in a native configuration.
7103 yes:$build:$build:default)
0aed8855 7104 enable_bootstrap=yes ;;
9cb3fa6f
PB
7105
7106 *:*:*:default)
7107 enable_bootstrap=no ;;
7108
7109 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 7110 yes:$build:$build:yes)
9cb3fa6f
PB
7111 ;;
7112
7113 # Other configurations, but we have a compiler. Assume the user knows
7114 # what he's doing.
80911fe1 7115 yes:*:*:yes)
81ecdfbb
RW
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7117$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
7118 ;;
7119
7120 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 7121 no:*:*:yes)
81ecdfbb 7122 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
7123
7124 # Fail if wrong command line
7125 *)
81ecdfbb 7126 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
7127 ;;
7128esac
7129
4385ad3c
RW
7130case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7131 *,c++,*:yes:yes) ;;
7132 *:yes:yes)
7133 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7134 ;;
7135esac
7136
16b1ad29
RW
7137case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7138 yes:yes:*\ gold\ *:*,c++,*) ;;
7139 yes:yes:*\ gold\ *:*)
7140 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7141 ;;
7142esac
7143
9cb3fa6f 7144# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7145case $enable_bootstrap in
319cab08 7146 yes)
96655cc4
AO
7147 bootstrap_suffix=bootstrap
7148 BUILD_CONFIG=bootstrap-debug
7149 ;;
319cab08 7150 no)
96655cc4
AO
7151 bootstrap_suffix=no-bootstrap
7152 BUILD_CONFIG=
7153 ;;
319cab08
PB
7154esac
7155
96655cc4
AO
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7157$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7158
7159
7160# Check whether --with-build-config was given.
7161if test "${with_build_config+set}" = set; then :
7162 withval=$with_build_config; case $with_build_config in
7163 yes) with_build_config= ;;
7164 no) with_build_config= BUILD_CONFIG= ;;
7165 esac
7166fi
7167
7168
7169if test "x${with_build_config}" != x; then
7170 BUILD_CONFIG=$with_build_config
7171else
7172 case $BUILD_CONFIG in
7173 bootstrap-debug)
7174 if echo "int f (void) { return 0; }" > conftest.c &&
7175 ${CC} -c conftest.c &&
7176 mv conftest.o conftest.o.g0 &&
7177 ${CC} -c -g conftest.c &&
7178 mv conftest.o conftest.o.g &&
a009f2e7 7179 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7180 :
7181 else
7182 BUILD_CONFIG=
7183 fi
7184 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7185 ;;
7186 esac
7187fi
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7189$as_echo "$BUILD_CONFIG" >&6; }
7190
7191
06a51eac 7192extrasub_build=
6a9cf61e 7193for module in ${build_configdirs} ; do
498d4a71
CF
7194 if test -z "${no_recursion}" \
7195 && test -f ${build_subdir}/${module}/Makefile; then
7196 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7197 rm -f ${build_subdir}/${module}/Makefile
7198 fi
06a51eac 7199 extrasub_build="$extrasub_build
498d4a71
CF
7200/^@if build-$module\$/d
7201/^@endif build-$module\$/d
7202/^@if build-$module-$bootstrap_suffix\$/d
7203/^@endif build-$module-$bootstrap_suffix\$/d"
7204done
06a51eac 7205extrasub_host=
498d4a71 7206for module in ${configdirs} ; do
80911fe1 7207 if test -z "${no_recursion}"; then
8cf39b1b 7208 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7209 if test -f ${file}; then
7210 echo 1>&2 "*** removing ${file} to force reconfigure"
7211 rm -f ${file}
7212 fi
7213 done
498d4a71 7214 fi
06a51eac 7215 extrasub_host="$extrasub_host
498d4a71
CF
7216/^@if $module\$/d
7217/^@endif $module\$/d
7218/^@if $module-$bootstrap_suffix\$/d
7219/^@endif $module-$bootstrap_suffix\$/d"
7220done
06a51eac 7221extrasub_target=
498d4a71
CF
7222for module in ${target_configdirs} ; do
7223 if test -z "${no_recursion}" \
7224 && test -f ${target_subdir}/${module}/Makefile; then
7225 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7226 rm -f ${target_subdir}/${module}/Makefile
7227 fi
e8a5fa9c
RW
7228
7229 # We only bootstrap target libraries listed in bootstrap_target_libs.
7230 case $bootstrap_target_libs in
7231 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7232 *) target_bootstrap_suffix=no-bootstrap ;;
7233 esac
7234
06a51eac 7235 extrasub_target="$extrasub_target
498d4a71
CF
7236/^@if target-$module\$/d
7237/^@endif target-$module\$/d
e8a5fa9c
RW
7238/^@if target-$module-$target_bootstrap_suffix\$/d
7239/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7240done
7241
06a51eac
RW
7242# Do the final fixup along with target modules.
7243extrasub_target="$extrasub_target
6bd3dfaa 7244/^@if /,/^@endif /d"
a0da8069
NN
7245
7246# Create the serialization dependencies. This uses a temporary file.
7247
81ecdfbb
RW
7248# Check whether --enable-serial-configure was given.
7249if test "${enable_serial_configure+set}" = set; then :
7250 enableval=$enable_serial_configure;
7251fi
e6bfb94a
AO
7252
7253
1047cb91
DD
7254case ${enable_serial_configure} in
7255 yes)
7256 enable_serial_build_configure=yes
7257 enable_serial_host_configure=yes
7258 enable_serial_target_configure=yes
7259 ;;
7260esac
7261
a0da8069
NN
7262# These force 'configure's to be done one at a time, to avoid problems
7263# with contention over a shared config.cache.
7264rm -f serdep.tmp
e6bfb94a 7265echo '# serdep.tmp' > serdep.tmp
a0da8069 7266olditem=
1047cb91 7267test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7268for item in ${build_configdirs} ; do
7269 case ${olditem} in
7270 "") ;;
e6bfb94a 7271 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7272 esac
7273 olditem=${item}
7274done
7275olditem=
1047cb91 7276test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7277for item in ${configdirs} ; do
7278 case ${olditem} in
7279 "") ;;
e6bfb94a 7280 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7281 esac
7282 olditem=${item}
7283done
7284olditem=
1047cb91 7285test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7286for item in ${target_configdirs} ; do
7287 case ${olditem} in
7288 "") ;;
e6bfb94a 7289 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7290 esac
7291 olditem=${item}
7292done
7293serialization_dependencies=serdep.tmp
7294
7295
e6bfb94a 7296# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7297# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7298# might not want to pass down to subconfigures. The exception being
7299# --cache-file=/dev/null, which is used to turn off the use of cache
7300# files altogether, and which should be passed on to subconfigures.
7301# Also strip program-prefix, program-suffix, and program-transform-name,
7302# so that we can pass down a consistent program-transform-name.
c6b750e1
DJ
7303baseargs=
7304keep_next=no
7305skip_next=no
7306eval "set -- $ac_configure_args"
18f6b6ee
PB
7307for ac_arg
7308do
c6b750e1
DJ
7309 if test X"$skip_next" = X"yes"; then
7310 skip_next=no
7311 continue
7312 fi
7313 if test X"$keep_next" = X"yes"; then
7314 case $ac_arg in
7315 *\'*)
7316 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7317 esac
7318 baseargs="$baseargs '$ac_arg'"
7319 keep_next=no
7320 continue
7321 fi
7322
7323 # Handle separated arguments. Based on the logic generated by
7324 # autoconf 2.59.
7325 case $ac_arg in
7326 *=* | --config-cache | -C | -disable-* | --disable-* \
7327 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7328 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7329 | -with-* | --with-* | -without-* | --without-* | --x)
7330 separate_arg=no
7331 ;;
7332 -*)
7333 separate_arg=yes
7334 ;;
7335 *)
7336 separate_arg=no
7337 ;;
7338 esac
7339
7340 case "$ac_arg" in
30167e0a
NC
7341 --cache-file=/dev/null | \
7342 -cache-file=/dev/null )
7343 # Handled here to avoid the test to skip args below.
7344 baseargs="$baseargs '$ac_arg'"
7345 # Assert: $separate_arg should always be no.
7346 keep_next=$separate_arg
7347 ;;
c6b750e1
DJ
7348 --no*)
7349 continue
7350 ;;
7351 --c* | \
7352 --sr* | \
7353 --ho* | \
7354 --bu* | \
7355 --t* | \
7356 --program-* | \
7357 -cache_file* | \
7358 -srcdir* | \
7359 -host* | \
7360 -build* | \
7361 -target* | \
7362 -program-prefix* | \
7363 -program-suffix* | \
7364 -program-transform-name* )
7365 skip_next=$separate_arg
7366 continue
7367 ;;
7368 -*)
7369 # An option. Add it.
7370 case $ac_arg in
7371 *\'*)
7372 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7373 esac
7374 baseargs="$baseargs '$ac_arg'"
7375 keep_next=$separate_arg
7376 ;;
7377 *)
7378 # Either a variable assignment, or a nonopt (triplet). Don't
7379 # pass it down; let the Makefile handle this.
7380 continue
7381 ;;
7382 esac
7383done
7384# Remove the initial space we just introduced and, as these will be
7385# expanded by make, quote '$'.
7386baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7387
f27d4f92
DJ
7388# Add in --program-transform-name, after --program-prefix and
7389# --program-suffix have been applied to it. Autoconf has already
7390# doubled dollar signs and backslashes in program_transform_name; we want
7391# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7392# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7393# Also, because we want to override the logic in subdir configure scripts to
7394# choose program_transform_name, replace any s,x,x, with s,y,y,.
7395sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7396${program_transform_name}
7397EOF_SED
7398gcc_transform_name=`cat conftestsed.out`
7399rm -f conftestsed.out
7400baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7401if test "$silent" = yes; then
7402 baseargs="$baseargs --silent"
7403fi
34a0f3cf 7404baseargs="$baseargs --disable-option-checking"
f27d4f92 7405
4074d5f2
RW
7406# Record and document user additions to sub configure arguments.
7407
7408
7409
7410
a0da8069
NN
7411# For the build-side libraries, we just need to pretend we're native,
7412# and not use the same cache file. Multilibs are neither needed nor
7413# desired.
4074d5f2 7414build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7415
7416# For host modules, accept cache file option, or specification as blank.
7417case "${cache_file}" in
7418"") # empty
7419 cache_file_option="" ;;
7420/* | [A-Za-z]:[\\/]* ) # absolute path
7421 cache_file_option="--cache-file=${cache_file}" ;;
7422*) # relative path
7423 cache_file_option="--cache-file=../${cache_file}" ;;
7424esac
7425
82252c06
NN
7426# Host dirs don't like to share a cache file either, horribly enough.
7427# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7428host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7429
4074d5f2 7430target_configargs="$target_configargs ${baseargs}"
a0da8069
NN
7431
7432# Passing a --with-cross-host argument lets the target libraries know
7433# whether they are being built with a cross-compiler or being built
7434# native. However, it would be better to use other mechanisms to make the
7435# sorts of decisions they want to make on this basis. Please consider
7436# this option to be deprecated. FIXME.
7437if test x${is_cross_compiler} = xyes ; then
c6b750e1 7438 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7439fi
7440
938d2b74
RW
7441# Default to --enable-multilib.
7442if test x${enable_multilib} = x ; then
a0da8069 7443 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7444fi
a0da8069
NN
7445
7446# Pass --with-newlib if appropriate. Note that target_configdirs has
7447# changed from the earlier setting of with_newlib.
7448if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7449 target_configargs="--with-newlib ${target_configargs}"
7450fi
7451
95036d20
NN
7452# Different target subdirs use different values of certain variables
7453# (notably CXX). Worse, multilibs use *lots* of different values.
7454# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7455# it doesn't automatically accept command-line overrides of them.
7456# This means it's not safe for target subdirs to share a cache file,
7457# which is disgusting, but there you have it. Hopefully this can be
7458# fixed in future. It's still worthwhile to use a cache file for each
7459# directory. I think.
7460
ae380b45
MS
7461# Pass the appropriate --build, --host, --target and --cache-file arguments.
7462# We need to pass --target, as newer autoconf's requires consistency
7463# for target_alias and gcc doesn't manage it consistently.
4b900473 7464target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7465
a0da8069
NN
7466FLAGS_FOR_TARGET=
7467case " $target_configdirs " in
7468 *" newlib "*)
7469 case " $target_configargs " in
7470 *" --with-newlib "*)
7471 case "$target" in
1f53ca9a
AO
7472 *-cygwin*)
7473 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'
7474 ;;
a0da8069
NN
7475 esac
7476
7477 # If we're not building GCC, don't discard standard headers.
7478 if test -d ${srcdir}/gcc; then
7479 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7480
7481 if test "${build}" != "${host}"; then
7482 # On Canadian crosses, CC_FOR_TARGET will have already been set
7483 # by `configure', so we won't have an opportunity to add -Bgcc/
7484 # to it. This is right: we don't want to search that directory
7485 # for binaries, but we want the header files in there, so add
7486 # them explicitly.
e552509b 7487 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7488
7489 # Someone might think of using the pre-installed headers on
7490 # Canadian crosses, in case the installed compiler is not fully
7491 # compatible with the compiler being built. In this case, it
7492 # would be better to flag an error than risking having
7493 # incompatible object files being constructed. We can't
7494 # guarantee that an error will be flagged, but let's hope the
7495 # compiler will do it, when presented with incompatible header
7496 # files.
7497 fi
7498 fi
7499
7500 case "${target}-${is_cross_compiler}" in
ec11bdc6 7501 i[3456789]86-*-linux*-no)
a0da8069
NN
7502 # Here host == target, so we don't need to build gcc,
7503 # so we don't want to discard standard headers.
7504 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7505 ;;
7506 *)
7507 # If we're building newlib, use its generic headers last, but search
7508 # for any libc-related directories first (so make it the last -B
7509 # switch).
7510 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
7511
7512 # If we're building libgloss, find the startup file, simulator library
7513 # and linker script.
7514 case " $target_configdirs " in
7515 *" libgloss "*)
7516 # Look for startup file, simulator library and maybe linker script.
7517 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7518 # Look for libnosys.a in case the target needs it.
7519 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7520 # Most targets have the linker script in the source directory.
7521 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7522 ;;
7523 esac
a0da8069
NN
7524 ;;
7525 esac
7526 ;;
7527 esac
7528 ;;
7529esac
1f53ca9a 7530
45055374 7531case "$target" in
1f53ca9a
AO
7532 x86_64-*mingw* | *-w64-mingw*)
7533 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7534 # however, use a symlink named 'mingw' in ${prefix} .
7535 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7536 ;;
7537 *-mingw*)
7538 # MinGW can't be handled as Cygwin above since it does not use newlib.
7539 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'
7540 ;;
45055374 7541esac
a0da8069 7542
5fbad20a
DD
7543# Allow the user to override the flags for
7544# our build compiler if desired.
c66487f8
NC
7545if test x"${build}" = x"${host}" ; then
7546 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7547 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7548 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7549fi
5fbad20a 7550
a0da8069
NN
7551# On Canadian crosses, we'll be searching the right directories for
7552# the previously-installed cross compiler, so don't bother to add
7553# flags for directories within the install tree of the compiler
7554# being built; programs in there won't even run.
7555if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7556 # Search for pre-installed headers if nothing else fits.
bba45b8b 7557 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
7558fi
7559
7560if test "x${use_gnu_ld}" = x &&
7561 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7562 # Arrange for us to find uninstalled linker scripts.
b00612cc 7563 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7564fi
7565
a481dbb7
DD
7566# Search for other target-specific linker scripts and such.
7567case "${target}" in
4e206d7e
DB
7568 mep*)
7569 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7570 ;;
7571esac
7572
a0da8069 7573# Makefile fragments.
3e707e94
PB
7574for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7575do
7576 eval fragval=\$$frag
7577 if test $fragval != /dev/null; then
7578 eval $frag=${srcdir}/$fragval
7579 fi
7580done
a0da8069
NN
7581
7582
7583
7584
7585
7586# Miscellanea: directories, flags, etc.
7587
7588
7589
7590
7591
7592
7593
3bbd2f8f 7594
6a9cf61e 7595# Build module lists & subconfigure args.
a0da8069
NN
7596
7597
7598
be01d343
PB
7599# Host module lists & subconfigure args.
7600
7601
7602
911e63d0 7603
be01d343
PB
7604# Target module lists & subconfigure args.
7605
7606
7607
7608# Build tools.
7609
7610
7611
1576798e
PB
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
e552509b 7626
be01d343
PB
7627# Generate default definitions for YACC, M4, LEX and other programs that run
7628# on the build machine. These are used if the Makefile can't locate these
7629# programs in objdir.
7630MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7631
7632for ac_prog in 'bison -y' byacc yacc
7633do
c6b750e1 7634 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7635set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637$as_echo_n "checking for $ac_word... " >&6; }
7638if test "${ac_cv_prog_YACC+set}" = set; then :
7639 $as_echo_n "(cached) " >&6
be01d343
PB
7640else
7641 if test -n "$YACC"; then
7642 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7643else
c6b750e1
DJ
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7651 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7653 break 2
7654 fi
7655done
81ecdfbb
RW
7656 done
7657IFS=$as_save_IFS
c6b750e1 7658
be01d343
PB
7659fi
7660fi
c6b750e1 7661YACC=$ac_cv_prog_YACC
be01d343 7662if test -n "$YACC"; then
81ecdfbb
RW
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7664$as_echo "$YACC" >&6; }
be01d343 7665else
81ecdfbb
RW
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667$as_echo "no" >&6; }
be01d343
PB
7668fi
7669
81ecdfbb 7670
c6b750e1 7671 test -n "$YACC" && break
be01d343
PB
7672done
7673test -n "$YACC" || YACC="$MISSING bison -y"
7674
7675case " $build_configdirs " in
7676 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7677 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7678esac
7679
7680for ac_prog in bison
7681do
c6b750e1 7682 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7683set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685$as_echo_n "checking for $ac_word... " >&6; }
7686if test "${ac_cv_prog_BISON+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
be01d343
PB
7688else
7689 if test -n "$BISON"; then
7690 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7691else
c6b750e1
DJ
7692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7693for as_dir in $PATH
7694do
7695 IFS=$as_save_IFS
7696 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7697 for ac_exec_ext in '' $ac_executable_extensions; do
7698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7699 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7701 break 2
7702 fi
7703done
81ecdfbb
RW
7704 done
7705IFS=$as_save_IFS
c6b750e1 7706
be01d343
PB
7707fi
7708fi
c6b750e1 7709BISON=$ac_cv_prog_BISON
be01d343 7710if test -n "$BISON"; then
81ecdfbb
RW
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7712$as_echo "$BISON" >&6; }
be01d343 7713else
81ecdfbb
RW
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7715$as_echo "no" >&6; }
be01d343
PB
7716fi
7717
81ecdfbb 7718
c6b750e1 7719 test -n "$BISON" && break
be01d343
PB
7720done
7721test -n "$BISON" || BISON="$MISSING bison"
7722
7723case " $build_configdirs " in
7724 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7725esac
7726
7727for ac_prog in gm4 gnum4 m4
7728do
c6b750e1 7729 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7730set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732$as_echo_n "checking for $ac_word... " >&6; }
7733if test "${ac_cv_prog_M4+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
be01d343
PB
7735else
7736 if test -n "$M4"; then
7737 ac_cv_prog_M4="$M4" # Let the user override the test.
7738else
c6b750e1
DJ
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7746 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7748 break 2
7749 fi
7750done
81ecdfbb
RW
7751 done
7752IFS=$as_save_IFS
c6b750e1 7753
be01d343
PB
7754fi
7755fi
c6b750e1 7756M4=$ac_cv_prog_M4
be01d343 7757if test -n "$M4"; then
81ecdfbb
RW
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7759$as_echo "$M4" >&6; }
be01d343 7760else
81ecdfbb
RW
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
be01d343
PB
7763fi
7764
81ecdfbb 7765
c6b750e1 7766 test -n "$M4" && break
be01d343
PB
7767done
7768test -n "$M4" || M4="$MISSING m4"
7769
7770case " $build_configdirs " in
7771 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7772esac
7773
7774for ac_prog in flex lex
7775do
c6b750e1 7776 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7777set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779$as_echo_n "checking for $ac_word... " >&6; }
7780if test "${ac_cv_prog_LEX+set}" = set; then :
7781 $as_echo_n "(cached) " >&6
be01d343
PB
7782else
7783 if test -n "$LEX"; then
7784 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7785else
c6b750e1
DJ
7786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787for as_dir in $PATH
7788do
7789 IFS=$as_save_IFS
7790 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7793 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7795 break 2
7796 fi
7797done
81ecdfbb
RW
7798 done
7799IFS=$as_save_IFS
c6b750e1 7800
be01d343
PB
7801fi
7802fi
c6b750e1 7803LEX=$ac_cv_prog_LEX
be01d343 7804if test -n "$LEX"; then
81ecdfbb
RW
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7806$as_echo "$LEX" >&6; }
be01d343 7807else
81ecdfbb
RW
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809$as_echo "no" >&6; }
be01d343
PB
7810fi
7811
81ecdfbb 7812
c6b750e1 7813 test -n "$LEX" && break
be01d343
PB
7814done
7815test -n "$LEX" || LEX="$MISSING flex"
7816
7817case " $build_configdirs " in
7818 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7819 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7820esac
7821
7822for ac_prog in flex
7823do
c6b750e1 7824 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7825set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827$as_echo_n "checking for $ac_word... " >&6; }
7828if test "${ac_cv_prog_FLEX+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
be01d343
PB
7830else
7831 if test -n "$FLEX"; then
7832 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7833else
c6b750e1
DJ
7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7841 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7843 break 2
7844 fi
7845done
81ecdfbb
RW
7846 done
7847IFS=$as_save_IFS
c6b750e1 7848
be01d343
PB
7849fi
7850fi
c6b750e1 7851FLEX=$ac_cv_prog_FLEX
be01d343 7852if test -n "$FLEX"; then
81ecdfbb
RW
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7854$as_echo "$FLEX" >&6; }
be01d343 7855else
81ecdfbb
RW
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857$as_echo "no" >&6; }
be01d343
PB
7858fi
7859
81ecdfbb 7860
c6b750e1 7861 test -n "$FLEX" && break
be01d343
PB
7862done
7863test -n "$FLEX" || FLEX="$MISSING flex"
7864
7865case " $build_configdirs " in
7866 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7867esac
7868
7869for ac_prog in makeinfo
7870do
c6b750e1 7871 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7872set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874$as_echo_n "checking for $ac_word... " >&6; }
7875if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
be01d343
PB
7877else
7878 if test -n "$MAKEINFO"; then
7879 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7880else
c6b750e1
DJ
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7888 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7890 break 2
7891 fi
7892done
81ecdfbb
RW
7893 done
7894IFS=$as_save_IFS
c6b750e1 7895
be01d343
PB
7896fi
7897fi
c6b750e1 7898MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7899if test -n "$MAKEINFO"; then
81ecdfbb
RW
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7901$as_echo "$MAKEINFO" >&6; }
be01d343 7902else
81ecdfbb
RW
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904$as_echo "no" >&6; }
be01d343
PB
7905fi
7906
81ecdfbb 7907
c6b750e1 7908 test -n "$MAKEINFO" && break
be01d343
PB
7909done
7910test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7911
7912case " $build_configdirs " in
7913 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7914 *)
7915
10ad8ef3 7916 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7917 # higher, else we use the "missing" dummy.
7918 if ${MAKEINFO} --version \
10ad8ef3 7919 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7920 :
7921 else
7922 MAKEINFO="$MISSING makeinfo"
7923 fi
7924 ;;
7925
7926esac
a0da8069 7927
be01d343 7928# FIXME: expect and dejagnu may become build tools?
a0da8069 7929
be01d343
PB
7930for ac_prog in expect
7931do
c6b750e1 7932 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7933set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935$as_echo_n "checking for $ac_word... " >&6; }
7936if test "${ac_cv_prog_EXPECT+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
be01d343
PB
7938else
7939 if test -n "$EXPECT"; then
7940 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7941else
c6b750e1
DJ
7942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943for as_dir in $PATH
7944do
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7949 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7951 break 2
7952 fi
7953done
81ecdfbb
RW
7954 done
7955IFS=$as_save_IFS
c6b750e1 7956
be01d343
PB
7957fi
7958fi
c6b750e1 7959EXPECT=$ac_cv_prog_EXPECT
be01d343 7960if test -n "$EXPECT"; then
81ecdfbb
RW
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7962$as_echo "$EXPECT" >&6; }
be01d343 7963else
81ecdfbb
RW
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965$as_echo "no" >&6; }
be01d343 7966fi
a0da8069 7967
81ecdfbb 7968
c6b750e1 7969 test -n "$EXPECT" && break
be01d343
PB
7970done
7971test -n "$EXPECT" || EXPECT="expect"
a0da8069 7972
be01d343
PB
7973case " $configdirs " in
7974 *" expect "*)
7975 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7976 ;;
7977esac
a0da8069 7978
be01d343
PB
7979for ac_prog in runtest
7980do
c6b750e1 7981 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7982set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7984$as_echo_n "checking for $ac_word... " >&6; }
7985if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7986 $as_echo_n "(cached) " >&6
be01d343
PB
7987else
7988 if test -n "$RUNTEST"; then
7989 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7990else
c6b750e1
DJ
7991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7992for as_dir in $PATH
7993do
7994 IFS=$as_save_IFS
7995 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7996 for ac_exec_ext in '' $ac_executable_extensions; do
7997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7998 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8000 break 2
8001 fi
8002done
81ecdfbb
RW
8003 done
8004IFS=$as_save_IFS
c6b750e1 8005
be01d343
PB
8006fi
8007fi
c6b750e1 8008RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8009if test -n "$RUNTEST"; then
81ecdfbb
RW
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8011$as_echo "$RUNTEST" >&6; }
be01d343 8012else
81ecdfbb
RW
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8014$as_echo "no" >&6; }
be01d343 8015fi
a0da8069 8016
81ecdfbb 8017
c6b750e1 8018 test -n "$RUNTEST" && break
be01d343
PB
8019done
8020test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8021
be01d343
PB
8022case " $configdirs " in
8023 *" dejagnu "*)
6b89cc21 8024 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8025 ;;
8026esac
a0da8069
NN
8027
8028
a0da8069 8029# Host tools.
859789af
AC
8030ncn_tool_prefix=
8031test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8032ncn_target_tool_prefix=
8033test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8034
9a819804
AO
8035
8036
8037if test -n "$AR"; then
8038 ac_cv_prog_AR=$AR
8039elif test -n "$ac_cv_prog_AR"; then
8040 AR=$ac_cv_prog_AR
8041fi
8042
8043if test -n "$ac_cv_prog_AR"; then
8044 for ncn_progname in ar; do
8045 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8046set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048$as_echo_n "checking for $ac_word... " >&6; }
8049if test "${ac_cv_prog_AR+set}" = set; then :
8050 $as_echo_n "(cached) " >&6
9a819804
AO
8051else
8052 if test -n "$AR"; then
8053 ac_cv_prog_AR="$AR" # Let the user override the test.
8054else
8055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056for as_dir in $PATH
8057do
8058 IFS=$as_save_IFS
8059 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8062 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8064 break 2
8065 fi
8066done
81ecdfbb
RW
8067 done
8068IFS=$as_save_IFS
9a819804
AO
8069
8070fi
8071fi
8072AR=$ac_cv_prog_AR
8073if test -n "$AR"; then
81ecdfbb
RW
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8075$as_echo "$AR" >&6; }
9a819804 8076else
81ecdfbb
RW
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078$as_echo "no" >&6; }
9a819804
AO
8079fi
8080
81ecdfbb 8081
9a819804
AO
8082 done
8083fi
8084
8085for ncn_progname in ar; do
05cbd757
PB
8086 if test -n "$ncn_tool_prefix"; then
8087 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8088set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090$as_echo_n "checking for $ac_word... " >&6; }
8091if test "${ac_cv_prog_AR+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
859789af
AC
8093else
8094 if test -n "$AR"; then
8095 ac_cv_prog_AR="$AR" # Let the user override the test.
8096else
c6b750e1
DJ
8097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098for as_dir in $PATH
8099do
8100 IFS=$as_save_IFS
8101 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8104 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8106 break 2
8107 fi
8108done
81ecdfbb
RW
8109 done
8110IFS=$as_save_IFS
c6b750e1 8111
859789af
AC
8112fi
8113fi
c6b750e1 8114AR=$ac_cv_prog_AR
859789af 8115if test -n "$AR"; then
81ecdfbb
RW
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8117$as_echo "$AR" >&6; }
859789af 8118else
81ecdfbb
RW
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120$as_echo "no" >&6; }
859789af
AC
8121fi
8122
81ecdfbb 8123
05cbd757
PB
8124 fi
8125 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8127set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8129$as_echo_n "checking for $ac_word... " >&6; }
8130if test "${ac_cv_prog_AR+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
859789af 8132else
05cbd757
PB
8133 if test -n "$AR"; then
8134 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8135else
c6b750e1
DJ
8136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8137for as_dir in $PATH
8138do
8139 IFS=$as_save_IFS
8140 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8141 for ac_exec_ext in '' $ac_executable_extensions; do
8142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8143 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8145 break 2
8146 fi
8147done
81ecdfbb
RW
8148 done
8149IFS=$as_save_IFS
c6b750e1 8150
859789af
AC
8151fi
8152fi
c6b750e1 8153AR=$ac_cv_prog_AR
05cbd757 8154if test -n "$AR"; then
81ecdfbb
RW
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8156$as_echo "$AR" >&6; }
859789af 8157else
81ecdfbb
RW
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159$as_echo "no" >&6; }
859789af 8160fi
c6b750e1 8161
81ecdfbb 8162
05cbd757
PB
8163 fi
8164 test -n "$ac_cv_prog_AR" && break
8165done
8166
8167if test -z "$ac_cv_prog_AR" ; then
8168 set dummy ar
8169 if test $build = $host ; then
8170 AR="$2"
859789af 8171 else
05cbd757 8172 AR="${ncn_tool_prefix}$2"
859789af 8173 fi
859789af
AC
8174fi
8175
9a819804
AO
8176
8177
8178if test -n "$AS"; then
8179 ac_cv_prog_AS=$AS
8180elif test -n "$ac_cv_prog_AS"; then
8181 AS=$ac_cv_prog_AS
8182fi
8183
8184if test -n "$ac_cv_prog_AS"; then
8185 for ncn_progname in as; do
8186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8187set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189$as_echo_n "checking for $ac_word... " >&6; }
8190if test "${ac_cv_prog_AS+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
9a819804
AO
8192else
8193 if test -n "$AS"; then
8194 ac_cv_prog_AS="$AS" # Let the user override the test.
8195else
8196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197for as_dir in $PATH
8198do
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8203 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8205 break 2
8206 fi
8207done
81ecdfbb
RW
8208 done
8209IFS=$as_save_IFS
9a819804
AO
8210
8211fi
8212fi
8213AS=$ac_cv_prog_AS
8214if test -n "$AS"; then
81ecdfbb
RW
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8216$as_echo "$AS" >&6; }
9a819804 8217else
81ecdfbb
RW
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219$as_echo "no" >&6; }
9a819804
AO
8220fi
8221
81ecdfbb 8222
9a819804
AO
8223 done
8224fi
8225
8226for ncn_progname in as; do
05cbd757
PB
8227 if test -n "$ncn_tool_prefix"; then
8228 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8229set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231$as_echo_n "checking for $ac_word... " >&6; }
8232if test "${ac_cv_prog_AS+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
859789af
AC
8234else
8235 if test -n "$AS"; then
8236 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8237else
8238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239for as_dir in $PATH
8240do
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8245 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8247 break 2
8248 fi
8249done
81ecdfbb
RW
8250 done
8251IFS=$as_save_IFS
c6b750e1 8252
859789af
AC
8253fi
8254fi
c6b750e1 8255AS=$ac_cv_prog_AS
859789af 8256if test -n "$AS"; then
81ecdfbb
RW
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8258$as_echo "$AS" >&6; }
859789af 8259else
81ecdfbb
RW
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261$as_echo "no" >&6; }
859789af
AC
8262fi
8263
81ecdfbb 8264
05cbd757
PB
8265 fi
8266 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8268set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270$as_echo_n "checking for $ac_word... " >&6; }
8271if test "${ac_cv_prog_AS+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
859789af 8273else
05cbd757
PB
8274 if test -n "$AS"; then
8275 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8276else
c6b750e1
DJ
8277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278for as_dir in $PATH
8279do
8280 IFS=$as_save_IFS
8281 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8284 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8286 break 2
8287 fi
8288done
81ecdfbb
RW
8289 done
8290IFS=$as_save_IFS
c6b750e1 8291
859789af
AC
8292fi
8293fi
c6b750e1 8294AS=$ac_cv_prog_AS
05cbd757 8295if test -n "$AS"; then
81ecdfbb
RW
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8297$as_echo "$AS" >&6; }
859789af 8298else
81ecdfbb
RW
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300$as_echo "no" >&6; }
859789af 8301fi
c6b750e1 8302
81ecdfbb 8303
05cbd757
PB
8304 fi
8305 test -n "$ac_cv_prog_AS" && break
8306done
8307
8308if test -z "$ac_cv_prog_AS" ; then
8309 set dummy as
8310 if test $build = $host ; then
8311 AS="$2"
859789af 8312 else
05cbd757 8313 AS="${ncn_tool_prefix}$2"
859789af 8314 fi
859789af
AC
8315fi
8316
9a819804
AO
8317
8318
8319if test -n "$DLLTOOL"; then
8320 ac_cv_prog_DLLTOOL=$DLLTOOL
8321elif test -n "$ac_cv_prog_DLLTOOL"; then
8322 DLLTOOL=$ac_cv_prog_DLLTOOL
8323fi
8324
8325if test -n "$ac_cv_prog_DLLTOOL"; then
8326 for ncn_progname in dlltool; do
8327 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8328set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330$as_echo_n "checking for $ac_word... " >&6; }
8331if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
9a819804
AO
8333else
8334 if test -n "$DLLTOOL"; then
8335 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8336else
8337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338for as_dir in $PATH
8339do
8340 IFS=$as_save_IFS
8341 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8344 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8346 break 2
8347 fi
8348done
81ecdfbb
RW
8349 done
8350IFS=$as_save_IFS
9a819804
AO
8351
8352fi
8353fi
8354DLLTOOL=$ac_cv_prog_DLLTOOL
8355if test -n "$DLLTOOL"; then
81ecdfbb
RW
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8357$as_echo "$DLLTOOL" >&6; }
9a819804 8358else
81ecdfbb
RW
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360$as_echo "no" >&6; }
9a819804
AO
8361fi
8362
81ecdfbb 8363
9a819804
AO
8364 done
8365fi
8366
8367for ncn_progname in dlltool; do
05cbd757
PB
8368 if test -n "$ncn_tool_prefix"; then
8369 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8370set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372$as_echo_n "checking for $ac_word... " >&6; }
8373if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8374 $as_echo_n "(cached) " >&6
859789af
AC
8375else
8376 if test -n "$DLLTOOL"; then
8377 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8378else
c6b750e1
DJ
8379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380for as_dir in $PATH
8381do
8382 IFS=$as_save_IFS
8383 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8386 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8388 break 2
8389 fi
8390done
81ecdfbb
RW
8391 done
8392IFS=$as_save_IFS
c6b750e1 8393
859789af
AC
8394fi
8395fi
c6b750e1 8396DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8397if test -n "$DLLTOOL"; then
81ecdfbb
RW
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8399$as_echo "$DLLTOOL" >&6; }
859789af 8400else
81ecdfbb
RW
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402$as_echo "no" >&6; }
859789af
AC
8403fi
8404
81ecdfbb 8405
05cbd757
PB
8406 fi
8407 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8409set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411$as_echo_n "checking for $ac_word... " >&6; }
8412if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8413 $as_echo_n "(cached) " >&6
859789af 8414else
05cbd757
PB
8415 if test -n "$DLLTOOL"; then
8416 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8417else
c6b750e1
DJ
8418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419for as_dir in $PATH
8420do
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8425 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8427 break 2
8428 fi
8429done
81ecdfbb
RW
8430 done
8431IFS=$as_save_IFS
c6b750e1 8432
859789af
AC
8433fi
8434fi
c6b750e1 8435DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8436if test -n "$DLLTOOL"; then
81ecdfbb
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8438$as_echo "$DLLTOOL" >&6; }
859789af 8439else
81ecdfbb
RW
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441$as_echo "no" >&6; }
859789af 8442fi
c6b750e1 8443
81ecdfbb 8444
05cbd757
PB
8445 fi
8446 test -n "$ac_cv_prog_DLLTOOL" && break
8447done
8448
8449if test -z "$ac_cv_prog_DLLTOOL" ; then
8450 set dummy dlltool
8451 if test $build = $host ; then
8452 DLLTOOL="$2"
859789af 8453 else
05cbd757 8454 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8455 fi
859789af
AC
8456fi
8457
9a819804
AO
8458
8459
8460if test -n "$LD"; then
8461 ac_cv_prog_LD=$LD
8462elif test -n "$ac_cv_prog_LD"; then
8463 LD=$ac_cv_prog_LD
8464fi
8465
8466if test -n "$ac_cv_prog_LD"; then
8467 for ncn_progname in ld; do
8468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8469set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471$as_echo_n "checking for $ac_word... " >&6; }
8472if test "${ac_cv_prog_LD+set}" = set; then :
8473 $as_echo_n "(cached) " >&6
9a819804
AO
8474else
8475 if test -n "$LD"; then
8476 ac_cv_prog_LD="$LD" # Let the user override the test.
8477else
8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8485 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8487 break 2
8488 fi
8489done
81ecdfbb
RW
8490 done
8491IFS=$as_save_IFS
9a819804
AO
8492
8493fi
8494fi
8495LD=$ac_cv_prog_LD
8496if test -n "$LD"; then
81ecdfbb
RW
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8498$as_echo "$LD" >&6; }
9a819804 8499else
81ecdfbb
RW
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501$as_echo "no" >&6; }
9a819804
AO
8502fi
8503
81ecdfbb 8504
9a819804
AO
8505 done
8506fi
8507
8508for ncn_progname in ld; do
05cbd757
PB
8509 if test -n "$ncn_tool_prefix"; then
8510 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8511set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513$as_echo_n "checking for $ac_word... " >&6; }
8514if test "${ac_cv_prog_LD+set}" = set; then :
8515 $as_echo_n "(cached) " >&6
859789af
AC
8516else
8517 if test -n "$LD"; then
8518 ac_cv_prog_LD="$LD" # Let the user override the test.
8519else
c6b750e1
DJ
8520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521for as_dir in $PATH
8522do
8523 IFS=$as_save_IFS
8524 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8527 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8529 break 2
8530 fi
8531done
81ecdfbb
RW
8532 done
8533IFS=$as_save_IFS
c6b750e1 8534
859789af
AC
8535fi
8536fi
c6b750e1 8537LD=$ac_cv_prog_LD
859789af 8538if test -n "$LD"; then
81ecdfbb
RW
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8540$as_echo "$LD" >&6; }
859789af 8541else
81ecdfbb
RW
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543$as_echo "no" >&6; }
859789af
AC
8544fi
8545
81ecdfbb 8546
05cbd757
PB
8547 fi
8548 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8550set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552$as_echo_n "checking for $ac_word... " >&6; }
8553if test "${ac_cv_prog_LD+set}" = set; then :
8554 $as_echo_n "(cached) " >&6
859789af 8555else
05cbd757
PB
8556 if test -n "$LD"; then
8557 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8558else
c6b750e1
DJ
8559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560for as_dir in $PATH
8561do
8562 IFS=$as_save_IFS
8563 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8566 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8568 break 2
8569 fi
8570done
81ecdfbb
RW
8571 done
8572IFS=$as_save_IFS
c6b750e1 8573
859789af
AC
8574fi
8575fi
c6b750e1 8576LD=$ac_cv_prog_LD
05cbd757 8577if test -n "$LD"; then
81ecdfbb
RW
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8579$as_echo "$LD" >&6; }
859789af 8580else
81ecdfbb
RW
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582$as_echo "no" >&6; }
859789af 8583fi
c6b750e1 8584
81ecdfbb 8585
05cbd757
PB
8586 fi
8587 test -n "$ac_cv_prog_LD" && break
8588done
8589
8590if test -z "$ac_cv_prog_LD" ; then
8591 set dummy ld
8592 if test $build = $host ; then
8593 LD="$2"
859789af 8594 else
05cbd757 8595 LD="${ncn_tool_prefix}$2"
859789af 8596 fi
859789af
AC
8597fi
8598
9a819804
AO
8599
8600
8601if test -n "$LIPO"; then
8602 ac_cv_prog_LIPO=$LIPO
8603elif test -n "$ac_cv_prog_LIPO"; then
8604 LIPO=$ac_cv_prog_LIPO
8605fi
8606
8607if test -n "$ac_cv_prog_LIPO"; then
8608 for ncn_progname in lipo; do
8609 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8610set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612$as_echo_n "checking for $ac_word... " >&6; }
8613if test "${ac_cv_prog_LIPO+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
9a819804
AO
8615else
8616 if test -n "$LIPO"; then
8617 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8618else
8619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8620for as_dir in $PATH
8621do
8622 IFS=$as_save_IFS
8623 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8626 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8628 break 2
8629 fi
8630done
81ecdfbb
RW
8631 done
8632IFS=$as_save_IFS
9a819804
AO
8633
8634fi
8635fi
8636LIPO=$ac_cv_prog_LIPO
8637if test -n "$LIPO"; then
81ecdfbb
RW
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8639$as_echo "$LIPO" >&6; }
9a819804 8640else
81ecdfbb
RW
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642$as_echo "no" >&6; }
9a819804
AO
8643fi
8644
81ecdfbb 8645
9a819804
AO
8646 done
8647fi
8648
8649for ncn_progname in lipo; do
be01d343
PB
8650 if test -n "$ncn_tool_prefix"; then
8651 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8652set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8654$as_echo_n "checking for $ac_word... " >&6; }
8655if test "${ac_cv_prog_LIPO+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
be01d343
PB
8657else
8658 if test -n "$LIPO"; then
8659 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8660else
c6b750e1
DJ
8661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662for as_dir in $PATH
8663do
8664 IFS=$as_save_IFS
8665 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8666 for ac_exec_ext in '' $ac_executable_extensions; do
8667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8668 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8670 break 2
8671 fi
8672done
81ecdfbb
RW
8673 done
8674IFS=$as_save_IFS
c6b750e1 8675
be01d343
PB
8676fi
8677fi
c6b750e1 8678LIPO=$ac_cv_prog_LIPO
be01d343 8679if test -n "$LIPO"; then
81ecdfbb
RW
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8681$as_echo "$LIPO" >&6; }
be01d343 8682else
81ecdfbb
RW
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684$as_echo "no" >&6; }
be01d343
PB
8685fi
8686
81ecdfbb 8687
be01d343
PB
8688 fi
8689 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8691set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693$as_echo_n "checking for $ac_word... " >&6; }
8694if test "${ac_cv_prog_LIPO+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
be01d343
PB
8696else
8697 if test -n "$LIPO"; then
8698 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8699else
c6b750e1
DJ
8700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8707 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8709 break 2
8710 fi
8711done
81ecdfbb
RW
8712 done
8713IFS=$as_save_IFS
c6b750e1 8714
be01d343
PB
8715fi
8716fi
c6b750e1 8717LIPO=$ac_cv_prog_LIPO
be01d343 8718if test -n "$LIPO"; then
81ecdfbb
RW
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8720$as_echo "$LIPO" >&6; }
be01d343 8721else
81ecdfbb
RW
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723$as_echo "no" >&6; }
be01d343 8724fi
c6b750e1 8725
81ecdfbb 8726
be01d343
PB
8727 fi
8728 test -n "$ac_cv_prog_LIPO" && break
8729done
8730
8731if test -z "$ac_cv_prog_LIPO" ; then
8732 set dummy lipo
8733 if test $build = $host ; then
8734 LIPO="$2"
8735 else
8736 LIPO="${ncn_tool_prefix}$2"
8737 fi
8738fi
8739
9a819804
AO
8740
8741
8742if test -n "$NM"; then
8743 ac_cv_prog_NM=$NM
8744elif test -n "$ac_cv_prog_NM"; then
8745 NM=$ac_cv_prog_NM
8746fi
8747
8748if test -n "$ac_cv_prog_NM"; then
8749 for ncn_progname in nm; do
8750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8751set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8753$as_echo_n "checking for $ac_word... " >&6; }
8754if test "${ac_cv_prog_NM+set}" = set; then :
8755 $as_echo_n "(cached) " >&6
859789af
AC
8756else
8757 if test -n "$NM"; then
8758 ac_cv_prog_NM="$NM" # Let the user override the test.
8759else
c6b750e1
DJ
8760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761for as_dir in $PATH
8762do
8763 IFS=$as_save_IFS
8764 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8765 for ac_exec_ext in '' $ac_executable_extensions; do
8766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8767 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8769 break 2
8770 fi
8771done
81ecdfbb
RW
8772 done
8773IFS=$as_save_IFS
c6b750e1 8774
859789af
AC
8775fi
8776fi
c6b750e1 8777NM=$ac_cv_prog_NM
859789af 8778if test -n "$NM"; then
81ecdfbb
RW
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8780$as_echo "$NM" >&6; }
859789af 8781else
81ecdfbb
RW
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783$as_echo "no" >&6; }
859789af
AC
8784fi
8785
81ecdfbb 8786
9a819804
AO
8787 done
8788fi
8789
8790for ncn_progname in nm; do
8791 if test -n "$ncn_tool_prefix"; then
8792 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8793set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795$as_echo_n "checking for $ac_word... " >&6; }
8796if test "${ac_cv_prog_NM+set}" = set; then :
8797 $as_echo_n "(cached) " >&6
859789af 8798else
05cbd757
PB
8799 if test -n "$NM"; then
8800 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8801else
c6b750e1
DJ
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8809 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8811 break 2
8812 fi
8813done
81ecdfbb
RW
8814 done
8815IFS=$as_save_IFS
c6b750e1 8816
859789af
AC
8817fi
8818fi
c6b750e1 8819NM=$ac_cv_prog_NM
05cbd757 8820if test -n "$NM"; then
81ecdfbb
RW
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8822$as_echo "$NM" >&6; }
859789af 8823else
81ecdfbb
RW
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825$as_echo "no" >&6; }
859789af 8826fi
c6b750e1 8827
81ecdfbb 8828
05cbd757 8829 fi
9a819804
AO
8830 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8832set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834$as_echo_n "checking for $ac_word... " >&6; }
8835if test "${ac_cv_prog_NM+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
9a819804
AO
8837else
8838 if test -n "$NM"; then
8839 ac_cv_prog_NM="$NM" # Let the user override the test.
8840else
8841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842for as_dir in $PATH
8843do
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8848 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8850 break 2
8851 fi
8852done
81ecdfbb
RW
8853 done
8854IFS=$as_save_IFS
9a819804
AO
8855
8856fi
8857fi
8858NM=$ac_cv_prog_NM
8859if test -n "$NM"; then
81ecdfbb
RW
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8861$as_echo "$NM" >&6; }
9a819804 8862else
81ecdfbb
RW
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864$as_echo "no" >&6; }
9a819804
AO
8865fi
8866
81ecdfbb 8867
9a819804
AO
8868 fi
8869 test -n "$ac_cv_prog_NM" && break
8870done
8871
8872if test -z "$ac_cv_prog_NM" ; then
8873 set dummy nm
8874 if test $build = $host ; then
8875 NM="$2"
8876 else
8877 NM="${ncn_tool_prefix}$2"
8878 fi
8879fi
8880
8881
8882
8883if test -n "$RANLIB"; then
8884 ac_cv_prog_RANLIB=$RANLIB
8885elif test -n "$ac_cv_prog_RANLIB"; then
8886 RANLIB=$ac_cv_prog_RANLIB
8887fi
8888
8889if test -n "$ac_cv_prog_RANLIB"; then
8890 for ncn_progname in ranlib; do
8891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8892set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8894$as_echo_n "checking for $ac_word... " >&6; }
8895if test "${ac_cv_prog_RANLIB+set}" = set; then :
8896 $as_echo_n "(cached) " >&6
9a819804
AO
8897else
8898 if test -n "$RANLIB"; then
8899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8900else
8901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8902for as_dir in $PATH
8903do
8904 IFS=$as_save_IFS
8905 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8906 for ac_exec_ext in '' $ac_executable_extensions; do
8907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8908 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8910 break 2
8911 fi
8912done
81ecdfbb
RW
8913 done
8914IFS=$as_save_IFS
9a819804
AO
8915
8916fi
8917fi
8918RANLIB=$ac_cv_prog_RANLIB
8919if test -n "$RANLIB"; then
81ecdfbb
RW
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8921$as_echo "$RANLIB" >&6; }
9a819804 8922else
81ecdfbb
RW
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8924$as_echo "no" >&6; }
9a819804
AO
8925fi
8926
81ecdfbb 8927
9a819804
AO
8928 done
8929fi
859789af 8930
9a819804 8931for ncn_progname in ranlib; do
05cbd757
PB
8932 if test -n "$ncn_tool_prefix"; then
8933 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8934set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8936$as_echo_n "checking for $ac_word... " >&6; }
8937if test "${ac_cv_prog_RANLIB+set}" = set; then :
8938 $as_echo_n "(cached) " >&6
859789af
AC
8939else
8940 if test -n "$RANLIB"; then
8941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8942else
c6b750e1
DJ
8943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944for as_dir in $PATH
8945do
8946 IFS=$as_save_IFS
8947 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8948 for ac_exec_ext in '' $ac_executable_extensions; do
8949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8950 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8952 break 2
8953 fi
8954done
81ecdfbb
RW
8955 done
8956IFS=$as_save_IFS
c6b750e1 8957
859789af
AC
8958fi
8959fi
c6b750e1 8960RANLIB=$ac_cv_prog_RANLIB
859789af 8961if test -n "$RANLIB"; then
81ecdfbb
RW
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8963$as_echo "$RANLIB" >&6; }
859789af 8964else
81ecdfbb
RW
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966$as_echo "no" >&6; }
859789af
AC
8967fi
8968
81ecdfbb 8969
05cbd757
PB
8970 fi
8971 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8973set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8975$as_echo_n "checking for $ac_word... " >&6; }
8976if test "${ac_cv_prog_RANLIB+set}" = set; then :
8977 $as_echo_n "(cached) " >&6
859789af 8978else
05cbd757
PB
8979 if test -n "$RANLIB"; then
8980 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8981else
c6b750e1
DJ
8982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983for as_dir in $PATH
8984do
8985 IFS=$as_save_IFS
8986 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8987 for ac_exec_ext in '' $ac_executable_extensions; do
8988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8989 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8991 break 2
8992 fi
8993done
81ecdfbb
RW
8994 done
8995IFS=$as_save_IFS
c6b750e1 8996
859789af
AC
8997fi
8998fi
c6b750e1 8999RANLIB=$ac_cv_prog_RANLIB
05cbd757 9000if test -n "$RANLIB"; then
81ecdfbb
RW
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9002$as_echo "$RANLIB" >&6; }
859789af 9003else
81ecdfbb
RW
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005$as_echo "no" >&6; }
859789af 9006fi
c6b750e1 9007
81ecdfbb 9008
859789af 9009 fi
05cbd757
PB
9010 test -n "$ac_cv_prog_RANLIB" && break
9011done
9012
9013if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9014 RANLIB="true"
859789af
AC
9015fi
9016
9a819804
AO
9017
9018
9019if test -n "$STRIP"; then
9020 ac_cv_prog_STRIP=$STRIP
9021elif test -n "$ac_cv_prog_STRIP"; then
9022 STRIP=$ac_cv_prog_STRIP
9023fi
9024
9025if test -n "$ac_cv_prog_STRIP"; then
9026 for ncn_progname in strip; do
9027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9028set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030$as_echo_n "checking for $ac_word... " >&6; }
9031if test "${ac_cv_prog_STRIP+set}" = set; then :
9032 $as_echo_n "(cached) " >&6
9a819804
AO
9033else
9034 if test -n "$STRIP"; then
9035 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9036else
9037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038for as_dir in $PATH
9039do
9040 IFS=$as_save_IFS
9041 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9042 for ac_exec_ext in '' $ac_executable_extensions; do
9043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9044 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9046 break 2
9047 fi
9048done
81ecdfbb
RW
9049 done
9050IFS=$as_save_IFS
9a819804
AO
9051
9052fi
9053fi
9054STRIP=$ac_cv_prog_STRIP
9055if test -n "$STRIP"; then
81ecdfbb
RW
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9057$as_echo "$STRIP" >&6; }
9a819804 9058else
81ecdfbb
RW
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060$as_echo "no" >&6; }
9a819804
AO
9061fi
9062
81ecdfbb 9063
9a819804
AO
9064 done
9065fi
9066
9067for ncn_progname in strip; do
be01d343
PB
9068 if test -n "$ncn_tool_prefix"; then
9069 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9070set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9072$as_echo_n "checking for $ac_word... " >&6; }
9073if test "${ac_cv_prog_STRIP+set}" = set; then :
9074 $as_echo_n "(cached) " >&6
be01d343
PB
9075else
9076 if test -n "$STRIP"; then
9077 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9078else
c6b750e1
DJ
9079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080for as_dir in $PATH
9081do
9082 IFS=$as_save_IFS
9083 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9084 for ac_exec_ext in '' $ac_executable_extensions; do
9085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9086 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9088 break 2
9089 fi
9090done
81ecdfbb
RW
9091 done
9092IFS=$as_save_IFS
c6b750e1 9093
be01d343
PB
9094fi
9095fi
c6b750e1 9096STRIP=$ac_cv_prog_STRIP
be01d343 9097if test -n "$STRIP"; then
81ecdfbb
RW
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9099$as_echo "$STRIP" >&6; }
be01d343 9100else
81ecdfbb
RW
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9102$as_echo "no" >&6; }
be01d343
PB
9103fi
9104
81ecdfbb 9105
be01d343
PB
9106 fi
9107 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9109set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9111$as_echo_n "checking for $ac_word... " >&6; }
9112if test "${ac_cv_prog_STRIP+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
be01d343
PB
9114else
9115 if test -n "$STRIP"; then
9116 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9117else
c6b750e1
DJ
9118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9119for as_dir in $PATH
9120do
9121 IFS=$as_save_IFS
9122 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9123 for ac_exec_ext in '' $ac_executable_extensions; do
9124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9125 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9127 break 2
9128 fi
9129done
81ecdfbb
RW
9130 done
9131IFS=$as_save_IFS
c6b750e1 9132
be01d343
PB
9133fi
9134fi
c6b750e1 9135STRIP=$ac_cv_prog_STRIP
be01d343 9136if test -n "$STRIP"; then
81ecdfbb
RW
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9138$as_echo "$STRIP" >&6; }
be01d343 9139else
81ecdfbb
RW
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141$as_echo "no" >&6; }
be01d343 9142fi
c6b750e1 9143
81ecdfbb 9144
be01d343
PB
9145 fi
9146 test -n "$ac_cv_prog_STRIP" && break
9147done
9148
9149if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9150 STRIP="true"
be01d343
PB
9151fi
9152
9a819804
AO
9153
9154
9155if test -n "$WINDRES"; then
9156 ac_cv_prog_WINDRES=$WINDRES
9157elif test -n "$ac_cv_prog_WINDRES"; then
9158 WINDRES=$ac_cv_prog_WINDRES
9159fi
9160
9161if test -n "$ac_cv_prog_WINDRES"; then
9162 for ncn_progname in windres; do
9163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9164set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166$as_echo_n "checking for $ac_word... " >&6; }
9167if test "${ac_cv_prog_WINDRES+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9a819804
AO
9169else
9170 if test -n "$WINDRES"; then
9171 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9172else
9173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174for as_dir in $PATH
9175do
9176 IFS=$as_save_IFS
9177 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9178 for ac_exec_ext in '' $ac_executable_extensions; do
9179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9180 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9182 break 2
9183 fi
9184done
81ecdfbb
RW
9185 done
9186IFS=$as_save_IFS
9a819804
AO
9187
9188fi
9189fi
9190WINDRES=$ac_cv_prog_WINDRES
9191if test -n "$WINDRES"; then
81ecdfbb
RW
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9193$as_echo "$WINDRES" >&6; }
9a819804 9194else
81ecdfbb
RW
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196$as_echo "no" >&6; }
9a819804
AO
9197fi
9198
81ecdfbb 9199
9a819804
AO
9200 done
9201fi
9202
9203for ncn_progname in windres; do
05cbd757
PB
9204 if test -n "$ncn_tool_prefix"; then
9205 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9206set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9208$as_echo_n "checking for $ac_word... " >&6; }
9209if test "${ac_cv_prog_WINDRES+set}" = set; then :
9210 $as_echo_n "(cached) " >&6
859789af
AC
9211else
9212 if test -n "$WINDRES"; then
9213 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9214else
c6b750e1
DJ
9215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216for as_dir in $PATH
9217do
9218 IFS=$as_save_IFS
9219 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9220 for ac_exec_ext in '' $ac_executable_extensions; do
9221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9222 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9224 break 2
9225 fi
9226done
81ecdfbb
RW
9227 done
9228IFS=$as_save_IFS
c6b750e1 9229
859789af
AC
9230fi
9231fi
c6b750e1 9232WINDRES=$ac_cv_prog_WINDRES
859789af 9233if test -n "$WINDRES"; then
81ecdfbb
RW
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9235$as_echo "$WINDRES" >&6; }
859789af 9236else
81ecdfbb
RW
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238$as_echo "no" >&6; }
859789af
AC
9239fi
9240
81ecdfbb 9241
05cbd757
PB
9242 fi
9243 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9244 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9245set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9247$as_echo_n "checking for $ac_word... " >&6; }
9248if test "${ac_cv_prog_WINDRES+set}" = set; then :
9249 $as_echo_n "(cached) " >&6
859789af 9250else
05cbd757
PB
9251 if test -n "$WINDRES"; then
9252 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9253else
c6b750e1
DJ
9254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9255for as_dir in $PATH
9256do
9257 IFS=$as_save_IFS
9258 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9259 for ac_exec_ext in '' $ac_executable_extensions; do
9260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9261 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9263 break 2
9264 fi
9265done
81ecdfbb
RW
9266 done
9267IFS=$as_save_IFS
c6b750e1 9268
859789af
AC
9269fi
9270fi
c6b750e1 9271WINDRES=$ac_cv_prog_WINDRES
05cbd757 9272if test -n "$WINDRES"; then
81ecdfbb
RW
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9274$as_echo "$WINDRES" >&6; }
859789af 9275else
81ecdfbb
RW
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9277$as_echo "no" >&6; }
859789af 9278fi
c6b750e1 9279
81ecdfbb 9280
05cbd757
PB
9281 fi
9282 test -n "$ac_cv_prog_WINDRES" && break
9283done
9284
9285if test -z "$ac_cv_prog_WINDRES" ; then
9286 set dummy windres
9287 if test $build = $host ; then
9288 WINDRES="$2"
859789af 9289 else
05cbd757 9290 WINDRES="${ncn_tool_prefix}$2"
859789af 9291 fi
859789af
AC
9292fi
9293
9a819804
AO
9294
9295
0c24b341
NC
9296if test -n "$WINDMC"; then
9297 ac_cv_prog_WINDMC=$WINDMC
9298elif test -n "$ac_cv_prog_WINDMC"; then
9299 WINDMC=$ac_cv_prog_WINDMC
9300fi
9301
9302if test -n "$ac_cv_prog_WINDMC"; then
9303 for ncn_progname in windmc; do
9304 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9305set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9307$as_echo_n "checking for $ac_word... " >&6; }
9308if test "${ac_cv_prog_WINDMC+set}" = set; then :
9309 $as_echo_n "(cached) " >&6
0c24b341
NC
9310else
9311 if test -n "$WINDMC"; then
9312 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9313else
9314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9315for as_dir in $PATH
9316do
9317 IFS=$as_save_IFS
9318 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9319 for ac_exec_ext in '' $ac_executable_extensions; do
9320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9321 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9323 break 2
9324 fi
9325done
81ecdfbb
RW
9326 done
9327IFS=$as_save_IFS
0c24b341
NC
9328
9329fi
9330fi
9331WINDMC=$ac_cv_prog_WINDMC
9332if test -n "$WINDMC"; then
81ecdfbb
RW
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9334$as_echo "$WINDMC" >&6; }
0c24b341 9335else
81ecdfbb
RW
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337$as_echo "no" >&6; }
0c24b341
NC
9338fi
9339
81ecdfbb 9340
0c24b341
NC
9341 done
9342fi
9343
9344for ncn_progname in windmc; do
9345 if test -n "$ncn_tool_prefix"; then
9346 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9347set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9349$as_echo_n "checking for $ac_word... " >&6; }
9350if test "${ac_cv_prog_WINDMC+set}" = set; then :
9351 $as_echo_n "(cached) " >&6
0c24b341
NC
9352else
9353 if test -n "$WINDMC"; then
9354 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9355else
9356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357for as_dir in $PATH
9358do
9359 IFS=$as_save_IFS
9360 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9361 for ac_exec_ext in '' $ac_executable_extensions; do
9362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9363 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9365 break 2
9366 fi
9367done
81ecdfbb
RW
9368 done
9369IFS=$as_save_IFS
0c24b341
NC
9370
9371fi
9372fi
9373WINDMC=$ac_cv_prog_WINDMC
9374if test -n "$WINDMC"; then
81ecdfbb
RW
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9376$as_echo "$WINDMC" >&6; }
0c24b341 9377else
81ecdfbb
RW
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379$as_echo "no" >&6; }
0c24b341
NC
9380fi
9381
81ecdfbb 9382
0c24b341
NC
9383 fi
9384 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9386set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9388$as_echo_n "checking for $ac_word... " >&6; }
9389if test "${ac_cv_prog_WINDMC+set}" = set; then :
9390 $as_echo_n "(cached) " >&6
0c24b341
NC
9391else
9392 if test -n "$WINDMC"; then
9393 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9394else
9395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9396for as_dir in $PATH
9397do
9398 IFS=$as_save_IFS
9399 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9400 for ac_exec_ext in '' $ac_executable_extensions; do
9401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9402 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9404 break 2
9405 fi
9406done
81ecdfbb
RW
9407 done
9408IFS=$as_save_IFS
0c24b341
NC
9409
9410fi
9411fi
9412WINDMC=$ac_cv_prog_WINDMC
9413if test -n "$WINDMC"; then
81ecdfbb
RW
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9415$as_echo "$WINDMC" >&6; }
0c24b341 9416else
81ecdfbb
RW
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418$as_echo "no" >&6; }
0c24b341
NC
9419fi
9420
81ecdfbb 9421
0c24b341
NC
9422 fi
9423 test -n "$ac_cv_prog_WINDMC" && break
9424done
9425
9426if test -z "$ac_cv_prog_WINDMC" ; then
9427 set dummy windmc
9428 if test $build = $host ; then
9429 WINDMC="$2"
9430 else
9431 WINDMC="${ncn_tool_prefix}$2"
9432 fi
9433fi
9434
9435
9436
9a819804
AO
9437if test -n "$OBJCOPY"; then
9438 ac_cv_prog_OBJCOPY=$OBJCOPY
9439elif test -n "$ac_cv_prog_OBJCOPY"; then
9440 OBJCOPY=$ac_cv_prog_OBJCOPY
9441fi
9442
9443if test -n "$ac_cv_prog_OBJCOPY"; then
9444 for ncn_progname in objcopy; do
9445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9446set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448$as_echo_n "checking for $ac_word... " >&6; }
9449if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9450 $as_echo_n "(cached) " >&6
9a819804
AO
9451else
9452 if test -n "$OBJCOPY"; then
9453 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9454else
9455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456for as_dir in $PATH
9457do
9458 IFS=$as_save_IFS
9459 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9460 for ac_exec_ext in '' $ac_executable_extensions; do
9461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9462 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9464 break 2
9465 fi
9466done
81ecdfbb
RW
9467 done
9468IFS=$as_save_IFS
9a819804
AO
9469
9470fi
9471fi
9472OBJCOPY=$ac_cv_prog_OBJCOPY
9473if test -n "$OBJCOPY"; then
81ecdfbb
RW
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9475$as_echo "$OBJCOPY" >&6; }
9a819804 9476else
81ecdfbb
RW
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9478$as_echo "no" >&6; }
9a819804
AO
9479fi
9480
81ecdfbb 9481
9a819804
AO
9482 done
9483fi
9484
9485for ncn_progname in objcopy; do
05cbd757
PB
9486 if test -n "$ncn_tool_prefix"; then
9487 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9488set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490$as_echo_n "checking for $ac_word... " >&6; }
9491if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
859789af
AC
9493else
9494 if test -n "$OBJCOPY"; then
9495 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9496else
c6b750e1
DJ
9497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498for as_dir in $PATH
9499do
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9504 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9506 break 2
9507 fi
9508done
81ecdfbb
RW
9509 done
9510IFS=$as_save_IFS
c6b750e1 9511
859789af
AC
9512fi
9513fi
c6b750e1 9514OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9515if test -n "$OBJCOPY"; then
81ecdfbb
RW
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9517$as_echo "$OBJCOPY" >&6; }
859789af 9518else
81ecdfbb
RW
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520$as_echo "no" >&6; }
859789af
AC
9521fi
9522
81ecdfbb 9523
05cbd757
PB
9524 fi
9525 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9527set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9529$as_echo_n "checking for $ac_word... " >&6; }
9530if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
859789af 9532else
05cbd757
PB
9533 if test -n "$OBJCOPY"; then
9534 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9535else
c6b750e1
DJ
9536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9537for as_dir in $PATH
9538do
9539 IFS=$as_save_IFS
9540 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9541 for ac_exec_ext in '' $ac_executable_extensions; do
9542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9543 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9545 break 2
9546 fi
9547done
81ecdfbb
RW
9548 done
9549IFS=$as_save_IFS
c6b750e1 9550
859789af
AC
9551fi
9552fi
c6b750e1 9553OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9554if test -n "$OBJCOPY"; then
81ecdfbb
RW
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9556$as_echo "$OBJCOPY" >&6; }
859789af 9557else
81ecdfbb
RW
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559$as_echo "no" >&6; }
859789af 9560fi
c6b750e1 9561
81ecdfbb 9562
05cbd757
PB
9563 fi
9564 test -n "$ac_cv_prog_OBJCOPY" && break
9565done
9566
9567if test -z "$ac_cv_prog_OBJCOPY" ; then
9568 set dummy objcopy
9569 if test $build = $host ; then
9570 OBJCOPY="$2"
859789af 9571 else
05cbd757 9572 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9573 fi
859789af
AC
9574fi
9575
9a819804
AO
9576
9577
9578if test -n "$OBJDUMP"; then
9579 ac_cv_prog_OBJDUMP=$OBJDUMP
9580elif test -n "$ac_cv_prog_OBJDUMP"; then
9581 OBJDUMP=$ac_cv_prog_OBJDUMP
9582fi
9583
9584if test -n "$ac_cv_prog_OBJDUMP"; then
9585 for ncn_progname in objdump; do
9586 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9587set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589$as_echo_n "checking for $ac_word... " >&6; }
9590if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9591 $as_echo_n "(cached) " >&6
9a819804
AO
9592else
9593 if test -n "$OBJDUMP"; then
9594 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9595else
9596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9597for as_dir in $PATH
9598do
9599 IFS=$as_save_IFS
9600 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9601 for ac_exec_ext in '' $ac_executable_extensions; do
9602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9603 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9605 break 2
9606 fi
9607done
81ecdfbb
RW
9608 done
9609IFS=$as_save_IFS
9a819804
AO
9610
9611fi
9612fi
9613OBJDUMP=$ac_cv_prog_OBJDUMP
9614if test -n "$OBJDUMP"; then
81ecdfbb
RW
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9616$as_echo "$OBJDUMP" >&6; }
9a819804 9617else
81ecdfbb
RW
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619$as_echo "no" >&6; }
9a819804
AO
9620fi
9621
81ecdfbb 9622
9a819804
AO
9623 done
9624fi
9625
9626for ncn_progname in objdump; do
05cbd757
PB
9627 if test -n "$ncn_tool_prefix"; then
9628 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9629set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9631$as_echo_n "checking for $ac_word... " >&6; }
9632if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9633 $as_echo_n "(cached) " >&6
859789af
AC
9634else
9635 if test -n "$OBJDUMP"; then
9636 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9637else
c6b750e1
DJ
9638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639for as_dir in $PATH
9640do
9641 IFS=$as_save_IFS
9642 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9643 for ac_exec_ext in '' $ac_executable_extensions; do
9644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9645 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9647 break 2
9648 fi
9649done
81ecdfbb
RW
9650 done
9651IFS=$as_save_IFS
c6b750e1 9652
859789af
AC
9653fi
9654fi
c6b750e1 9655OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9656if test -n "$OBJDUMP"; then
81ecdfbb
RW
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9658$as_echo "$OBJDUMP" >&6; }
859789af 9659else
81ecdfbb
RW
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9661$as_echo "no" >&6; }
859789af
AC
9662fi
9663
81ecdfbb 9664
05cbd757
PB
9665 fi
9666 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9668set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9670$as_echo_n "checking for $ac_word... " >&6; }
9671if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9672 $as_echo_n "(cached) " >&6
859789af 9673else
05cbd757
PB
9674 if test -n "$OBJDUMP"; then
9675 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9676else
c6b750e1
DJ
9677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9678for as_dir in $PATH
9679do
9680 IFS=$as_save_IFS
9681 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9682 for ac_exec_ext in '' $ac_executable_extensions; do
9683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9684 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9686 break 2
9687 fi
9688done
81ecdfbb
RW
9689 done
9690IFS=$as_save_IFS
c6b750e1 9691
859789af
AC
9692fi
9693fi
c6b750e1 9694OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9695if test -n "$OBJDUMP"; then
81ecdfbb
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9697$as_echo "$OBJDUMP" >&6; }
859789af 9698else
81ecdfbb
RW
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700$as_echo "no" >&6; }
859789af 9701fi
c6b750e1 9702
81ecdfbb 9703
05cbd757
PB
9704 fi
9705 test -n "$ac_cv_prog_OBJDUMP" && break
9706done
9707
9708if test -z "$ac_cv_prog_OBJDUMP" ; then
9709 set dummy objdump
9710 if test $build = $host ; then
9711 OBJDUMP="$2"
859789af 9712 else
05cbd757 9713 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9714 fi
859789af
AC
9715fi
9716
a0da8069
NN
9717
9718
9719
9720
9721
be01d343 9722# Target tools.
c6b750e1 9723
81ecdfbb
RW
9724# Check whether --with-build-time-tools was given.
9725if test "${with_build_time_tools+set}" = set; then :
9726 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9727 x/*) ;;
9728 *)
9729 with_build_time_tools=
81ecdfbb
RW
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9731$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9732 ;;
9733 esac
859789af 9734else
2429c060 9735 with_build_time_tools=
81ecdfbb
RW
9736fi
9737
859789af 9738
9a819804
AO
9739
9740
9741if test -n "$CC_FOR_TARGET"; then
9742 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9743elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9744 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9745fi
9746
9747if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9748 for ncn_progname in cc gcc; do
9749 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9750set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9752$as_echo_n "checking for $ac_word... " >&6; }
9753if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9754 $as_echo_n "(cached) " >&6
9a819804
AO
9755else
9756 if test -n "$CC_FOR_TARGET"; then
9757 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9758else
9759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9760for as_dir in $PATH
9761do
9762 IFS=$as_save_IFS
9763 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9764 for ac_exec_ext in '' $ac_executable_extensions; do
9765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9766 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9768 break 2
9769 fi
9770done
81ecdfbb
RW
9771 done
9772IFS=$as_save_IFS
9a819804
AO
9773
9774fi
9775fi
9776CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9777if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9779$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9780else
81ecdfbb
RW
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9782$as_echo "no" >&6; }
9a819804
AO
9783fi
9784
81ecdfbb 9785
9a819804
AO
9786 done
9787fi
9788
9789if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9790 for ncn_progname in cc gcc; do
81ecdfbb
RW
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9792$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9793 if test -x $with_build_time_tools/${ncn_progname}; then
9794 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9796$as_echo "yes" >&6; }
cac3d6c4 9797 break
2429c060 9798 else
81ecdfbb
RW
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800$as_echo "no" >&6; }
cac3d6c4
CM
9801 fi
9802 done
55db4b87
PB
9803fi
9804
2429c060
PB
9805if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9806 for ncn_progname in cc gcc; do
9807 if test -n "$ncn_target_tool_prefix"; then
9808 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9809set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811$as_echo_n "checking for $ac_word... " >&6; }
9812if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9813 $as_echo_n "(cached) " >&6
55db4b87
PB
9814else
9815 if test -n "$CC_FOR_TARGET"; then
9816 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9817else
c6b750e1
DJ
9818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819for as_dir in $PATH
9820do
9821 IFS=$as_save_IFS
9822 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9823 for ac_exec_ext in '' $ac_executable_extensions; do
9824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9825 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9827 break 2
9828 fi
9829done
81ecdfbb
RW
9830 done
9831IFS=$as_save_IFS
c6b750e1 9832
55db4b87
PB
9833fi
9834fi
c6b750e1 9835CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9836if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9838$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9839else
81ecdfbb
RW
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841$as_echo "no" >&6; }
55db4b87
PB
9842fi
9843
81ecdfbb 9844
2429c060
PB
9845 fi
9846 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9848set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9850$as_echo_n "checking for $ac_word... " >&6; }
9851if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9852 $as_echo_n "(cached) " >&6
55db4b87 9853else
05cbd757
PB
9854 if test -n "$CC_FOR_TARGET"; then
9855 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9856else
c6b750e1
DJ
9857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858for as_dir in $PATH
9859do
9860 IFS=$as_save_IFS
9861 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9862 for ac_exec_ext in '' $ac_executable_extensions; do
9863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9864 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9866 break 2
9867 fi
9868done
81ecdfbb
RW
9869 done
9870IFS=$as_save_IFS
c6b750e1 9871
55db4b87
PB
9872fi
9873fi
c6b750e1 9874CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9875if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9877$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9878else
81ecdfbb
RW
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9880$as_echo "no" >&6; }
55db4b87 9881fi
c6b750e1 9882
81ecdfbb 9883
2429c060
PB
9884 fi
9885 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9886 done
9887fi
c6b750e1 9888
05cbd757
PB
9889if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9890 set dummy cc gcc
9891 if test $build = $target ; then
9892 CC_FOR_TARGET="$2"
55db4b87 9893 else
05cbd757 9894 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9895 fi
d3f5afc4
MS
9896else
9897 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9898fi
9899
9a819804
AO
9900
9901
9902if test -n "$CXX_FOR_TARGET"; then
9903 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9904elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9905 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9906fi
9907
9908if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9909 for ncn_progname in c++ g++ cxx gxx; do
9910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9911set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913$as_echo_n "checking for $ac_word... " >&6; }
9914if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9915 $as_echo_n "(cached) " >&6
9a819804
AO
9916else
9917 if test -n "$CXX_FOR_TARGET"; then
9918 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9919else
9920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921for as_dir in $PATH
9922do
9923 IFS=$as_save_IFS
9924 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9925 for ac_exec_ext in '' $ac_executable_extensions; do
9926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9927 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9929 break 2
9930 fi
9931done
81ecdfbb
RW
9932 done
9933IFS=$as_save_IFS
9a819804
AO
9934
9935fi
9936fi
9937CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9938if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9940$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9941else
81ecdfbb
RW
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943$as_echo "no" >&6; }
9a819804
AO
9944fi
9945
81ecdfbb 9946
9a819804
AO
9947 done
9948fi
9949
9950if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9951 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9953$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9954 if test -x $with_build_time_tools/${ncn_progname}; then
9955 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9957$as_echo "yes" >&6; }
2429c060
PB
9958 break
9959 else
81ecdfbb
RW
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9961$as_echo "no" >&6; }
2429c060
PB
9962 fi
9963 done
9964fi
9965
9966if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9967 for ncn_progname in c++ g++ cxx gxx; do
9968 if test -n "$ncn_target_tool_prefix"; then
9969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9970set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9972$as_echo_n "checking for $ac_word... " >&6; }
9973if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9974 $as_echo_n "(cached) " >&6
55db4b87
PB
9975else
9976 if test -n "$CXX_FOR_TARGET"; then
9977 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9978else
c6b750e1
DJ
9979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980for as_dir in $PATH
9981do
9982 IFS=$as_save_IFS
9983 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9984 for ac_exec_ext in '' $ac_executable_extensions; do
9985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9986 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9988 break 2
9989 fi
9990done
81ecdfbb
RW
9991 done
9992IFS=$as_save_IFS
c6b750e1 9993
55db4b87
PB
9994fi
9995fi
c6b750e1 9996CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9997if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9999$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10000else
81ecdfbb
RW
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10002$as_echo "no" >&6; }
55db4b87
PB
10003fi
10004
81ecdfbb 10005
2429c060
PB
10006 fi
10007 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10009set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011$as_echo_n "checking for $ac_word... " >&6; }
10012if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
55db4b87 10014else
05cbd757
PB
10015 if test -n "$CXX_FOR_TARGET"; then
10016 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10017else
c6b750e1
DJ
10018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019for as_dir in $PATH
10020do
10021 IFS=$as_save_IFS
10022 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10025 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10027 break 2
10028 fi
10029done
81ecdfbb
RW
10030 done
10031IFS=$as_save_IFS
c6b750e1 10032
55db4b87
PB
10033fi
10034fi
c6b750e1 10035CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10036if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10038$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10039else
81ecdfbb
RW
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041$as_echo "no" >&6; }
55db4b87 10042fi
c6b750e1 10043
81ecdfbb 10044
2429c060
PB
10045 fi
10046 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10047 done
10048fi
c6b750e1 10049
05cbd757
PB
10050if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10051 set dummy c++ g++ cxx gxx
10052 if test $build = $target ; then
10053 CXX_FOR_TARGET="$2"
55db4b87 10054 else
05cbd757 10055 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10056 fi
d3f5afc4
MS
10057else
10058 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10059fi
10060
9a819804
AO
10061
10062
10063if test -n "$GCC_FOR_TARGET"; then
10064 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10065elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10066 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10067fi
10068
10069if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10070 for ncn_progname in gcc; do
10071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10072set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10074$as_echo_n "checking for $ac_word... " >&6; }
10075if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10076 $as_echo_n "(cached) " >&6
9a819804
AO
10077else
10078 if test -n "$GCC_FOR_TARGET"; then
10079 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10080else
10081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10082for as_dir in $PATH
10083do
10084 IFS=$as_save_IFS
10085 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10086 for ac_exec_ext in '' $ac_executable_extensions; do
10087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10088 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10090 break 2
10091 fi
10092done
81ecdfbb
RW
10093 done
10094IFS=$as_save_IFS
9a819804
AO
10095
10096fi
10097fi
10098GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10099if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10101$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10102else
81ecdfbb
RW
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104$as_echo "no" >&6; }
9a819804
AO
10105fi
10106
81ecdfbb 10107
9a819804
AO
10108 done
10109fi
10110
10111if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10112 for ncn_progname in gcc; do
81ecdfbb
RW
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10114$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10115 if test -x $with_build_time_tools/${ncn_progname}; then
10116 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10118$as_echo "yes" >&6; }
2429c060
PB
10119 break
10120 else
81ecdfbb
RW
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10122$as_echo "no" >&6; }
2429c060
PB
10123 fi
10124 done
10125fi
10126
10127if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10128 for ncn_progname in gcc; do
10129 if test -n "$ncn_target_tool_prefix"; then
10130 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10131set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10133$as_echo_n "checking for $ac_word... " >&6; }
10134if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
859789af 10136else
2429c060
PB
10137 if test -n "$GCC_FOR_TARGET"; then
10138 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10139else
c6b750e1
DJ
10140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141for as_dir in $PATH
10142do
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10147 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10149 break 2
10150 fi
10151done
81ecdfbb
RW
10152 done
10153IFS=$as_save_IFS
c6b750e1 10154
55db4b87
PB
10155fi
10156fi
c6b750e1 10157GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10158if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10160$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10161else
81ecdfbb
RW
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163$as_echo "no" >&6; }
55db4b87
PB
10164fi
10165
81ecdfbb 10166
2429c060
PB
10167 fi
10168 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10170set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10172$as_echo_n "checking for $ac_word... " >&6; }
10173if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10174 $as_echo_n "(cached) " >&6
55db4b87 10175else
05cbd757
PB
10176 if test -n "$GCC_FOR_TARGET"; then
10177 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10178else
c6b750e1
DJ
10179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10180for as_dir in $PATH
10181do
10182 IFS=$as_save_IFS
10183 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10184 for ac_exec_ext in '' $ac_executable_extensions; do
10185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10186 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10188 break 2
10189 fi
10190done
81ecdfbb
RW
10191 done
10192IFS=$as_save_IFS
c6b750e1 10193
55db4b87
PB
10194fi
10195fi
c6b750e1 10196GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10197if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10199$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10200else
81ecdfbb
RW
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202$as_echo "no" >&6; }
55db4b87 10203fi
c6b750e1 10204
81ecdfbb 10205
2429c060
PB
10206 fi
10207 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10208 done
10209fi
c6b750e1 10210
05cbd757
PB
10211if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10212 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10213else
10214 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10215fi
10216
9a819804
AO
10217
10218
10219if test -n "$GCJ_FOR_TARGET"; then
10220 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10221elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10222 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10223fi
10224
10225if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10226 for ncn_progname in gcj; do
10227 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10228set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230$as_echo_n "checking for $ac_word... " >&6; }
10231if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10232 $as_echo_n "(cached) " >&6
9a819804
AO
10233else
10234 if test -n "$GCJ_FOR_TARGET"; then
10235 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10236else
10237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238for as_dir in $PATH
10239do
10240 IFS=$as_save_IFS
10241 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10244 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10246 break 2
10247 fi
10248done
81ecdfbb
RW
10249 done
10250IFS=$as_save_IFS
9a819804
AO
10251
10252fi
10253fi
10254GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10255if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10257$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10258else
81ecdfbb
RW
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260$as_echo "no" >&6; }
9a819804
AO
10261fi
10262
81ecdfbb 10263
9a819804
AO
10264 done
10265fi
10266
10267if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10268 for ncn_progname in gcj; do
81ecdfbb
RW
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10270$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10271 if test -x $with_build_time_tools/${ncn_progname}; then
10272 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10274$as_echo "yes" >&6; }
2429c060
PB
10275 break
10276 else
81ecdfbb
RW
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278$as_echo "no" >&6; }
2429c060
PB
10279 fi
10280 done
10281fi
10282
10283if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10284 for ncn_progname in gcj; do
10285 if test -n "$ncn_target_tool_prefix"; then
10286 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10287set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10289$as_echo_n "checking for $ac_word... " >&6; }
10290if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10291 $as_echo_n "(cached) " >&6
55db4b87
PB
10292else
10293 if test -n "$GCJ_FOR_TARGET"; then
10294 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10295else
c6b750e1
DJ
10296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297for as_dir in $PATH
10298do
10299 IFS=$as_save_IFS
10300 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10301 for ac_exec_ext in '' $ac_executable_extensions; do
10302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10303 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10305 break 2
10306 fi
10307done
81ecdfbb
RW
10308 done
10309IFS=$as_save_IFS
c6b750e1 10310
55db4b87
PB
10311fi
10312fi
9a819804
AO
10313GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10314if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10316$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10317else
81ecdfbb
RW
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10319$as_echo "no" >&6; }
9a819804
AO
10320fi
10321
81ecdfbb 10322
9a819804
AO
10323 fi
10324 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10326set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10328$as_echo_n "checking for $ac_word... " >&6; }
10329if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10330 $as_echo_n "(cached) " >&6
9a819804
AO
10331else
10332 if test -n "$GCJ_FOR_TARGET"; then
10333 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10334else
10335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336for as_dir in $PATH
10337do
10338 IFS=$as_save_IFS
10339 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10342 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10344 break 2
10345 fi
10346done
81ecdfbb
RW
10347 done
10348IFS=$as_save_IFS
9a819804
AO
10349
10350fi
10351fi
10352GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10353if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10355$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10356else
81ecdfbb
RW
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10358$as_echo "no" >&6; }
9a819804
AO
10359fi
10360
81ecdfbb 10361
9a819804
AO
10362 fi
10363 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10364 done
10365fi
10366
10367if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10368 set dummy gcj
10369 if test $build = $target ; then
10370 GCJ_FOR_TARGET="$2"
10371 else
10372 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10373 fi
d3f5afc4
MS
10374else
10375 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10376fi
10377
10378
10379
10380if test -n "$GFORTRAN_FOR_TARGET"; then
10381 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10382elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10383 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10384fi
10385
9a819804
AO
10386if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10387 for ncn_progname in gfortran; do
10388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10389set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10391$as_echo_n "checking for $ac_word... " >&6; }
10392if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10393 $as_echo_n "(cached) " >&6
55db4b87 10394else
9a819804
AO
10395 if test -n "$GFORTRAN_FOR_TARGET"; then
10396 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10397else
c6b750e1
DJ
10398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399for as_dir in $PATH
10400do
10401 IFS=$as_save_IFS
10402 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10403 for ac_exec_ext in '' $ac_executable_extensions; do
10404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10405 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10407 break 2
10408 fi
10409done
81ecdfbb
RW
10410 done
10411IFS=$as_save_IFS
c6b750e1 10412
55db4b87
PB
10413fi
10414fi
9a819804
AO
10415GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10416if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10418$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10419else
81ecdfbb
RW
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10421$as_echo "no" >&6; }
55db4b87 10422fi
c6b750e1 10423
81ecdfbb 10424
2429c060
PB
10425 done
10426fi
c6b750e1 10427
9a819804 10428if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10429 for ncn_progname in gfortran; do
81ecdfbb
RW
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10431$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10432 if test -x $with_build_time_tools/${ncn_progname}; then
10433 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10435$as_echo "yes" >&6; }
2429c060
PB
10436 break
10437 else
81ecdfbb
RW
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439$as_echo "no" >&6; }
2429c060
PB
10440 fi
10441 done
10442fi
10443
10444if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10445 for ncn_progname in gfortran; do
10446 if test -n "$ncn_target_tool_prefix"; then
10447 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10448set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10450$as_echo_n "checking for $ac_word... " >&6; }
10451if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10452 $as_echo_n "(cached) " >&6
55db4b87
PB
10453else
10454 if test -n "$GFORTRAN_FOR_TARGET"; then
10455 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10456else
c6b750e1
DJ
10457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10458for as_dir in $PATH
10459do
10460 IFS=$as_save_IFS
10461 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10462 for ac_exec_ext in '' $ac_executable_extensions; do
10463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10464 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10466 break 2
10467 fi
10468done
81ecdfbb
RW
10469 done
10470IFS=$as_save_IFS
c6b750e1 10471
55db4b87
PB
10472fi
10473fi
c6b750e1 10474GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10475if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10477$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10478else
81ecdfbb
RW
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480$as_echo "no" >&6; }
55db4b87
PB
10481fi
10482
81ecdfbb 10483
2429c060
PB
10484 fi
10485 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10487set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489$as_echo_n "checking for $ac_word... " >&6; }
10490if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
55db4b87 10492else
05cbd757 10493 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10494 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10495else
10496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497for as_dir in $PATH
10498do
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10503 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10505 break 2
10506 fi
10507done
81ecdfbb
RW
10508 done
10509IFS=$as_save_IFS
c6b750e1 10510
55db4b87
PB
10511fi
10512fi
c6b750e1 10513GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10514if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10516$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10517else
81ecdfbb
RW
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519$as_echo "no" >&6; }
55db4b87 10520fi
c6b750e1 10521
81ecdfbb 10522
2429c060
PB
10523 fi
10524 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10525 done
10526fi
c6b750e1 10527
05cbd757
PB
10528if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10529 set dummy gfortran
10530 if test $build = $target ; then
10531 GFORTRAN_FOR_TARGET="$2"
55db4b87 10532 else
05cbd757 10533 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10534 fi
d3f5afc4
MS
10535else
10536 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10537fi
10538
2429c060
PB
10539
10540
e552509b
ILT
10541if test -n "$GOC_FOR_TARGET"; then
10542 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10543elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10544 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10545fi
10546
10547if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10548 for ncn_progname in gccgo; do
10549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10550set dummy ${ncn_progname}; ac_word=$2
10551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10552$as_echo_n "checking for $ac_word... " >&6; }
10553if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10554 $as_echo_n "(cached) " >&6
10555else
10556 if test -n "$GOC_FOR_TARGET"; then
10557 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10558else
10559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10560for as_dir in $PATH
10561do
10562 IFS=$as_save_IFS
10563 test -z "$as_dir" && as_dir=.
10564 for ac_exec_ext in '' $ac_executable_extensions; do
10565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10566 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10568 break 2
10569 fi
10570done
10571 done
10572IFS=$as_save_IFS
10573
10574fi
10575fi
10576GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10577if test -n "$GOC_FOR_TARGET"; then
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10579$as_echo "$GOC_FOR_TARGET" >&6; }
10580else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10582$as_echo "no" >&6; }
10583fi
10584
10585
10586 done
10587fi
10588
10589if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10590 for ncn_progname in gccgo; do
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10592$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10593 if test -x $with_build_time_tools/${ncn_progname}; then
10594 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10596$as_echo "yes" >&6; }
10597 break
10598 else
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10600$as_echo "no" >&6; }
10601 fi
10602 done
10603fi
10604
10605if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10606 for ncn_progname in gccgo; do
10607 if test -n "$ncn_target_tool_prefix"; then
10608 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10609set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10611$as_echo_n "checking for $ac_word... " >&6; }
10612if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10613 $as_echo_n "(cached) " >&6
10614else
10615 if test -n "$GOC_FOR_TARGET"; then
10616 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10617else
10618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10619for as_dir in $PATH
10620do
10621 IFS=$as_save_IFS
10622 test -z "$as_dir" && as_dir=.
10623 for ac_exec_ext in '' $ac_executable_extensions; do
10624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10625 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10627 break 2
10628 fi
10629done
10630 done
10631IFS=$as_save_IFS
10632
10633fi
10634fi
10635GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10636if test -n "$GOC_FOR_TARGET"; then
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10638$as_echo "$GOC_FOR_TARGET" >&6; }
10639else
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10641$as_echo "no" >&6; }
10642fi
10643
10644
10645 fi
10646 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10648set dummy ${ncn_progname}; ac_word=$2
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10650$as_echo_n "checking for $ac_word... " >&6; }
10651if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10652 $as_echo_n "(cached) " >&6
10653else
10654 if test -n "$GOC_FOR_TARGET"; then
10655 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10656else
10657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658for as_dir in $PATH
10659do
10660 IFS=$as_save_IFS
10661 test -z "$as_dir" && as_dir=.
10662 for ac_exec_ext in '' $ac_executable_extensions; do
10663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10664 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10666 break 2
10667 fi
10668done
10669 done
10670IFS=$as_save_IFS
10671
10672fi
10673fi
10674GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10675if test -n "$GOC_FOR_TARGET"; then
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10677$as_echo "$GOC_FOR_TARGET" >&6; }
10678else
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10680$as_echo "no" >&6; }
10681fi
10682
10683
10684 fi
10685 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10686 done
10687fi
10688
10689if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10690 set dummy gccgo
10691 if test $build = $target ; then
10692 GOC_FOR_TARGET="$2"
10693 else
10694 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10695 fi
10696else
10697 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10698fi
10699
10700
10701
2429c060
PB
10702cat > conftest.c << \EOF
10703#ifdef __GNUC__
10704 gcc_yay;
10705#endif
10706EOF
10707if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10708 have_gcc_for_target=yes
859789af 10709else
2429c060
PB
10710 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10711 have_gcc_for_target=no
859789af 10712fi
2429c060
PB
10713rm conftest.c
10714
10715
10716
859789af 10717
2429c060
PB
10718if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10719 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10721$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10722 if test -x $with_build_time_tools/ar; then
10723 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10724 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10726$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10727 else
81ecdfbb
RW
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10729$as_echo "no" >&6; }
3a35eeb3 10730 fi
2429c060
PB
10731 elif test $build != $host && test $have_gcc_for_target = yes; then
10732 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10733 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10734 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10735 fi
2429c060 10736fi
c6b750e1 10737if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10738 # Extract the first word of "ar", so it can be a program name with args.
10739set dummy ar; ac_word=$2
81ecdfbb
RW
10740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10741$as_echo_n "checking for $ac_word... " >&6; }
10742if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10743 $as_echo_n "(cached) " >&6
859789af 10744else
c6b750e1
DJ
10745 case $AR_FOR_TARGET in
10746 [\\/]* | ?:[\\/]*)
2429c060
PB
10747 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10748 ;;
2429c060 10749 *)
c6b750e1
DJ
10750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10751for as_dir in $gcc_cv_tool_dirs
10752do
10753 IFS=$as_save_IFS
10754 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10755 for ac_exec_ext in '' $ac_executable_extensions; do
10756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10757 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10759 break 2
10760 fi
10761done
81ecdfbb
RW
10762 done
10763IFS=$as_save_IFS
c6b750e1 10764
2429c060
PB
10765 ;;
10766esac
859789af 10767fi
c6b750e1 10768AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10769if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10771$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10772else
81ecdfbb
RW
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774$as_echo "no" >&6; }
859789af 10775fi
05cbd757 10776
81ecdfbb 10777
2429c060
PB
10778fi
10779if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10780
10781
10782if test -n "$AR_FOR_TARGET"; then
10783 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10784elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10785 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10786fi
10787
10788if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10789 for ncn_progname in ar; do
10790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10791set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10793$as_echo_n "checking for $ac_word... " >&6; }
10794if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10795 $as_echo_n "(cached) " >&6
9a819804
AO
10796else
10797 if test -n "$AR_FOR_TARGET"; then
10798 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10799else
10800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10801for as_dir in $PATH
10802do
10803 IFS=$as_save_IFS
10804 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10805 for ac_exec_ext in '' $ac_executable_extensions; do
10806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10807 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10809 break 2
10810 fi
10811done
81ecdfbb
RW
10812 done
10813IFS=$as_save_IFS
9a819804
AO
10814
10815fi
10816fi
10817AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10818if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10820$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10821else
81ecdfbb
RW
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823$as_echo "no" >&6; }
9a819804
AO
10824fi
10825
81ecdfbb 10826
9a819804
AO
10827 done
10828fi
10829
10830if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10831 for ncn_progname in ar; do
81ecdfbb
RW
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10833$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10834 if test -x $with_build_time_tools/${ncn_progname}; then
10835 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10837$as_echo "yes" >&6; }
2429c060
PB
10838 break
10839 else
81ecdfbb
RW
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841$as_echo "no" >&6; }
2429c060
PB
10842 fi
10843 done
859789af
AC
10844fi
10845
2429c060
PB
10846if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10847 for ncn_progname in ar; do
10848 if test -n "$ncn_target_tool_prefix"; then
10849 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10850set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10852$as_echo_n "checking for $ac_word... " >&6; }
10853if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10854 $as_echo_n "(cached) " >&6
7e0f7140 10855else
2429c060
PB
10856 if test -n "$AR_FOR_TARGET"; then
10857 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10858else
c6b750e1
DJ
10859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860for as_dir in $PATH
10861do
10862 IFS=$as_save_IFS
10863 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10866 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10868 break 2
10869 fi
10870done
81ecdfbb
RW
10871 done
10872IFS=$as_save_IFS
c6b750e1 10873
7e0f7140
GK
10874fi
10875fi
c6b750e1 10876AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10877if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10879$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10880else
81ecdfbb
RW
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10882$as_echo "no" >&6; }
7e0f7140
GK
10883fi
10884
81ecdfbb 10885
2429c060
PB
10886 fi
10887 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10889set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10891$as_echo_n "checking for $ac_word... " >&6; }
10892if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10893 $as_echo_n "(cached) " >&6
7e0f7140 10894else
2429c060
PB
10895 if test -n "$AR_FOR_TARGET"; then
10896 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10897else
c6b750e1
DJ
10898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10899for as_dir in $PATH
10900do
10901 IFS=$as_save_IFS
10902 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10903 for ac_exec_ext in '' $ac_executable_extensions; do
10904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10905 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10907 break 2
10908 fi
10909done
81ecdfbb
RW
10910 done
10911IFS=$as_save_IFS
c6b750e1 10912
7e0f7140
GK
10913fi
10914fi
c6b750e1 10915AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10916if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10918$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10919else
81ecdfbb
RW
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10921$as_echo "no" >&6; }
7e0f7140 10922fi
c6b750e1 10923
81ecdfbb 10924
2429c060
PB
10925 fi
10926 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10927 done
10928fi
c6b750e1 10929
2429c060
PB
10930if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10931 set dummy ar
7e0f7140 10932 if test $build = $target ; then
2429c060 10933 AR_FOR_TARGET="$2"
7e0f7140 10934 else
2429c060 10935 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10936 fi
d3f5afc4
MS
10937else
10938 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10939fi
10940
3a35eeb3
PB
10941else
10942 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10943fi
10944
10945
10946
10947
10948if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10949 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10951$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10952 if test -x $with_build_time_tools/as; then
10953 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10954 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10956$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10957 else
81ecdfbb
RW
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10959$as_echo "no" >&6; }
3a35eeb3 10960 fi
2429c060
PB
10961 elif test $build != $host && test $have_gcc_for_target = yes; then
10962 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10963 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10964 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10965 fi
10966fi
c6b750e1 10967if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10968 # Extract the first word of "as", so it can be a program name with args.
10969set dummy as; ac_word=$2
81ecdfbb
RW
10970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971$as_echo_n "checking for $ac_word... " >&6; }
10972if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10973 $as_echo_n "(cached) " >&6
2429c060 10974else
c6b750e1
DJ
10975 case $AS_FOR_TARGET in
10976 [\\/]* | ?:[\\/]*)
2429c060
PB
10977 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10978 ;;
2429c060 10979 *)
c6b750e1
DJ
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981for as_dir in $gcc_cv_tool_dirs
10982do
10983 IFS=$as_save_IFS
10984 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10987 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10989 break 2
10990 fi
10991done
81ecdfbb
RW
10992 done
10993IFS=$as_save_IFS
c6b750e1 10994
2429c060
PB
10995 ;;
10996esac
10997fi
c6b750e1 10998AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10999if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11001$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11002else
81ecdfbb
RW
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004$as_echo "no" >&6; }
2429c060
PB
11005fi
11006
81ecdfbb 11007
2429c060
PB
11008fi
11009if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11010
11011
11012if test -n "$AS_FOR_TARGET"; then
11013 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11014elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11015 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11016fi
11017
11018if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11019 for ncn_progname in as; do
11020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11021set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11023$as_echo_n "checking for $ac_word... " >&6; }
11024if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
9a819804
AO
11026else
11027 if test -n "$AS_FOR_TARGET"; then
11028 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11029else
11030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11031for as_dir in $PATH
11032do
11033 IFS=$as_save_IFS
11034 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11035 for ac_exec_ext in '' $ac_executable_extensions; do
11036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11037 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11039 break 2
11040 fi
11041done
81ecdfbb
RW
11042 done
11043IFS=$as_save_IFS
9a819804
AO
11044
11045fi
11046fi
11047AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11048if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11050$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11051else
81ecdfbb
RW
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11053$as_echo "no" >&6; }
9a819804
AO
11054fi
11055
81ecdfbb 11056
9a819804
AO
11057 done
11058fi
11059
11060if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11061 for ncn_progname in as; do
81ecdfbb
RW
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11063$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11064 if test -x $with_build_time_tools/${ncn_progname}; then
11065 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11067$as_echo "yes" >&6; }
2429c060
PB
11068 break
11069 else
81ecdfbb
RW
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11071$as_echo "no" >&6; }
2429c060
PB
11072 fi
11073 done
11074fi
11075
11076if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11077 for ncn_progname in as; do
11078 if test -n "$ncn_target_tool_prefix"; then
11079 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11080set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082$as_echo_n "checking for $ac_word... " >&6; }
11083if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11084 $as_echo_n "(cached) " >&6
2429c060
PB
11085else
11086 if test -n "$AS_FOR_TARGET"; then
11087 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11088else
c6b750e1
DJ
11089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11090for as_dir in $PATH
11091do
11092 IFS=$as_save_IFS
11093 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11094 for ac_exec_ext in '' $ac_executable_extensions; do
11095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11096 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11098 break 2
11099 fi
11100done
81ecdfbb
RW
11101 done
11102IFS=$as_save_IFS
c6b750e1 11103
2429c060
PB
11104fi
11105fi
c6b750e1 11106AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11107if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11109$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11110else
81ecdfbb
RW
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112$as_echo "no" >&6; }
2429c060
PB
11113fi
11114
81ecdfbb 11115
2429c060
PB
11116 fi
11117 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11119set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11121$as_echo_n "checking for $ac_word... " >&6; }
11122if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
2429c060
PB
11124else
11125 if test -n "$AS_FOR_TARGET"; then
11126 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11127else
c6b750e1
DJ
11128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11129for as_dir in $PATH
11130do
11131 IFS=$as_save_IFS
11132 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11133 for ac_exec_ext in '' $ac_executable_extensions; do
11134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11135 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11137 break 2
11138 fi
11139done
81ecdfbb
RW
11140 done
11141IFS=$as_save_IFS
c6b750e1 11142
2429c060
PB
11143fi
11144fi
c6b750e1 11145AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11146if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11148$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11149else
81ecdfbb
RW
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11151$as_echo "no" >&6; }
2429c060 11152fi
c6b750e1 11153
81ecdfbb 11154
2429c060
PB
11155 fi
11156 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11157 done
11158fi
c6b750e1 11159
2429c060
PB
11160if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11161 set dummy as
11162 if test $build = $target ; then
11163 AS_FOR_TARGET="$2"
11164 else
11165 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11166 fi
d3f5afc4
MS
11167else
11168 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11169fi
11170
3a35eeb3
PB
11171else
11172 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11173fi
11174
11175
11176
11177
11178if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11179 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11181$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11182 if test -x $with_build_time_tools/dlltool; then
11183 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11184 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11186$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11187 else
81ecdfbb
RW
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11189$as_echo "no" >&6; }
3a35eeb3 11190 fi
2429c060
PB
11191 elif test $build != $host && test $have_gcc_for_target = yes; then
11192 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11193 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11194 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11195 fi
11196fi
c6b750e1 11197if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11198 # Extract the first word of "dlltool", so it can be a program name with args.
11199set dummy dlltool; ac_word=$2
81ecdfbb
RW
11200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11201$as_echo_n "checking for $ac_word... " >&6; }
11202if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11203 $as_echo_n "(cached) " >&6
2429c060 11204else
c6b750e1
DJ
11205 case $DLLTOOL_FOR_TARGET in
11206 [\\/]* | ?:[\\/]*)
2429c060
PB
11207 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11208 ;;
2429c060 11209 *)
c6b750e1
DJ
11210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11211for as_dir in $gcc_cv_tool_dirs
11212do
11213 IFS=$as_save_IFS
11214 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11215 for ac_exec_ext in '' $ac_executable_extensions; do
11216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11217 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11219 break 2
11220 fi
11221done
81ecdfbb
RW
11222 done
11223IFS=$as_save_IFS
c6b750e1 11224
2429c060
PB
11225 ;;
11226esac
11227fi
c6b750e1 11228DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11229if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11231$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11232else
81ecdfbb
RW
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234$as_echo "no" >&6; }
2429c060
PB
11235fi
11236
81ecdfbb 11237
2429c060
PB
11238fi
11239if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11240
11241
11242if test -n "$DLLTOOL_FOR_TARGET"; then
11243 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11244elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11245 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11246fi
11247
11248if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11249 for ncn_progname in dlltool; do
11250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11251set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11253$as_echo_n "checking for $ac_word... " >&6; }
11254if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11255 $as_echo_n "(cached) " >&6
9a819804
AO
11256else
11257 if test -n "$DLLTOOL_FOR_TARGET"; then
11258 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11259else
11260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261for as_dir in $PATH
11262do
11263 IFS=$as_save_IFS
11264 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11265 for ac_exec_ext in '' $ac_executable_extensions; do
11266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11267 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11269 break 2
11270 fi
11271done
81ecdfbb
RW
11272 done
11273IFS=$as_save_IFS
9a819804
AO
11274
11275fi
11276fi
11277DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11278if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11280$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11281else
81ecdfbb
RW
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11283$as_echo "no" >&6; }
9a819804
AO
11284fi
11285
81ecdfbb 11286
9a819804
AO
11287 done
11288fi
11289
11290if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11291 for ncn_progname in dlltool; do
81ecdfbb
RW
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11293$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11294 if test -x $with_build_time_tools/${ncn_progname}; then
11295 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11297$as_echo "yes" >&6; }
2429c060
PB
11298 break
11299 else
81ecdfbb
RW
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11301$as_echo "no" >&6; }
2429c060
PB
11302 fi
11303 done
11304fi
11305
11306if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11307 for ncn_progname in dlltool; do
11308 if test -n "$ncn_target_tool_prefix"; then
11309 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11310set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11312$as_echo_n "checking for $ac_word... " >&6; }
11313if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11314 $as_echo_n "(cached) " >&6
2429c060
PB
11315else
11316 if test -n "$DLLTOOL_FOR_TARGET"; then
11317 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11318else
c6b750e1
DJ
11319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11320for as_dir in $PATH
11321do
11322 IFS=$as_save_IFS
11323 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11324 for ac_exec_ext in '' $ac_executable_extensions; do
11325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11326 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11328 break 2
11329 fi
11330done
81ecdfbb
RW
11331 done
11332IFS=$as_save_IFS
c6b750e1 11333
2429c060
PB
11334fi
11335fi
c6b750e1 11336DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11337if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11339$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11340else
81ecdfbb
RW
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11342$as_echo "no" >&6; }
2429c060
PB
11343fi
11344
81ecdfbb 11345
2429c060
PB
11346 fi
11347 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11349set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11351$as_echo_n "checking for $ac_word... " >&6; }
11352if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11353 $as_echo_n "(cached) " >&6
2429c060
PB
11354else
11355 if test -n "$DLLTOOL_FOR_TARGET"; then
11356 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11357else
c6b750e1
DJ
11358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359for as_dir in $PATH
11360do
11361 IFS=$as_save_IFS
11362 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11363 for ac_exec_ext in '' $ac_executable_extensions; do
11364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11365 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11367 break 2
11368 fi
11369done
81ecdfbb
RW
11370 done
11371IFS=$as_save_IFS
c6b750e1 11372
2429c060
PB
11373fi
11374fi
c6b750e1 11375DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11376if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11378$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11379else
81ecdfbb
RW
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381$as_echo "no" >&6; }
2429c060 11382fi
c6b750e1 11383
81ecdfbb 11384
2429c060
PB
11385 fi
11386 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11387 done
11388fi
c6b750e1 11389
2429c060
PB
11390if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11391 set dummy dlltool
11392 if test $build = $target ; then
11393 DLLTOOL_FOR_TARGET="$2"
11394 else
11395 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11396 fi
d3f5afc4
MS
11397else
11398 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11399fi
11400
3a35eeb3
PB
11401else
11402 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11403fi
11404
11405
11406
11407
11408if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11409 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11411$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11412 if test -x $with_build_time_tools/ld; then
11413 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11414 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11416$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11417 else
81ecdfbb
RW
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11419$as_echo "no" >&6; }
3a35eeb3 11420 fi
2429c060
PB
11421 elif test $build != $host && test $have_gcc_for_target = yes; then
11422 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11423 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11424 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11425 fi
11426fi
c6b750e1 11427if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11428 # Extract the first word of "ld", so it can be a program name with args.
11429set dummy ld; ac_word=$2
81ecdfbb
RW
11430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11431$as_echo_n "checking for $ac_word... " >&6; }
11432if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11433 $as_echo_n "(cached) " >&6
2429c060 11434else
c6b750e1
DJ
11435 case $LD_FOR_TARGET in
11436 [\\/]* | ?:[\\/]*)
2429c060
PB
11437 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11438 ;;
2429c060 11439 *)
c6b750e1
DJ
11440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11441for as_dir in $gcc_cv_tool_dirs
11442do
11443 IFS=$as_save_IFS
11444 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11445 for ac_exec_ext in '' $ac_executable_extensions; do
11446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11447 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11449 break 2
11450 fi
11451done
81ecdfbb
RW
11452 done
11453IFS=$as_save_IFS
c6b750e1 11454
2429c060
PB
11455 ;;
11456esac
11457fi
c6b750e1 11458LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11459if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11461$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11462else
81ecdfbb
RW
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464$as_echo "no" >&6; }
2429c060
PB
11465fi
11466
81ecdfbb 11467
2429c060
PB
11468fi
11469if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11470
11471
11472if test -n "$LD_FOR_TARGET"; then
11473 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11474elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11475 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11476fi
11477
11478if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11479 for ncn_progname in ld; do
11480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11481set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11483$as_echo_n "checking for $ac_word... " >&6; }
11484if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11485 $as_echo_n "(cached) " >&6
9a819804
AO
11486else
11487 if test -n "$LD_FOR_TARGET"; then
11488 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11489else
11490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11491for as_dir in $PATH
11492do
11493 IFS=$as_save_IFS
11494 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11495 for ac_exec_ext in '' $ac_executable_extensions; do
11496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11497 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11499 break 2
11500 fi
11501done
81ecdfbb
RW
11502 done
11503IFS=$as_save_IFS
9a819804
AO
11504
11505fi
11506fi
11507LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11508if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11510$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11511else
81ecdfbb
RW
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513$as_echo "no" >&6; }
9a819804
AO
11514fi
11515
81ecdfbb 11516
9a819804
AO
11517 done
11518fi
11519
11520if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11521 for ncn_progname in ld; do
81ecdfbb
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11523$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11524 if test -x $with_build_time_tools/${ncn_progname}; then
11525 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11527$as_echo "yes" >&6; }
2429c060
PB
11528 break
11529 else
81ecdfbb
RW
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531$as_echo "no" >&6; }
2429c060
PB
11532 fi
11533 done
11534fi
11535
11536if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11537 for ncn_progname in ld; do
11538 if test -n "$ncn_target_tool_prefix"; then
11539 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11540set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542$as_echo_n "checking for $ac_word... " >&6; }
11543if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11544 $as_echo_n "(cached) " >&6
2429c060
PB
11545else
11546 if test -n "$LD_FOR_TARGET"; then
11547 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11548else
c6b750e1
DJ
11549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550for as_dir in $PATH
11551do
11552 IFS=$as_save_IFS
11553 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11554 for ac_exec_ext in '' $ac_executable_extensions; do
11555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11556 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11558 break 2
11559 fi
11560done
81ecdfbb
RW
11561 done
11562IFS=$as_save_IFS
c6b750e1 11563
2429c060
PB
11564fi
11565fi
c6b750e1 11566LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11567if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11569$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11570else
81ecdfbb
RW
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11572$as_echo "no" >&6; }
2429c060
PB
11573fi
11574
81ecdfbb 11575
2429c060
PB
11576 fi
11577 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11579set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11581$as_echo_n "checking for $ac_word... " >&6; }
11582if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11583 $as_echo_n "(cached) " >&6
2429c060
PB
11584else
11585 if test -n "$LD_FOR_TARGET"; then
11586 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11587else
c6b750e1
DJ
11588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589for as_dir in $PATH
11590do
11591 IFS=$as_save_IFS
11592 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11593 for ac_exec_ext in '' $ac_executable_extensions; do
11594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11595 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11597 break 2
11598 fi
11599done
81ecdfbb
RW
11600 done
11601IFS=$as_save_IFS
c6b750e1 11602
2429c060
PB
11603fi
11604fi
c6b750e1 11605LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11606if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11608$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11609else
81ecdfbb
RW
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611$as_echo "no" >&6; }
2429c060 11612fi
c6b750e1 11613
81ecdfbb 11614
2429c060
PB
11615 fi
11616 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11617 done
11618fi
c6b750e1 11619
2429c060
PB
11620if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11621 set dummy ld
11622 if test $build = $target ; then
11623 LD_FOR_TARGET="$2"
11624 else
11625 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11626 fi
d3f5afc4
MS
11627else
11628 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11629fi
11630
3a35eeb3
PB
11631else
11632 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11633fi
11634
11635
11636
11637
11638if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11639 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11641$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11642 if test -x $with_build_time_tools/lipo; then
11643 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11644 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11646$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11647 else
81ecdfbb
RW
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11649$as_echo "no" >&6; }
3a35eeb3 11650 fi
2429c060
PB
11651 elif test $build != $host && test $have_gcc_for_target = yes; then
11652 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11653 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11654 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11655 fi
11656fi
9a819804
AO
11657if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11658 # Extract the first word of "lipo", so it can be a program name with args.
11659set dummy lipo; ac_word=$2
81ecdfbb
RW
11660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11661$as_echo_n "checking for $ac_word... " >&6; }
11662if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11663 $as_echo_n "(cached) " >&6
9a819804
AO
11664else
11665 case $LIPO_FOR_TARGET in
11666 [\\/]* | ?:[\\/]*)
11667 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11668 ;;
11669 *)
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671for as_dir in $gcc_cv_tool_dirs
11672do
11673 IFS=$as_save_IFS
11674 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11675 for ac_exec_ext in '' $ac_executable_extensions; do
11676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11677 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11679 break 2
11680 fi
11681done
81ecdfbb
RW
11682 done
11683IFS=$as_save_IFS
9a819804
AO
11684
11685 ;;
11686esac
11687fi
11688LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11689if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11691$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11692else
81ecdfbb
RW
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694$as_echo "no" >&6; }
9a819804
AO
11695fi
11696
81ecdfbb 11697
9a819804
AO
11698fi
11699if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11700
11701
11702if test -n "$LIPO_FOR_TARGET"; then
11703 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11704elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11705 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11706fi
11707
11708if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11709 for ncn_progname in lipo; do
11710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11711set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11713$as_echo_n "checking for $ac_word... " >&6; }
11714if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
2429c060 11716else
9a819804
AO
11717 if test -n "$LIPO_FOR_TARGET"; then
11718 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11719else
11720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11721for as_dir in $PATH
c6b750e1
DJ
11722do
11723 IFS=$as_save_IFS
11724 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11725 for ac_exec_ext in '' $ac_executable_extensions; do
11726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11727 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11729 break 2
11730 fi
11731done
81ecdfbb
RW
11732 done
11733IFS=$as_save_IFS
c6b750e1 11734
2429c060 11735fi
9a819804
AO
11736fi
11737LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11738if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11740$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11741else
81ecdfbb
RW
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11743$as_echo "no" >&6; }
2429c060
PB
11744fi
11745
81ecdfbb 11746
9a819804 11747 done
2429c060 11748fi
9a819804
AO
11749
11750if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11751 for ncn_progname in lipo; do
81ecdfbb
RW
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11753$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11754 if test -x $with_build_time_tools/${ncn_progname}; then
11755 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11757$as_echo "yes" >&6; }
2429c060
PB
11758 break
11759 else
81ecdfbb
RW
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761$as_echo "no" >&6; }
2429c060
PB
11762 fi
11763 done
11764fi
11765
11766if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11767 for ncn_progname in lipo; do
11768 if test -n "$ncn_target_tool_prefix"; then
11769 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11770set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11772$as_echo_n "checking for $ac_word... " >&6; }
11773if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11774 $as_echo_n "(cached) " >&6
2429c060
PB
11775else
11776 if test -n "$LIPO_FOR_TARGET"; then
11777 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11778else
c6b750e1
DJ
11779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11780for as_dir in $PATH
11781do
11782 IFS=$as_save_IFS
11783 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11784 for ac_exec_ext in '' $ac_executable_extensions; do
11785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11786 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11788 break 2
11789 fi
11790done
81ecdfbb
RW
11791 done
11792IFS=$as_save_IFS
c6b750e1 11793
2429c060
PB
11794fi
11795fi
c6b750e1 11796LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11797if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11799$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11800else
81ecdfbb
RW
11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11802$as_echo "no" >&6; }
2429c060
PB
11803fi
11804
81ecdfbb 11805
2429c060
PB
11806 fi
11807 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11809set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811$as_echo_n "checking for $ac_word... " >&6; }
11812if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11813 $as_echo_n "(cached) " >&6
2429c060
PB
11814else
11815 if test -n "$LIPO_FOR_TARGET"; then
11816 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11817else
c6b750e1
DJ
11818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819for as_dir in $PATH
11820do
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11825 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11827 break 2
11828 fi
11829done
81ecdfbb
RW
11830 done
11831IFS=$as_save_IFS
c6b750e1 11832
2429c060
PB
11833fi
11834fi
c6b750e1 11835LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11836if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11838$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11839else
81ecdfbb
RW
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841$as_echo "no" >&6; }
2429c060 11842fi
c6b750e1 11843
81ecdfbb 11844
2429c060
PB
11845 fi
11846 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11847 done
11848fi
c6b750e1 11849
2429c060
PB
11850if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11851 set dummy lipo
11852 if test $build = $target ; then
11853 LIPO_FOR_TARGET="$2"
11854 else
11855 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11856 fi
d3f5afc4
MS
11857else
11858 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11859fi
11860
3a35eeb3
PB
11861else
11862 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11863fi
11864
11865
11866
11867
11868if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11869 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11871$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11872 if test -x $with_build_time_tools/nm; then
11873 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11874 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11876$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11877 else
81ecdfbb
RW
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879$as_echo "no" >&6; }
3a35eeb3 11880 fi
2429c060
PB
11881 elif test $build != $host && test $have_gcc_for_target = yes; then
11882 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11883 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11884 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11885 fi
11886fi
c6b750e1 11887if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11888 # Extract the first word of "nm", so it can be a program name with args.
11889set dummy nm; ac_word=$2
81ecdfbb
RW
11890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11891$as_echo_n "checking for $ac_word... " >&6; }
11892if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11893 $as_echo_n "(cached) " >&6
2429c060 11894else
c6b750e1
DJ
11895 case $NM_FOR_TARGET in
11896 [\\/]* | ?:[\\/]*)
2429c060
PB
11897 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11898 ;;
2429c060 11899 *)
c6b750e1
DJ
11900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11901for as_dir in $gcc_cv_tool_dirs
11902do
11903 IFS=$as_save_IFS
11904 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11905 for ac_exec_ext in '' $ac_executable_extensions; do
11906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11907 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11909 break 2
11910 fi
11911done
81ecdfbb
RW
11912 done
11913IFS=$as_save_IFS
c6b750e1 11914
2429c060
PB
11915 ;;
11916esac
11917fi
c6b750e1 11918NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11919if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11921$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11922else
81ecdfbb
RW
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924$as_echo "no" >&6; }
2429c060
PB
11925fi
11926
81ecdfbb 11927
2429c060
PB
11928fi
11929if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11930
11931
11932if test -n "$NM_FOR_TARGET"; then
11933 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11934elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11935 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11936fi
11937
11938if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11939 for ncn_progname in nm; do
11940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11941set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11943$as_echo_n "checking for $ac_word... " >&6; }
11944if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11945 $as_echo_n "(cached) " >&6
9a819804
AO
11946else
11947 if test -n "$NM_FOR_TARGET"; then
11948 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11949else
11950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951for as_dir in $PATH
11952do
11953 IFS=$as_save_IFS
11954 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11955 for ac_exec_ext in '' $ac_executable_extensions; do
11956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11957 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11959 break 2
11960 fi
11961done
81ecdfbb
RW
11962 done
11963IFS=$as_save_IFS
9a819804
AO
11964
11965fi
11966fi
11967NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11968if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11970$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11971else
81ecdfbb
RW
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973$as_echo "no" >&6; }
9a819804
AO
11974fi
11975
81ecdfbb 11976
9a819804
AO
11977 done
11978fi
11979
11980if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11981 for ncn_progname in nm; do
81ecdfbb
RW
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11983$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11984 if test -x $with_build_time_tools/${ncn_progname}; then
11985 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11987$as_echo "yes" >&6; }
2429c060
PB
11988 break
11989 else
81ecdfbb
RW
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11991$as_echo "no" >&6; }
2429c060
PB
11992 fi
11993 done
11994fi
11995
11996if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11997 for ncn_progname in nm; do
11998 if test -n "$ncn_target_tool_prefix"; then
11999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12000set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002$as_echo_n "checking for $ac_word... " >&6; }
12003if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12004 $as_echo_n "(cached) " >&6
859789af 12005else
55db4b87
PB
12006 if test -n "$NM_FOR_TARGET"; then
12007 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12008else
c6b750e1
DJ
12009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010for as_dir in $PATH
12011do
12012 IFS=$as_save_IFS
12013 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12014 for ac_exec_ext in '' $ac_executable_extensions; do
12015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12016 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12018 break 2
12019 fi
12020done
81ecdfbb
RW
12021 done
12022IFS=$as_save_IFS
c6b750e1 12023
859789af
AC
12024fi
12025fi
c6b750e1 12026NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12027if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12029$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12030else
81ecdfbb
RW
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032$as_echo "no" >&6; }
859789af
AC
12033fi
12034
81ecdfbb 12035
2429c060
PB
12036 fi
12037 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12039set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12041$as_echo_n "checking for $ac_word... " >&6; }
12042if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12043 $as_echo_n "(cached) " >&6
859789af 12044else
05cbd757
PB
12045 if test -n "$NM_FOR_TARGET"; then
12046 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12047else
c6b750e1
DJ
12048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049for as_dir in $PATH
12050do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12055 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12057 break 2
12058 fi
12059done
81ecdfbb
RW
12060 done
12061IFS=$as_save_IFS
c6b750e1 12062
859789af
AC
12063fi
12064fi
c6b750e1 12065NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12066if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12068$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12069else
81ecdfbb
RW
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071$as_echo "no" >&6; }
859789af 12072fi
c6b750e1 12073
81ecdfbb 12074
2429c060
PB
12075 fi
12076 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12077 done
12078fi
c6b750e1 12079
05cbd757
PB
12080if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12081 set dummy nm
12082 if test $build = $target ; then
12083 NM_FOR_TARGET="$2"
859789af 12084 else
05cbd757 12085 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12086 fi
d3f5afc4
MS
12087else
12088 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12089fi
12090
3a35eeb3
PB
12091else
12092 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12093fi
12094
12095
12096
12097
12098if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12099 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12101$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12102 if test -x $with_build_time_tools/objdump; then
12103 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12104 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12106$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12107 else
81ecdfbb
RW
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109$as_echo "no" >&6; }
3a35eeb3 12110 fi
2429c060
PB
12111 elif test $build != $host && test $have_gcc_for_target = yes; then
12112 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12113 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12114 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12115 fi
12116fi
c6b750e1 12117if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12118 # Extract the first word of "objdump", so it can be a program name with args.
12119set dummy objdump; ac_word=$2
81ecdfbb
RW
12120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12121$as_echo_n "checking for $ac_word... " >&6; }
12122if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12123 $as_echo_n "(cached) " >&6
2429c060 12124else
c6b750e1
DJ
12125 case $OBJDUMP_FOR_TARGET in
12126 [\\/]* | ?:[\\/]*)
2429c060
PB
12127 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12128 ;;
2429c060 12129 *)
c6b750e1
DJ
12130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12131for as_dir in $gcc_cv_tool_dirs
12132do
12133 IFS=$as_save_IFS
12134 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12135 for ac_exec_ext in '' $ac_executable_extensions; do
12136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12137 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12139 break 2
12140 fi
12141done
81ecdfbb
RW
12142 done
12143IFS=$as_save_IFS
c6b750e1 12144
2429c060
PB
12145 ;;
12146esac
12147fi
c6b750e1 12148OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12149if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12151$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12152else
81ecdfbb
RW
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154$as_echo "no" >&6; }
2429c060
PB
12155fi
12156
81ecdfbb 12157
2429c060
PB
12158fi
12159if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12160
12161
12162if test -n "$OBJDUMP_FOR_TARGET"; then
12163 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12164elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12165 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12166fi
12167
12168if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12169 for ncn_progname in objdump; do
12170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12171set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12173$as_echo_n "checking for $ac_word... " >&6; }
12174if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12175 $as_echo_n "(cached) " >&6
9a819804
AO
12176else
12177 if test -n "$OBJDUMP_FOR_TARGET"; then
12178 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12179else
12180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12181for as_dir in $PATH
12182do
12183 IFS=$as_save_IFS
12184 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12185 for ac_exec_ext in '' $ac_executable_extensions; do
12186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12187 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12189 break 2
12190 fi
12191done
81ecdfbb
RW
12192 done
12193IFS=$as_save_IFS
9a819804
AO
12194
12195fi
12196fi
12197OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12198if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12200$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12201else
81ecdfbb
RW
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203$as_echo "no" >&6; }
9a819804
AO
12204fi
12205
81ecdfbb 12206
9a819804
AO
12207 done
12208fi
12209
12210if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12211 for ncn_progname in objdump; do
81ecdfbb
RW
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12213$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12214 if test -x $with_build_time_tools/${ncn_progname}; then
12215 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12217$as_echo "yes" >&6; }
2429c060
PB
12218 break
12219 else
81ecdfbb
RW
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12221$as_echo "no" >&6; }
2429c060
PB
12222 fi
12223 done
12224fi
12225
12226if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12227 for ncn_progname in objdump; do
12228 if test -n "$ncn_target_tool_prefix"; then
12229 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12230set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12232$as_echo_n "checking for $ac_word... " >&6; }
12233if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12234 $as_echo_n "(cached) " >&6
5ae72758
DJ
12235else
12236 if test -n "$OBJDUMP_FOR_TARGET"; then
12237 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12238else
c6b750e1
DJ
12239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240for as_dir in $PATH
12241do
12242 IFS=$as_save_IFS
12243 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12246 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12248 break 2
12249 fi
12250done
81ecdfbb
RW
12251 done
12252IFS=$as_save_IFS
c6b750e1 12253
5ae72758
DJ
12254fi
12255fi
c6b750e1 12256OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12257if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12259$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12260else
81ecdfbb
RW
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262$as_echo "no" >&6; }
5ae72758
DJ
12263fi
12264
81ecdfbb 12265
2429c060
PB
12266 fi
12267 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12269set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12271$as_echo_n "checking for $ac_word... " >&6; }
12272if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12273 $as_echo_n "(cached) " >&6
5ae72758
DJ
12274else
12275 if test -n "$OBJDUMP_FOR_TARGET"; then
12276 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12277else
c6b750e1
DJ
12278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279for as_dir in $PATH
12280do
12281 IFS=$as_save_IFS
12282 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12285 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12287 break 2
12288 fi
12289done
81ecdfbb
RW
12290 done
12291IFS=$as_save_IFS
c6b750e1 12292
5ae72758
DJ
12293fi
12294fi
c6b750e1 12295OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12296if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12298$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12299else
81ecdfbb
RW
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12301$as_echo "no" >&6; }
5ae72758 12302fi
c6b750e1 12303
81ecdfbb 12304
2429c060
PB
12305 fi
12306 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12307 done
12308fi
c6b750e1 12309
5ae72758
DJ
12310if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12311 set dummy objdump
12312 if test $build = $target ; then
12313 OBJDUMP_FOR_TARGET="$2"
12314 else
12315 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12316 fi
d3f5afc4
MS
12317else
12318 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12319fi
12320
3a35eeb3
PB
12321else
12322 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12323fi
12324
12325
12326
12327
12328if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12329 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12331$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12332 if test -x $with_build_time_tools/ranlib; then
12333 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12334 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12336$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12337 else
81ecdfbb
RW
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339$as_echo "no" >&6; }
3a35eeb3 12340 fi
2429c060
PB
12341 elif test $build != $host && test $have_gcc_for_target = yes; then
12342 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12343 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12344 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12345 fi
12346fi
c6b750e1 12347if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12348 # Extract the first word of "ranlib", so it can be a program name with args.
12349set dummy ranlib; ac_word=$2
81ecdfbb
RW
12350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12351$as_echo_n "checking for $ac_word... " >&6; }
12352if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12353 $as_echo_n "(cached) " >&6
2429c060 12354else
c6b750e1
DJ
12355 case $RANLIB_FOR_TARGET in
12356 [\\/]* | ?:[\\/]*)
2429c060
PB
12357 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12358 ;;
2429c060 12359 *)
c6b750e1
DJ
12360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12361for as_dir in $gcc_cv_tool_dirs
12362do
12363 IFS=$as_save_IFS
12364 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12365 for ac_exec_ext in '' $ac_executable_extensions; do
12366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12367 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12369 break 2
12370 fi
12371done
81ecdfbb
RW
12372 done
12373IFS=$as_save_IFS
c6b750e1 12374
2429c060
PB
12375 ;;
12376esac
12377fi
c6b750e1 12378RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12379if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12381$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12382else
81ecdfbb
RW
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384$as_echo "no" >&6; }
2429c060
PB
12385fi
12386
81ecdfbb 12387
2429c060
PB
12388fi
12389if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12390
12391
12392if test -n "$RANLIB_FOR_TARGET"; then
12393 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12394elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12395 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12396fi
12397
12398if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12399 for ncn_progname in ranlib; do
12400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12401set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403$as_echo_n "checking for $ac_word... " >&6; }
12404if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
9a819804
AO
12406else
12407 if test -n "$RANLIB_FOR_TARGET"; then
12408 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12409else
12410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411for as_dir in $PATH
12412do
12413 IFS=$as_save_IFS
12414 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12415 for ac_exec_ext in '' $ac_executable_extensions; do
12416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12417 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12419 break 2
12420 fi
12421done
81ecdfbb
RW
12422 done
12423IFS=$as_save_IFS
9a819804
AO
12424
12425fi
12426fi
12427RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12428if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12430$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12431else
81ecdfbb
RW
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433$as_echo "no" >&6; }
9a819804
AO
12434fi
12435
81ecdfbb 12436
9a819804
AO
12437 done
12438fi
12439
12440if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12441 for ncn_progname in ranlib; do
81ecdfbb
RW
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12443$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12444 if test -x $with_build_time_tools/${ncn_progname}; then
12445 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12447$as_echo "yes" >&6; }
2429c060
PB
12448 break
12449 else
81ecdfbb
RW
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12451$as_echo "no" >&6; }
2429c060
PB
12452 fi
12453 done
12454fi
12455
12456if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12457 for ncn_progname in ranlib; do
12458 if test -n "$ncn_target_tool_prefix"; then
12459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12460set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12462$as_echo_n "checking for $ac_word... " >&6; }
12463if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12464 $as_echo_n "(cached) " >&6
859789af 12465else
55db4b87
PB
12466 if test -n "$RANLIB_FOR_TARGET"; then
12467 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12468else
c6b750e1
DJ
12469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12470for as_dir in $PATH
12471do
12472 IFS=$as_save_IFS
12473 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12474 for ac_exec_ext in '' $ac_executable_extensions; do
12475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12476 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12478 break 2
12479 fi
12480done
81ecdfbb
RW
12481 done
12482IFS=$as_save_IFS
c6b750e1 12483
859789af
AC
12484fi
12485fi
c6b750e1 12486RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12487if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12489$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12490else
81ecdfbb
RW
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12492$as_echo "no" >&6; }
859789af
AC
12493fi
12494
81ecdfbb 12495
2429c060
PB
12496 fi
12497 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12499set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12501$as_echo_n "checking for $ac_word... " >&6; }
12502if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12503 $as_echo_n "(cached) " >&6
859789af 12504else
05cbd757
PB
12505 if test -n "$RANLIB_FOR_TARGET"; then
12506 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12507else
c6b750e1
DJ
12508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509for as_dir in $PATH
12510do
12511 IFS=$as_save_IFS
12512 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12513 for ac_exec_ext in '' $ac_executable_extensions; do
12514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12515 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12517 break 2
12518 fi
12519done
81ecdfbb
RW
12520 done
12521IFS=$as_save_IFS
c6b750e1 12522
859789af
AC
12523fi
12524fi
c6b750e1 12525RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12526if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12528$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12529else
81ecdfbb
RW
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531$as_echo "no" >&6; }
859789af 12532fi
c6b750e1 12533
81ecdfbb 12534
2429c060
PB
12535 fi
12536 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12537 done
12538fi
c6b750e1 12539
2429c060
PB
12540if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12541 set dummy ranlib
12542 if test $build = $target ; then
12543 RANLIB_FOR_TARGET="$2"
12544 else
12545 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12546 fi
d3f5afc4
MS
12547else
12548 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12549fi
05cbd757 12550
3a35eeb3
PB
12551else
12552 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12553fi
12554
2429c060
PB
12555
12556
12557
12558if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12559 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12561$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12562 if test -x $with_build_time_tools/strip; then
12563 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12564 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12566$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12567 else
81ecdfbb
RW
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12569$as_echo "no" >&6; }
3a35eeb3 12570 fi
2429c060
PB
12571 elif test $build != $host && test $have_gcc_for_target = yes; then
12572 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12573 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12574 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12575 fi
12576fi
c6b750e1 12577if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12578 # Extract the first word of "strip", so it can be a program name with args.
12579set dummy strip; ac_word=$2
81ecdfbb
RW
12580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581$as_echo_n "checking for $ac_word... " >&6; }
12582if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12583 $as_echo_n "(cached) " >&6
2429c060 12584else
c6b750e1
DJ
12585 case $STRIP_FOR_TARGET in
12586 [\\/]* | ?:[\\/]*)
2429c060
PB
12587 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12588 ;;
2429c060 12589 *)
c6b750e1
DJ
12590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12591for as_dir in $gcc_cv_tool_dirs
12592do
12593 IFS=$as_save_IFS
12594 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12595 for ac_exec_ext in '' $ac_executable_extensions; do
12596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12597 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12599 break 2
12600 fi
12601done
81ecdfbb
RW
12602 done
12603IFS=$as_save_IFS
c6b750e1 12604
2429c060
PB
12605 ;;
12606esac
12607fi
c6b750e1 12608STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12609if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12611$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12612else
81ecdfbb
RW
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614$as_echo "no" >&6; }
2429c060
PB
12615fi
12616
81ecdfbb 12617
2429c060
PB
12618fi
12619if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12620
12621
12622if test -n "$STRIP_FOR_TARGET"; then
12623 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12624elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12625 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12626fi
12627
12628if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12629 for ncn_progname in strip; do
12630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12631set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12633$as_echo_n "checking for $ac_word... " >&6; }
12634if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12635 $as_echo_n "(cached) " >&6
9a819804
AO
12636else
12637 if test -n "$STRIP_FOR_TARGET"; then
12638 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12639else
12640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12641for as_dir in $PATH
12642do
12643 IFS=$as_save_IFS
12644 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12645 for ac_exec_ext in '' $ac_executable_extensions; do
12646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12647 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12649 break 2
12650 fi
12651done
81ecdfbb
RW
12652 done
12653IFS=$as_save_IFS
9a819804
AO
12654
12655fi
12656fi
12657STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12658if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12660$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12661else
81ecdfbb
RW
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663$as_echo "no" >&6; }
9a819804
AO
12664fi
12665
81ecdfbb 12666
9a819804
AO
12667 done
12668fi
12669
12670if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12671 for ncn_progname in strip; do
81ecdfbb
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12673$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12674 if test -x $with_build_time_tools/${ncn_progname}; then
12675 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12677$as_echo "yes" >&6; }
2429c060
PB
12678 break
12679 else
81ecdfbb
RW
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
2429c060
PB
12682 fi
12683 done
12684fi
12685
12686if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12687 for ncn_progname in strip; do
12688 if test -n "$ncn_target_tool_prefix"; then
12689 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12690set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12692$as_echo_n "checking for $ac_word... " >&6; }
12693if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12694 $as_echo_n "(cached) " >&6
7e0f7140
GK
12695else
12696 if test -n "$STRIP_FOR_TARGET"; then
12697 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12698else
12699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12700for as_dir in $PATH
12701do
12702 IFS=$as_save_IFS
12703 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12704 for ac_exec_ext in '' $ac_executable_extensions; do
12705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12706 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12708 break 2
12709 fi
12710done
81ecdfbb
RW
12711 done
12712IFS=$as_save_IFS
c6b750e1 12713
7e0f7140
GK
12714fi
12715fi
c6b750e1 12716STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12717if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12719$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12720else
81ecdfbb
RW
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722$as_echo "no" >&6; }
7e0f7140
GK
12723fi
12724
81ecdfbb 12725
2429c060
PB
12726 fi
12727 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12729set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12731$as_echo_n "checking for $ac_word... " >&6; }
12732if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12733 $as_echo_n "(cached) " >&6
7e0f7140
GK
12734else
12735 if test -n "$STRIP_FOR_TARGET"; then
12736 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12737else
c6b750e1
DJ
12738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12739for as_dir in $PATH
12740do
12741 IFS=$as_save_IFS
12742 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12743 for ac_exec_ext in '' $ac_executable_extensions; do
12744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12745 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12747 break 2
12748 fi
12749done
81ecdfbb
RW
12750 done
12751IFS=$as_save_IFS
c6b750e1 12752
7e0f7140
GK
12753fi
12754fi
c6b750e1 12755STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12756if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12758$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12759else
81ecdfbb
RW
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761$as_echo "no" >&6; }
7e0f7140 12762fi
c6b750e1 12763
81ecdfbb 12764
2429c060
PB
12765 fi
12766 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12767 done
12768fi
c6b750e1 12769
7e0f7140
GK
12770if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12771 set dummy strip
12772 if test $build = $target ; then
12773 STRIP_FOR_TARGET="$2"
12774 else
12775 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12776 fi
d3f5afc4
MS
12777else
12778 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12779fi
12780
3a35eeb3
PB
12781else
12782 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12783fi
12784
12785
12786
12787
12788if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12789 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12791$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12792 if test -x $with_build_time_tools/windres; then
12793 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12794 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12796$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12797 else
81ecdfbb
RW
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12799$as_echo "no" >&6; }
3a35eeb3 12800 fi
2429c060
PB
12801 elif test $build != $host && test $have_gcc_for_target = yes; then
12802 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12803 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12804 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12805 fi
12806fi
c6b750e1 12807if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12808 # Extract the first word of "windres", so it can be a program name with args.
12809set dummy windres; ac_word=$2
81ecdfbb
RW
12810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12811$as_echo_n "checking for $ac_word... " >&6; }
12812if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12813 $as_echo_n "(cached) " >&6
2429c060 12814else
c6b750e1
DJ
12815 case $WINDRES_FOR_TARGET in
12816 [\\/]* | ?:[\\/]*)
2429c060
PB
12817 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12818 ;;
2429c060 12819 *)
c6b750e1
DJ
12820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821for as_dir in $gcc_cv_tool_dirs
12822do
12823 IFS=$as_save_IFS
12824 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12825 for ac_exec_ext in '' $ac_executable_extensions; do
12826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12827 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12829 break 2
12830 fi
12831done
81ecdfbb
RW
12832 done
12833IFS=$as_save_IFS
c6b750e1 12834
2429c060
PB
12835 ;;
12836esac
12837fi
c6b750e1 12838WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12839if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12841$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12842else
81ecdfbb
RW
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844$as_echo "no" >&6; }
2429c060
PB
12845fi
12846
81ecdfbb 12847
2429c060
PB
12848fi
12849if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12850
12851
12852if test -n "$WINDRES_FOR_TARGET"; then
12853 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12854elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12855 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12856fi
12857
12858if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12859 for ncn_progname in windres; do
12860 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12861set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12863$as_echo_n "checking for $ac_word... " >&6; }
12864if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12865 $as_echo_n "(cached) " >&6
9a819804
AO
12866else
12867 if test -n "$WINDRES_FOR_TARGET"; then
12868 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12869else
12870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12871for as_dir in $PATH
12872do
12873 IFS=$as_save_IFS
12874 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12875 for ac_exec_ext in '' $ac_executable_extensions; do
12876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12877 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12879 break 2
12880 fi
12881done
81ecdfbb
RW
12882 done
12883IFS=$as_save_IFS
9a819804
AO
12884
12885fi
12886fi
12887WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12888if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12890$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12891else
81ecdfbb
RW
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12893$as_echo "no" >&6; }
9a819804
AO
12894fi
12895
81ecdfbb 12896
9a819804
AO
12897 done
12898fi
12899
12900if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12901 for ncn_progname in windres; do
81ecdfbb
RW
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12903$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12904 if test -x $with_build_time_tools/${ncn_progname}; then
12905 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12907$as_echo "yes" >&6; }
2429c060
PB
12908 break
12909 else
81ecdfbb
RW
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911$as_echo "no" >&6; }
2429c060
PB
12912 fi
12913 done
12914fi
12915
12916if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12917 for ncn_progname in windres; do
12918 if test -n "$ncn_target_tool_prefix"; then
12919 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12920set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12922$as_echo_n "checking for $ac_word... " >&6; }
12923if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12924 $as_echo_n "(cached) " >&6
859789af 12925else
55db4b87
PB
12926 if test -n "$WINDRES_FOR_TARGET"; then
12927 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12928else
c6b750e1
DJ
12929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12930for as_dir in $PATH
12931do
12932 IFS=$as_save_IFS
12933 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12934 for ac_exec_ext in '' $ac_executable_extensions; do
12935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12936 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12938 break 2
12939 fi
12940done
81ecdfbb
RW
12941 done
12942IFS=$as_save_IFS
c6b750e1 12943
859789af
AC
12944fi
12945fi
c6b750e1 12946WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12947if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12949$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12950else
81ecdfbb
RW
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12952$as_echo "no" >&6; }
859789af
AC
12953fi
12954
81ecdfbb 12955
2429c060
PB
12956 fi
12957 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12959set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12961$as_echo_n "checking for $ac_word... " >&6; }
12962if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12963 $as_echo_n "(cached) " >&6
859789af 12964else
05cbd757
PB
12965 if test -n "$WINDRES_FOR_TARGET"; then
12966 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12967else
c6b750e1
DJ
12968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12969for as_dir in $PATH
12970do
12971 IFS=$as_save_IFS
12972 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12973 for ac_exec_ext in '' $ac_executable_extensions; do
12974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12975 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12977 break 2
12978 fi
12979done
81ecdfbb
RW
12980 done
12981IFS=$as_save_IFS
c6b750e1 12982
859789af
AC
12983fi
12984fi
c6b750e1 12985WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12986if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12988$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12989else
81ecdfbb
RW
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12991$as_echo "no" >&6; }
859789af 12992fi
c6b750e1 12993
81ecdfbb 12994
2429c060
PB
12995 fi
12996 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12997 done
12998fi
c6b750e1 12999
05cbd757
PB
13000if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13001 set dummy windres
13002 if test $build = $target ; then
13003 WINDRES_FOR_TARGET="$2"
859789af 13004 else
05cbd757 13005 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13006 fi
d3f5afc4
MS
13007else
13008 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13009fi
13010
3a35eeb3
PB
13011else
13012 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13013fi
13014
852e5f18 13015
0c24b341
NC
13016
13017
13018if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13019 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13021$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13022 if test -x $with_build_time_tools/windmc; then
13023 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13024 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13026$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13027 else
81ecdfbb
RW
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13029$as_echo "no" >&6; }
0c24b341
NC
13030 fi
13031 elif test $build != $host && test $have_gcc_for_target = yes; then
13032 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13033 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13034 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13035 fi
13036fi
13037if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13038 # Extract the first word of "windmc", so it can be a program name with args.
13039set dummy windmc; ac_word=$2
81ecdfbb
RW
13040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13041$as_echo_n "checking for $ac_word... " >&6; }
13042if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13043 $as_echo_n "(cached) " >&6
0c24b341
NC
13044else
13045 case $WINDMC_FOR_TARGET in
13046 [\\/]* | ?:[\\/]*)
13047 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13048 ;;
13049 *)
13050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13051for as_dir in $gcc_cv_tool_dirs
13052do
13053 IFS=$as_save_IFS
13054 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13055 for ac_exec_ext in '' $ac_executable_extensions; do
13056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13057 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13059 break 2
13060 fi
13061done
81ecdfbb
RW
13062 done
13063IFS=$as_save_IFS
0c24b341
NC
13064
13065 ;;
13066esac
13067fi
13068WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13069if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13071$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13072else
81ecdfbb
RW
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074$as_echo "no" >&6; }
0c24b341
NC
13075fi
13076
81ecdfbb 13077
0c24b341
NC
13078fi
13079if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13080
13081
13082if test -n "$WINDMC_FOR_TARGET"; then
13083 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13084elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13085 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13086fi
13087
13088if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13089 for ncn_progname in windmc; do
13090 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13091set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13093$as_echo_n "checking for $ac_word... " >&6; }
13094if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13095 $as_echo_n "(cached) " >&6
0c24b341
NC
13096else
13097 if test -n "$WINDMC_FOR_TARGET"; then
13098 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13099else
13100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13101for as_dir in $PATH
13102do
13103 IFS=$as_save_IFS
13104 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13105 for ac_exec_ext in '' $ac_executable_extensions; do
13106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13107 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13109 break 2
13110 fi
13111done
81ecdfbb
RW
13112 done
13113IFS=$as_save_IFS
0c24b341
NC
13114
13115fi
13116fi
13117WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13118if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13120$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13121else
81ecdfbb
RW
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13123$as_echo "no" >&6; }
0c24b341
NC
13124fi
13125
81ecdfbb 13126
0c24b341
NC
13127 done
13128fi
13129
13130if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13131 for ncn_progname in windmc; do
81ecdfbb
RW
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13133$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13134 if test -x $with_build_time_tools/${ncn_progname}; then
13135 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13137$as_echo "yes" >&6; }
0c24b341
NC
13138 break
13139 else
81ecdfbb
RW
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141$as_echo "no" >&6; }
0c24b341
NC
13142 fi
13143 done
13144fi
13145
13146if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13147 for ncn_progname in windmc; do
13148 if test -n "$ncn_target_tool_prefix"; then
13149 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13150set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13152$as_echo_n "checking for $ac_word... " >&6; }
13153if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13154 $as_echo_n "(cached) " >&6
0c24b341
NC
13155else
13156 if test -n "$WINDMC_FOR_TARGET"; then
13157 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13158else
13159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13160for as_dir in $PATH
13161do
13162 IFS=$as_save_IFS
13163 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13164 for ac_exec_ext in '' $ac_executable_extensions; do
13165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13166 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13168 break 2
13169 fi
13170done
81ecdfbb
RW
13171 done
13172IFS=$as_save_IFS
0c24b341
NC
13173
13174fi
13175fi
13176WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13177if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13179$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13180else
81ecdfbb
RW
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13182$as_echo "no" >&6; }
0c24b341
NC
13183fi
13184
81ecdfbb 13185
0c24b341
NC
13186 fi
13187 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13189set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13191$as_echo_n "checking for $ac_word... " >&6; }
13192if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13193 $as_echo_n "(cached) " >&6
0c24b341
NC
13194else
13195 if test -n "$WINDMC_FOR_TARGET"; then
13196 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13197else
13198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13199for as_dir in $PATH
13200do
13201 IFS=$as_save_IFS
13202 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13203 for ac_exec_ext in '' $ac_executable_extensions; do
13204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13205 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13207 break 2
13208 fi
13209done
81ecdfbb
RW
13210 done
13211IFS=$as_save_IFS
0c24b341
NC
13212
13213fi
13214fi
13215WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13216if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13218$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13219else
81ecdfbb
RW
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13221$as_echo "no" >&6; }
0c24b341
NC
13222fi
13223
81ecdfbb 13224
0c24b341
NC
13225 fi
13226 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13227 done
13228fi
13229
13230if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13231 set dummy windmc
13232 if test $build = $target ; then
13233 WINDMC_FOR_TARGET="$2"
13234 else
13235 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13236 fi
13237else
13238 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13239fi
13240
13241else
13242 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13243fi
13244
13245
be01d343
PB
13246RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13247
81ecdfbb
RW
13248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13249$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13250if test "x${build}" != "x${host}" ; then
2429c060
PB
13251 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13252 # We already found the complete path
b8025f34 13253 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13255$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13256 else
13257 # Canadian cross, just use what we found
81ecdfbb
RW
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13259$as_echo "pre-installed" >&6; }
2429c060 13260 fi
be01d343
PB
13261else
13262 ok=yes
13263 case " ${configdirs} " in
13264 *" binutils "*) ;;
13265 *) ok=no ;;
13266 esac
c6b750e1 13267
be01d343
PB
13268 if test $ok = yes; then
13269 # An in-tree tool is available and we can use it
13270 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13272$as_echo "just compiled" >&6; }
2429c060
PB
13273 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13274 # We already found the complete path
b8025f34 13275 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13277$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13278 elif test "x$target" = "x$host"; then
13279 # We can use an host tool
13280 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13282$as_echo "host tool" >&6; }
be01d343
PB
13283 else
13284 # We need a cross tool
81ecdfbb
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13286$as_echo "pre-installed" >&6; }
be01d343
PB
13287 fi
13288fi
4b900473 13289
81ecdfbb
RW
13290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13291$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13292if test "x${build}" != "x${host}" ; then
2429c060
PB
13293 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13294 # We already found the complete path
b8025f34 13295 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13297$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13298 else
13299 # Canadian cross, just use what we found
81ecdfbb
RW
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13301$as_echo "pre-installed" >&6; }
2429c060 13302 fi
be01d343
PB
13303else
13304 ok=yes
13305 case " ${configdirs} " in
13306 *" gas "*) ;;
13307 *) ok=no ;;
13308 esac
c6b750e1 13309
be01d343
PB
13310 if test $ok = yes; then
13311 # An in-tree tool is available and we can use it
13312 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13314$as_echo "just compiled" >&6; }
2429c060
PB
13315 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13316 # We already found the complete path
b8025f34 13317 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13319$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13320 elif test "x$target" = "x$host"; then
13321 # We can use an host tool
13322 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13324$as_echo "host tool" >&6; }
be01d343
PB
13325 else
13326 # We need a cross tool
81ecdfbb
RW
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13328$as_echo "pre-installed" >&6; }
be01d343
PB
13329 fi
13330fi
4b900473 13331
81ecdfbb
RW
13332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13333$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13334if test "x${build}" != "x${host}" ; then
2429c060
PB
13335 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13336 # We already found the complete path
b8025f34 13337 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13339$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13340 else
13341 # Canadian cross, just use what we found
81ecdfbb
RW
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13343$as_echo "pre-installed" >&6; }
2429c060 13344 fi
be01d343
PB
13345else
13346 ok=yes
13347 case " ${configdirs} " in
13348 *" gcc "*) ;;
13349 *) ok=no ;;
13350 esac
c6b750e1 13351
be01d343
PB
13352 if test $ok = yes; then
13353 # An in-tree tool is available and we can use it
13354 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13356$as_echo "just compiled" >&6; }
2429c060
PB
13357 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13358 # We already found the complete path
b8025f34 13359 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13361$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13362 elif test "x$target" = "x$host"; then
13363 # We can use an host tool
13364 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13366$as_echo "host tool" >&6; }
be01d343
PB
13367 else
13368 # We need a cross tool
81ecdfbb
RW
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13370$as_echo "pre-installed" >&6; }
be01d343
PB
13371 fi
13372fi
4b900473 13373
81ecdfbb
RW
13374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13375$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13376if test "x${build}" != "x${host}" ; then
2429c060
PB
13377 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13378 # We already found the complete path
b8025f34 13379 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13381$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13382 else
13383 # Canadian cross, just use what we found
81ecdfbb
RW
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13385$as_echo "pre-installed" >&6; }
2429c060 13386 fi
be01d343
PB
13387else
13388 ok=yes
13389 case " ${configdirs} " in
13390 *" gcc "*) ;;
13391 *) ok=no ;;
13392 esac
13393 case ,${enable_languages}, in
13394 *,c++,*) ;;
13395 *) ok=no ;;
13396 esac
13397 if test $ok = yes; then
13398 # An in-tree tool is available and we can use it
87cda2cf 13399 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
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13401$as_echo "just compiled" >&6; }
2429c060
PB
13402 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13403 # We already found the complete path
b8025f34 13404 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13406$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13407 elif test "x$target" = "x$host"; then
13408 # We can use an host tool
13409 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13411$as_echo "host tool" >&6; }
be01d343
PB
13412 else
13413 # We need a cross tool
81ecdfbb
RW
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13415$as_echo "pre-installed" >&6; }
be01d343
PB
13416 fi
13417fi
4b900473 13418
81ecdfbb
RW
13419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13420$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13421if test "x${build}" != "x${host}" ; then
2429c060
PB
13422 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13423 # We already found the complete path
b8025f34 13424 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13426$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13427 else
13428 # Canadian cross, just use what we found
81ecdfbb
RW
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13430$as_echo "pre-installed" >&6; }
2429c060 13431 fi
be01d343
PB
13432else
13433 ok=yes
13434 case " ${configdirs} " in
13435 *" gcc "*) ;;
13436 *) ok=no ;;
13437 esac
13438 case ,${enable_languages}, in
13439 *,c++,*) ;;
13440 *) ok=no ;;
13441 esac
13442 if test $ok = yes; then
13443 # An in-tree tool is available and we can use it
13444 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
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13446$as_echo "just compiled" >&6; }
2429c060
PB
13447 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13448 # We already found the complete path
b8025f34 13449 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13451$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13452 elif test "x$target" = "x$host"; then
13453 # We can use an host tool
13454 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13456$as_echo "host tool" >&6; }
be01d343
PB
13457 else
13458 # We need a cross tool
81ecdfbb
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13460$as_echo "pre-installed" >&6; }
be01d343
PB
13461 fi
13462fi
4b900473 13463
81ecdfbb
RW
13464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13465$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13466if test "x${build}" != "x${host}" ; then
2429c060
PB
13467 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13468 # We already found the complete path
b8025f34 13469 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13471$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13472 else
13473 # Canadian cross, just use what we found
81ecdfbb
RW
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13475$as_echo "pre-installed" >&6; }
2429c060 13476 fi
be01d343
PB
13477else
13478 ok=yes
13479 case " ${configdirs} " in
13480 *" binutils "*) ;;
13481 *) ok=no ;;
13482 esac
c6b750e1 13483
be01d343
PB
13484 if test $ok = yes; then
13485 # An in-tree tool is available and we can use it
13486 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13488$as_echo "just compiled" >&6; }
2429c060
PB
13489 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13490 # We already found the complete path
b8025f34 13491 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13493$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13494 elif test "x$target" = "x$host"; then
13495 # We can use an host tool
13496 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13498$as_echo "host tool" >&6; }
be01d343
PB
13499 else
13500 # We need a cross tool
81ecdfbb
RW
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13502$as_echo "pre-installed" >&6; }
be01d343
PB
13503 fi
13504fi
4b900473 13505
81ecdfbb
RW
13506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13507$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13508if test "x${build}" != "x${host}" ; then
2429c060
PB
13509 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13510 # We already found the complete path
b8025f34 13511 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13513$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13514 else
13515 # Canadian cross, just use what we found
81ecdfbb
RW
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13517$as_echo "pre-installed" >&6; }
2429c060 13518 fi
be01d343
PB
13519else
13520 ok=yes
13521 case " ${configdirs} " in
13522 *" gcc "*) ;;
13523 *) ok=no ;;
13524 esac
c6b750e1 13525
be01d343
PB
13526 if test $ok = yes; then
13527 # An in-tree tool is available and we can use it
13528 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13530$as_echo "just compiled" >&6; }
2429c060
PB
13531 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13532 # We already found the complete path
b8025f34 13533 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13535$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13536 elif test "x$target" = "x$host"; then
13537 # We can use an host tool
13538 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13540$as_echo "host tool" >&6; }
be01d343
PB
13541 else
13542 # We need a cross tool
81ecdfbb
RW
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13544$as_echo "pre-installed" >&6; }
be01d343
PB
13545 fi
13546fi
4b900473 13547
81ecdfbb
RW
13548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13549$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13550if test "x${build}" != "x${host}" ; then
2429c060
PB
13551 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13552 # We already found the complete path
b8025f34 13553 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13555$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13556 else
13557 # Canadian cross, just use what we found
81ecdfbb
RW
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13559$as_echo "pre-installed" >&6; }
2429c060 13560 fi
be01d343
PB
13561else
13562 ok=yes
13563 case " ${configdirs} " in
13564 *" gcc "*) ;;
13565 *) ok=no ;;
13566 esac
13567 case ,${enable_languages}, in
13568 *,java,*) ;;
13569 *) ok=no ;;
13570 esac
13571 if test $ok = yes; then
13572 # An in-tree tool is available and we can use it
13573 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13575$as_echo "just compiled" >&6; }
2429c060
PB
13576 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13577 # We already found the complete path
b8025f34 13578 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13580$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13581 elif test "x$target" = "x$host"; then
13582 # We can use an host tool
13583 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13585$as_echo "host tool" >&6; }
be01d343
PB
13586 else
13587 # We need a cross tool
81ecdfbb
RW
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13589$as_echo "pre-installed" >&6; }
be01d343
PB
13590 fi
13591fi
4b900473 13592
81ecdfbb
RW
13593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13594$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13595if test "x${build}" != "x${host}" ; then
2429c060
PB
13596 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13597 # We already found the complete path
b8025f34 13598 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13600$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13601 else
13602 # Canadian cross, just use what we found
81ecdfbb
RW
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13604$as_echo "pre-installed" >&6; }
2429c060 13605 fi
be01d343
PB
13606else
13607 ok=yes
13608 case " ${configdirs} " in
13609 *" gcc "*) ;;
13610 *) ok=no ;;
13611 esac
13612 case ,${enable_languages}, in
13613 *,fortran,*) ;;
13614 *) ok=no ;;
13615 esac
13616 if test $ok = yes; then
13617 # An in-tree tool is available and we can use it
13618 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13620$as_echo "just compiled" >&6; }
2429c060
PB
13621 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13622 # We already found the complete path
b8025f34 13623 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13625$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13626 elif test "x$target" = "x$host"; then
13627 # We can use an host tool
13628 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13630$as_echo "host tool" >&6; }
be01d343
PB
13631 else
13632 # We need a cross tool
81ecdfbb
RW
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13634$as_echo "pre-installed" >&6; }
be01d343
PB
13635 fi
13636fi
4b900473 13637
e552509b
ILT
13638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13639$as_echo_n "checking where to find the target gccgo... " >&6; }
13640if test "x${build}" != "x${host}" ; then
13641 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13642 # We already found the complete path
13643 ac_dir=`dirname $GOC_FOR_TARGET`
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13645$as_echo "pre-installed in $ac_dir" >&6; }
13646 else
13647 # Canadian cross, just use what we found
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13649$as_echo "pre-installed" >&6; }
13650 fi
13651else
13652 ok=yes
13653 case " ${configdirs} " in
13654 *" gcc "*) ;;
13655 *) ok=no ;;
13656 esac
13657 case ,${enable_languages}, in
13658 *,go,*) ;;
13659 *) ok=no ;;
13660 esac
13661 if test $ok = yes; then
13662 # An in-tree tool is available and we can use it
13663 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13665$as_echo "just compiled" >&6; }
13666 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13667 # We already found the complete path
13668 ac_dir=`dirname $GOC_FOR_TARGET`
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13670$as_echo "pre-installed in $ac_dir" >&6; }
13671 elif test "x$target" = "x$host"; then
13672 # We can use an host tool
13673 GOC_FOR_TARGET='$(GOC)'
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13675$as_echo "host tool" >&6; }
13676 else
13677 # We need a cross tool
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13679$as_echo "pre-installed" >&6; }
13680 fi
13681fi
13682
81ecdfbb
RW
13683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13684$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13685if test "x${build}" != "x${host}" ; then
2429c060
PB
13686 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13687 # We already found the complete path
b8025f34 13688 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13690$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13691 else
13692 # Canadian cross, just use what we found
81ecdfbb
RW
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13694$as_echo "pre-installed" >&6; }
2429c060 13695 fi
be01d343
PB
13696else
13697 ok=yes
13698 case " ${configdirs} " in
13699 *" ld "*) ;;
13700 *) ok=no ;;
13701 esac
c6b750e1 13702
be01d343
PB
13703 if test $ok = yes; then
13704 # An in-tree tool is available and we can use it
13705 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13707$as_echo "just compiled" >&6; }
2429c060
PB
13708 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13709 # We already found the complete path
b8025f34 13710 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13712$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13713 elif test "x$target" = "x$host"; then
13714 # We can use an host tool
13715 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13717$as_echo "host tool" >&6; }
be01d343
PB
13718 else
13719 # We need a cross tool
81ecdfbb
RW
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13721$as_echo "pre-installed" >&6; }
be01d343
PB
13722 fi
13723fi
4b900473 13724
81ecdfbb
RW
13725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13726$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13727if test "x${build}" != "x${host}" ; then
2429c060
PB
13728 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13729 # We already found the complete path
b8025f34 13730 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13732$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13733 else
13734 # Canadian cross, just use what we found
81ecdfbb
RW
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13736$as_echo "pre-installed" >&6; }
2429c060 13737 fi
be01d343 13738else
2429c060
PB
13739 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13740 # We already found the complete path
b8025f34 13741 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13743$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13744 elif test "x$target" = "x$host"; then
be01d343
PB
13745 # We can use an host tool
13746 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13748$as_echo "host tool" >&6; }
be01d343
PB
13749 else
13750 # We need a cross tool
81ecdfbb
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13752$as_echo "pre-installed" >&6; }
be01d343
PB
13753 fi
13754fi
4b900473 13755
81ecdfbb
RW
13756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13757$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13758if test "x${build}" != "x${host}" ; then
2429c060
PB
13759 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13760 # We already found the complete path
b8025f34 13761 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13763$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13764 else
13765 # Canadian cross, just use what we found
81ecdfbb
RW
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13767$as_echo "pre-installed" >&6; }
2429c060 13768 fi
be01d343
PB
13769else
13770 ok=yes
13771 case " ${configdirs} " in
13772 *" binutils "*) ;;
13773 *) ok=no ;;
13774 esac
c6b750e1 13775
be01d343
PB
13776 if test $ok = yes; then
13777 # An in-tree tool is available and we can use it
13778 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13780$as_echo "just compiled" >&6; }
2429c060
PB
13781 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13782 # We already found the complete path
b8025f34 13783 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13785$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13786 elif test "x$target" = "x$host"; then
13787 # We can use an host tool
13788 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13790$as_echo "host tool" >&6; }
be01d343
PB
13791 else
13792 # We need a cross tool
81ecdfbb
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13794$as_echo "pre-installed" >&6; }
be01d343
PB
13795 fi
13796fi
4b900473 13797
81ecdfbb
RW
13798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13799$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13800if test "x${build}" != "x${host}" ; then
2429c060
PB
13801 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13802 # We already found the complete path
b8025f34 13803 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13805$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13806 else
13807 # Canadian cross, just use what we found
81ecdfbb
RW
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13809$as_echo "pre-installed" >&6; }
2429c060 13810 fi
be01d343
PB
13811else
13812 ok=yes
13813 case " ${configdirs} " in
13814 *" binutils "*) ;;
13815 *) ok=no ;;
13816 esac
c6b750e1 13817
be01d343
PB
13818 if test $ok = yes; then
13819 # An in-tree tool is available and we can use it
13820 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13822$as_echo "just compiled" >&6; }
2429c060
PB
13823 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13824 # We already found the complete path
b8025f34 13825 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13827$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13828 elif test "x$target" = "x$host"; then
13829 # We can use an host tool
13830 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13832$as_echo "host tool" >&6; }
be01d343
PB
13833 else
13834 # We need a cross tool
81ecdfbb
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13836$as_echo "pre-installed" >&6; }
be01d343
PB
13837 fi
13838fi
4b900473 13839
81ecdfbb
RW
13840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13841$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13842if test "x${build}" != "x${host}" ; then
2429c060
PB
13843 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13844 # We already found the complete path
b8025f34 13845 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13847$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13848 else
13849 # Canadian cross, just use what we found
81ecdfbb
RW
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13851$as_echo "pre-installed" >&6; }
2429c060 13852 fi
be01d343
PB
13853else
13854 ok=yes
13855 case " ${configdirs} " in
13856 *" binutils "*) ;;
13857 *) ok=no ;;
13858 esac
c6b750e1 13859
be01d343
PB
13860 if test $ok = yes; then
13861 # An in-tree tool is available and we can use it
13862 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13864$as_echo "just compiled" >&6; }
2429c060
PB
13865 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13866 # We already found the complete path
b8025f34 13867 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13869$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13870 elif test "x$target" = "x$host"; then
13871 # We can use an host tool
13872 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13874$as_echo "host tool" >&6; }
be01d343
PB
13875 else
13876 # We need a cross tool
81ecdfbb
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13878$as_echo "pre-installed" >&6; }
be01d343
PB
13879 fi
13880fi
4b900473 13881
81ecdfbb
RW
13882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13883$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13884if test "x${build}" != "x${host}" ; then
2429c060
PB
13885 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13886 # We already found the complete path
b8025f34 13887 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13889$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13890 else
13891 # Canadian cross, just use what we found
81ecdfbb
RW
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13893$as_echo "pre-installed" >&6; }
2429c060 13894 fi
be01d343
PB
13895else
13896 ok=yes
13897 case " ${configdirs} " in
13898 *" binutils "*) ;;
13899 *) ok=no ;;
13900 esac
c6b750e1 13901
be01d343
PB
13902 if test $ok = yes; then
13903 # An in-tree tool is available and we can use it
9b980aa1 13904 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13906$as_echo "just compiled" >&6; }
2429c060
PB
13907 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13908 # We already found the complete path
b8025f34 13909 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13911$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13912 elif test "x$target" = "x$host"; then
13913 # We can use an host tool
13914 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13916$as_echo "host tool" >&6; }
be01d343
PB
13917 else
13918 # We need a cross tool
81ecdfbb
RW
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13920$as_echo "pre-installed" >&6; }
be01d343
PB
13921 fi
13922fi
4b900473 13923
81ecdfbb
RW
13924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13925$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13926if test "x${build}" != "x${host}" ; then
2429c060
PB
13927 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13928 # We already found the complete path
b8025f34 13929 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13931$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13932 else
13933 # Canadian cross, just use what we found
81ecdfbb
RW
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13935$as_echo "pre-installed" >&6; }
2429c060 13936 fi
be01d343
PB
13937else
13938 ok=yes
13939 case " ${configdirs} " in
13940 *" binutils "*) ;;
13941 *) ok=no ;;
13942 esac
c6b750e1 13943
be01d343
PB
13944 if test $ok = yes; then
13945 # An in-tree tool is available and we can use it
13946 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13948$as_echo "just compiled" >&6; }
2429c060
PB
13949 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13950 # We already found the complete path
b8025f34 13951 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13953$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13954 elif test "x$target" = "x$host"; then
13955 # We can use an host tool
13956 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13958$as_echo "host tool" >&6; }
be01d343
PB
13959 else
13960 # We need a cross tool
81ecdfbb
RW
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13962$as_echo "pre-installed" >&6; }
be01d343 13963 fi
a0da8069 13964fi
54752a6b 13965
81ecdfbb
RW
13966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13967$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13968if test "x${build}" != "x${host}" ; then
13969 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13970 # We already found the complete path
13971 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13973$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13974 else
13975 # Canadian cross, just use what we found
81ecdfbb
RW
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13977$as_echo "pre-installed" >&6; }
0c24b341
NC
13978 fi
13979else
13980 ok=yes
13981 case " ${configdirs} " in
13982 *" binutils "*) ;;
13983 *) ok=no ;;
13984 esac
13985
13986 if test $ok = yes; then
13987 # An in-tree tool is available and we can use it
13988 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13990$as_echo "just compiled" >&6; }
0c24b341
NC
13991 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13992 # We already found the complete path
13993 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13995$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13996 elif test "x$target" = "x$host"; then
13997 # We can use an host tool
13998 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14000$as_echo "host tool" >&6; }
0c24b341
NC
14001 else
14002 # We need a cross tool
81ecdfbb
RW
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14004$as_echo "pre-installed" >&6; }
0c24b341
NC
14005 fi
14006fi
14007
54752a6b
NN
14008
14009
be01d343 14010
4b900473 14011
a0da8069
NN
14012# Certain tools may need extra flags.
14013AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14014RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14015NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14016
be01d343
PB
14017# When building target libraries, except in a Canadian cross, we use
14018# the same toolchain as the compiler we just built.
14019COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14020COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14021COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14022if test $host = $build; then
14023 case " $configdirs " in
14024 *" gcc "*)
14025 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14026 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14027 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14028 ;;
14029 esac
14030fi
14031
14032
14033
14034
14035
81ecdfbb
RW
14036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14037$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14038# Check whether --enable-maintainer-mode was given.
14039if test "${enable_maintainer_mode+set}" = set; then :
14040 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14041else
14042 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14043fi
14044
14045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14046$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14047
14048
14049if test "$USE_MAINTAINER_MODE" = yes; then
14050 MAINTAINER_MODE_TRUE=
14051 MAINTAINER_MODE_FALSE='#'
14052else
14053 MAINTAINER_MODE_TRUE='#'
14054 MAINTAINER_MODE_FALSE=
c6b750e1 14055fi
3d5e36ae
AO
14056MAINT=$MAINTAINER_MODE_TRUE
14057
1d39f329
NN
14058# ---------------------
14059# GCC bootstrap support
14060# ---------------------
14061
14062# Stage specific cflags for build.
14063stage1_cflags="-g"
14064case $build in
14065 vax-*-*)
14066 case ${GCC} in
14067 yes) stage1_cflags="-g -Wa,-J" ;;
14068 *) stage1_cflags="-g -J" ;;
14069 esac ;;
1d39f329
NN
14070esac
14071
1d89b610 14072# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 14073if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
14074 saved_CFLAGS="$CFLAGS"
14075
14076 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14077 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14079$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
14081/* end confdefs.h. */
14082
2038f525
PB
14083#if (__GNUC__ < 3) \
14084 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14085 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14086#error http://gcc.gnu.org/PR29382
14087#endif
14088
c6b750e1
DJ
14089int
14090main ()
14091{
14092
14093 ;
14094 return 0;
14095}
14096_ACEOF
81ecdfbb
RW
14097if ac_fn_c_try_compile "$LINENO"; then :
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14099$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14100else
81ecdfbb
RW
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14102$as_echo "no" >&6; }
c6b750e1 14103fi
81ecdfbb 14104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14105
14106 CFLAGS="$saved_CFLAGS"
14107fi
14108
14109
1d39f329 14110
8a0d8a5c 14111# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14112# Check whether --enable-stage1-checking was given.
14113if test "${enable_stage1_checking+set}" = set; then :
14114 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14115else
5566c1fa 14116 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14117 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14118else
5566c1fa 14119 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14120fi
81ecdfbb 14121fi
8a0d8a5c
PB
14122
14123
c6b750e1 14124
81ecdfbb
RW
14125# Enable -Werror in bootstrap stage2 and later.
14126# Check whether --enable-werror was given.
14127if test "${enable_werror+set}" = set; then :
14128 enableval=$enable_werror;
1d39f329 14129else
a0323144 14130 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14131 enable_werror=yes
79fcd0ec
PB
14132else
14133 enable_werror=no
14134fi
81ecdfbb
RW
14135fi
14136
1a6f2dc7
NN
14137case ${enable_werror} in
14138 yes) stage2_werror_flag="--enable-werror-always" ;;
14139 *) stage2_werror_flag="" ;;
1d39f329
NN
14140esac
14141
14142
e8a5fa9c
RW
14143# Specify what files to not compare during bootstrap.
14144
14145compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14146case "$target" in
14147 hppa*64*-*-hpux*) ;;
14148 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14149esac
1f53ca9a
AO
14150case " $configdirs " in
14151*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14152esac
e8a5fa9c
RW
14153
14154
81ecdfbb
RW
14155ac_config_files="$ac_config_files Makefile"
14156
c6b750e1 14157cat >confcache <<\_ACEOF
a0da8069
NN
14158# This file is a shell script that caches the results of configure
14159# tests run on this system so they can be shared between configure
c6b750e1
DJ
14160# scripts and configure runs, see configure's option --config-cache.
14161# It is not useful on other systems. If it contains results you don't
14162# want to keep, you may remove or edit it.
a0da8069 14163#
c6b750e1
DJ
14164# config.status only pays attention to the cache file if you give it
14165# the --recheck option to rerun configure.
a0da8069 14166#
c6b750e1
DJ
14167# `ac_cv_env_foo' variables (set or unset) will be overridden when
14168# loading this file, other *unset* `ac_cv_foo' will be assigned the
14169# following values.
14170
14171_ACEOF
14172
a0da8069
NN
14173# The following way of writing the cache mishandles newlines in values,
14174# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14175# So, we kill variables containing newlines.
a0da8069
NN
14176# Ultrix sh set writes to stderr and can't be redirected directly,
14177# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14178(
14179 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14180 eval ac_val=\$$ac_var
14181 case $ac_val in #(
14182 *${as_nl}*)
14183 case $ac_var in #(
14184 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14185$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14186 esac
14187 case $ac_var in #(
14188 _ | IFS | as_nl) ;; #(
14189 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14190 *) { eval $ac_var=; unset $ac_var;} ;;
14191 esac ;;
14192 esac
14193 done
14194
c6b750e1 14195 (set) 2>&1 |
81ecdfbb
RW
14196 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14197 *${as_nl}ac_space=\ *)
14198 # `set' does not quote correctly, so add quotes: double-quote
14199 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14200 sed -n \
14201 "s/'/'\\\\''/g;
14202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14203 ;; #(
c6b750e1
DJ
14204 *)
14205 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14206 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14207 ;;
81ecdfbb
RW
14208 esac |
14209 sort
14210) |
c6b750e1 14211 sed '
81ecdfbb 14212 /^ac_cv_env_/b end
c6b750e1 14213 t clear
81ecdfbb 14214 :clear
c6b750e1
DJ
14215 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14216 t end
81ecdfbb
RW
14217 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14218 :end' >>confcache
14219if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14220 if test -w "$cache_file"; then
14221 test "x$cache_file" != "x/dev/null" &&
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14223$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14224 cat confcache >$cache_file
a0da8069 14225 else
81ecdfbb
RW
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14227$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14228 fi
852e5f18 14229fi
a0da8069 14230rm -f confcache
852e5f18 14231
a0da8069
NN
14232test "x$prefix" = xNONE && prefix=$ac_default_prefix
14233# Let make expand exec_prefix.
14234test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14235
a0da8069
NN
14236# Transform confdefs.h into DEFS.
14237# Protect against shell expansion while executing Makefile rules.
14238# Protect against Makefile macro expansion.
c6b750e1
DJ
14239#
14240# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14241# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14242# look for a macro that doesn't take arguments.
81ecdfbb
RW
14243ac_script='
14244:mline
14245/\\$/{
14246 N
14247 s,\\\n,,
14248 b mline
14249}
c6b750e1 14250t clear
81ecdfbb
RW
14251:clear
14252s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14253t quote
81ecdfbb 14254s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14255t quote
81ecdfbb
RW
14256b any
14257:quote
14258s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14259s/\[/\\&/g
14260s/\]/\\&/g
14261s/\$/$$/g
14262H
14263:any
14264${
14265 g
14266 s/^\n//
14267 s/\n/ /g
14268 p
14269}
14270'
14271DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14272
14273
14274ac_libobjs=
14275ac_ltlibobjs=
14276for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14277 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14278 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14279 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14280 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14281 # will be set to the directory where LIBOBJS objects are built.
14282 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14283 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14284done
14285LIBOBJS=$ac_libobjs
852e5f18 14286
c6b750e1 14287LTLIBOBJS=$ac_ltlibobjs
376a0e54 14288
cac3d6c4 14289
c6b750e1
DJ
14290
14291: ${CONFIG_STATUS=./config.status}
81ecdfbb 14292ac_write_fail=0
c6b750e1
DJ
14293ac_clean_files_save=$ac_clean_files
14294ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14295{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14296$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14297as_write_fail=0
14298cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14299#! $SHELL
14300# Generated by $as_me.
a0da8069 14301# Run this file to recreate the current configuration.
a0da8069 14302# Compiler output produced by configure, useful for debugging
c6b750e1 14303# configure, is in config.log if it exists.
376a0e54 14304
c6b750e1
DJ
14305debug=false
14306ac_cs_recheck=false
14307ac_cs_silent=false
c6b750e1 14308
81ecdfbb
RW
14309SHELL=\${CONFIG_SHELL-$SHELL}
14310export SHELL
14311_ASEOF
14312cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14313## -------------------- ##
14314## M4sh Initialization. ##
14315## -------------------- ##
14316
14317# Be more Bourne compatible
14318DUALCASE=1; export DUALCASE # for MKS sh
14319if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14320 emulate sh
14321 NULLCMD=:
81ecdfbb 14322 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14323 # is contrary to our usage. Disable this feature.
14324 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14325 setopt NO_GLOB_SUBST
14326else
14327 case `(set -o) 2>/dev/null` in #(
14328 *posix*) :
14329 set -o posix ;; #(
14330 *) :
14331 ;;
14332esac
c6b750e1 14333fi
c6b750e1 14334
81ecdfbb
RW
14335
14336as_nl='
14337'
14338export as_nl
14339# Printing a long string crashes Solaris 7 /usr/bin/printf.
14340as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14341as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14342as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14343# Prefer a ksh shell builtin over an external printf program on Solaris,
14344# but without wasting forks for bash or zsh.
14345if test -z "$BASH_VERSION$ZSH_VERSION" \
14346 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14347 as_echo='print -r --'
14348 as_echo_n='print -rn --'
14349elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14350 as_echo='printf %s\n'
14351 as_echo_n='printf %s'
14352else
14353 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14354 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14355 as_echo_n='/usr/ucb/echo -n'
14356 else
14357 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14358 as_echo_n_body='eval
14359 arg=$1;
14360 case $arg in #(
14361 *"$as_nl"*)
14362 expr "X$arg" : "X\\(.*\\)$as_nl";
14363 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14364 esac;
14365 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14366 '
14367 export as_echo_n_body
14368 as_echo_n='sh -c $as_echo_n_body as_echo'
14369 fi
14370 export as_echo_body
14371 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14372fi
14373
81ecdfbb
RW
14374# The user is always right.
14375if test "${PATH_SEPARATOR+set}" != set; then
14376 PATH_SEPARATOR=:
14377 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14378 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14379 PATH_SEPARATOR=';'
14380 }
14381fi
14382
14383
14384# IFS
14385# We need space, tab and new line, in precisely that order. Quoting is
14386# there to prevent editors from complaining about space-tab.
14387# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14388# splitting by setting IFS to empty value.)
14389IFS=" "" $as_nl"
14390
14391# Find who we are. Look in the path if we contain no directory separator.
14392case $0 in #((
14393 *[\\/]* ) as_myself=$0 ;;
14394 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14395for as_dir in $PATH
14396do
14397 IFS=$as_save_IFS
14398 test -z "$as_dir" && as_dir=.
14399 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14400 done
14401IFS=$as_save_IFS
14402
14403 ;;
14404esac
14405# We did not find ourselves, most probably we were run as `sh COMMAND'
14406# in which case we are not to be found in the path.
14407if test "x$as_myself" = x; then
14408 as_myself=$0
14409fi
14410if test ! -f "$as_myself"; then
14411 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14412 exit 1
14413fi
c6b750e1 14414
81ecdfbb
RW
14415# Unset variables that we do not need and which cause bugs (e.g. in
14416# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14417# suppresses any "Segmentation fault" message there. '((' could
14418# trigger a bug in pdksh 5.2.14.
14419for as_var in BASH_ENV ENV MAIL MAILPATH
14420do eval test x\${$as_var+set} = xset \
14421 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14422done
c6b750e1
DJ
14423PS1='$ '
14424PS2='> '
14425PS4='+ '
14426
14427# NLS nuisances.
81ecdfbb
RW
14428LC_ALL=C
14429export LC_ALL
14430LANGUAGE=C
14431export LANGUAGE
14432
14433# CDPATH.
14434(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14435
14436
14437# as_fn_error ERROR [LINENO LOG_FD]
14438# ---------------------------------
14439# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14440# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14441# script with status $?, using 1 if that was 0.
14442as_fn_error ()
14443{
14444 as_status=$?; test $as_status -eq 0 && as_status=1
14445 if test "$3"; then
14446 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14447 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14448 fi
81ecdfbb
RW
14449 $as_echo "$as_me: error: $1" >&2
14450 as_fn_exit $as_status
14451} # as_fn_error
14452
14453
14454# as_fn_set_status STATUS
14455# -----------------------
14456# Set $? to STATUS, without forking.
14457as_fn_set_status ()
14458{
14459 return $1
14460} # as_fn_set_status
14461
14462# as_fn_exit STATUS
14463# -----------------
14464# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14465as_fn_exit ()
14466{
14467 set +e
14468 as_fn_set_status $1
14469 exit $1
14470} # as_fn_exit
14471
14472# as_fn_unset VAR
14473# ---------------
14474# Portably unset VAR.
14475as_fn_unset ()
14476{
14477 { eval $1=; unset $1;}
14478}
14479as_unset=as_fn_unset
14480# as_fn_append VAR VALUE
14481# ----------------------
14482# Append the text in VALUE to the end of the definition contained in VAR. Take
14483# advantage of any shell optimizations that allow amortized linear growth over
14484# repeated appends, instead of the typical quadratic growth present in naive
14485# implementations.
14486if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14487 eval 'as_fn_append ()
14488 {
14489 eval $1+=\$2
14490 }'
14491else
14492 as_fn_append ()
14493 {
14494 eval $1=\$$1\$2
14495 }
14496fi # as_fn_append
14497
14498# as_fn_arith ARG...
14499# ------------------
14500# Perform arithmetic evaluation on the ARGs, and store the result in the
14501# global $as_val. Take advantage of shells that can avoid forks. The arguments
14502# must be portable across $(()) and expr.
14503if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14504 eval 'as_fn_arith ()
14505 {
14506 as_val=$(( $* ))
14507 }'
14508else
14509 as_fn_arith ()
14510 {
14511 as_val=`expr "$@" || test $? -eq 1`
14512 }
14513fi # as_fn_arith
14514
c6b750e1 14515
81ecdfbb
RW
14516if expr a : '\(a\)' >/dev/null 2>&1 &&
14517 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14518 as_expr=expr
14519else
14520 as_expr=false
14521fi
14522
81ecdfbb 14523if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14524 as_basename=basename
14525else
14526 as_basename=false
14527fi
14528
81ecdfbb
RW
14529if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14530 as_dirname=dirname
14531else
14532 as_dirname=false
14533fi
c6b750e1 14534
81ecdfbb 14535as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14536$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14537 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14538 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14539$as_echo X/"$0" |
14540 sed '/^.*\/\([^/][^/]*\)\/*$/{
14541 s//\1/
14542 q
14543 }
14544 /^X\/\(\/\/\)$/{
14545 s//\1/
14546 q
14547 }
14548 /^X\/\(\/\).*/{
14549 s//\1/
14550 q
14551 }
14552 s/.*/./; q'`
c6b750e1 14553
c6b750e1
DJ
14554# Avoid depending upon Character Ranges.
14555as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14556as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14557as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14558as_cr_digits='0123456789'
14559as_cr_alnum=$as_cr_Letters$as_cr_digits
14560
81ecdfbb
RW
14561ECHO_C= ECHO_N= ECHO_T=
14562case `echo -n x` in #(((((
14563-n*)
14564 case `echo 'xy\c'` in
14565 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14566 xy) ECHO_C='\c';;
14567 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14568 ECHO_T=' ';;
14569 esac;;
14570*)
14571 ECHO_N='-n';;
c6b750e1
DJ
14572esac
14573
81ecdfbb
RW
14574rm -f conf$$ conf$$.exe conf$$.file
14575if test -d conf$$.dir; then
14576 rm -f conf$$.dir/conf$$.file
c6b750e1 14577else
81ecdfbb
RW
14578 rm -f conf$$.dir
14579 mkdir conf$$.dir 2>/dev/null
c6b750e1 14580fi
81ecdfbb
RW
14581if (echo >conf$$.file) 2>/dev/null; then
14582 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14583 as_ln_s='ln -s'
81ecdfbb
RW
14584 # ... but there are two gotchas:
14585 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14586 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14587 # In both cases, we have to default to `cp -p'.
14588 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14589 as_ln_s='cp -p'
14590 elif ln conf$$.file conf$$ 2>/dev/null; then
14591 as_ln_s=ln
14592 else
14593 as_ln_s='cp -p'
c6b750e1 14594 fi
c6b750e1
DJ
14595else
14596 as_ln_s='cp -p'
14597fi
81ecdfbb
RW
14598rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14599rmdir conf$$.dir 2>/dev/null
14600
14601
14602# as_fn_mkdir_p
14603# -------------
14604# Create "$as_dir" as a directory, including parents if necessary.
14605as_fn_mkdir_p ()
14606{
14607
14608 case $as_dir in #(
14609 -*) as_dir=./$as_dir;;
14610 esac
14611 test -d "$as_dir" || eval $as_mkdir_p || {
14612 as_dirs=
14613 while :; do
14614 case $as_dir in #(
14615 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14616 *) as_qdir=$as_dir;;
14617 esac
14618 as_dirs="'$as_qdir' $as_dirs"
14619 as_dir=`$as_dirname -- "$as_dir" ||
14620$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14621 X"$as_dir" : 'X\(//\)[^/]' \| \
14622 X"$as_dir" : 'X\(//\)$' \| \
14623 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14624$as_echo X"$as_dir" |
14625 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14626 s//\1/
14627 q
14628 }
14629 /^X\(\/\/\)[^/].*/{
14630 s//\1/
14631 q
14632 }
14633 /^X\(\/\/\)$/{
14634 s//\1/
14635 q
14636 }
14637 /^X\(\/\).*/{
14638 s//\1/
14639 q
14640 }
14641 s/.*/./; q'`
14642 test -d "$as_dir" && break
14643 done
14644 test -z "$as_dirs" || eval "mkdir $as_dirs"
14645 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14646
c6b750e1 14647
81ecdfbb 14648} # as_fn_mkdir_p
c6b750e1 14649if mkdir -p . 2>/dev/null; then
81ecdfbb 14650 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14651else
14652 test -d ./-p && rmdir ./-p
14653 as_mkdir_p=false
14654fi
14655
81ecdfbb
RW
14656if test -x / >/dev/null 2>&1; then
14657 as_test_x='test -x'
14658else
14659 if ls -dL / >/dev/null 2>&1; then
14660 as_ls_L_option=L
14661 else
14662 as_ls_L_option=
14663 fi
14664 as_test_x='
14665 eval sh -c '\''
14666 if test -d "$1"; then
14667 test -d "$1/.";
14668 else
14669 case $1 in #(
14670 -*)set "./$1";;
14671 esac;
14672 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14673 ???[sx]*):;;*)false;;esac;fi
14674 '\'' sh
14675 '
14676fi
14677as_executable_p=$as_test_x
c6b750e1
DJ
14678
14679# Sed expression to map a string onto a valid CPP name.
14680as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14681
14682# Sed expression to map a string onto a valid variable name.
14683as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14684
14685
c6b750e1 14686exec 6>&1
81ecdfbb
RW
14687## ----------------------------------- ##
14688## Main body of $CONFIG_STATUS script. ##
14689## ----------------------------------- ##
14690_ASEOF
14691test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14692
14693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14694# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14695# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14696# values after options handling.
14697ac_log="
c6b750e1 14698This file was extended by $as_me, which was
81ecdfbb 14699generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14700
14701 CONFIG_FILES = $CONFIG_FILES
14702 CONFIG_HEADERS = $CONFIG_HEADERS
14703 CONFIG_LINKS = $CONFIG_LINKS
14704 CONFIG_COMMANDS = $CONFIG_COMMANDS
14705 $ $0 $@
14706
81ecdfbb
RW
14707on `(hostname || uname -n) 2>/dev/null | sed 1q`
14708"
14709
c6b750e1
DJ
14710_ACEOF
14711
81ecdfbb
RW
14712case $ac_config_files in *"
14713"*) set x $ac_config_files; shift; ac_config_files=$*;;
14714esac
c6b750e1 14715
c6b750e1 14716
c6b750e1 14717
81ecdfbb
RW
14718cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14719# Files that config.status was made for.
14720config_files="$ac_config_files"
c6b750e1 14721
81ecdfbb 14722_ACEOF
c6b750e1 14723
81ecdfbb 14724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14725ac_cs_usage="\
81ecdfbb
RW
14726\`$as_me' instantiates files and other configuration actions
14727from templates according to the current configuration. Unless the files
14728and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14729
81ecdfbb 14730Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14731
14732 -h, --help print this help, then exit
81ecdfbb
RW
14733 -V, --version print version number and configuration settings, then exit
14734 -q, --quiet, --silent
14735 do not print progress messages
c6b750e1
DJ
14736 -d, --debug don't remove temporary files
14737 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14738 --file=FILE[:TEMPLATE]
14739 instantiate the configuration file FILE
c6b750e1
DJ
14740
14741Configuration files:
14742$config_files
14743
81ecdfbb 14744Report bugs to the package provider."
c6b750e1 14745
81ecdfbb
RW
14746_ACEOF
14747cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14748ac_cs_version="\\
14749config.status
81ecdfbb
RW
14750configured by $0, generated by GNU Autoconf 2.64,
14751 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14752
81ecdfbb 14753Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14754This config.status script is free software; the Free Software Foundation
14755gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14756
14757ac_pwd='$ac_pwd'
14758srcdir='$srcdir'
14759INSTALL='$INSTALL'
8e957354 14760AWK='$AWK'
81ecdfbb 14761test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14762_ACEOF
14763
81ecdfbb
RW
14764cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14765# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14766ac_need_defaults=:
14767while test $# != 0
a0da8069 14768do
c6b750e1
DJ
14769 case $1 in
14770 --*=*)
81ecdfbb
RW
14771 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14772 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14773 ac_shift=:
14774 ;;
81ecdfbb 14775 *)
c6b750e1
DJ
14776 ac_option=$1
14777 ac_optarg=$2
14778 ac_shift=shift
14779 ;;
c6b750e1
DJ
14780 esac
14781
14782 case $ac_option in
14783 # Handling of the options.
a0da8069 14784 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14785 ac_cs_recheck=: ;;
81ecdfbb
RW
14786 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14787 $as_echo "$ac_cs_version"; exit ;;
14788 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14789 debug=: ;;
14790 --file | --fil | --fi | --f )
14791 $ac_shift
81ecdfbb
RW
14792 case $ac_optarg in
14793 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14794 esac
14795 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14796 ac_need_defaults=false;;
81ecdfbb
RW
14797 --he | --h | --help | --hel | -h )
14798 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14799 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14800 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14801 ac_cs_silent=: ;;
14802
14803 # This is an error.
81ecdfbb
RW
14804 -*) as_fn_error "unrecognized option: \`$1'
14805Try \`$0 --help' for more information." ;;
c6b750e1 14806
81ecdfbb
RW
14807 *) as_fn_append ac_config_targets " $1"
14808 ac_need_defaults=false ;;
c6b750e1 14809
376a0e54 14810 esac
c6b750e1 14811 shift
376a0e54
CM
14812done
14813
c6b750e1 14814ac_configure_extra_args=
376a0e54 14815
c6b750e1
DJ
14816if $ac_cs_silent; then
14817 exec 6>/dev/null
14818 ac_configure_extra_args="$ac_configure_extra_args --silent"
14819fi
376a0e54 14820
c6b750e1 14821_ACEOF
81ecdfbb 14822cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14823if \$ac_cs_recheck; then
81ecdfbb
RW
14824 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14825 shift
14826 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14827 CONFIG_SHELL='$SHELL'
14828 export CONFIG_SHELL
14829 exec "\$@"
c6b750e1
DJ
14830fi
14831
14832_ACEOF
81ecdfbb
RW
14833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14834exec 5>>config.log
14835{
14836 echo
14837 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14838## Running $as_me. ##
14839_ASBOX
14840 $as_echo "$ac_log"
14841} >&5
c6b750e1 14842
81ecdfbb
RW
14843_ACEOF
14844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14845#
14846# INIT-COMMANDS
14847#
14848extrasub_build="$extrasub_build"
14849 extrasub_host="$extrasub_host"
14850 extrasub_target="$extrasub_target"
14851
81ecdfbb 14852_ACEOF
c6b750e1 14853
81ecdfbb 14854cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14855
81ecdfbb 14856# Handling of arguments.
c6b750e1
DJ
14857for ac_config_target in $ac_config_targets
14858do
81ecdfbb
RW
14859 case $ac_config_target in
14860 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14861
14862 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14863 esac
14864done
14865
81ecdfbb 14866
c6b750e1
DJ
14867# If the user did not use the arguments to specify the items to instantiate,
14868# then the envvar interface is used. Set only those that are not.
14869# We use the long form for the default assignment because of an extremely
14870# bizarre bug on SunOS 4.1.3.
14871if $ac_need_defaults; then
14872 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14873fi
14874
14875# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14876# simply because there is no reason against having it here, and in addition,
c6b750e1 14877# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14878# Hook for its removal unless debugging.
14879# Note that there is a small window in which the directory will not be cleaned:
14880# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14881$debug ||
14882{
81ecdfbb
RW
14883 tmp=
14884 trap 'exit_status=$?
14885 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14886' 0
14887 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14888}
c6b750e1
DJ
14889# Create a (secure) tmp directory for tmp files.
14890
14891{
81ecdfbb 14892 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14893 test -n "$tmp" && test -d "$tmp"
14894} ||
14895{
81ecdfbb
RW
14896 tmp=./conf$$-$RANDOM
14897 (umask 077 && mkdir "$tmp")
14898} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14899
14900# Set up the scripts for CONFIG_FILES section.
14901# No need to generate them if there are no CONFIG_FILES.
14902# This happens for instance with `./config.status config.h'.
14903if test -n "$CONFIG_FILES"; then
14904
14905if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14906 ac_cs_awk_getline=:
14907 ac_cs_awk_pipe_init=
14908 ac_cs_awk_read_file='
14909 while ((getline aline < (F[key])) > 0)
14910 print(aline)
14911 close(F[key])'
14912 ac_cs_awk_pipe_fini=
14913else
14914 ac_cs_awk_getline=false
14915 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14916 ac_cs_awk_read_file='
14917 print "|#_!!_#|"
14918 print "cat " F[key] " &&"
14919 '$ac_cs_awk_pipe_init
14920 # The final `:' finishes the AND list.
14921 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14922fi
14923ac_cr=`echo X | tr X '\015'`
14924# On cygwin, bash can eat \r inside `` if the user requested igncr.
14925# But we know of no other shell where ac_cr would be empty at this
14926# point, so we can use a bashism as a fallback.
14927if test "x$ac_cr" = x; then
14928 eval ac_cr=\$\'\\r\'
14929fi
14930ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14931if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14932 ac_cs_awk_cr='\r'
14933else
14934 ac_cs_awk_cr=$ac_cr
14935fi
14936
14937echo 'BEGIN {' >"$tmp/subs1.awk" &&
14938_ACEOF
14939
14940# Create commands to substitute file output variables.
c6b750e1 14941{
81ecdfbb
RW
14942 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14943 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14944 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14945 echo "_ACAWK" &&
14946 echo "_ACEOF"
14947} >conf$$files.sh &&
14948. ./conf$$files.sh ||
14949 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14950rm -f conf$$files.sh
c6b750e1 14951
81ecdfbb
RW
14952{
14953 echo "cat >conf$$subs.awk <<_ACEOF" &&
14954 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14955 echo "_ACEOF"
14956} >conf$$subs.sh ||
14957 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14958ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14959ac_delim='%!_!# '
14960for ac_last_try in false false false false false :; do
14961 . ./conf$$subs.sh ||
14962 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14963
14964 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14965 if test $ac_delim_n = $ac_delim_num; then
14966 break
14967 elif $ac_last_try; then
14968 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14969 else
14970 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14971 fi
14972done
14973rm -f conf$$subs.sh
14974
14975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14976cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14977_ACEOF
81ecdfbb
RW
14978sed -n '
14979h
14980s/^/S["/; s/!.*/"]=/
14981p
14982g
14983s/^[^!]*!//
14984:repl
14985t repl
14986s/'"$ac_delim"'$//
14987t delim
14988:nl
14989h
14990s/\(.\{148\}\).*/\1/
14991t more1
14992s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14993p
14994n
14995b repl
14996:more1
14997s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14998p
14999g
15000s/.\{148\}//
15001t nl
15002:delim
15003h
15004s/\(.\{148\}\).*/\1/
15005t more2
15006s/["\\]/\\&/g; s/^/"/; s/$/"/
15007p
15008b
15009:more2
15010s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15011p
15012g
15013s/.\{148\}//
15014t delim
15015' <conf$$subs.awk | sed '
15016/^[^""]/{
15017 N
15018 s/\n//
15019}
15020' >>$CONFIG_STATUS || ac_write_fail=1
15021rm -f conf$$subs.awk
15022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15023_ACAWK
15024cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15025 for (key in S) S_is_set[key] = 1
15026 FS = "\a"
15027 \$ac_cs_awk_pipe_init
15028}
15029{
15030 line = $ 0
15031 nfields = split(line, field, "@")
15032 substed = 0
15033 len = length(field[1])
15034 for (i = 2; i < nfields; i++) {
15035 key = field[i]
15036 keylen = length(key)
15037 if (S_is_set[key]) {
15038 value = S[key]
15039 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15040 len += length(value) + length(field[++i])
15041 substed = 1
15042 } else
15043 len += 1 + keylen
15044 }
15045 if (nfields == 3 && !substed) {
15046 key = field[2]
15047 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15048 \$ac_cs_awk_read_file
15049 next
15050 }
15051 }
15052 print line
15053}
15054\$ac_cs_awk_pipe_fini
15055_ACAWK
15056_ACEOF
15057cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15058if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15059 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15060else
15061 cat
15062fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15063 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15064_ACEOF
15065
15066# VPATH may cause trouble with some makes, so we remove $(srcdir),
15067# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15068# trailing colons and then remove the whole line if VPATH becomes empty
15069# (actually we leave an empty line to preserve line numbers).
15070if test "x$srcdir" = x.; then
15071 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15072s/:*\$(srcdir):*/:/
15073s/:*\${srcdir}:*/:/
15074s/:*@srcdir@:*/:/
15075s/^\([^=]*=[ ]*\):*/\1/
15076s/:*$//
15077s/^[^=]*=[ ]*$//
15078}'
15079fi
c6b750e1 15080
81ecdfbb
RW
15081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15082fi # test -n "$CONFIG_FILES"
c6b750e1 15083
c6b750e1 15084
81ecdfbb
RW
15085eval set X " :F $CONFIG_FILES "
15086shift
15087for ac_tag
15088do
15089 case $ac_tag in
15090 :[FHLC]) ac_mode=$ac_tag; continue;;
15091 esac
15092 case $ac_mode$ac_tag in
15093 :[FHL]*:*);;
15094 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15095 :[FH]-) ac_tag=-:-;;
15096 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15097 esac
15098 ac_save_IFS=$IFS
15099 IFS=:
15100 set x $ac_tag
15101 IFS=$ac_save_IFS
15102 shift
15103 ac_file=$1
15104 shift
252b5132 15105
81ecdfbb
RW
15106 case $ac_mode in
15107 :L) ac_source=$1;;
15108 :[FH])
15109 ac_file_inputs=
15110 for ac_f
15111 do
15112 case $ac_f in
15113 -) ac_f="$tmp/stdin";;
15114 *) # Look for the file first in the build tree, then in the source tree
15115 # (if the path is not absolute). The absolute path cannot be DOS-style,
15116 # because $ac_f cannot contain `:'.
15117 test -f "$ac_f" ||
15118 case $ac_f in
15119 [\\/$]*) false;;
15120 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15121 esac ||
15122 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15123 esac
15124 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15125 as_fn_append ac_file_inputs " '$ac_f'"
15126 done
c6b750e1 15127
81ecdfbb
RW
15128 # Let's still pretend it is `configure' which instantiates (i.e., don't
15129 # use $as_me), people would be surprised to read:
15130 # /* config.h. Generated by config.status. */
15131 configure_input='Generated from '`
15132 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15133 `' by configure.'
15134 if test x"$ac_file" != x-; then
15135 configure_input="$ac_file. $configure_input"
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15137$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15138 fi
81ecdfbb
RW
15139 # Neutralize special characters interpreted by sed in replacement strings.
15140 case $configure_input in #(
15141 *\&* | *\|* | *\\* )
15142 ac_sed_conf_input=`$as_echo "$configure_input" |
15143 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15144 *) ac_sed_conf_input=$configure_input;;
15145 esac
cac3d6c4 15146
81ecdfbb
RW
15147 case $ac_tag in
15148 *:-:* | *:-) cat >"$tmp/stdin" \
15149 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15150 esac
15151 ;;
a0da8069 15152 esac
252b5132 15153
81ecdfbb 15154 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15155$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15156 X"$ac_file" : 'X\(//\)[^/]' \| \
15157 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15158 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15159$as_echo X"$ac_file" |
15160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15161 s//\1/
15162 q
15163 }
15164 /^X\(\/\/\)[^/].*/{
15165 s//\1/
15166 q
15167 }
15168 /^X\(\/\/\)$/{
15169 s//\1/
15170 q
15171 }
15172 /^X\(\/\).*/{
15173 s//\1/
15174 q
15175 }
15176 s/.*/./; q'`
15177 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15178 ac_builddir=.
252b5132 15179
81ecdfbb
RW
15180case "$ac_dir" in
15181.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15182*)
15183 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15184 # A ".." for each directory in $ac_dir_suffix.
15185 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15186 case $ac_top_builddir_sub in
15187 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15188 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15189 esac ;;
15190esac
15191ac_abs_top_builddir=$ac_pwd
15192ac_abs_builddir=$ac_pwd$ac_dir_suffix
15193# for backward compatibility:
15194ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15195
15196case $srcdir in
81ecdfbb 15197 .) # We are building in place.
c6b750e1 15198 ac_srcdir=.
81ecdfbb
RW
15199 ac_top_srcdir=$ac_top_builddir_sub
15200 ac_abs_top_srcdir=$ac_pwd ;;
15201 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15202 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15203 ac_top_srcdir=$srcdir
15204 ac_abs_top_srcdir=$srcdir ;;
15205 *) # Relative name.
15206 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15207 ac_top_srcdir=$ac_top_build_prefix$srcdir
15208 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15209esac
81ecdfbb 15210ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15211
252b5132 15212
81ecdfbb
RW
15213 case $ac_mode in
15214 :F)
15215 #
15216 # CONFIG_FILE
15217 #
c6b750e1
DJ
15218
15219 case $INSTALL in
15220 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15221 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15222 esac
81ecdfbb 15223_ACEOF
252b5132 15224
81ecdfbb
RW
15225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15226# If the template does not know about datarootdir, expand it.
15227# FIXME: This hack should be removed a few years after 2.60.
15228ac_datarootdir_hack=; ac_datarootdir_seen=
15229ac_sed_dataroot='
15230/datarootdir/ {
15231 p
15232 q
15233}
15234/@datadir@/p
15235/@docdir@/p
15236/@infodir@/p
15237/@localedir@/p
15238/@mandir@/p'
15239case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15240*datarootdir*) ac_datarootdir_seen=yes;;
15241*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15243$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15244_ACEOF
81ecdfbb
RW
15245cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15246 ac_datarootdir_hack='
15247 s&@datadir@&$datadir&g
15248 s&@docdir@&$docdir&g
15249 s&@infodir@&$infodir&g
15250 s&@localedir@&$localedir&g
15251 s&@mandir@&$mandir&g
15252 s&\\\${datarootdir}&$datarootdir&g' ;;
15253esac
15254_ACEOF
15255
15256# Neutralize VPATH when `$srcdir' = `.'.
15257# Shell code in configure.ac might set extrasub.
15258# FIXME: do we really want to maintain this feature?
15259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15260ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15261$extrasub
15262_ACEOF
81ecdfbb 15263cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15264:t
15265/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15266s|@configure_input@|$ac_sed_conf_input|;t t
15267s&@top_builddir@&$ac_top_builddir_sub&;t t
15268s&@top_build_prefix@&$ac_top_build_prefix&;t t
15269s&@srcdir@&$ac_srcdir&;t t
15270s&@abs_srcdir@&$ac_abs_srcdir&;t t
15271s&@top_srcdir@&$ac_top_srcdir&;t t
15272s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15273s&@builddir@&$ac_builddir&;t t
15274s&@abs_builddir@&$ac_abs_builddir&;t t
15275s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15276s&@INSTALL@&$ac_INSTALL&;t t
15277$ac_datarootdir_hack
15278"
15279eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15280if $ac_cs_awk_getline; then
15281 $AWK -f "$tmp/subs.awk"
15282else
15283 $AWK -f "$tmp/subs.awk" | $SHELL
15284fi >$tmp/out \
15285 || as_fn_error "could not create $ac_file" "$LINENO" 5
15286
15287test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15288 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15289 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15291which seems to be undefined. Please make sure it is defined." >&5
15292$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15293which seems to be undefined. Please make sure it is defined." >&2;}
15294
15295 rm -f "$tmp/stdin"
15296 case $ac_file in
15297 -) cat "$tmp/out" && rm -f "$tmp/out";;
15298 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15299 esac \
15300 || as_fn_error "could not create $ac_file" "$LINENO" 5
15301 ;;
c148b4cb 15302
c148b4cb 15303
c148b4cb 15304
81ecdfbb
RW
15305 esac
15306
06a51eac
RW
15307
15308 case $ac_file$ac_mode in
15309 "Makefile":F) sed "$extrasub_build" Makefile |
15310 sed "$extrasub_host" |
15311 sed "$extrasub_target" > mf$$
15312 mv -f mf$$ Makefile ;;
15313
15314 esac
81ecdfbb
RW
15315done # for ac_tag
15316
15317
15318as_fn_exit 0
c6b750e1 15319_ACEOF
c6b750e1
DJ
15320ac_clean_files=$ac_clean_files_save
15321
81ecdfbb
RW
15322test $ac_write_fail = 0 ||
15323 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15324
c6b750e1
DJ
15325
15326# configure is writing to config.log, and then calls config.status.
15327# config.status does its own redirection, appending to config.log.
15328# Unfortunately, on DOS this fails, as config.log is still kept open
15329# by configure, so config.status won't be able to write to it; its
15330# output is simply discarded. So we exec the FD to /dev/null,
15331# effectively closing config.log, so it can be properly (re)opened and
15332# appended to by config.status. When coming back to configure, we
15333# need to make the FD available again.
15334if test "$no_create" != yes; then
15335 ac_cs_success=:
15336 ac_config_status_args=
15337 test "$silent" = yes &&
15338 ac_config_status_args="$ac_config_status_args --quiet"
15339 exec 5>/dev/null
15340 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15341 exec 5>>config.log
15342 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15343 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15344 $ac_cs_success || as_fn_exit $?
15345fi
15346if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15348$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15349fi
c148b4cb 15350
This page took 1.465452 seconds and 4 git commands to generate.