* mips.h (INSN_CHIP_MASK): Update according to INSN_LOONGSON_3A.
[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
81ecdfbb
RW
745enable_libada
746enable_libssp
747enable_build_with_cxx
748with_mpc
749with_mpc_include
750with_mpc_lib
751with_mpfr_dir
752with_mpfr
753with_mpfr_include
754with_mpfr_lib
755with_gmp_dir
756with_gmp
757with_gmp_include
758with_gmp_lib
759with_host_libstdcxx
760with_stage1_ldflags
761with_stage1_libs
81ecdfbb 762with_boot_libs
143754cd 763with_boot_ldflags
81ecdfbb
RW
764with_ppl
765with_ppl_include
766with_ppl_lib
767enable_ppl_version_check
768with_cloog
769with_cloog_include
770with_cloog_lib
e552509b 771enable_cloog_backend
81ecdfbb 772enable_cloog_version_check
700d40ca 773enable_lto
81ecdfbb
RW
774enable_stage1_languages
775enable_objc_gc
776with_build_sysroot
777with_debug_prefix_map
778enable_bootstrap
96655cc4 779with_build_config
81ecdfbb
RW
780enable_serial_configure
781with_build_time_tools
782enable_maintainer_mode
783enable_stage1_checking
784enable_werror
81ecdfbb
RW
785'
786 ac_precious_vars='build_alias
787host_alias
788target_alias
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
794CXX
795CXXFLAGS
796CCC
4074d5f2
RW
797build_configargs
798host_configargs
799target_configargs
81ecdfbb
RW
800AR
801AS
802DLLTOOL
803LD
804LIPO
805NM
806RANLIB
807STRIP
808WINDRES
809WINDMC
810OBJCOPY
811OBJDUMP
812CC_FOR_TARGET
813CXX_FOR_TARGET
814GCC_FOR_TARGET
815GCJ_FOR_TARGET
816GFORTRAN_FOR_TARGET
e552509b 817GOC_FOR_TARGET
81ecdfbb
RW
818AR_FOR_TARGET
819AS_FOR_TARGET
820DLLTOOL_FOR_TARGET
821LD_FOR_TARGET
822LIPO_FOR_TARGET
823NM_FOR_TARGET
824OBJDUMP_FOR_TARGET
825RANLIB_FOR_TARGET
826STRIP_FOR_TARGET
827WINDRES_FOR_TARGET
828WINDMC_FOR_TARGET'
829
a0da8069
NN
830
831# Initialize some variables set by options.
c6b750e1
DJ
832ac_init_help=
833ac_init_version=false
81ecdfbb
RW
834ac_unrecognized_opts=
835ac_unrecognized_sep=
a0da8069
NN
836# The variables have the same names as the options, with
837# dashes changed to underlines.
c6b750e1 838cache_file=/dev/null
a0da8069 839exec_prefix=NONE
a0da8069 840no_create=
a0da8069
NN
841no_recursion=
842prefix=NONE
843program_prefix=NONE
844program_suffix=NONE
845program_transform_name=s,x,x,
846silent=
847site=
848srcdir=
a0da8069
NN
849verbose=
850x_includes=NONE
851x_libraries=NONE
c6b750e1
DJ
852
853# Installation directory options.
854# These are left unexpanded so users can "make install exec_prefix=/foo"
855# and all the variables that are supposed to be based on exec_prefix
856# by default will actually change.
857# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 858# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
859bindir='${exec_prefix}/bin'
860sbindir='${exec_prefix}/sbin'
861libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
862datarootdir='${prefix}/share'
863datadir='${datarootdir}'
a0da8069
NN
864sysconfdir='${prefix}/etc'
865sharedstatedir='${prefix}/com'
866localstatedir='${prefix}/var'
a0da8069
NN
867includedir='${prefix}/include'
868oldincludedir='/usr/include'
81ecdfbb
RW
869docdir='${datarootdir}/doc/${PACKAGE}'
870infodir='${datarootdir}/info'
871htmldir='${docdir}'
872dvidir='${docdir}'
873pdfdir='${docdir}'
874psdir='${docdir}'
875libdir='${exec_prefix}/lib'
876localedir='${datarootdir}/locale'
877mandir='${datarootdir}/man'
252b5132 878
a0da8069 879ac_prev=
81ecdfbb 880ac_dashdash=
a0da8069
NN
881for ac_option
882do
a0da8069
NN
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
81ecdfbb 885 eval $ac_prev=\$ac_option
a0da8069
NN
886 ac_prev=
887 continue
888 fi
252b5132 889
81ecdfbb
RW
890 case $ac_option in
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *) ac_optarg=yes ;;
893 esac
a0da8069
NN
894
895 # Accept the important Cygnus configure options, so we can diagnose typos.
896
81ecdfbb
RW
897 case $ac_dashdash$ac_option in
898 --)
899 ac_dashdash=yes ;;
a0da8069
NN
900
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 904 bindir=$ac_optarg ;;
a0da8069
NN
905
906 -build | --build | --buil | --bui | --bu)
c6b750e1 907 ac_prev=build_alias ;;
a0da8069 908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 909 build_alias=$ac_optarg ;;
a0da8069
NN
910
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
916 cache_file=$ac_optarg ;;
917
918 --config-cache | -C)
919 cache_file=config.cache ;;
a0da8069 920
81ecdfbb 921 -datadir | --datadir | --datadi | --datad)
a0da8069 922 ac_prev=datadir ;;
81ecdfbb 923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 924 datadir=$ac_optarg ;;
a0da8069 925
81ecdfbb
RW
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
932
a0da8069 933 -disable-* | --disable-*)
81ecdfbb 934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 935 # Reject names that are not valid shell variable names.
81ecdfbb
RW
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942"enable_$ac_useropt"
943"*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
948
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
953
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
a0da8069
NN
958
959 -enable-* | --enable-*)
81ecdfbb 960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 961 # Reject names that are not valid shell variable names.
81ecdfbb
RW
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968"enable_$ac_useropt"
969"*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
a0da8069 972 esac
81ecdfbb 973 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
974
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
c6b750e1 982 exec_prefix=$ac_optarg ;;
a0da8069
NN
983
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
987
c6b750e1
DJ
988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
a0da8069
NN
994
995 -host | --host | --hos | --ho)
c6b750e1 996 ac_prev=host_alias ;;
a0da8069 997 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 998 host_alias=$ac_optarg ;;
a0da8069 999
81ecdfbb
RW
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1005
a0da8069
NN
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1011 includedir=$ac_optarg ;;
a0da8069
NN
1012
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1016 infodir=$ac_optarg ;;
a0da8069
NN
1017
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1021 libdir=$ac_optarg ;;
a0da8069
NN
1022
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1028 libexecdir=$ac_optarg ;;
a0da8069 1029
81ecdfbb
RW
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1034
a0da8069 1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1036 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1040 localstatedir=$ac_optarg ;;
a0da8069
NN
1041
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1045 mandir=$ac_optarg ;;
a0da8069
NN
1046
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1050
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1052 | --no-cr | --no-c | -n)
a0da8069
NN
1053 no_create=yes ;;
1054
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1058
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1066 oldincludedir=$ac_optarg ;;
a0da8069
NN
1067
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1071 prefix=$ac_optarg ;;
a0da8069
NN
1072
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1078 program_prefix=$ac_optarg ;;
a0da8069
NN
1079
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1085 program_suffix=$ac_optarg ;;
a0da8069
NN
1086
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1102 program_transform_name=$ac_optarg ;;
a0da8069 1103
81ecdfbb
RW
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1108
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1113
a0da8069
NN
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1117
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
c6b750e1 1122 sbindir=$ac_optarg ;;
a0da8069
NN
1123
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
c6b750e1 1133 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1134
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
c6b750e1 1138 site=$ac_optarg ;;
a0da8069
NN
1139
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1143 srcdir=$ac_optarg ;;
a0da8069
NN
1144
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1150 sysconfdir=$ac_optarg ;;
a0da8069
NN
1151
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1153 ac_prev=target_alias ;;
a0da8069 1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1155 target_alias=$ac_optarg ;;
a0da8069
NN
1156
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1159
c6b750e1
DJ
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
a0da8069
NN
1162
1163 -with-* | --with-*)
81ecdfbb 1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1165 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172"with_$ac_useropt"
1173"*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
a0da8069 1176 esac
81ecdfbb 1177 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1178
1179 -without-* | --without-*)
81ecdfbb 1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1181 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188"with_$ac_useropt"
1189"*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
a0da8069
NN
1194
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1198
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1204 x_includes=$ac_optarg ;;
a0da8069
NN
1205
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1211 x_libraries=$ac_optarg ;;
a0da8069 1212
81ecdfbb
RW
1213 -*) as_fn_error "unrecognized option: \`$ac_option'
1214Try \`$0 --help' for more information."
a0da8069
NN
1215 ;;
1216
c6b750e1
DJ
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1225 export $ac_envvar ;;
1226
a0da8069 1227 *)
c6b750e1 1228 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1232 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1233 ;;
1234
1235 esac
1236done
1237
1238if test -n "$ac_prev"; then
c6b750e1 1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1240 as_fn_error "missing argument to $ac_option"
a0da8069 1241fi
a0da8069 1242
81ecdfbb
RW
1243if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1248 esac
81ecdfbb 1249fi
a0da8069 1250
81ecdfbb
RW
1251# Check all directory arguments for consistency.
1252for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
a0da8069 1256do
81ecdfbb
RW
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
c6b750e1 1265 case $ac_val in
81ecdfbb
RW
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1268 esac
81ecdfbb 1269 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1270done
1271
c6b750e1
DJ
1272# There might be people who depend on the old broken behavior: `$host'
1273# used to hold the argument of --host etc.
1274# FIXME: To remove some day.
1275build=$build_alias
1276host=$host_alias
1277target=$target_alias
376a0e54 1278
c6b750e1
DJ
1279# FIXME: To remove some day.
1280if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
81ecdfbb 1283 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288fi
1289
1290ac_tool_prefix=
1291test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293test "$silent" = yes && exec 6>/dev/null
a0da8069 1294
a0da8069 1295
81ecdfbb
RW
1296ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297ac_ls_di=`ls -di .` &&
1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1299 as_fn_error "working directory cannot be determined"
1300test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1301 as_fn_error "pwd does not report name of working directory"
1302
1303
a0da8069
NN
1304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
81ecdfbb
RW
1307 # Try the directory containing this script, then the parent directory.
1308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313$as_echo X"$as_myself" |
1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
a0da8069 1331 srcdir=$ac_confdir
81ecdfbb 1332 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1333 srcdir=..
1334 fi
1335else
1336 ac_srcdir_defaulted=no
1337fi
81ecdfbb
RW
1338if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1340 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1341fi
1342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343ac_abs_confdir=`(
1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1345 pwd)`
1346# When building in place, set srcdir=.
1347if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349fi
1350# Remove unnecessary trailing slashes from srcdir.
1351# Double slashes in file names in object file debugging info
1352# mess up M-x gdb in Emacs.
1353case $srcdir in
1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355esac
6d0cd39e
AM
1356case $srcdir in
1357 *" "*)
1358 as_fn_error "path to source, $srcdir, contains spaces"
1359 ;;
1360esac
9cc8ae67
PB
1361ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1362
81ecdfbb
RW
1363for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368done
c6b750e1
DJ
1369
1370#
1371# Report the --help message.
1372#
1373if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
1376 cat <<_ACEOF
1377\`configure' configures this package to adapt to many kinds of systems.
1378
1379Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384Defaults for the options are specified in brackets.
1385
1386Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
1391 -q, --quiet, --silent do not print \`checking...' messages
1392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396
c6b750e1
DJ
1397Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1399 [$ac_default_prefix]
c6b750e1 1400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1401 [PREFIX]
c6b750e1
DJ
1402
1403By default, \`make install' will install all the files in
1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406for instance \`--prefix=\$HOME'.
1407
1408For better control, use the options below.
1409
1410Fine tuning of the installation directories:
81ecdfbb
RW
1411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1430_ACEOF
1431
1432 cat <<\_ACEOF
1433
1434Program names:
1435 --program-prefix=PREFIX prepend PREFIX to installed program names
1436 --program-suffix=SUFFIX append SUFFIX to installed program names
1437 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1438
1439System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442 --target=TARGET configure for building compilers for TARGET [HOST]
1443_ACEOF
a0da8069 1444fi
a0da8069 1445
c6b750e1
DJ
1446if test -n "$ac_init_help"; then
1447
1448 cat <<\_ACEOF
1449
1450Optional Features:
81ecdfbb 1451 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212
NC
1454 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1455 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
521ec477
DD
1456 --enable-libada build libada directory
1457 --enable-libssp build libssp directory
e8a5fa9c 1458 --enable-build-with-cxx build with C++ compiler instead of C compiler
e28c595f 1459 --disable-ppl-version-check disable check for PPL version
ceca0218
PB
1460 --enable-cloog-backend[=BACKEND]
1461 set the CLooG BACKEND used to either isl, ppl or
1462 ppl-legacy (default)
e552509b
ILT
1463 --disable-cloog-version-check
1464 disable check for CLooG version
700d40ca 1465 --enable-lto enable link time optimization support
521ec477 1466 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 1467 stage1. Mostly useful for compiler development.
521ec477
DD
1468 --enable-objc-gc enable use of Boehm's garbage collector with the
1469 GNU Objective-C runtime
1470 --enable-bootstrap enable bootstrapping [yes if native build]
1471 --enable-serial-[{host,target,build}-]configure
1472 force sequential configuration of
c6b750e1 1473 sub-packages for the host, target or build
521ec477 1474 machine, or all sub-packages
c6b750e1
DJ
1475 --enable-maintainer-mode enable make rules and dependencies not useful
1476 (and sometimes confusing) to the casual installer
521ec477
DD
1477 --enable-stage1-checking[=all] choose additional checking for stage1
1478 of the compiler
c6b750e1
DJ
1479 --enable-werror enable -Werror in bootstrap stage2 and later
1480
1481Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8a5fa9c
RW
1485 --with-mpc=PATH specify prefix directory for installed MPC package.
1486 Equivalent to --with-mpc-include=PATH/include
1487 plus --with-mpc-lib=PATH/lib
1488 --with-mpc-include=PATH
1489 specify directory for installed MPC include files
1490 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1491 --with-mpfr-dir=PATH this option has been REMOVED
1492 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
1493 Equivalent to --with-mpfr-include=PATH/include
1494 plus --with-mpfr-lib=PATH/lib
1495 --with-mpfr-include=PATH
521ec477
DD
1496 specify directory for installed MPFR include files
1497 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1498 --with-gmp-dir=PATH this option has been REMOVED
1499 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
1500 Equivalent to --with-gmp-include=PATH/include
1501 plus --with-gmp-lib=PATH/lib
521ec477
DD
1502 --with-gmp-include=PATH specify directory for installed GMP include files
1503 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
1504 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1505 when linking with PPL
e8a5fa9c
RW
1506 --with-stage1-ldflags=FLAGS Linker flags for stage1
1507 -with-stage1-libs=LIBS Libraries for stage1
e8a5fa9c 1508 --with-boot-libs=LIBS Libraries for stage2 and later
143754cd 1509 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
e28c595f
JM
1510 --with-ppl=PATH Specify prefix directory for the installed PPL package
1511 Equivalent to --with-ppl-include=PATH/include
1512 plus --with-ppl-lib=PATH/lib
1513 --with-ppl-include=PATH Specify directory for installed PPL include files
1514 --with-ppl-lib=PATH Specify the directory for the installed PPL library
e552509b
ILT
1515 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1516 package. Equivalent to
1517 --with-cloog-include=PATH/include plus
1518 --with-cloog-lib=PATH/lib
1519 --with-cloog-include=PATH
1520 Specify directory for installed CLooG include files
1521 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1522 library
521ec477 1523 --with-build-sysroot=SYSROOT
c6b750e1 1524 use sysroot as the system root during the build
8a6ee3ab
JM
1525 --with-debug-prefix-map='A=B C=D ...'
1526 map A to B, C to D ... in debug information
96655cc4
AO
1527--with-build-config='NAME NAME2...'
1528 Use config/NAME.mk build configuration
521ec477 1529 --with-build-time-tools=PATH
c6b750e1 1530 use given path to find target tools during the build
c6b750e1
DJ
1531
1532Some influential environment variables:
1533 CC C compiler command
1534 CFLAGS C compiler flags
1535 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1536 nonstandard directory <lib dir>
81ecdfbb
RW
1537 LIBS libraries to pass to the linker, e.g. -l<library>
1538 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1539 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1540 CXX C++ compiler command
1541 CXXFLAGS C++ compiler flags
4074d5f2
RW
1542 build_configargs
1543 additional configure arguments for build directories
1544 host_configargs
1545 additional configure arguments for host directories
1546 target_configargs
1547 additional configure arguments for target directories
9a819804
AO
1548 AR AR for the host
1549 AS AS for the host
1550 DLLTOOL DLLTOOL for the host
1551 LD LD for the host
1552 LIPO LIPO for the host
1553 NM NM for the host
1554 RANLIB RANLIB for the host
1555 STRIP STRIP for the host
1556 WINDRES WINDRES for the host
0c24b341 1557 WINDMC WINDMC for the host
9a819804
AO
1558 OBJCOPY OBJCOPY for the host
1559 OBJDUMP OBJDUMP for the host
1560 CC_FOR_TARGET
1561 CC for the target
1562 CXX_FOR_TARGET
1563 CXX for the target
1564 GCC_FOR_TARGET
1565 GCC for the target
1566 GCJ_FOR_TARGET
1567 GCJ for the target
1568 GFORTRAN_FOR_TARGET
1569 GFORTRAN for the target
e552509b
ILT
1570 GOC_FOR_TARGET
1571 GOC for the target
9a819804
AO
1572 AR_FOR_TARGET
1573 AR for the target
1574 AS_FOR_TARGET
1575 AS for the target
1576 DLLTOOL_FOR_TARGET
1577 DLLTOOL for the target
1578 LD_FOR_TARGET
1579 LD for the target
1580 LIPO_FOR_TARGET
1581 LIPO for the target
1582 NM_FOR_TARGET
1583 NM for the target
1584 OBJDUMP_FOR_TARGET
1585 OBJDUMP for the target
1586 RANLIB_FOR_TARGET
1587 RANLIB for the target
1588 STRIP_FOR_TARGET
1589 STRIP for the target
1590 WINDRES_FOR_TARGET
1591 WINDRES for the target
0c24b341
NC
1592 WINDMC_FOR_TARGET
1593 WINDMC for the target
c6b750e1
DJ
1594
1595Use these variables to override the choices made by `configure' or to help
1596it to find libraries and programs with nonstandard names/locations.
1597
81ecdfbb 1598Report bugs to the package provider.
c6b750e1 1599_ACEOF
81ecdfbb 1600ac_status=$?
c6b750e1
DJ
1601fi
1602
1603if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
c6b750e1 1605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 continue
c6b750e1
DJ
1609 ac_builddir=.
1610
81ecdfbb
RW
1611case "$ac_dir" in
1612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613*)
1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 esac ;;
1621esac
1622ac_abs_top_builddir=$ac_pwd
1623ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624# for backward compatibility:
1625ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1626
1627case $srcdir in
81ecdfbb 1628 .) # We are building in place.
c6b750e1 1629 ac_srcdir=.
81ecdfbb
RW
1630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1633 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1636 *) # Relative name.
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1640esac
81ecdfbb
RW
1641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642
1643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1651 else
81ecdfbb
RW
1652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 fi || ac_status=$?
1654 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1655 done
1656fi
1657
81ecdfbb 1658test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1659if $ac_init_version; then
1660 cat <<\_ACEOF
81ecdfbb
RW
1661configure
1662generated by GNU Autoconf 2.64
c6b750e1 1663
81ecdfbb 1664Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1665This configure script is free software; the Free Software Foundation
1666gives unlimited permission to copy, distribute and modify it.
1667_ACEOF
81ecdfbb 1668 exit
c6b750e1 1669fi
81ecdfbb
RW
1670
1671## ------------------------ ##
1672## Autoconf initialization. ##
1673## ------------------------ ##
1674
1675# ac_fn_c_try_compile LINENO
1676# --------------------------
1677# Try to compile conftest.$ac_ext, and return whether this succeeded.
1678ac_fn_c_try_compile ()
1679{
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext
1682 if { { ac_try="$ac_compile"
1683case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext; then :
1701 ac_retval=0
1702else
1703 $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707fi
1708 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1709 return $ac_retval
1710
1711} # ac_fn_c_try_compile
1712
1713# ac_fn_cxx_try_compile LINENO
1714# ----------------------------
1715# Try to compile conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_cxx_try_compile ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1721case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1733 fi
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_cxx_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.$ac_objext; then :
1739 ac_retval=0
1740else
1741 $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=1
1745fi
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 return $ac_retval
1748
1749} # ac_fn_cxx_try_compile
1750
1751# ac_fn_c_try_link LINENO
1752# -----------------------
1753# Try to link conftest.$ac_ext, and return whether this succeeded.
1754ac_fn_c_try_link ()
1755{
1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757 rm -f conftest.$ac_objext conftest$ac_exeext
1758 if { { ac_try="$ac_link"
1759case "(($ac_try" in
1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1762esac
1763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764$as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_link") 2>conftest.err
1766 ac_status=$?
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1771 fi
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } && {
1774 test -z "$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1776 } && test -s conftest$ac_exeext && {
1777 test "$cross_compiling" = yes ||
1778 $as_test_x conftest$ac_exeext
1779 }; then :
1780 ac_retval=0
1781else
1782 $as_echo "$as_me: failed program was:" >&5
1783sed 's/^/| /' conftest.$ac_ext >&5
1784
1785 ac_retval=1
1786fi
1787 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1788 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1789 # interfere with the next link command; also delete a directory that is
1790 # left behind by Apple's compiler. We do this before executing the actions.
1791 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1792 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1793 return $ac_retval
1794
1795} # ac_fn_c_try_link
1796cat >config.log <<_ACEOF
c6b750e1
DJ
1797This file contains any messages produced by compilers while
1798running configure, to aid debugging if configure makes a mistake.
1799
1800It was created by $as_me, which was
81ecdfbb 1801generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1802
1803 $ $0 $@
1804
1805_ACEOF
81ecdfbb 1806exec 5>>config.log
c6b750e1
DJ
1807{
1808cat <<_ASUNAME
1809## --------- ##
1810## Platform. ##
1811## --------- ##
1812
1813hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1814uname -m = `(uname -m) 2>/dev/null || echo unknown`
1815uname -r = `(uname -r) 2>/dev/null || echo unknown`
1816uname -s = `(uname -s) 2>/dev/null || echo unknown`
1817uname -v = `(uname -v) 2>/dev/null || echo unknown`
1818
1819/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1820/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1821
1822/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1823/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1824/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1825/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1826/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1827/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1828/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1829
1830_ASUNAME
1831
1832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1833for as_dir in $PATH
1834do
1835 IFS=$as_save_IFS
1836 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1837 $as_echo "PATH: $as_dir"
1838 done
1839IFS=$as_save_IFS
c6b750e1
DJ
1840
1841} >&5
1842
1843cat >&5 <<_ACEOF
1844
1845
1846## ----------- ##
1847## Core tests. ##
1848## ----------- ##
1849
1850_ACEOF
1851
1852
1853# Keep a trace of the command line.
1854# Strip out --no-create and --no-recursion so they do not pile up.
1855# Strip out --silent because we don't want to record it for future runs.
1856# Also quote any args containing shell meta-characters.
1857# Make two passes to allow for proper duplicate-argument suppression.
1858ac_configure_args=
1859ac_configure_args0=
1860ac_configure_args1=
c6b750e1
DJ
1861ac_must_keep_next=false
1862for ac_pass in 1 2
1863do
1864 for ac_arg
1865 do
1866 case $ac_arg in
1867 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1869 | -silent | --silent | --silen | --sile | --sil)
1870 continue ;;
81ecdfbb
RW
1871 *\'*)
1872 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1873 esac
1874 case $ac_pass in
81ecdfbb 1875 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1876 2)
81ecdfbb 1877 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1878 if test $ac_must_keep_next = true; then
1879 ac_must_keep_next=false # Got value, back to normal.
1880 else
1881 case $ac_arg in
1882 *=* | --config-cache | -C | -disable-* | --disable-* \
1883 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1884 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1885 | -with-* | --with-* | -without-* | --without-* | --x)
1886 case "$ac_configure_args0 " in
1887 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1888 esac
1889 ;;
1890 -* ) ac_must_keep_next=true ;;
1891 esac
1892 fi
81ecdfbb 1893 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1894 ;;
1895 esac
1896 done
1897done
81ecdfbb
RW
1898{ ac_configure_args0=; unset ac_configure_args0;}
1899{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1900
1901# When interrupted or exit'd, cleanup temporary files, and complete
1902# config.log. We remove comments because anyway the quotes in there
1903# would cause problems or look ugly.
81ecdfbb
RW
1904# WARNING: Use '\'' to represent an apostrophe within the trap.
1905# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1906trap 'exit_status=$?
1907 # Save into config.log some information that might help in debugging.
1908 {
1909 echo
1910
1911 cat <<\_ASBOX
1912## ---------------- ##
1913## Cache variables. ##
1914## ---------------- ##
1915_ASBOX
1916 echo
1917 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1918(
1919 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1920 eval ac_val=\$$ac_var
1921 case $ac_val in #(
1922 *${as_nl}*)
1923 case $ac_var in #(
1924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1925$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1926 esac
1927 case $ac_var in #(
1928 _ | IFS | as_nl) ;; #(
1929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1930 *) { eval $ac_var=; unset $ac_var;} ;;
1931 esac ;;
1932 esac
1933 done
c6b750e1 1934 (set) 2>&1 |
81ecdfbb
RW
1935 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1936 *${as_nl}ac_space=\ *)
c6b750e1 1937 sed -n \
81ecdfbb
RW
1938 "s/'\''/'\''\\\\'\'''\''/g;
1939 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1940 ;; #(
c6b750e1 1941 *)
81ecdfbb 1942 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1943 ;;
81ecdfbb
RW
1944 esac |
1945 sort
1946)
c6b750e1
DJ
1947 echo
1948
1949 cat <<\_ASBOX
1950## ----------------- ##
1951## Output variables. ##
1952## ----------------- ##
1953_ASBOX
1954 echo
1955 for ac_var in $ac_subst_vars
1956 do
81ecdfbb
RW
1957 eval ac_val=\$$ac_var
1958 case $ac_val in
1959 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1960 esac
1961 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1962 done | sort
1963 echo
1964
1965 if test -n "$ac_subst_files"; then
1966 cat <<\_ASBOX
81ecdfbb
RW
1967## ------------------- ##
1968## File substitutions. ##
1969## ------------------- ##
c6b750e1
DJ
1970_ASBOX
1971 echo
1972 for ac_var in $ac_subst_files
1973 do
81ecdfbb
RW
1974 eval ac_val=\$$ac_var
1975 case $ac_val in
1976 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977 esac
1978 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1979 done | sort
1980 echo
1981 fi
1982
1983 if test -s confdefs.h; then
1984 cat <<\_ASBOX
1985## ----------- ##
1986## confdefs.h. ##
1987## ----------- ##
1988_ASBOX
1989 echo
81ecdfbb 1990 cat confdefs.h
c6b750e1
DJ
1991 echo
1992 fi
1993 test "$ac_signal" != 0 &&
81ecdfbb
RW
1994 $as_echo "$as_me: caught signal $ac_signal"
1995 $as_echo "$as_me: exit $exit_status"
c6b750e1 1996 } >&5
81ecdfbb
RW
1997 rm -f core *.core core.conftest.* &&
1998 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 1999 exit $exit_status
81ecdfbb 2000' 0
c6b750e1 2001for ac_signal in 1 2 13 15; do
81ecdfbb 2002 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2003done
2004ac_signal=0
2005
2006# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2007rm -f -r conftest* confdefs.h
2008
2009$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2010
2011# Predefined preprocessor variables.
2012
2013cat >>confdefs.h <<_ACEOF
2014#define PACKAGE_NAME "$PACKAGE_NAME"
2015_ACEOF
2016
c6b750e1
DJ
2017cat >>confdefs.h <<_ACEOF
2018#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2019_ACEOF
2020
c6b750e1
DJ
2021cat >>confdefs.h <<_ACEOF
2022#define PACKAGE_VERSION "$PACKAGE_VERSION"
2023_ACEOF
2024
c6b750e1
DJ
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_STRING "$PACKAGE_STRING"
2027_ACEOF
2028
c6b750e1
DJ
2029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2031_ACEOF
2032
81ecdfbb
RW
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_URL "$PACKAGE_URL"
2035_ACEOF
2036
c6b750e1
DJ
2037
2038# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2039# Prefer an explicitly selected file to automatically selected ones.
2040ac_site_file1=NONE
2041ac_site_file2=NONE
2042if test -n "$CONFIG_SITE"; then
2043 ac_site_file1=$CONFIG_SITE
2044elif test "x$prefix" != xNONE; then
2045 ac_site_file1=$prefix/share/config.site
2046 ac_site_file2=$prefix/etc/config.site
2047else
2048 ac_site_file1=$ac_default_prefix/share/config.site
2049 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2050fi
81ecdfbb
RW
2051for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2052do
2053 test "x$ac_site_file" = xNONE && continue
a0da8069 2054 if test -r "$ac_site_file"; then
81ecdfbb
RW
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2056$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2057 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2058 . "$ac_site_file"
2059 fi
2060done
2061
2062if test -r "$cache_file"; then
c6b750e1
DJ
2063 # Some versions of bash will fail to source /dev/null (special
2064 # files actually), so we avoid doing that.
2065 if test -f "$cache_file"; then
81ecdfbb
RW
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2067$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2068 case $cache_file in
81ecdfbb
RW
2069 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2070 *) . "./$cache_file";;
c6b750e1
DJ
2071 esac
2072 fi
a0da8069 2073else
81ecdfbb
RW
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2075$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2076 >$cache_file
2077fi
2078
2079# Check that the precious variables saved in the cache have kept the same
2080# value.
2081ac_cache_corrupted=false
81ecdfbb 2082for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2083 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2084 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2085 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2086 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2087 case $ac_old_set,$ac_new_set in
2088 set,)
81ecdfbb
RW
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2090$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2091 ac_cache_corrupted=: ;;
2092 ,set)
81ecdfbb
RW
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2094$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2095 ac_cache_corrupted=: ;;
2096 ,);;
2097 *)
2098 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2099 # differences in whitespace do not lead to failure.
2100 ac_old_val_w=`echo x $ac_old_val`
2101 ac_new_val_w=`echo x $ac_new_val`
2102 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2104$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2105 ac_cache_corrupted=:
2106 else
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2108$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2109 eval $ac_var=\$ac_old_val
2110 fi
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2112$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2114$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2115 fi;;
2116 esac
2117 # Pass precious variables to config.status.
2118 if test "$ac_new_set" = set; then
2119 case $ac_new_val in
81ecdfbb 2120 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2121 *) ac_arg=$ac_var=$ac_new_val ;;
2122 esac
2123 case " $ac_configure_args " in
2124 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2125 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2126 esac
2127 fi
2128done
2129if $ac_cache_corrupted; then
81ecdfbb
RW
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2133$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2134 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2135fi
81ecdfbb
RW
2136## -------------------- ##
2137## Main body of script. ##
2138## -------------------- ##
a0da8069
NN
2139
2140ac_ext=c
a0da8069 2141ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145
2146
2147
2148
c6b750e1
DJ
2149
2150
34a0f3cf 2151
c6b750e1 2152
5b553f7e
RW
2153
2154progname=$0
2155# if PWD already has a value, it is probably wrong.
2156if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2157
2158# Export original configure arguments for use by sub-configures.
2159# Quote arguments with shell meta charatcers.
2160TOPLEVEL_CONFIGURE_ARGUMENTS=
2161set -- "$progname" "$@"
2162for ac_arg
2163do
2164 case "$ac_arg" in
2165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2166 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2167 # if the argument is of the form -foo=baz, quote the baz part only
2168 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2169 *) ;;
2170 esac
2171 # Add the quoted argument to the list.
2172 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2173done
2174if test "$silent" = yes; then
2175 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2176fi
2177# Remove the initial space we just introduced and, as these will be
2178# expanded by make, quote '$'.
2179TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2180
c6b750e1
DJ
2181
2182# Find the build, host, and target systems.
a0da8069 2183ac_aux_dir=
81ecdfbb
RW
2184for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2185 for ac_t in install-sh install.sh shtool; do
2186 if test -f "$ac_dir/$ac_t"; then
2187 ac_aux_dir=$ac_dir
2188 ac_install_sh="$ac_aux_dir/$ac_t -c"
2189 break 2
2190 fi
2191 done
a0da8069
NN
2192done
2193if test -z "$ac_aux_dir"; then
81ecdfbb 2194 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2195fi
81ecdfbb
RW
2196
2197# These three variables are undocumented and unsupported,
2198# and are intended to be withdrawn in a future Autoconf release.
2199# They can cause serious problems if a builder's source tree is in a directory
2200# whose full name contains unusual characters.
2201ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2202ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2203ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2204
a0da8069 2205
c6b750e1 2206# Make sure we can run config.sub.
81ecdfbb
RW
2207$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2208 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2209
2210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2211$as_echo_n "checking build system type... " >&6; }
2212if test "${ac_cv_build+set}" = set; then :
2213 $as_echo_n "(cached) " >&6
2214else
2215 ac_build_alias=$build_alias
2216test "x$ac_build_alias" = x &&
2217 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2218test "x$ac_build_alias" = x &&
2219 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2220ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2221 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2222
2223fi
2224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2225$as_echo "$ac_cv_build" >&6; }
2226case $ac_cv_build in
2227*-*-*) ;;
2228*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2229esac
c6b750e1 2230build=$ac_cv_build
81ecdfbb
RW
2231ac_save_IFS=$IFS; IFS='-'
2232set x $ac_cv_build
2233shift
2234build_cpu=$1
2235build_vendor=$2
2236shift; shift
2237# Remember, the first character of IFS is used to create $*,
2238# except with old shells:
2239build_os=$*
2240IFS=$ac_save_IFS
2241case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2242
a0da8069 2243
c6b750e1
DJ
2244 case ${build_alias} in
2245 "") build_noncanonical=${build} ;;
2246 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2247esac
2248
2249
cac3d6c4 2250
c6b750e1
DJ
2251 case ${host_alias} in
2252 "") host_noncanonical=${build_noncanonical} ;;
2253 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2254esac
2255
cac3d6c4 2256
c6b750e1
DJ
2257
2258 case ${target_alias} in
2259 "") target_noncanonical=${host_noncanonical} ;;
2260 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2261esac
2262
cac3d6c4 2263
c6b750e1
DJ
2264
2265
2266test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2267 test "$program_prefix$program_suffix$program_transform_name" = \
2268 NONENONEs,x,x, &&
c6b750e1 2269 program_transform_name=s,y,y,
cac3d6c4 2270
81ecdfbb
RW
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2272$as_echo_n "checking host system type... " >&6; }
2273if test "${ac_cv_host+set}" = set; then :
2274 $as_echo_n "(cached) " >&6
cac3d6c4 2275else
81ecdfbb
RW
2276 if test "x$host_alias" = x; then
2277 ac_cv_host=$ac_cv_build
2278else
2279 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2280 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2281fi
c6b750e1
DJ
2282
2283fi
81ecdfbb
RW
2284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2285$as_echo "$ac_cv_host" >&6; }
2286case $ac_cv_host in
2287*-*-*) ;;
2288*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2289esac
c6b750e1 2290host=$ac_cv_host
81ecdfbb
RW
2291ac_save_IFS=$IFS; IFS='-'
2292set x $ac_cv_host
2293shift
2294host_cpu=$1
2295host_vendor=$2
2296shift; shift
2297# Remember, the first character of IFS is used to create $*,
2298# except with old shells:
2299host_os=$*
2300IFS=$ac_save_IFS
2301case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2302
2303
81ecdfbb
RW
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2305$as_echo_n "checking target system type... " >&6; }
2306if test "${ac_cv_target+set}" = set; then :
2307 $as_echo_n "(cached) " >&6
c6b750e1 2308else
81ecdfbb
RW
2309 if test "x$target_alias" = x; then
2310 ac_cv_target=$ac_cv_host
2311else
2312 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2313 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2314fi
c6b750e1 2315
cac3d6c4 2316fi
81ecdfbb
RW
2317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2318$as_echo "$ac_cv_target" >&6; }
2319case $ac_cv_target in
2320*-*-*) ;;
2321*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2322esac
c6b750e1 2323target=$ac_cv_target
81ecdfbb
RW
2324ac_save_IFS=$IFS; IFS='-'
2325set x $ac_cv_target
2326shift
2327target_cpu=$1
2328target_vendor=$2
2329shift; shift
2330# Remember, the first character of IFS is used to create $*,
2331# except with old shells:
2332target_os=$*
2333IFS=$ac_save_IFS
2334case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2335
2336
2337# The aliases save the names the user supplied, while $host etc.
2338# will get canonicalized.
2339test -n "$target_alias" &&
2340 test "$program_prefix$program_suffix$program_transform_name" = \
2341 NONENONEs,x,x, &&
2342 program_prefix=${target_alias}-
81ecdfbb 2343
a0da8069 2344test "$program_prefix" != NONE &&
81ecdfbb 2345 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2346# Use a double $ so make ignores it.
2347test "$program_suffix" != NONE &&
81ecdfbb
RW
2348 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2349# Double any \ or $.
c6b750e1 2350# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2351ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2352program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2353
a0da8069
NN
2354
2355
e5c3f801
NN
2356# Get 'install' or 'install-sh' and its variants.
2357# Find a good install program. We prefer a C program (faster),
2358# so one script is as good as another. But avoid the broken or
2359# incompatible versions:
2360# SysV /etc/install, /usr/sbin/install
2361# SunOS /usr/etc/install
2362# IRIX /sbin/install
2363# AIX /bin/install
c6b750e1 2364# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2365# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2366# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2367# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2368# OS/2's system install, which has a completely different semantic
e5c3f801 2369# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2370# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2372$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2373if test -z "$INSTALL"; then
81ecdfbb
RW
2374if test "${ac_cv_path_install+set}" = set; then :
2375 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2376else
2377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2378for as_dir in $PATH
2379do
2380 IFS=$as_save_IFS
2381 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2382 # Account for people who put trailing slashes in PATH elements.
2383case $as_dir/ in #((
2384 ./ | .// | /[cC]/* | \
c6b750e1 2385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2386 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2387 /usr/ucb/* ) ;;
2388 *)
2389 # OSF1 and SCO ODT 3.0 have their own names for install.
2390 # Don't use installbsd from OSF since it installs stuff as root
2391 # by default.
2392 for ac_prog in ginstall scoinst install; do
2393 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2394 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2395 if test $ac_prog = install &&
c6b750e1 2396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2397 # AIX install. It has an incompatible calling convention.
2398 :
c6b750e1
DJ
2399 elif test $ac_prog = install &&
2400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2401 # program-specific install script used by HP pwplus--don't use.
2402 :
e5c3f801 2403 else
58c85be7
RW
2404 rm -rf conftest.one conftest.two conftest.dir
2405 echo one > conftest.one
2406 echo two > conftest.two
2407 mkdir conftest.dir
2408 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2409 test -s conftest.one && test -s conftest.two &&
2410 test -s conftest.dir/conftest.one &&
2411 test -s conftest.dir/conftest.two
2412 then
2413 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2414 break 3
2415 fi
e5c3f801
NN
2416 fi
2417 fi
2418 done
c6b750e1
DJ
2419 done
2420 ;;
2421esac
81ecdfbb
RW
2422
2423 done
2424IFS=$as_save_IFS
c6b750e1 2425
58c85be7 2426rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2427
2428fi
2429 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2430 INSTALL=$ac_cv_path_install
e5c3f801 2431 else
58c85be7
RW
2432 # As a last resort, use the slow shell script. Don't cache a
2433 # value for INSTALL within a source directory, because that will
e5c3f801 2434 # break other packages using the cache if that directory is
58c85be7 2435 # removed, or if the value is a relative name.
c6b750e1 2436 INSTALL=$ac_install_sh
e5c3f801
NN
2437 fi
2438fi
81ecdfbb
RW
2439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2440$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2441
2442# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2443# It thinks the first close brace ends the variable substitution.
2444test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2445
c6b750e1 2446test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2447
2448test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2449
81ecdfbb
RW
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2451$as_echo_n "checking whether ln works... " >&6; }
2452if test "${acx_cv_prog_LN+set}" = set; then :
2453 $as_echo_n "(cached) " >&6
656fdd47
PB
2454else
2455 rm -f conftestdata_t
2456echo >conftestdata_f
2457if ln conftestdata_f conftestdata_t 2>/dev/null
2458then
2459 acx_cv_prog_LN=ln
2460else
2461 acx_cv_prog_LN=no
2462fi
2463rm -f conftestdata_f conftestdata_t
2464
2465fi
2466if test $acx_cv_prog_LN = no; then
2467 LN="cp"
81ecdfbb
RW
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2469$as_echo "no, using $LN" >&6; }
656fdd47
PB
2470else
2471 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2473$as_echo "yes" >&6; }
656fdd47
PB
2474fi
2475
81ecdfbb
RW
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2477$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2478LN_S=$as_ln_s
2479if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2481$as_echo "yes" >&6; }
cac3d6c4 2482else
81ecdfbb
RW
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2484$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2485fi
2486
8e957354
PB
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2488$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2489if test "${ac_cv_path_SED+set}" = set; then :
2490 $as_echo_n "(cached) " >&6
2491else
2492 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2493 for ac_i in 1 2 3 4 5 6 7; do
2494 ac_script="$ac_script$as_nl$ac_script"
2495 done
2496 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2497 { ac_script=; unset ac_script;}
2498 if test -z "$SED"; then
2499 ac_path_SED_found=false
2500 # Loop through the user's path and test for each of PROGNAME-LIST
2501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_prog in sed gsed; do
2507 for ac_exec_ext in '' $ac_executable_extensions; do
2508 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2509 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2510# Check for GNU ac_path_SED and select it if it is found.
2511 # Check for GNU $ac_path_SED
2512case `"$ac_path_SED" --version 2>&1` in
2513*GNU*)
2514 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2515*)
2516 ac_count=0
2517 $as_echo_n 0123456789 >"conftest.in"
2518 while :
2519 do
2520 cat "conftest.in" "conftest.in" >"conftest.tmp"
2521 mv "conftest.tmp" "conftest.in"
2522 cp "conftest.in" "conftest.nl"
2523 $as_echo '' >> "conftest.nl"
2524 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2525 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2526 as_fn_arith $ac_count + 1 && ac_count=$as_val
2527 if test $ac_count -gt ${ac_path_SED_max-0}; then
2528 # Best one so far, save it but keep looking for a better one
2529 ac_cv_path_SED="$ac_path_SED"
2530 ac_path_SED_max=$ac_count
2531 fi
2532 # 10*(2^10) chars as input seems more than enough
2533 test $ac_count -gt 10 && break
2534 done
2535 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2536esac
2537
2538 $ac_path_SED_found && break 3
2539 done
2540 done
2541 done
2542IFS=$as_save_IFS
2543 if test -z "$ac_cv_path_SED"; then
2544 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2545 fi
2546else
2547 ac_cv_path_SED=$SED
2548fi
2549
2550fi
2551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2552$as_echo "$ac_cv_path_SED" >&6; }
2553 SED="$ac_cv_path_SED"
2554 rm -f conftest.sed
2555
2556for ac_prog in gawk mawk nawk awk
2557do
2558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2559set dummy $ac_prog; ac_word=$2
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561$as_echo_n "checking for $ac_word... " >&6; }
2562if test "${ac_cv_prog_AWK+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
2564else
2565 if test -n "$AWK"; then
2566 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2567else
2568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569for as_dir in $PATH
2570do
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_AWK="$ac_prog"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2578 fi
2579done
2580 done
2581IFS=$as_save_IFS
2582
2583fi
2584fi
2585AWK=$ac_cv_prog_AWK
2586if test -n "$AWK"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2588$as_echo "$AWK" >&6; }
2589else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591$as_echo "no" >&6; }
2592fi
2593
2594
2595 test -n "$AWK" && break
2596done
2597
e5c3f801 2598
252b5132 2599### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2600### If we are on Windows, search for the shell. This will permit people
2601### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2602### without also having to set CONFIG_SHELL. This code will work when
2603### using bash, which sets OSTYPE.
2604case "${OSTYPE}" in
2605*win32*)
a0da8069
NN
2606 if test x${CONFIG_SHELL} = x ; then
2607 if test ! -f /bin/sh ; then
2608 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2609 CONFIG_SHELL=${SHELL}
2610 export CONFIG_SHELL
2611 else
2612 for prog in sh sh.exe bash bash.exe; do
2613 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2614 for dir in $PATH; do
2615 test -z "$dir" && dir=.
2616 if test -f $dir/$prog; then
2617 CONFIG_SHELL=$dir/$prog
2618 export CONFIG_SHELL
2619 break
2620 fi
2621 done
2622 IFS="$save_ifs"
2623 test -n "${CONFIG_SHELL}" && break
2624 done
2625 fi
2626 fi
2627 fi
2628 ;;
2629esac
2630
2631config_shell=${CONFIG_SHELL-/bin/sh}
2632
a0da8069 2633moveifchange=${srcdir}/move-if-change
252b5132 2634
0fdbe983
DJ
2635srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2636
2637# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2638# a relative path.
2639if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2640 INSTALL="${srcpwd}/install-sh -c"
2641fi
2642
a0da8069
NN
2643# Set srcdir to "." if that's what it is.
2644# This is important for multilib support.
2645pwd=`${PWDCMD-pwd}`
a0da8069
NN
2646if test "${pwd}" = "${srcpwd}" ; then
2647 srcdir=.
252b5132
RH
2648fi
2649
a0da8069 2650topsrcdir=$srcpwd
252b5132 2651
a0da8069 2652extra_host_args=
afefada0 2653
a0da8069
NN
2654### To add a new directory to the tree, first choose whether it is a target
2655### or a host dependent tool. Then put it into the appropriate list
2656### (library or tools, host or target), doing a dependency sort.
252b5132 2657
c6b750e1 2658# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2659# configdirs, or target_configdirs; see the serialization section below.
252b5132 2660
c6b750e1
DJ
2661# Dependency sorting is only needed when *configuration* must be done in
2662# a particular order. In all cases a dependency should be specified in
a0da8069 2663# the Makefile, whether or not it's implicitly specified here.
252b5132 2664
a0da8069
NN
2665# Double entries in build_configdirs, configdirs, or target_configdirs may
2666# cause circular dependencies and break everything horribly.
252b5132 2667
6a9cf61e
PB
2668# these library is used by various programs built for the build
2669# environment
2670#
2671build_libs="build-libiberty"
2672
2673# these tools are built for the build environment
ee025550 2674build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2675
a0da8069
NN
2676# these libraries are used by various programs built for the host environment
2677#
1f53ca9a 2678host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2679
a0da8069
NN
2680# these tools are built for the host environment
2681# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2682# know that we are building the simulator.
2683# binutils, gas and ld appear in that order because it makes sense to run
2684# "make check" in that particular order.
e6de499b 2685# If --enable-gold is used, "gold" may replace "ld".
f9806fa5 2686host_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
2687
2688# libgcj represents the runtime libraries only used by gcj.
2689libgcj="target-libffi \
a0da8069
NN
2690 target-zlib \
2691 target-qthreads \
2692 target-libjava"
2693
2694# these libraries are built for the target environment, and are built after
2695# the host libraries and the host tools (which may be a cross compiler)
2696#
b1299c4e
DJ
2697target_libraries="target-libgcc \
2698 target-libiberty \
a0da8069
NN
2699 target-libgloss \
2700 target-newlib \
cff87f51 2701 target-libgomp \
b9459e83 2702 target-libstdc++-v3 \
4b1cb4fe 2703 target-libmudflap \
bb780410 2704 target-libssp \
e552509b 2705 target-libquadmath \
4b1cb4fe 2706 target-libgfortran \
4f0ef2d8 2707 target-boehm-gc \
83326456 2708 ${libgcj} \
a2592b1b 2709 target-libobjc \
e552509b
ILT
2710 target-libada \
2711 target-libgo"
a0da8069 2712
9c14acb8
NN
2713# these tools are built using the target libraries, and are intended to
2714# run only in the target environment
a0da8069 2715#
9c14acb8 2716# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
2717# list belongs in this list. those programs are also very likely
2718# candidates for the "native_only" list which follows
2719#
a3dd767d 2720target_tools="target-examples target-groff target-gperf target-rda"
252b5132 2721
a0da8069 2722################################################################################
252b5132 2723
a0da8069
NN
2724## All tools belong in one of the four categories, and are assigned above
2725## We assign ${configdirs} this way to remove all embedded newlines. This
2726## is important because configure will choke if they ever get through.
2727## ${configdirs} is directories we build using the host tools.
2728## ${target_configdirs} is directories we build using the target tools.
a0da8069 2729configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2730target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2731build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2732
9cc8ae67
PB
2733
2734
a0da8069 2735################################################################################
252b5132 2736
a0da8069 2737srcname="gnu development package"
252b5132 2738
a0da8069
NN
2739# This gets set non-empty for some net releases of packages.
2740appdirs=""
252b5132 2741
a0da8069
NN
2742# Define is_cross_compiler to save on calls to 'test'.
2743is_cross_compiler=
2744if test x"${host}" = x"${target}" ; then
2745 is_cross_compiler=no
252b5132 2746else
a0da8069 2747 is_cross_compiler=yes
c6b750e1 2748fi
252b5132 2749
9175bfc0 2750# Find the build and target subdir names.
dd12c3a8 2751
66a79c16
DJ
2752# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2753# have matching libraries, they should use host libraries: Makefile.tpl
2754# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2755# However, they still use the build modules, because the corresponding
2756# host modules (e.g. bison) are only built for the host when bootstrap
2757# finishes. So:
2758# - build_subdir is where we find build modules, and never changes.
2759# - build_libsubdir is where we find build libraries, and can be overridden.
2760
2761# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2762build_subdir="build-${build_noncanonical}"
c6b750e1 2763
81ecdfbb
RW
2764# Check whether --with-build-libsubdir was given.
2765if test "${with_build_libsubdir+set}" = set; then :
2766 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2767else
2768 build_libsubdir="$build_subdir"
81ecdfbb
RW
2769fi
2770
b00612cc
PB
2771# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2772if ( test $srcdir = . && test -d gcc ) \
2773 || test -d $srcdir/../host-${host_noncanonical}; then
2774 host_subdir="host-${host_noncanonical}"
2775else
2776 host_subdir=.
2777fi
dd12c3a8
NN
2778# No prefix.
2779target_subdir=${target_noncanonical}
c6b750e1 2780
2fd0b40b
RW
2781# Be sure to cover against remnants of an in-tree build.
2782if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2783 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2784Use a pristine source tree when building in a separate tree" "$LINENO" 5
2785fi
252b5132 2786
a0da8069
NN
2787# Skipdirs are removed silently.
2788skipdirs=
2789# Noconfigdirs are removed loudly.
2790noconfigdirs=""
252b5132 2791
a0da8069
NN
2792use_gnu_ld=
2793# Make sure we don't let GNU ld be added if we didn't want it.
2794if test x$with_gnu_ld = xno ; then
2795 use_gnu_ld=no
93f9b408 2796 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2797fi
2798
a0da8069
NN
2799use_gnu_as=
2800# Make sure we don't let GNU as be added if we didn't want it.
2801if test x$with_gnu_as = xno ; then
2802 use_gnu_as=no
2803 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2804fi
2805
700d40ca
ILT
2806use_included_zlib=
2807# Make sure we don't let ZLIB be added if we didn't want it.
2808if test x$with_system_zlib = xyes ; then
2809 use_included_zlib=no
2810 noconfigdirs="$noconfigdirs zlib"
2811fi
2812
c6b750e1 2813# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2814# it's not even worth trying to configure, much less build, that tool.
252b5132 2815
a0da8069
NN
2816case ${with_x} in
2817 yes | "") ;; # the default value for this tree is that X11 is available
2818 no)
675c6968 2819 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2820 # We won't be able to build gdbtk without X.
c6b750e1 2821 enable_gdbtk=no
a0da8069
NN
2822 ;;
2823 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2824esac
252b5132 2825
a0da8069 2826# Some tools are only suitable for building in a "native" situation.
c6b750e1 2827# Remove these if host!=target.
701628f5 2828native_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 2829
a0da8069
NN
2830# Similarly, some are only suitable for cross toolchains.
2831# Remove these if host=target.
2832cross_only="target-libgloss target-newlib target-opcodes"
2833
2834case $is_cross_compiler in
2835 no) skipdirs="${skipdirs} ${cross_only}" ;;
2836 yes) skipdirs="${skipdirs} ${native_only}" ;;
2837esac
252b5132 2838
a0da8069
NN
2839# If both --with-headers and --with-libs are specified, default to
2840# --without-newlib.
32be62b5
RS
2841if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2842 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2843 if test x"${with_newlib}" = x ; then
2844 with_newlib=no
2845 fi
252b5132
RH
2846fi
2847
a0da8069
NN
2848# Recognize --with-newlib/--without-newlib.
2849case ${with_newlib} in
2850 no) skipdirs="${skipdirs} target-newlib" ;;
2851 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2852esac
252b5132 2853
c7791212
NC
2854# Handle --enable-gold, --enable-ld.
2855# --disable-gold [--enable-ld]
2856# Build only ld. Default option.
2857# --enable-gold[=default] [--enable-ld]
2858# Build both gold and ld. Install gold as "ld.gold" and "ld",
2859# install ld as "ld.bfd".
2860# --enable-gold[=default] --disable-ld
2861# Build only gold, which is then installed as both "ld.gold" and "ld".
2862# --enable-gold --enable-ld=default
2863# Build both gold (installed as "gold") and ld (installed as "ld").
2864# In other words, ld is default
2865# --enable-gold=default --enable-ld=default
2866# Error.
2867
2868default_ld=
81ecdfbb
RW
2869# Check whether --enable-gold was given.
2870if test "${enable_gold+set}" = set; then :
2871 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2872else
2873 ENABLE_GOLD=no
81ecdfbb
RW
2874fi
2875
c7791212
NC
2876case "${ENABLE_GOLD}" in
2877 yes|default)
e6de499b
NC
2878 # Check for ELF target.
2879 is_elf=no
2880 case "${target}" in
2881 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2882 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2883 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2884 case "${target}" in
2885 *-*-linux*aout* | *-*-linux*oldld*)
2886 ;;
2887 *)
2888 is_elf=yes
2889 ;;
2890 esac
2891 esac
2892
2893 if test "$is_elf" = "yes"; then
2894 # Check for target supported by gold.
93f9b408 2895 case "${target}" in
e6de499b 2896 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
c7791212
NC
2897 configdirs="$configdirs gold"
2898 if test x${ENABLE_GOLD} = xdefault; then
2899 default_ld=gold
2900 fi
e6de499b 2901 ENABLE_GOLD=yes
93f9b408
ILT
2902 ;;
2903 esac
e6de499b
NC
2904 fi
2905 ;;
2906 no)
2907 ;;
2908 *)
2909 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2910 ;;
c7791212
NC
2911esac
2912
2913# Check whether --enable-ld was given.
2914if test "${enable_ld+set}" = set; then :
2915 enableval=$enable_ld; ENABLE_LD=$enableval
2916else
2917 ENABLE_LD=yes
2918fi
2919
2920
2921case "${ENABLE_LD}" in
2922 default)
2923 if test x${default_ld} != xgold; then
2924 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2925 fi
2926 ;;
2927 yes)
2928 ;;
2929 no)
2930 if test x${ENABLE_GOLD} != xyes; then
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2932$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2933 fi
2934 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2935 ;;
2936 *)
2937 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2938 ;;
2939esac
93f9b408 2940
a0da8069 2941# Configure extra directories which are host specific
252b5132 2942
a0da8069
NN
2943case "${host}" in
2944 *-cygwin*)
2945 configdirs="$configdirs libtermcap" ;;
2946esac
252b5132 2947
59f7ec45
HPN
2948# A target can indicate whether a language isn't supported for some reason.
2949# Only spaces may be used in this macro; not newlines or tabs.
2950unsupported_languages=
2951
c6b750e1 2952# Remove more programs from consideration, based on the host or
a0da8069
NN
2953# target this usually means that a port of the program doesn't
2954# exist yet.
252b5132 2955
a0da8069
NN
2956case "${host}" in
2957 hppa*64*-*-*)
2958 noconfigdirs="$noconfigdirs byacc"
2959 ;;
ec11bdc6 2960 i[3456789]86-*-vsta)
675c6968 2961 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2962 ;;
ec11bdc6 2963 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2964 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2965 ;;
2d1e8239
NC
2966 x86_64-*-mingw*)
2967 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2968 ;;
ec11bdc6 2969 i[3456789]86-*-mingw32*)
675c6968 2970 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2971 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2972 ;;
ec11bdc6 2973 i[3456789]86-*-beos*)
675c6968 2974 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2975 ;;
a0da8069 2976 *-*-cygwin*)
a92834c8 2977 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2978 ;;
2979 *-*-netbsd*)
a92834c8 2980 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2981 ;;
2982 ppc*-*-pe)
675c6968 2983 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2984 ;;
2985 powerpc-*-beos*)
675c6968 2986 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2987 ;;
a0da8069 2988esac
252b5132 2989
4b1cb4fe 2990
81ecdfbb
RW
2991# Check whether --enable-libada was given.
2992if test "${enable_libada+set}" = set; then :
2993 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2994else
2995 ENABLE_LIBADA=yes
81ecdfbb
RW
2996fi
2997
a2592b1b 2998if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2999 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3000fi
3001
81ecdfbb
RW
3002# Check whether --enable-libssp was given.
3003if test "${enable_libssp+set}" = set; then :
3004 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3005else
3006 ENABLE_LIBSSP=yes
81ecdfbb
RW
3007fi
3008
5f128533 3009
a0da8069
NN
3010# Save it here so that, even in case of --enable-libgcj, if the Java
3011# front-end isn't enabled, we still get libgcj disabled.
3012libgcj_saved=$libgcj
3013case $enable_libgcj in
3014yes)
3015 # If we reset it here, it won't get added to noconfigdirs in the
3016 # target-specific build rules, so it will be forcibly enabled
3017 # (unless the Java language itself isn't enabled).
3018 libgcj=
3019 ;;
3020no)
3021 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3022 # Don't disable libffi, though, other languages use it.
3023 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
a0da8069
NN
3024 ;;
3025esac
252b5132 3026
4b1cb4fe 3027
a6df5a19
PB
3028# Disable libmudflap on some systems.
3029if test x$enable_libmudflap = x ; then
3e707e94 3030 case "${target}" in
29383458 3031 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3032 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3033 ;;
3034 *-*-freebsd*)
3035 # Enable libmudflap by default in FreeBSD.
3036 ;;
3037 *)
3038 # Disable it by default everywhere else.
3039 noconfigdirs="$noconfigdirs target-libmudflap"
3040 ;;
3041 esac
a6df5a19 3042fi
4b1cb4fe 3043
a6df5a19
PB
3044# Disable libgomp on non POSIX hosted systems.
3045if test x$enable_libgomp = x ; then
b3ded179
PB
3046 # Enable libgomp by default on hosted POSIX systems.
3047 case "${target}" in
29383458 3048 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
3049 ;;
3050 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3051 ;;
64ce424c 3052 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3053 ;;
3054 *-*-darwin* | *-*-aix*)
3055 ;;
3056 *)
3057 noconfigdirs="$noconfigdirs target-libgomp"
3058 ;;
3059 esac
a6df5a19 3060fi
b3ded179 3061
691bb5a1
DD
3062# Default libgloss CPU subdirectory.
3063libgloss_dir="$target_cpu"
4b1cb4fe 3064
a0da8069
NN
3065case "${target}" in
3066 *-*-chorusos)
54d1c879 3067 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3068 ;;
24741ab2 3069 powerpc-*-darwin*)
9d39db92 3070 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3071 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3072 ;;
85bd1942
TG
3073 i[3456789]86-*-darwin*)
3074 noconfigdirs="$noconfigdirs ld gprof"
3075 noconfigdirs="$noconfigdirs sim target-rda"
3076 ;;
e8a5fa9c 3077 x86_64-*-darwin[912]*)
652dec25
TG
3078 noconfigdirs="$noconfigdirs ld gas gprof"
3079 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3080 ;;
04d1ab34 3081 *-*-darwin*)
d320aacb 3082 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3083 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3084 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3085 ;;
a0da8069 3086 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 3087 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3088 ;;
de0b4a87 3089 *-*-freebsd*)
4b1cb4fe
DD
3090 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3091 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3092 && test -f /usr/local/include/gmp.h; then
3093 with_gmp=/usr/local
3094 fi
3095
3096 # Skip some stuff that's unsupported on some FreeBSD configurations.
3097 case "${target}" in
3098 i*86-*-*) ;;
3099 alpha*-*-*) ;;
143754cd 3100 x86_64-*-*) ;;
4b1cb4fe 3101 *)
54d1c879 3102 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3103 ;;
3104 esac
3105 ;;
f8a495c8
NC
3106 *-*-kaos*)
3107 # Remove unsupported stuff on all kaOS configurations.
54d1c879 3108 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
3109 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3110 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3111 noconfigdirs="$noconfigdirs target-libgloss"
3112 ;;
a0da8069
NN
3113 *-*-netbsd*)
3114 # Skip some stuff on all NetBSD configurations.
3115 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3116
3117 # Skip some stuff that's unsupported on some NetBSD configurations.
3118 case "${target}" in
3119 i*86-*-netbsdelf*) ;;
5b474aa8 3120 arm*-*-netbsdelf*) ;;
a0da8069 3121 *)
54d1c879 3122 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3123 ;;
3124 esac
3125 ;;
2a3124ca 3126 *-*-netware*)
54d1c879 3127 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
3128 ;;
3129 *-*-rtems*)
a009f2e7 3130 skipdirs="${skipdirs} target-libiberty"
54d1c879 3131 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3132 ;;
1587117a
EC
3133 # The tpf target doesn't support gdb yet.
3134 *-*-tpf*)
54d1c879 3135 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 3136 ;;
c1968181 3137 *-*-uclinux*)
54d1c879 3138 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3139 ;;
a0da8069 3140 *-*-vxworks*)
54d1c879 3141 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3142 ;;
3143 alpha*-dec-osf*)
3144 # ld works, but does not support shared libraries.
3145 # newlib is not 64 bit ready. I'm not sure about fileutils.
3146 # gas doesn't generate exception information.
3147 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3148 ;;
3149 alpha*-*-*vms*)
d594eacc 3150 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3151 ;;
3152 alpha*-*-linux*)
3153 # newlib is not 64 bit ready
3154 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3155 ;;
a0da8069
NN
3156 alpha*-*-*)
3157 # newlib is not 64 bit ready
54d1c879 3158 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3159 ;;
4a18bd6b 3160 am33_2.0-*-linux*)
54d1c879 3161 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3162 ;;
a0da8069 3163 sh-*-linux*)
54d1c879 3164 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3165 ;;
a0da8069 3166 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3167 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3168 noconfigdirs="$noconfigdirs target-examples"
3169 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 3170 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3171 noconfigdirs="$noconfigdirs expect dejagnu"
3172 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3173 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
3174 noconfigdirs="$noconfigdirs target-newlib"
3175 case "${host}" in
3176 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 3177 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
3178 ;;
3179 esac
691bb5a1 3180 libgloss_dir=wince
a0da8069
NN
3181 ;;
3182 arc-*-*)
54d1c879 3183 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3184 ;;
caeba88f 3185 arm-semi-aof )
caeba88f 3186 ;;
a0da8069 3187 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 3188 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3189 libgloss_dir=arm
a0da8069 3190 ;;
11b04d1f 3191 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 3192 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 3193 libgloss_dir=arm
a0da8069 3194 ;;
bd70a46f 3195 arm*-*-linux-gnueabi)
6d18b86b 3196 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
3197 case ${with_newlib} in
3198 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3199 esac
691bb5a1 3200 libgloss_dir=arm
bd70a46f 3201 ;;
df4a6958 3202 arm*-*-symbianelf*)
54d1c879 3203 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3204 libgloss_dir=arm
df4a6958 3205 ;;
a0da8069 3206 arm-*-pe*)
54d1c879 3207 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3208 ;;
a0da8069 3209 thumb-*-coff)
54d1c879 3210 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3211 ;;
3212 thumb-*-elf)
54d1c879 3213 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3214 ;;
a0da8069 3215 thumb-*-pe)
54d1c879 3216 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3217 ;;
3218 arm-*-riscix*)
54d1c879 3219 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3220 ;;
3221 avr-*-*)
266df637 3222 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3223 ;;
376a0e54 3224 bfin-*-*)
df51e4e1
JZ
3225 unsupported_languages="$unsupported_languages java"
3226 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3cf3372e 3227 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3228 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3229 fi
3230 ;;
a0da8069 3231 c4x-*-* | tic4x-*-*)
54d1c879 3232 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3233 ;;
3234 c54x*-*-* | tic54x-*-*)
54d1c879 3235 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3236 ;;
52310858
NC
3237 cr16-*-*)
3238 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3239 ;;
c7e66c6d 3240 cris-*-* | crisv32-*-*)
59f7ec45 3241 unsupported_languages="$unsupported_languages java"
c7e66c6d 3242 case "${target}" in
2faa2958 3243 *-*-aout)
096f7d00 3244 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3245 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3246 *-*-elf)
5e818318 3247 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 3248 *-*-linux*)
5e818318 3249 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3250 *)
096f7d00 3251 unsupported_languages="$unsupported_languages fortran"
54d1c879 3252 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3253 esac
691bb5a1 3254 libgloss_dir=cris
a0da8069 3255 ;;
3e707e94 3256 crx-*-*)
54d1c879 3257 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 3258 ;;
a0da8069 3259 d10v-*-*)
54d1c879 3260 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3261 ;;
3262 d30v-*-*)
54d1c879 3263 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 3264 ;;
691bb5a1
DD
3265 ep9312-*-elf | ep9312-*-coff)
3266 libgloss_dir=arm
3267 ;;
a0da8069 3268 fr30-*-elf*)
54d1c879 3269 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3270 ;;
3271 frv-*-*)
54d1c879 3272 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3273 ;;
20135e4c
NC
3274 moxie-*-*)
3275 noconfigdirs="$noconfigdirs ${libgcj}"
3276 noconfigdirs="$noconfigdirs gprof"
3277 ;;
a0da8069 3278 h8300*-*-*)
54d1c879 3279 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3280 ;;
3281 h8500-*-*)
54d1c879 3282 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3283 ;;
caeba88f 3284 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3285 ;;
a0da8069
NN
3286 hppa*64*-*-linux* | parisc*64*-*-linux*)
3287 # In this case, it's because the hppa64-linux target is for
3288 # the kernel only at this point and has no libc, and thus no
3289 # headers, crt*.o, etc., all of which are needed by these.
3290 noconfigdirs="$noconfigdirs target-zlib"
3291 ;;
5dcac624
DA
3292 parisc*-*-linux* | hppa*-*-linux*)
3293 ;;
a0da8069 3294 hppa*-*-*elf* | \
a0da8069
NN
3295 hppa*-*-lites* | \
3296 hppa*-*-openbsd* | \
3297 hppa*64*-*-*)
54d1c879 3298 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3299 ;;
3300 hppa*-hp-hpux11*)
3301 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3302 ;;
691bb5a1
DD
3303 hppa*-*-pro*)
3304 libgloss_dir=pa
3305 ;;
a0da8069
NN
3306 hppa*-*-*)
3307 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3308 # build on HP-UX 10.20.
54d1c879 3309 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3310 ;;
b07c2aad 3311 i960-*-*)
54d1c879 3312 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3313 ;;
a0da8069
NN
3314 ia64*-*-elf*)
3315 # No gdb support yet.
675c6968 3316 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3317 ;;
3318 ia64*-**-hpux*)
3319 # No gdb or ld support yet.
54d1c879 3320 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 3321 ;;
19e99079
NC
3322 ia64*-*-*vms*)
3323 # No gdb or ld support yet.
3324 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3325 ;;
caeba88f 3326 i370-*-opened*)
caeba88f 3327 ;;
ec11bdc6 3328 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3329 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3330 libgloss_dir=i386
a0da8069 3331 ;;
ec11bdc6 3332 i[3456789]86-*-linux*)
a0da8069
NN
3333 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3334 # not build java stuff by default.
3335 case "${target}" in
3336 *-*-*libc1*)
54d1c879 3337 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3338 esac
3339
3340 # This section makes it possible to build newlib natively on linux.
3341 # If we are using a cross compiler then don't configure newlib.
3342 if test x${is_cross_compiler} != xno ; then
bba45b8b 3343 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3344 fi
3345 noconfigdirs="$noconfigdirs target-libgloss"
3346 # If we are not using a cross compiler, do configure newlib.
3347 # Note however, that newlib will only be configured in this situation
3348 # if the --with-newlib option has been given, because otherwise
3349 # 'target-newlib' will appear in skipdirs.
3350 ;;
1f53ca9a
AO
3351 i[3456789]86-w64-mingw*)
3352 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3353 ;;
3354 i[3456789]86-*-mingw*)
45055374
CV
3355 target_configdirs="$target_configdirs target-winsup"
3356 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3357 ;;
2d1e8239 3358 x86_64-*-mingw*)
2d1e8239 3359 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3360 ;;
a0da8069
NN
3361 *-*-cygwin*)
3362 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3363 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3364 # always build newlib if winsup directory is present.
45055374 3365 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3366 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3367 elif test -d "$srcdir/newlib"; then
45055374 3368 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3369 fi
c6b750e1 3370 ;;
caeba88f
AL
3371 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3372 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 3373 ;;
ec11bdc6 3374 i[3456789]86-*-pe)
54d1c879 3375 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3376 ;;
ec11bdc6 3377 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3378 # The linker does not yet know about weak symbols in COFF,
3379 # and is not configured to handle mixed ELF and COFF.
54d1c879 3380 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3381 ;;
ec11bdc6 3382 i[3456789]86-*-sco*)
54d1c879 3383 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3384 ;;
ec11bdc6 3385 i[3456789]86-*-solaris2*)
a0da8069
NN
3386 noconfigdirs="$noconfigdirs target-libgloss"
3387 ;;
ec11bdc6 3388 i[3456789]86-*-sysv4*)
54d1c879 3389 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3390 ;;
ec11bdc6 3391 i[3456789]86-*-beos*)
54d1c879 3392 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3393 ;;
b59bea8a 3394 i[3456789]86-*-rdos*)
2429c060
PB
3395 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3396 ;;
b07c2aad 3397 m32r-*-*)
54d1c879 3398 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3399 ;;
a0da8069 3400 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 3401 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 3402 libgloss_dir=m68hc11
a0da8069
NN
3403 ;;
3404 m68k-*-elf*)
54d1c879 3405 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3406 ;;
3407 m68k-*-coff*)
54d1c879 3408 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3409 ;;
691bb5a1
DD
3410 m68*-*-* | fido-*-*)
3411 libgloss_dir=m68k
3412 ;;
a0da8069
NN
3413 mcore-*-pe*)
3414 # The EPOC C++ environment does not support exceptions or rtti,
3415 # and so building libstdc++-v3 tends not to always work.
3416 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3417 ;;
3418 mmix-*-*)
59f7ec45 3419 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3420 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3421 ;;
3422 mn10200-*-*)
54d1c879 3423 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3424 ;;
3425 mn10300-*-*)
54d1c879 3426 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3427 ;;
4970f871 3428 mt-*-*)
cdb9b172
AH
3429 noconfigdirs="$noconfigdirs sim"
3430 ;;
a0da8069
NN
3431 powerpc-*-aix*)
3432 # copied from rs6000-*-* entry
e8a5fa9c 3433 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3434 ;;
3435 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3436 target_configdirs="$target_configdirs target-winsup"
54d1c879 3437 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3438 # always build newlib.
3439 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3440 ;;
3441 # This is temporary until we can link against shared libraries
3442 powerpcle-*-solaris*)
54d1c879 3443 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3444 libgloss_dir=rs6000
a0da8069
NN
3445 ;;
3446 powerpc-*-beos*)
54d1c879 3447 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3448 ;;
a0da8069 3449 powerpc-*-eabi)
54d1c879 3450 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3451 libgloss_dir=rs6000
caeba88f
AL
3452 ;;
3453 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3454 libgloss_dir=rs6000
a0da8069 3455 ;;
a0da8069 3456 rs6000-*-lynxos*)
54d1c879 3457 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3458 ;;
3459 rs6000-*-aix*)
e8a5fa9c 3460 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3461 ;;
3462 rs6000-*-*)
54d1c879 3463 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3464 ;;
3465 m68k-apollo-*)
54d1c879 3466 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3467 ;;
25a07265 3468 microblaze*)
29821356 3469 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
25a07265 3470 ;;
5bd8be13
RS
3471 mips*-sde-elf*)
3472 skipdirs="$skipdirs target-libiberty"
3473 noconfigdirs="$noconfigdirs ${libgcj}"
3474 if test x$with_newlib = xyes; then
3475 noconfigdirs="$noconfigdirs gprof"
3476 fi
3477 libgloss_dir=mips
3478 ;;
a0da8069 3479 mips*-*-irix5*)
54d1c879 3480 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3481 ;;
3482 mips*-*-irix6*)
a0da8069
NN
3483 # Linking libjava exceeds command-line length limits on at least
3484 # IRIX 6.2, but not on IRIX 6.5.
3485 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3486 # <oldham@codesourcery.com>
54d1c879 3487 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3488 ;;
a0da8069 3489 mips*-*-bsd*)
54d1c879 3490 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3491 ;;
a0da8069
NN
3492 mips*-*-linux*)
3493 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3494 ;;
3495 mips*-*-*)
54d1c879 3496 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3497 libgloss_dir=mips
a0da8069
NN
3498 ;;
3499 romp-*-*)
54d1c879 3500 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3501 ;;
dbf85af7 3502 sh-*-* | sh64-*-*)
a0da8069 3503 case "${host}" in
ec11bdc6
DD
3504 i[3456789]86-*-vsta) ;; # don't add gprof back in
3505 i[3456789]86-*-go32*) ;; # don't add gprof back in
3506 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3507 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3508 esac
e8a5fa9c
RW
3509 case "${target}" in
3510 sh*-*-elf)
3511 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3512 *)
3513 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3514 esac
a0da8069 3515 ;;
691bb5a1
DD
3516 sparclet-*-aout* | sparc86x-*-*)
3517 libgloss_dir=sparc
3518 ;;
a0da8069 3519 sparc-*-elf*)
54d1c879 3520 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3521 ;;
3522 sparc64-*-elf*)
54d1c879 3523 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3524 libgloss_dir=sparc
a0da8069
NN
3525 ;;
3526 sparclite-*-*)
54d1c879 3527 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3528 libgloss_dir=sparc
a0da8069
NN
3529 ;;
3530 sparc-*-sunos4*)
54d1c879 3531 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3532 if test x${is_cross_compiler} != xno ; then
3533 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3534 else
3535 use_gnu_ld=no
3536 fi
3537 ;;
e3c770b1 3538 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3539 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3540 ;;
a0da8069
NN
3541 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3542 ;;
619a3713
JM
3543 tic6x-*-*)
3544 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3545 ;;
a0da8069 3546 v810-*-*)
54d1c879 3547 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069 3548 ;;
1cd986c5
NC
3549 v850*-*-*)
3550 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3551 ;;
3552 vax-*-vms)
54d1c879 3553 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3554 ;;
3555 vax-*-*)
54d1c879 3556 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3557 ;;
8b66833e 3558 xtensa*-*-*)
54d1c879 3559 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3560 ;;
a0da8069 3561 ip2k-*-*)
54d1c879 3562 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3563 ;;
29383458 3564 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3565 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3566 ;;
3567 *-*-lynxos*)
54d1c879 3568 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3569 ;;
a0da8069 3570 *-*-*)
54d1c879 3571 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3572 ;;
3573esac
252b5132 3574
a0da8069
NN
3575# If we aren't building newlib, then don't build libgloss, since libgloss
3576# depends upon some newlib header files.
3577case "${noconfigdirs}" in
3578 *target-libgloss*) ;;
3579 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3580esac
3581
a0da8069
NN
3582# Work in distributions that contain no compiler tools, like Autoconf.
3583tentative_cc=""
3584host_makefile_frag=/dev/null
3585if test -d ${srcdir}/config ; then
3586case "${host}" in
3587 m68k-hp-hpux*)
3588 # Avoid "too much defining" errors from HPUX compiler.
3589 tentative_cc="cc -Wp,-H256000"
3590 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3591 # If it's HP/UX ar, this should be harmless.
3592 RANLIB="ar ts"
3593 ;;
3594 m68k-apollo-sysv*)
3595 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3596 ;;
3597 m68k-apollo-bsd*)
3598 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3599 # chokes on bfd, the compiler won't let you assign integers to enums, and
3600 # other problems. Defining CC to gcc is a questionable way to say "don't use
3601 # the apollo compiler" (the preferred version of GCC could be called cc,
3602 # or whatever), but I'm not sure leaving CC as cc is any better...
3603 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3604 # Used to have BISON=yacc.
3605 tentative_cc=gcc
3606 ;;
3607 m88k-dg-dgux*)
3608 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3609 ;;
3610 m88k-harris-cxux*)
3611 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3612 tentative_cc="cc -Xa"
3613 host_makefile_frag="config/mh-cxux"
3614 ;;
3615 m88k-motorola-sysv*)
3616 ;;
3617 mips*-dec-ultrix*)
3618 tentative_cc="cc -Wf,-XNg1000"
3619 host_makefile_frag="config/mh-decstation"
3620 ;;
3621 mips*-nec-sysv4*)
3622 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3623 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3624 host_makefile_frag="config/mh-necv4"
3625 ;;
3626 mips*-sgi-irix4*)
3627 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3628 # environment. Also bump switch table size so that cp-parse will
3629 # compile. Bump string length limit so linker builds.
3630 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3631 ;;
3632 mips*-*-sysv4*)
3633 host_makefile_frag="config/mh-sysv4"
3634 ;;
3635 mips*-*-sysv*)
3636 # This is for a MIPS running RISC/os 4.52C.
3637
3638 # This is needed for GDB, but needs to be in the top-level make because
3639 # if a library is compiled with the bsd headers and gets linked with the
3640 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3641 # a different size).
3642 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3643 # known except to select the sysv environment. Could we use /proc instead?
3644 # These "sysv environments" and "bsd environments" often end up being a pain.
3645 #
3646 # This is not part of CFLAGS because perhaps not all C compilers have this
3647 # option.
3648 tentative_cc="cc -systype sysv"
3649 ;;
3650 i370-ibm-opened*)
3651 tentative_cc="c89"
3652 ;;
ec11bdc6 3653 i[3456789]86-*-sysv5*)
a0da8069
NN
3654 host_makefile_frag="config/mh-sysv5"
3655 ;;
ec11bdc6 3656 i[3456789]86-*-dgux*)
a0da8069
NN
3657 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3658 host_makefile_frag="config/mh-dgux386"
3659 ;;
ec11bdc6 3660 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3661 # The MetaWare compiler will generate a copyright message unless you
3662 # turn it off by adding the -Hnocopyr flag.
3663 tentative_cc="cc -Hnocopyr"
3664 ;;
ec11bdc6 3665 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3666 # for an NCR 3000 (i486/SVR4) system.
3667 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3668 # This compiler not only emits obnoxious copyright messages every time
3669 # you run it, but it chokes and dies on a whole bunch of GNU source
3670 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3671 tentative_cc="/usr/ccs/ATT/cc"
3672 host_makefile_frag="config/mh-ncr3000"
3673 ;;
ec11bdc6 3674 i[3456789]86-*-sco3.2v5*)
a0da8069 3675 ;;
ec11bdc6 3676 i[3456789]86-*-sco*)
a0da8069
NN
3677 # The native C compiler botches some simple uses of const. Unfortunately,
3678 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3679 tentative_cc="cc -Dconst="
3680 host_makefile_frag="config/mh-sco"
3681 ;;
ec11bdc6 3682 i[3456789]86-*-udk*)
a0da8069
NN
3683 host_makefile_frag="config/mh-sysv5"
3684 ;;
ec11bdc6 3685 i[3456789]86-*-solaris2*)
a0da8069
NN
3686 host_makefile_frag="config/mh-sysv4"
3687 ;;
ec11bdc6 3688 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3689 host_makefile_frag="config/mh-djgpp"
3690 ;;
3691 *-cygwin*)
e33b51a6 3692
81ecdfbb
RW
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3694$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3695echo a >cygwin-cat-check
1f53ca9a 3696if test `cat cygwin-cat-check` = a ; then
8ade07e9 3697 rm cygwin-cat-check
81ecdfbb
RW
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3699$as_echo "yes" >&6; }
e33b51a6 3700else
8ade07e9 3701 rm cygwin-cat-check
81ecdfbb
RW
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3703$as_echo "no" >&6; }
3704 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3705 Please either mount the build directory in binary mode or run the following
3706 commands before running any configure script:
3707set -o igncr
3708export SHELLOPTS
81ecdfbb 3709 " "$LINENO" 5
e33b51a6 3710fi
e33b51a6 3711
a0da8069
NN
3712 host_makefile_frag="config/mh-cygwin"
3713 ;;
8a1599ab 3714 *-mingw*)
84e7906e 3715 host_makefile_frag="config/mh-mingw"
2d1e8239 3716 ;;
a0da8069
NN
3717 *-interix*)
3718 host_makefile_frag="config/mh-interix"
3719 ;;
3720 vax-*-ultrix2*)
3721 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3722 tentative_cc=gcc
3723 ;;
3724 *-*-solaris2*)
3725 host_makefile_frag="config/mh-solaris"
3726 ;;
3727 m68k-sun-sunos*)
3728 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3729 # without overflowing the jump tables (-J says to use a 32 bit table)
3730 tentative_cc="cc -J"
3731 ;;
da888c87 3732 hppa*-hp-hpux10*)
a0da8069 3733 tentative_cc="cc -Wp,-H256000"
da888c87 3734 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3735 ;;
da888c87
PB
3736 hppa*-hp-hpux* | hppa*-*-hiux*)
3737 tentative_cc="cc -Wp,-H256000"
3738 host_makefile_frag="config/mh-pa"
3739 ;;
3740 hppa*-*)
3741 host_makefile_frag="config/mh-pa"
3742 ;;
3743 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3744 tentative_cc="cc -Wp,-H256000"
3745 ;;
3746 rs6000-*-lynxos*)
3747 # /bin/cc is less than useful for our purposes. Always use GCC
3748 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3749 host_makefile_frag="config/mh-lynxrs6k"
3750 ;;
e552509b
ILT
3751 *-*-darwin*)
3752 host_makefile_frag="config/mh-darwin"
0df3d27f 3753 ;;
f6d183c0
PB
3754 powerpc-*-aix*)
3755 host_makefile_frag="config/mh-ppc-aix"
3756 ;;
3757 rs6000-*-aix*)
3758 host_makefile_frag="config/mh-ppc-aix"
3759 ;;
a0da8069
NN
3760 *-*-lynxos*)
3761 # /bin/cc is less than useful for our purposes. Always use GCC
3762 tentative_cc="/bin/gcc"
3763 ;;
3764 *-*-sysv4*)
3765 host_makefile_frag="config/mh-sysv4"
3766 ;;
fe69863c
DD
3767 # This is placed last to prevent interfering with the cases above.
3768 i[3456789]86-*-*)
3769 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3770 host_makefile_frag="config/mh-x86omitfp"
3771 ;;
a0da8069
NN
3772esac
3773fi
3774
9e07f89d
NN
3775# If we aren't going to be using gcc, see if we can extract a definition
3776# of CC from the fragment.
3777# Actually, use the 'pre-extracted' version above.
3778if test -z "${CC}" && test "${build}" = "${host}" ; then
3779 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3780 found=
3781 for dir in $PATH; do
3782 test -z "$dir" && dir=.
3783 if test -f $dir/gcc; then
3784 found=yes
3785 break
3786 fi
3787 done
3788 IFS="$save_ifs"
3789 if test -z "${found}" && test -n "${tentative_cc}" ; then
3790 CC=$tentative_cc
3791 fi
3792fi
3793
3794if test "${build}" != "${host}" ; then
1576798e
PB
3795 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3796 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3797 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3798 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3799 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3800 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3801 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3802 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3803 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3804 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3805 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3806 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3807 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3808else
3809 AR_FOR_BUILD="\$(AR)"
3810 AS_FOR_BUILD="\$(AS)"
512b7dfb 3811 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3812 CXX_FOR_BUILD="\$(CXX)"
3813 GCJ_FOR_BUILD="\$(GCJ)"
3814 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3815 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3816 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3817 LD_FOR_BUILD="\$(LD)"
3818 NM_FOR_BUILD="\$(NM)"
3819 RANLIB_FOR_BUILD="\$(RANLIB)"
3820 WINDRES_FOR_BUILD="\$(WINDRES)"
3821 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3822fi
3823
3824ac_ext=c
c6b750e1
DJ
3825ac_cpp='$CPP $CPPFLAGS'
3826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828ac_compiler_gnu=$ac_cv_c_compiler_gnu
3829if test -n "$ac_tool_prefix"; then
3830 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3831set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3833$as_echo_n "checking for $ac_word... " >&6; }
3834if test "${ac_cv_prog_CC+set}" = set; then :
3835 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3836else
3837 if test -n "$CC"; then
3838 ac_cv_prog_CC="$CC" # Let the user override the test.
3839else
3840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841for as_dir in $PATH
3842do
3843 IFS=$as_save_IFS
3844 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3847 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3849 break 2
3850 fi
3851done
81ecdfbb
RW
3852 done
3853IFS=$as_save_IFS
c6b750e1
DJ
3854
3855fi
3856fi
3857CC=$ac_cv_prog_CC
3858if test -n "$CC"; then
81ecdfbb
RW
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3860$as_echo "$CC" >&6; }
c6b750e1 3861else
81ecdfbb
RW
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863$as_echo "no" >&6; }
c6b750e1
DJ
3864fi
3865
81ecdfbb 3866
c6b750e1
DJ
3867fi
3868if test -z "$ac_cv_prog_CC"; then
3869 ac_ct_CC=$CC
6a9cf61e 3870 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3871set dummy gcc; ac_word=$2
81ecdfbb
RW
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3873$as_echo_n "checking for $ac_word... " >&6; }
3874if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3875 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3876else
3877 if test -n "$ac_ct_CC"; then
3878 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3879else
3880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881for as_dir in $PATH
3882do
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3887 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3889 break 2
3890 fi
3891done
81ecdfbb
RW
3892 done
3893IFS=$as_save_IFS
c6b750e1
DJ
3894
3895fi
3896fi
3897ac_ct_CC=$ac_cv_prog_ac_ct_CC
3898if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3900$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3901else
81ecdfbb
RW
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903$as_echo "no" >&6; }
c6b750e1
DJ
3904fi
3905
81ecdfbb
RW
3906 if test "x$ac_ct_CC" = x; then
3907 CC=""
3908 else
3909 case $cross_compiling:$ac_tool_warned in
3910yes:)
3911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3913ac_tool_warned=yes ;;
3914esac
3915 CC=$ac_ct_CC
3916 fi
c6b750e1
DJ
3917else
3918 CC="$ac_cv_prog_CC"
3919fi
3920
3921if test -z "$CC"; then
81ecdfbb
RW
3922 if test -n "$ac_tool_prefix"; then
3923 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3924set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926$as_echo_n "checking for $ac_word... " >&6; }
3927if test "${ac_cv_prog_CC+set}" = set; then :
3928 $as_echo_n "(cached) " >&6
9e07f89d
NN
3929else
3930 if test -n "$CC"; then
3931 ac_cv_prog_CC="$CC" # Let the user override the test.
3932else
c6b750e1
DJ
3933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934for as_dir in $PATH
3935do
3936 IFS=$as_save_IFS
3937 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3940 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3942 break 2
3943 fi
3944done
81ecdfbb
RW
3945 done
3946IFS=$as_save_IFS
c6b750e1 3947
9e07f89d
NN
3948fi
3949fi
c6b750e1 3950CC=$ac_cv_prog_CC
9e07f89d 3951if test -n "$CC"; then
81ecdfbb
RW
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3953$as_echo "$CC" >&6; }
c6b750e1 3954else
81ecdfbb
RW
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956$as_echo "no" >&6; }
c6b750e1
DJ
3957fi
3958
c6b750e1 3959
81ecdfbb 3960 fi
c6b750e1 3961fi
9e07f89d
NN
3962if test -z "$CC"; then
3963 # Extract the first word of "cc", so it can be a program name with args.
3964set dummy cc; ac_word=$2
81ecdfbb
RW
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966$as_echo_n "checking for $ac_word... " >&6; }
3967if test "${ac_cv_prog_CC+set}" = set; then :
3968 $as_echo_n "(cached) " >&6
9e07f89d
NN
3969else
3970 if test -n "$CC"; then
3971 ac_cv_prog_CC="$CC" # Let the user override the test.
3972else
9e07f89d 3973 ac_prog_rejected=no
c6b750e1
DJ
3974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975for as_dir in $PATH
3976do
3977 IFS=$as_save_IFS
3978 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3981 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3982 ac_prog_rejected=yes
3983 continue
3984 fi
3985 ac_cv_prog_CC="cc"
81ecdfbb 3986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3987 break 2
3988 fi
3989done
81ecdfbb
RW
3990 done
3991IFS=$as_save_IFS
c6b750e1 3992
9e07f89d
NN
3993if test $ac_prog_rejected = yes; then
3994 # We found a bogon in the path, so make sure we never use it.
3995 set dummy $ac_cv_prog_CC
3996 shift
c6b750e1 3997 if test $# != 0; then
9e07f89d
NN
3998 # We chose a different compiler from the bogus one.
3999 # However, it has the same basename, so the bogon will be chosen
4000 # first if we set CC to just the basename; use the full file name.
4001 shift
c6b750e1 4002 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4003 fi
4004fi
4005fi
4006fi
c6b750e1 4007CC=$ac_cv_prog_CC
9e07f89d 4008if test -n "$CC"; then
81ecdfbb
RW
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4010$as_echo "$CC" >&6; }
9e07f89d 4011else
81ecdfbb
RW
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013$as_echo "no" >&6; }
9e07f89d
NN
4014fi
4015
81ecdfbb 4016
c6b750e1
DJ
4017fi
4018if test -z "$CC"; then
4019 if test -n "$ac_tool_prefix"; then
81ecdfbb 4020 for ac_prog in cl.exe
c6b750e1
DJ
4021 do
4022 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4023set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025$as_echo_n "checking for $ac_word... " >&6; }
4026if test "${ac_cv_prog_CC+set}" = set; then :
4027 $as_echo_n "(cached) " >&6
9e07f89d
NN
4028else
4029 if test -n "$CC"; then
4030 ac_cv_prog_CC="$CC" # Let the user override the test.
4031else
c6b750e1
DJ
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4039 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4041 break 2
376a0e54 4042 fi
c6b750e1 4043done
81ecdfbb
RW
4044 done
4045IFS=$as_save_IFS
cac3d6c4 4046
c6b750e1
DJ
4047fi
4048fi
4049CC=$ac_cv_prog_CC
4050if test -n "$CC"; then
81ecdfbb
RW
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4052$as_echo "$CC" >&6; }
cac3d6c4 4053else
81ecdfbb
RW
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055$as_echo "no" >&6; }
9e07f89d 4056fi
cac3d6c4 4057
81ecdfbb 4058
c6b750e1
DJ
4059 test -n "$CC" && break
4060 done
cac3d6c4 4061fi
c6b750e1
DJ
4062if test -z "$CC"; then
4063 ac_ct_CC=$CC
81ecdfbb 4064 for ac_prog in cl.exe
c6b750e1
DJ
4065do
4066 # Extract the first word of "$ac_prog", so it can be a program name with args.
4067set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4069$as_echo_n "checking for $ac_word... " >&6; }
4070if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
cac3d6c4 4072else
c6b750e1
DJ
4073 if test -n "$ac_ct_CC"; then
4074 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4075else
c6b750e1
DJ
4076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077for as_dir in $PATH
4078do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4083 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4085 break 2
4086 fi
4087done
81ecdfbb
RW
4088 done
4089IFS=$as_save_IFS
c6b750e1 4090
cac3d6c4
CM
4091fi
4092fi
c6b750e1
DJ
4093ac_ct_CC=$ac_cv_prog_ac_ct_CC
4094if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4096$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4097else
81ecdfbb
RW
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4099$as_echo "no" >&6; }
cac3d6c4 4100fi
376a0e54 4101
81ecdfbb 4102
c6b750e1
DJ
4103 test -n "$ac_ct_CC" && break
4104done
4105
81ecdfbb
RW
4106 if test "x$ac_ct_CC" = x; then
4107 CC=""
4108 else
4109 case $cross_compiling:$ac_tool_warned in
4110yes:)
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4113ac_tool_warned=yes ;;
4114esac
4115 CC=$ac_ct_CC
4116 fi
c6b750e1
DJ
4117fi
4118
4119fi
4120
4121
81ecdfbb
RW
4122test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4124as_fn_error "no acceptable C compiler found in \$PATH
4125See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4126
4127# Provide some information about the compiler.
81ecdfbb
RW
4128$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4129set X $ac_compile
4130ac_compiler=$2
4131for ac_option in --version -v -V -qversion; do
4132 { { ac_try="$ac_compiler $ac_option >&5"
4133case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136esac
4137eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4138$as_echo "$ac_try_echo"; } >&5
4139 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4140 ac_status=$?
81ecdfbb
RW
4141 if test -s conftest.err; then
4142 sed '10a\
4143... rest of stderr output deleted ...
4144 10q' conftest.err >conftest.er1
4145 cat conftest.er1 >&5
4146 rm -f conftest.er1 conftest.err
4147 fi
4148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4149 test $ac_status = 0; }
4150done
c6b750e1 4151
81ecdfbb 4152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4153/* end confdefs.h. */
4154
4155int
4156main ()
4157{
4158
4159 ;
4160 return 0;
4161}
4162_ACEOF
4163ac_clean_files_save=$ac_clean_files
81ecdfbb 4164ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4165# Try to create an executable without -o first, disregard a.out.
4166# It will help us diagnose broken compilers, and finding out an intuition
4167# of exeext.
81ecdfbb
RW
4168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4169$as_echo_n "checking for C compiler default output file name... " >&6; }
4170ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4171
4172# The possible output files:
4173ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4174
4175ac_rmfiles=
4176for ac_file in $ac_files
4177do
4178 case $ac_file in
4179 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4180 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4181 esac
4182done
4183rm -f $ac_rmfiles
4184
4185if { { ac_try="$ac_link_default"
4186case "(($ac_try" in
4187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4189esac
4190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4191$as_echo "$ac_try_echo"; } >&5
4192 (eval "$ac_link_default") 2>&5
c6b750e1 4193 ac_status=$?
81ecdfbb
RW
4194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4195 test $ac_status = 0; }; then :
4196 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4197# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4198# in a Makefile. We should not override ac_cv_exeext if it was cached,
4199# so that the user can short-circuit this test for compilers unknown to
4200# Autoconf.
4201for ac_file in $ac_files ''
c6b750e1
DJ
4202do
4203 test -f "$ac_file" || continue
4204 case $ac_file in
81ecdfbb 4205 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4206 ;;
4207 [ab].out )
4208 # We found the default executable, but exeext='' is most
4209 # certainly right.
4210 break;;
4211 *.* )
81ecdfbb
RW
4212 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4213 then :; else
4214 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4215 fi
4216 # We set ac_cv_exeext here because the later test for it is not
4217 # safe: cross compilers may not add the suffix if given an `-o'
4218 # argument, so we may need to know it at that point already.
4219 # Even if this section looks crufty: it has the advantage of
4220 # actually working.
c6b750e1
DJ
4221 break;;
4222 * )
4223 break;;
4224 esac
4225done
81ecdfbb
RW
4226test "$ac_cv_exeext" = no && ac_cv_exeext=
4227
c6b750e1 4228else
81ecdfbb
RW
4229 ac_file=''
4230fi
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4232$as_echo "$ac_file" >&6; }
4233if test -z "$ac_file"; then :
4234 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4235sed 's/^/| /' conftest.$ac_ext >&5
4236
81ecdfbb
RW
4237{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4238$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4239{ as_fn_set_status 77
4240as_fn_error "C compiler cannot create executables
4241See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4242fi
c6b750e1 4243ac_exeext=$ac_cv_exeext
c6b750e1 4244
81ecdfbb 4245# Check that the compiler produces executables we can run. If not, either
c6b750e1 4246# the compiler is broken, or we cross compile.
81ecdfbb
RW
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4248$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4249# If not cross compiling, check that we can run a simple program.
4250if test "$cross_compiling" != yes; then
4251 if { ac_try='./$ac_file'
81ecdfbb
RW
4252 { { case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4255esac
4256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4257$as_echo "$ac_try_echo"; } >&5
4258 (eval "$ac_try") 2>&5
c6b750e1 4259 ac_status=$?
81ecdfbb
RW
4260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4261 test $ac_status = 0; }; }; then
c6b750e1
DJ
4262 cross_compiling=no
4263 else
4264 if test "$cross_compiling" = maybe; then
4265 cross_compiling=yes
4266 else
81ecdfbb
RW
4267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4268$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4269as_fn_error "cannot run C compiled programs.
c6b750e1 4270If you meant to cross compile, use \`--host'.
81ecdfbb 4271See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4272 fi
4273 fi
4274fi
81ecdfbb
RW
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4276$as_echo "yes" >&6; }
c6b750e1 4277
81ecdfbb 4278rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4279ac_clean_files=$ac_clean_files_save
81ecdfbb 4280# Check that the compiler produces executables we can run. If not, either
c6b750e1 4281# the compiler is broken, or we cross compile.
81ecdfbb
RW
4282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4283$as_echo_n "checking whether we are cross compiling... " >&6; }
4284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4285$as_echo "$cross_compiling" >&6; }
4286
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4288$as_echo_n "checking for suffix of executables... " >&6; }
4289if { { ac_try="$ac_link"
4290case "(($ac_try" in
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4293esac
4294eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295$as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_link") 2>&5
c6b750e1 4297 ac_status=$?
81ecdfbb
RW
4298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4299 test $ac_status = 0; }; then :
c6b750e1
DJ
4300 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4301# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4302# work properly (i.e., refer to `conftest.exe'), while it won't with
4303# `rm'.
4304for ac_file in conftest.exe conftest conftest.*; do
4305 test -f "$ac_file" || continue
4306 case $ac_file in
81ecdfbb 4307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4309 break;;
4310 * ) break;;
4311 esac
4312done
4313else
81ecdfbb
RW
4314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316as_fn_error "cannot compute suffix of executables: cannot compile and link
4317See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4318fi
c6b750e1 4319rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4321$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4322
4323rm -f conftest.$ac_ext
4324EXEEXT=$ac_cv_exeext
4325ac_exeext=$EXEEXT
81ecdfbb
RW
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4327$as_echo_n "checking for suffix of object files... " >&6; }
4328if test "${ac_cv_objext+set}" = set; then :
4329 $as_echo_n "(cached) " >&6
c6b750e1 4330else
81ecdfbb 4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4332/* end confdefs.h. */
4333
4334int
4335main ()
4336{
4337
4338 ;
4339 return 0;
4340}
4341_ACEOF
4342rm -f conftest.o conftest.obj
81ecdfbb
RW
4343if { { ac_try="$ac_compile"
4344case "(($ac_try" in
4345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346 *) ac_try_echo=$ac_try;;
4347esac
4348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349$as_echo "$ac_try_echo"; } >&5
4350 (eval "$ac_compile") 2>&5
c6b750e1 4351 ac_status=$?
81ecdfbb
RW
4352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353 test $ac_status = 0; }; then :
4354 for ac_file in conftest.o conftest.obj conftest.*; do
4355 test -f "$ac_file" || continue;
c6b750e1 4356 case $ac_file in
81ecdfbb 4357 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4358 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4359 break;;
4360 esac
4361done
cac3d6c4 4362else
81ecdfbb 4363 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4364sed 's/^/| /' conftest.$ac_ext >&5
4365
81ecdfbb
RW
4366{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4368as_fn_error "cannot compute suffix of object files: cannot compile
4369See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4370fi
c6b750e1
DJ
4371rm -f conftest.$ac_cv_objext conftest.$ac_ext
4372fi
81ecdfbb
RW
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4374$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4375OBJEXT=$ac_cv_objext
4376ac_objext=$OBJEXT
81ecdfbb
RW
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4378$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4379if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4380 $as_echo_n "(cached) " >&6
c6b750e1 4381else
81ecdfbb 4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4383/* end confdefs.h. */
4384
4385int
4386main ()
4387{
4388#ifndef __GNUC__
4389 choke me
4390#endif
4391
4392 ;
4393 return 0;
4394}
4395_ACEOF
81ecdfbb 4396if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4397 ac_compiler_gnu=yes
4398else
81ecdfbb 4399 ac_compiler_gnu=no
c6b750e1 4400fi
81ecdfbb 4401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4402ac_cv_c_compiler_gnu=$ac_compiler_gnu
4403
4404fi
81ecdfbb
RW
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4406$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4407if test $ac_compiler_gnu = yes; then
4408 GCC=yes
4409else
4410 GCC=
4411fi
c6b750e1
DJ
4412ac_test_CFLAGS=${CFLAGS+set}
4413ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4415$as_echo_n "checking whether $CC accepts -g... " >&6; }
4416if test "${ac_cv_prog_cc_g+set}" = set; then :
4417 $as_echo_n "(cached) " >&6
4418else
4419 ac_save_c_werror_flag=$ac_c_werror_flag
4420 ac_c_werror_flag=yes
4421 ac_cv_prog_cc_g=no
4422 CFLAGS="-g"
4423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4424/* end confdefs.h. */
4425
4426int
4427main ()
4428{
4429
4430 ;
4431 return 0;
4432}
4433_ACEOF
81ecdfbb 4434if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4435 ac_cv_prog_cc_g=yes
4436else
81ecdfbb
RW
4437 CFLAGS=""
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h. */
4440
4441int
4442main ()
4443{
4444
4445 ;
4446 return 0;
4447}
4448_ACEOF
4449if ac_fn_c_try_compile "$LINENO"; then :
4450
4451else
4452 ac_c_werror_flag=$ac_save_c_werror_flag
4453 CFLAGS="-g"
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455/* end confdefs.h. */
cac3d6c4 4456
81ecdfbb
RW
4457int
4458main ()
4459{
4460
4461 ;
4462 return 0;
4463}
4464_ACEOF
4465if ac_fn_c_try_compile "$LINENO"; then :
4466 ac_cv_prog_cc_g=yes
4467fi
4468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4469fi
81ecdfbb 4470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4471fi
81ecdfbb
RW
4472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4473 ac_c_werror_flag=$ac_save_c_werror_flag
4474fi
4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4476$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4477if test "$ac_test_CFLAGS" = set; then
c6b750e1 4478 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4479elif test $ac_cv_prog_cc_g = yes; then
4480 if test "$GCC" = yes; then
4481 CFLAGS="-g -O2"
4482 else
4483 CFLAGS="-g"
4484 fi
4485else
4486 if test "$GCC" = yes; then
4487 CFLAGS="-O2"
4488 else
4489 CFLAGS=
4490 fi
4491fi
81ecdfbb
RW
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4493$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4494if test "${ac_cv_prog_cc_c89+set}" = set; then :
4495 $as_echo_n "(cached) " >&6
c6b750e1 4496else
81ecdfbb 4497 ac_cv_prog_cc_c89=no
c6b750e1 4498ac_save_CC=$CC
81ecdfbb 4499cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4500/* end confdefs.h. */
4501#include <stdarg.h>
4502#include <stdio.h>
4503#include <sys/types.h>
4504#include <sys/stat.h>
4505/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4506struct buf { int x; };
4507FILE * (*rcsopen) (struct buf *, struct stat *, int);
4508static char *e (p, i)
4509 char **p;
4510 int i;
4511{
4512 return p[i];
4513}
4514static char *f (char * (*g) (char **, int), char **p, ...)
4515{
4516 char *s;
4517 va_list v;
4518 va_start (v,p);
4519 s = g (p, va_arg (v,int));
4520 va_end (v);
4521 return s;
4522}
4523
4524/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4525 function prototypes and stuff, but not '\xHH' hex character constants.
4526 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4527 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4528 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4529 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4530 that's true only with -std. */
c6b750e1
DJ
4531int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4532
81ecdfbb
RW
4533/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4534 inside strings and character constants. */
4535#define FOO(x) 'x'
4536int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4537
c6b750e1
DJ
4538int test (int i, double x);
4539struct s1 {int (*f) (int a);};
4540struct s2 {int (*f) (double a);};
4541int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4542int argc;
4543char **argv;
4544int
4545main ()
4546{
4547return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4548 ;
4549 return 0;
4550}
4551_ACEOF
81ecdfbb
RW
4552for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4553 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4554do
4555 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4556 if ac_fn_c_try_compile "$LINENO"; then :
4557 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4558fi
81ecdfbb
RW
4559rm -f core conftest.err conftest.$ac_objext
4560 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4561done
81ecdfbb 4562rm -f conftest.$ac_ext
c6b750e1
DJ
4563CC=$ac_save_CC
4564
4565fi
81ecdfbb
RW
4566# AC_CACHE_VAL
4567case "x$ac_cv_prog_cc_c89" in
4568 x)
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4570$as_echo "none needed" >&6; } ;;
4571 xno)
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4573$as_echo "unsupported" >&6; } ;;
c6b750e1 4574 *)
81ecdfbb
RW
4575 CC="$CC $ac_cv_prog_cc_c89"
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4577$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4578esac
81ecdfbb 4579if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4580
c6b750e1
DJ
4581fi
4582
c6b750e1
DJ
4583ac_ext=c
4584ac_cpp='$CPP $CPPFLAGS'
4585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4588
81ecdfbb 4589ac_ext=cpp
18f6b6ee
PB
4590ac_cpp='$CXXCPP $CPPFLAGS'
4591ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4594if test -z "$CXX"; then
4595 if test -n "$CCC"; then
4596 CXX=$CCC
4597 else
4598 if test -n "$ac_tool_prefix"; then
4599 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4600 do
4601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4602set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604$as_echo_n "checking for $ac_word... " >&6; }
4605if test "${ac_cv_prog_CXX+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4607else
4608 if test -n "$CXX"; then
4609 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4610else
4611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612for as_dir in $PATH
4613do
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4618 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4620 break 2
4621 fi
4622done
81ecdfbb
RW
4623 done
4624IFS=$as_save_IFS
512b7dfb 4625
18f6b6ee
PB
4626fi
4627fi
4628CXX=$ac_cv_prog_CXX
4629if test -n "$CXX"; then
81ecdfbb
RW
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4631$as_echo "$CXX" >&6; }
18f6b6ee 4632else
81ecdfbb
RW
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634$as_echo "no" >&6; }
18f6b6ee
PB
4635fi
4636
81ecdfbb 4637
18f6b6ee
PB
4638 test -n "$CXX" && break
4639 done
4640fi
4641if test -z "$CXX"; then
4642 ac_ct_CXX=$CXX
81ecdfbb 4643 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4644do
4645 # Extract the first word of "$ac_prog", so it can be a program name with args.
4646set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4648$as_echo_n "checking for $ac_word... " >&6; }
4649if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4650 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4651else
4652 if test -n "$ac_ct_CXX"; then
4653 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4654else
4655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656for as_dir in $PATH
4657do
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4662 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4664 break 2
512b7dfb 4665 fi
18f6b6ee 4666done
81ecdfbb
RW
4667 done
4668IFS=$as_save_IFS
512b7dfb 4669
18f6b6ee
PB
4670fi
4671fi
4672ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4673if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4675$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4676else
81ecdfbb
RW
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678$as_echo "no" >&6; }
18f6b6ee
PB
4679fi
4680
81ecdfbb 4681
18f6b6ee
PB
4682 test -n "$ac_ct_CXX" && break
4683done
18f6b6ee 4684
81ecdfbb
RW
4685 if test "x$ac_ct_CXX" = x; then
4686 CXX="g++"
4687 else
4688 case $cross_compiling:$ac_tool_warned in
4689yes:)
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4692ac_tool_warned=yes ;;
4693esac
4694 CXX=$ac_ct_CXX
4695 fi
18f6b6ee
PB
4696fi
4697
81ecdfbb
RW
4698 fi
4699fi
18f6b6ee 4700# Provide some information about the compiler.
81ecdfbb
RW
4701$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4702set X $ac_compile
4703ac_compiler=$2
4704for ac_option in --version -v -V -qversion; do
4705 { { ac_try="$ac_compiler $ac_option >&5"
4706case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709esac
4710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711$as_echo "$ac_try_echo"; } >&5
4712 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4713 ac_status=$?
81ecdfbb
RW
4714 if test -s conftest.err; then
4715 sed '10a\
4716... rest of stderr output deleted ...
4717 10q' conftest.err >conftest.er1
4718 cat conftest.er1 >&5
4719 rm -f conftest.er1 conftest.err
4720 fi
4721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4722 test $ac_status = 0; }
4723done
18f6b6ee 4724
81ecdfbb
RW
4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4726$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4727if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4728 $as_echo_n "(cached) " >&6
18f6b6ee 4729else
81ecdfbb 4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4731/* end confdefs.h. */
4732
4733int
4734main ()
4735{
4736#ifndef __GNUC__
4737 choke me
4738#endif
4739
4740 ;
4741 return 0;
4742}
4743_ACEOF
81ecdfbb 4744if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4745 ac_compiler_gnu=yes
4746else
81ecdfbb 4747 ac_compiler_gnu=no
18f6b6ee 4748fi
81ecdfbb 4749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4750ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4751
4752fi
81ecdfbb
RW
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4754$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4755if test $ac_compiler_gnu = yes; then
4756 GXX=yes
4757else
4758 GXX=
4759fi
18f6b6ee
PB
4760ac_test_CXXFLAGS=${CXXFLAGS+set}
4761ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4763$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4764if test "${ac_cv_prog_cxx_g+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
4766else
4767 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4768 ac_cxx_werror_flag=yes
4769 ac_cv_prog_cxx_g=no
4770 CXXFLAGS="-g"
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4772/* end confdefs.h. */
4773
4774int
4775main ()
4776{
4777
4778 ;
4779 return 0;
4780}
4781_ACEOF
81ecdfbb 4782if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4783 ac_cv_prog_cxx_g=yes
4784else
81ecdfbb
RW
4785 CXXFLAGS=""
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4787/* end confdefs.h. */
81ecdfbb 4788
18f6b6ee
PB
4789int
4790main ()
4791{
81ecdfbb 4792
18f6b6ee
PB
4793 ;
4794 return 0;
4795}
4796_ACEOF
81ecdfbb 4797if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4798
81ecdfbb
RW
4799else
4800 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4801 CXXFLAGS="-g"
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4803/* end confdefs.h. */
81ecdfbb 4804
18f6b6ee
PB
4805int
4806main ()
4807{
81ecdfbb 4808
18f6b6ee
PB
4809 ;
4810 return 0;
4811}
4812_ACEOF
81ecdfbb
RW
4813if ac_fn_cxx_try_compile "$LINENO"; then :
4814 ac_cv_prog_cxx_g=yes
18f6b6ee 4815fi
81ecdfbb
RW
4816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4817fi
4818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819fi
4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4821 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4822fi
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4824$as_echo "$ac_cv_prog_cxx_g" >&6; }
4825if test "$ac_test_CXXFLAGS" = set; then
4826 CXXFLAGS=$ac_save_CXXFLAGS
4827elif test $ac_cv_prog_cxx_g = yes; then
4828 if test "$GXX" = yes; then
4829 CXXFLAGS="-g -O2"
4830 else
4831 CXXFLAGS="-g"
4832 fi
4833else
4834 if test "$GXX" = yes; then
4835 CXXFLAGS="-O2"
4836 else
4837 CXXFLAGS=
4838 fi
18f6b6ee 4839fi
18f6b6ee
PB
4840ac_ext=c
4841ac_cpp='$CPP $CPPFLAGS'
4842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4844ac_compiler_gnu=$ac_cv_c_compiler_gnu
4845
4846
4847# We must set the default linker to the linker used by gcc for the correct
4848# operation of libtool. If LD is not defined and we are using gcc, try to
4849# set the LD default to the ld used by gcc.
4850if test -z "$LD"; then
4851 if test "$GCC" = yes; then
4852 case $build in
4853 *-*-mingw*)
4854 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4855 *)
4856 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4857 esac
4858 case $gcc_prog_ld in
4859 # Accept absolute paths.
4860 [\\/]* | [A-Za-z]:[\\/]*)
4861 LD="$gcc_prog_ld" ;;
4862 esac
4863 fi
512b7dfb
PB
4864fi
4865
4866
4867
4868
c6b750e1 4869if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4870 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4871set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873$as_echo_n "checking for $ac_word... " >&6; }
4874if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4875 $as_echo_n "(cached) " >&6
9e07f89d 4876else
512b7dfb
PB
4877 if test -n "$GNATBIND"; then
4878 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4879else
c6b750e1
DJ
4880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4887 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4889 break 2
4890 fi
4891done
81ecdfbb
RW
4892 done
4893IFS=$as_save_IFS
c6b750e1 4894
9e07f89d
NN
4895fi
4896fi
512b7dfb
PB
4897GNATBIND=$ac_cv_prog_GNATBIND
4898if test -n "$GNATBIND"; then
81ecdfbb
RW
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4900$as_echo "$GNATBIND" >&6; }
9e07f89d 4901else
81ecdfbb
RW
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903$as_echo "no" >&6; }
9e07f89d
NN
4904fi
4905
81ecdfbb 4906
c6b750e1 4907fi
512b7dfb
PB
4908if test -z "$ac_cv_prog_GNATBIND"; then
4909 ac_ct_GNATBIND=$GNATBIND
4910 # Extract the first word of "gnatbind", so it can be a program name with args.
4911set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913$as_echo_n "checking for $ac_word... " >&6; }
4914if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
9e07f89d 4916else
512b7dfb
PB
4917 if test -n "$ac_ct_GNATBIND"; then
4918 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4919else
c6b750e1
DJ
4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921for as_dir in $PATH
4922do
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4927 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4929 break 2
4930 fi
4931done
81ecdfbb
RW
4932 done
4933IFS=$as_save_IFS
c6b750e1 4934
9e07f89d
NN
4935fi
4936fi
512b7dfb
PB
4937ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4938if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4940$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4941else
81ecdfbb
RW
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943$as_echo "no" >&6; }
9e07f89d
NN
4944fi
4945
81ecdfbb
RW
4946 if test "x$ac_ct_GNATBIND" = x; then
4947 GNATBIND="no"
4948 else
4949 case $cross_compiling:$ac_tool_warned in
4950yes:)
4951{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4952$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4953ac_tool_warned=yes ;;
4954esac
4955 GNATBIND=$ac_ct_GNATBIND
4956 fi
24ff9987 4957else
512b7dfb 4958 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4959fi
4960
7df2cd5d 4961if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4962 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4963set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965$as_echo_n "checking for $ac_word... " >&6; }
4966if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4967 $as_echo_n "(cached) " >&6
7df2cd5d 4968else
512b7dfb
PB
4969 if test -n "$GNATMAKE"; then
4970 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4971else
4972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973for as_dir in $PATH
4974do
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4979 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4981 break 2
4982 fi
4983done
81ecdfbb
RW
4984 done
4985IFS=$as_save_IFS
7df2cd5d
PB
4986
4987fi
4988fi
512b7dfb
PB
4989GNATMAKE=$ac_cv_prog_GNATMAKE
4990if test -n "$GNATMAKE"; then
81ecdfbb
RW
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4992$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4993else
81ecdfbb
RW
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4995$as_echo "no" >&6; }
7df2cd5d
PB
4996fi
4997
81ecdfbb 4998
7df2cd5d 4999fi
512b7dfb
PB
5000if test -z "$ac_cv_prog_GNATMAKE"; then
5001 ac_ct_GNATMAKE=$GNATMAKE
5002 # Extract the first word of "gnatmake", so it can be a program name with args.
5003set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5005$as_echo_n "checking for $ac_word... " >&6; }
5006if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5007 $as_echo_n "(cached) " >&6
7df2cd5d 5008else
512b7dfb
PB
5009 if test -n "$ac_ct_GNATMAKE"; then
5010 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5011else
5012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013for as_dir in $PATH
5014do
5015 IFS=$as_save_IFS
5016 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5017 for ac_exec_ext in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5019 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5021 break 2
5022 fi
5023done
81ecdfbb
RW
5024 done
5025IFS=$as_save_IFS
7df2cd5d 5026
7df2cd5d
PB
5027fi
5028fi
512b7dfb
PB
5029ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5030if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5032$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5033else
81ecdfbb
RW
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5035$as_echo "no" >&6; }
7df2cd5d
PB
5036fi
5037
81ecdfbb
RW
5038 if test "x$ac_ct_GNATMAKE" = x; then
5039 GNATMAKE="no"
5040 else
5041 case $cross_compiling:$ac_tool_warned in
5042yes:)
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5045ac_tool_warned=yes ;;
5046esac
5047 GNATMAKE=$ac_ct_GNATMAKE
5048 fi
7df2cd5d 5049else
512b7dfb 5050 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5051fi
5052
81ecdfbb
RW
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5054$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5055if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5056 $as_echo_n "(cached) " >&6
9e07f89d
NN
5057else
5058 cat >conftest.adb <<EOF
5059procedure conftest is begin null; end conftest;
5060EOF
5061acx_cv_cc_gcc_supports_ada=no
5062# There is a bug in old released versions of GCC which causes the
5063# driver to exit successfully when the appropriate language module
5064# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5065# Therefore we must check for the error message as well as an
5066# unsuccessful exit.
b8908782
DD
5067# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5068# given a .adb file, but produce no object file. So we must check
5069# if an object file was really produced to guard against this.
9e07f89d 5070errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5071if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5072 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5073fi
5074rm -f conftest.*
5075fi
81ecdfbb
RW
5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5077$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5078
512b7dfb 5079if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5080 have_gnat=yes
5081else
5082 have_gnat=no
5083fi
5084
81ecdfbb
RW
5085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5086$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5087if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5088 $as_echo_n "(cached) " >&6
b8908782
DD
5089else
5090 echo abfoo >t1
5091 echo cdfoo >t2
5092 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5093 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5094 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5095 :
5096 else
5097 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5098 fi
5099 fi
b8908782
DD
5100 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5101 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5102 :
b8908782
DD
5103 else
5104 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5105 fi
5106 fi
5107 rm t1 t2
5108
5109fi
81ecdfbb
RW
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5111$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5112do_compare="$gcc_cv_prog_cmp_skip"
5113
5114
9e07f89d 5115
e8a5fa9c 5116# See if we are building gcc with C++.
81ecdfbb
RW
5117# Check whether --enable-build-with-cxx was given.
5118if test "${enable_build_with_cxx+set}" = set; then :
5119 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5120else
5121 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5122fi
5123
e8a5fa9c 5124
d5f2ee2e
KG
5125# Used for setting $lt_cv_objdir
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5127$as_echo_n "checking for objdir... " >&6; }
5128if test "${lt_cv_objdir+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130else
5131 rm -f .libs 2>/dev/null
5132mkdir .libs 2>/dev/null
5133if test -d .libs; then
5134 lt_cv_objdir=.libs
5135else
5136 # MS-DOS does not allow filenames that begin with a dot.
5137 lt_cv_objdir=_libs
5138fi
5139rmdir .libs 2>/dev/null
5140fi
5141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5142$as_echo "$lt_cv_objdir" >&6; }
5143objdir=$lt_cv_objdir
5144
5145
5146
5147
5148
5149cat >>confdefs.h <<_ACEOF
5150#define LT_OBJDIR "$lt_cv_objdir/"
5151_ACEOF
5152
5153
5154
e8a5fa9c 5155# Check for GMP, MPFR and MPC
d9b76ff9 5156gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5157gmpinc=
4b900473 5158have_gmp=no
e8a5fa9c
RW
5159
5160# Specify a location for mpc
5161# check for this first so it ends up on the link line before mpfr.
5162
81ecdfbb
RW
5163# Check whether --with-mpc was given.
5164if test "${with_mpc+set}" = set; then :
5165 withval=$with_mpc;
5166fi
e8a5fa9c 5167
e8a5fa9c 5168
e552509b 5169# Check whether --with-mpc-include was given.
81ecdfbb
RW
5170if test "${with_mpc_include+set}" = set; then :
5171 withval=$with_mpc_include;
5172fi
e8a5fa9c 5173
e8a5fa9c 5174
e552509b 5175# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5176if test "${with_mpc_lib+set}" = set; then :
5177 withval=$with_mpc_lib;
5178fi
e8a5fa9c 5179
e8a5fa9c
RW
5180
5181if test "x$with_mpc" != x; then
d9b76ff9
KG
5182 gmplibs="-L$with_mpc/lib $gmplibs"
5183 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5184fi
5185if test "x$with_mpc_include" != x; then
d9b76ff9 5186 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5187fi
5188if test "x$with_mpc_lib" != x; then
d9b76ff9 5189 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5190fi
5191if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5192 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5193 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5194 # Do not test the mpc version. Assume that it is sufficient, since
5195 # it is in the source tree, and the library has not been built yet
5196 # but it would be included on the link line in the version check below
5197 # hence making the test fail.
d9b76ff9 5198 have_gmp=yes
e8a5fa9c 5199fi
4b900473 5200
11b04d1f
DD
5201# Specify a location for mpfr
5202# check for this first so it ends up on the link line before gmp.
c6b750e1 5203
81ecdfbb
RW
5204# Check whether --with-mpfr-dir was given.
5205if test "${with_mpfr_dir+set}" = set; then :
5206 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5207Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5208fi
5209
11b04d1f
DD
5210
5211
81ecdfbb
RW
5212# Check whether --with-mpfr was given.
5213if test "${with_mpfr+set}" = set; then :
5214 withval=$with_mpfr;
5215fi
c6b750e1 5216
11b04d1f 5217
e552509b 5218# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5219if test "${with_mpfr_include+set}" = set; then :
5220 withval=$with_mpfr_include;
5221fi
c6b750e1 5222
8a0d8a5c 5223
e552509b 5224# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5225if test "${with_mpfr_lib+set}" = set; then :
5226 withval=$with_mpfr_lib;
5227fi
8a0d8a5c 5228
11b04d1f
DD
5229
5230if test "x$with_mpfr" != x; then
5231 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5232 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5233fi
8a0d8a5c 5234if test "x$with_mpfr_include" != x; then
d9b76ff9 5235 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5236fi
5237if test "x$with_mpfr_lib" != x; then
5238 gmplibs="-L$with_mpfr_lib $gmplibs"
5239fi
4b900473 5240if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5241 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5242 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5243 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5244 # Do not test the mpfr version. Assume that it is sufficient, since
5245 # it is in the source tree, and the library has not been built yet
5246 # but it would be included on the link line in the version check below
5247 # hence making the test fail.
5248 have_gmp=yes
5249fi
11b04d1f 5250
4b1cb4fe 5251# Specify a location for gmp
c6b750e1 5252
81ecdfbb
RW
5253# Check whether --with-gmp-dir was given.
5254if test "${with_gmp_dir+set}" = set; then :
5255 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5256Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5257fi
5258
4b1cb4fe
DD
5259
5260
81ecdfbb
RW
5261# Check whether --with-gmp was given.
5262if test "${with_gmp+set}" = set; then :
5263 withval=$with_gmp;
5264fi
c6b750e1 5265
4b1cb4fe 5266
e552509b 5267# Check whether --with-gmp-include was given.
81ecdfbb
RW
5268if test "${with_gmp_include+set}" = set; then :
5269 withval=$with_gmp_include;
5270fi
c6b750e1 5271
8a0d8a5c 5272
e552509b 5273# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5274if test "${with_gmp_lib+set}" = set; then :
5275 withval=$with_gmp_lib;
5276fi
8a0d8a5c
PB
5277
5278
4b1cb4fe 5279
11b04d1f
DD
5280if test "x$with_gmp" != x; then
5281 gmplibs="-L$with_gmp/lib $gmplibs"
5282 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5283fi
8a0d8a5c
PB
5284if test "x$with_gmp_include" != x; then
5285 gmpinc="-I$with_gmp_include $gmpinc"
5286fi
5287if test "x$with_gmp_lib" != x; then
5288 gmplibs="-L$with_gmp_lib $gmplibs"
5289fi
4b900473 5290if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5291 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5292 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5293 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5294 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5295 # Do not test the gmp version. Assume that it is sufficient, since
5296 # it is in the source tree, and the library has not been built yet
5297 # but it would be included on the link line in the version check below
5298 # hence making the test fail.
5299 have_gmp=yes
5300fi
4b1cb4fe 5301
ceb92e78 5302if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5303 have_gmp=yes
5304 saved_CFLAGS="$CFLAGS"
5305 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5306 # Check for the recommended and required versions of GMP.
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5308$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5309
5310cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5311/* end confdefs.h. */
5312#include "gmp.h"
5313int
5314main ()
5315{
5316
5317 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5318 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5319 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5320 choke me
5321 #endif
5322
5323 ;
5324 return 0;
5325}
5326_ACEOF
5327if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5329/* end confdefs.h. */
a6b5846e 5330#include <gmp.h>
c6b750e1
DJ
5331int
5332main ()
5333{
4b1cb4fe 5334
a6b5846e
KG
5335 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5336 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5337 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5338 choke me
5339 #endif
c6b750e1
DJ
5340
5341 ;
5342 return 0;
5343}
5344_ACEOF
81ecdfbb
RW
5345if ac_fn_c_try_compile "$LINENO"; then :
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5347$as_echo "yes" >&6; }
a6b5846e
KG
5348else
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5350$as_echo "buggy but acceptable" >&6; }
5351fi
5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5353else
81ecdfbb
RW
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5356fi
81ecdfbb 5357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5358
e8a5fa9c 5359 # If we have GMP, check the MPFR version.
4b900473 5360 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5361 # Check for the recommended and required versions of MPFR.
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5363$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5365/* end confdefs.h. */
9b134994 5366#include <gmp.h>
4b900473 5367 #include <mpfr.h>
c6b750e1
DJ
5368int
5369main ()
5370{
9b134994 5371
ef699244 5372 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5373 choke me
5374 #endif
c6b750e1
DJ
5375
5376 ;
5377 return 0;
5378}
5379_ACEOF
81ecdfbb
RW
5380if ac_fn_c_try_compile "$LINENO"; then :
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5382/* end confdefs.h. */
4b1cb4fe 5383#include <gmp.h>
4b900473 5384 #include <mpfr.h>
c6b750e1
DJ
5385int
5386main ()
5387{
9dbaa842 5388
a6b5846e 5389 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5390 choke me
5391 #endif
e8a5fa9c
RW
5392
5393 ;
5394 return 0;
5395}
5396_ACEOF
81ecdfbb
RW
5397if ac_fn_c_try_compile "$LINENO"; then :
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5399$as_echo "yes" >&6; }
e8a5fa9c 5400else
81ecdfbb
RW
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5402$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5403fi
81ecdfbb 5404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5405else
81ecdfbb
RW
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5408fi
81ecdfbb 5409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5410 fi
5411
5412 # Check for the MPC header version.
d9b76ff9 5413 if test x"$have_gmp" = xyes ; then
a6b5846e 5414 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5416$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5418/* end confdefs.h. */
5419#include <mpc.h>
5420int
5421main ()
5422{
5423
a6b5846e
KG
5424 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5425 choke me
5426 #endif
5427
5428 ;
5429 return 0;
5430}
5431_ACEOF
5432if ac_fn_c_try_compile "$LINENO"; then :
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434/* end confdefs.h. */
5435#include <mpc.h>
5436int
5437main ()
5438{
5439
5440 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5441 choke me
5442 #endif
5443
5444 ;
5445 return 0;
5446}
5447_ACEOF
81ecdfbb
RW
5448if ac_fn_c_try_compile "$LINENO"; then :
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5450$as_echo "yes" >&6; }
a6b5846e
KG
5451else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5453$as_echo "buggy but acceptable" >&6; }
5454fi
5455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5456else
81ecdfbb 5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5458$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5459fi
81ecdfbb 5460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5461 fi
5462
5463 # Now check the MPFR library.
5464 if test x"$have_gmp" = xyes; then
5465 saved_LIBS="$LIBS"
5466 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5468$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5470/* end confdefs.h. */
d9b76ff9 5471#include <mpc.h>
e8a5fa9c
RW
5472int
5473main ()
5474{
5475
5476 mpfr_t n;
5477 mpfr_t x;
d9b76ff9 5478 mpc_t c;
e8a5fa9c
RW
5479 int t;
5480 mpfr_init (n);
5481 mpfr_init (x);
5482 mpfr_atan2 (n, n, x, GMP_RNDN);
5483 mpfr_erfc (n, x, GMP_RNDN);
5484 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5485 mpfr_clear(n);
5486 mpfr_clear(x);
5487 mpc_init2 (c, 53);
5488 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5489 mpc_cosh (c, c, MPC_RNDNN);
5490 mpc_pow (c, c, c, MPC_RNDNN);
5491 mpc_acosh (c, c, MPC_RNDNN);
5492 mpc_clear (c);
c6b750e1
DJ
5493
5494 ;
5495 return 0;
5496}
5497_ACEOF
81ecdfbb
RW
5498if ac_fn_c_try_link "$LINENO"; then :
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5500$as_echo "yes" >&6; }
c6b750e1 5501else
81ecdfbb
RW
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5504fi
81ecdfbb
RW
5505rm -f core conftest.err conftest.$ac_objext \
5506 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5507 LIBS="$saved_LIBS"
5508 fi
5509
4b900473 5510 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5511
a6b5846e
KG
5512# The library versions listed in the error message below should match
5513# the HARD-minimums enforced above.
4b900473 5514 if test x$have_gmp != xyes; then
a6b5846e 5515 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5516Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5517their locations. Source code for these libraries can be found at
5518their respective hosting sites as well as at
5519ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5520http://gcc.gnu.org/install/prerequisites.html for additional info. If
5521you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5522make sure that you have installed both the libraries and the header
5523files. They may be located in separate packages." "$LINENO" 5
4b900473 5524 fi
9dbaa842
DD
5525fi
5526
e8a5fa9c
RW
5527# Flags needed for both GMP, MPFR and/or MPC.
5528
5529
5530
4b1cb4fe
DD
5531
5532
5533
29383458
JM
5534# Allow host libstdc++ to be specified for static linking with PPL.
5535
81ecdfbb
RW
5536# Check whether --with-host-libstdcxx was given.
5537if test "${with_host_libstdcxx+set}" = set; then :
5538 withval=$with_host_libstdcxx;
5539fi
29383458 5540
29383458
JM
5541
5542case $with_host_libstdcxx in
5543 no|yes)
81ecdfbb 5544 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5545 ;;
5546esac
e28c595f 5547
e8a5fa9c
RW
5548# Linker flags to use for stage1 or when not boostrapping.
5549
81ecdfbb
RW
5550# Check whether --with-stage1-ldflags was given.
5551if test "${with_stage1_ldflags+set}" = set; then :
5552 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5553 stage1_ldflags=
5554 else
5555 stage1_ldflags=$withval
5556 fi
5557else
5558 stage1_ldflags=
81ecdfbb
RW
5559fi
5560
e8a5fa9c
RW
5561
5562
5563# Libraries to use for stage1 or when not bootstrapping.
5564
81ecdfbb
RW
5565# Check whether --with-stage1-libs was given.
5566if test "${with_stage1_libs+set}" = set; then :
5567 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5568 stage1_libs=
5569 else
5570 stage1_libs=$withval
5571 fi
5572else
5573 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5574fi
5575
e8a5fa9c
RW
5576
5577
e8a5fa9c
RW
5578# Libraries to use for stage2 and later builds. This defaults to the
5579# argument passed to --with-host-libstdcxx.
5580
81ecdfbb
RW
5581# Check whether --with-boot-libs was given.
5582if test "${with_boot_libs+set}" = set; then :
5583 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5584 poststage1_libs=
5585 else
5586 poststage1_libs=$withval
5587 fi
5588else
5589 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5590fi
5591
e8a5fa9c
RW
5592
5593
143754cd
NC
5594# Linker flags to use for stage2 and later builds.
5595
5596# Check whether --with-boot-ldflags was given.
5597if test "${with_boot_ldflags+set}" = set; then :
5598 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5599 poststage1_ldflags=
5600 else
5601 poststage1_ldflags=$withval
5602 fi
5603else
5604 poststage1_ldflags=
5605 # With --enable-build-with-cxx, default to linking libstdc++ and
5606 # libgcc statically. But if the user explicitly specified the
5607 # libraries to use, trust that they are doing what they want.
5608 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5609 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5610 fi
5611fi
5612
5613
5614
e28c595f 5615# Check for PPL
e8a5fa9c 5616ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5617pplinc=
5618
5619
81ecdfbb
RW
5620# Check whether --with-ppl was given.
5621if test "${with_ppl+set}" = set; then :
5622 withval=$with_ppl;
81ecdfbb 5623fi
e28c595f 5624
e28c595f 5625
e552509b 5626# Check whether --with-ppl-include was given.
81ecdfbb
RW
5627if test "${with_ppl_include+set}" = set; then :
5628 withval=$with_ppl_include;
5629fi
5630
e28c595f 5631
e552509b 5632# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5633if test "${with_ppl_lib+set}" = set; then :
5634 withval=$with_ppl_lib;
5635fi
e28c595f 5636
e28c595f 5637
29383458
JM
5638case $with_ppl in
5639 no)
5640 ppllibs=
5641 ;;
1f53ca9a
AO
5642 "" | yes)
5643 ;;
29383458 5644 *)
e8a5fa9c 5645 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458 5646 pplinc="-I$with_ppl/include $pplinc"
29383458
JM
5647 ;;
5648esac
e28c595f
JM
5649if test "x$with_ppl_include" != x; then
5650 pplinc="-I$with_ppl_include $pplinc"
5651fi
5652if test "x$with_ppl_lib" != x; then
e8a5fa9c 5653 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5654fi
5655if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
d5f2ee2e 5656 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
5657 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5658 enable_ppl_version_check=no
e28c595f
JM
5659fi
5660
81ecdfbb
RW
5661# Check whether --enable-ppl-version-check was given.
5662if test "${enable_ppl_version_check+set}" = set; then :
5663 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
e28c595f
JM
5664else
5665 ENABLE_PPL_CHECK=yes
81ecdfbb
RW
5666fi
5667
e28c595f 5668
1f53ca9a 5669if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
e28c595f
JM
5670 saved_CFLAGS="$CFLAGS"
5671 CFLAGS="$CFLAGS $pplinc $gmpinc"
a009f2e7
RW
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5673$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
81ecdfbb 5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5675/* end confdefs.h. */
5676#include "ppl_c.h"
5677int
5678main ()
5679{
5680
a009f2e7 5681 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
e28c595f
JM
5682 choke me
5683 #endif
5684
5685 ;
5686 return 0;
5687}
5688_ACEOF
81ecdfbb
RW
5689if ac_fn_c_try_compile "$LINENO"; then :
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5691$as_echo "yes" >&6; }
e28c595f 5692else
81ecdfbb 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5694$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5695fi
81ecdfbb 5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5697 CFLAGS="$saved_CFLAGS"
5698fi
5699
5700# Flags needed for PPL
5701
5702
5703
5704
5705# Check for CLOOG
e552509b 5706
e28c595f
JM
5707
5708
81ecdfbb
RW
5709# Check whether --with-cloog was given.
5710if test "${with_cloog+set}" = set; then :
5711 withval=$with_cloog;
81ecdfbb
RW
5712fi
5713
e28c595f 5714
e552509b 5715# Check whether --with-cloog-include was given.
81ecdfbb
RW
5716if test "${with_cloog_include+set}" = set; then :
5717 withval=$with_cloog_include;
5718fi
e28c595f 5719
e28c595f 5720
e552509b 5721# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5722if test "${with_cloog_lib+set}" = set; then :
5723 withval=$with_cloog_lib;
5724fi
e28c595f 5725
e28c595f 5726
e552509b
ILT
5727 # Check whether --enable-cloog-backend was given.
5728if test "${enable_cloog_backend+set}" = set; then :
5729 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5730 cloog_backend=isl
5731 elif test "x${enableval}" = "xppl"; then
5732 cloog_backend=ppl
5733 else
5734 cloog_backend=ppl-legacy
5735 fi
5736else
5737 cloog_backend=ppl-legacy
5738fi
5739
5740 # Check whether --enable-cloog-version-check was given.
5741if test "${enable_cloog_version_check+set}" = set; then :
5742 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5743else
5744 ENABLE_CLOOG_CHECK=yes
5745fi
5746
5747
5748 # Initialize clooglibs and clooginc.
5749 case $with_cloog in
5750 no)
5751 clooglibs=
5752 clooginc=
5753 ;;
5754 "" | yes)
5755 ;;
5756 *)
5757 clooglibs="-L$with_cloog/lib"
5758 clooginc="-I$with_cloog/include"
5759 ;;
5760 esac
5761 if test "x${with_cloog_include}" != x ; then
5762 clooginc="-I$with_cloog_include"
5763 fi
5764 if test "x${with_cloog_lib}" != x; then
5765 clooglibs="-L$with_cloog_lib"
5766 fi
5767
5768
5769
5770
5771
1f53ca9a
AO
5772if test "x$with_ppl" = "xno"; then
5773 with_cloog=no
5774fi
e552509b
ILT
5775if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5776 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5777 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5778 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5779fi
5780if test "x$with_cloog" != "xno"; then
1f53ca9a 5781
e552509b
ILT
5782
5783
5784 _cloog_saved_CFLAGS=$CFLAGS
5785 _cloog_saved_CPPFLAGS=$CPPFLAGS
5786 _cloog_saved_LDFLAGS=$LDFLAGS
5787 _cloog_saved_LIBS=$LIBS
5788
5789 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5790
5791 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5792 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5793 LDFLAGS="${LDFLAGS} ${clooglibs}"
5794
5795 case $cloog_backend in
5796 "ppl-legacy")
5797 CFLAGS="${CFLAGS} ${pplinc}"
5798 LDFLAGS="${LDFLAGS} ${ppllibs}"
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5800$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5801if test "${gcc_cv_cloog_type+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5803else
5804 LIBS="-lcloog ${_cloog_saved_LIBS}"
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806/* end confdefs.h. */
5807#include "cloog/cloog.h"
5808int
5809main ()
5810{
5811#ifndef CLOOG_PPL_BACKEND
5812 choke me
5813 #endif
5814 ;
5815 return 0;
5816}
5817_ACEOF
5818if ac_fn_c_try_link "$LINENO"; then :
5819 gcc_cv_cloog_type="PPL Legacy"
5820else
5821 gcc_cv_cloog_type=no
5822fi
5823rm -f core conftest.err conftest.$ac_objext \
5824 conftest$ac_exeext conftest.$ac_ext
e28c595f 5825fi
e552509b
ILT
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5827$as_echo "$gcc_cv_cloog_type" >&6; }
5828 ;;
5829 "isl")
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5831$as_echo_n "checking for installed CLooG ISL... " >&6; }
5832if test "${gcc_cv_cloog_type+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834else
5835 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837/* end confdefs.h. */
5838#include "cloog/cloog.h"
5839int
5840main ()
5841{
5842cloog_version ()
5843 ;
5844 return 0;
5845}
5846_ACEOF
5847if ac_fn_c_try_link "$LINENO"; then :
5848 gcc_cv_cloog_type="ISL"
5849else
5850 gcc_cv_cloog_type=no
e28c595f 5851fi
e552509b
ILT
5852rm -f core conftest.err conftest.$ac_objext \
5853 conftest$ac_exeext conftest.$ac_ext
e28c595f 5854fi
e552509b
ILT
5855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5856$as_echo "$gcc_cv_cloog_type" >&6; }
5857 ;;
5858 "ppl")
5859 CFLAGS="${CFLAGS} ${pplinc}"
5860 LDFLAGS="${LDFLAGS} ${ppllibs}"
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5862$as_echo_n "checking for installed CLooG PPL... " >&6; }
5863if test "${gcc_cv_cloog_type+set}" = set; then :
5864 $as_echo_n "(cached) " >&6
e28c595f 5865else
e552509b
ILT
5866 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868/* end confdefs.h. */
5869#include "cloog/cloog.h"
5870 #include "cloog/ppl/cloog.h"
5871int
5872main ()
5873{
5874cloog_version ()
5875 ;
5876 return 0;
5877}
5878_ACEOF
5879if ac_fn_c_try_link "$LINENO"; then :
5880 gcc_cv_cloog_type="PPL"
5881else
5882 gcc_cv_cloog_type=no
81ecdfbb 5883fi
e552509b
ILT
5884rm -f core conftest.err conftest.$ac_objext \
5885 conftest$ac_exeext conftest.$ac_ext
5886fi
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5888$as_echo "$gcc_cv_cloog_type" >&6; }
5889 ;;
5890 *)
5891 gcc_cv_cloog_type=""
5892 esac
5893
5894 case $gcc_cv_cloog_type in
5895 "PPL Legacy")
5896 clooginc="${clooginc}"
5897 clooglibs="${clooglibs} -lcloog"
5898 cloog_org=no
5899 ;;
5900 "ISL")
5901 clooginc="${clooginc} ${_cloogorginc}"
5902 clooglibs="${clooglibs} -lcloog-isl"
5903 cloog_org=yes
5904 ;;
5905 "PPL")
5906 clooginc="${clooginc} ${_cloogorginc}"
5907 clooglibs="${clooglibs} -lcloog-ppl"
5908 cloog_org=yes
5909 ;;
5910 *)
5911 clooglibs=
5912 clooginc=
5913 cloog_org=
5914 ;;
5915 esac
81ecdfbb 5916
e552509b
ILT
5917 LIBS=$_cloog_saved_LIBS
5918 CFLAGS=$_cloog_saved_CFLAGS
5919 CPPFLAGS=$_cloog_saved_CPPFLAGS
5920 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 5921
e552509b
ILT
5922
5923
5924
5925
5926 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5927 _cloog_saved_CFLAGS=$CFLAGS
5928 _cloog_saved_LDFLAGS=$LDFLAGS
5929
5930 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
5931 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
5932
5933 if test "${cloog_org}" = yes ; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.14.0 of CLooG" >&5
5935$as_echo_n "checking for version 0.14.0 of CLooG... " >&6; }
5936if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5937 $as_echo_n "(cached) " >&6
5938else
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940/* end confdefs.h. */
5941#include "cloog/cloog.h"
5942int
5943main ()
5944{
5945#if CLOOG_VERSION_MAJOR != 0 \
5946 || CLOOG_VERSION_MINOR != 14 \
5947 || CLOOG_VERSION_REVISION < 0
5948 choke me
5949 #endif
5950 ;
5951 return 0;
5952}
5953_ACEOF
5954if ac_fn_c_try_compile "$LINENO"; then :
5955 gcc_cv_cloog_ct_0_14_0=yes
5956else
5957 gcc_cv_cloog_ct_0_14_0=no
5958fi
5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960fi
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5962$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5963 elif test "${cloog_org}" = no ; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 5965$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
5966if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5967 $as_echo_n "(cached) " >&6
5968else
81ecdfbb 5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5970/* end confdefs.h. */
5971#include "cloog/cloog.h"
5972int
5973main ()
5974{
e552509b
ILT
5975#if CLOOG_VERSION_MAJOR != 0 \
5976 || CLOOG_VERSION_MINOR != 15 \
5977 || CLOOG_VERSION_REVISION < 5
5978 choke me
5979 #endif
e28c595f
JM
5980 ;
5981 return 0;
5982}
5983_ACEOF
a009f2e7
RW
5984if ac_fn_c_try_compile "$LINENO"; then :
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986/* end confdefs.h. */
5987#include "cloog/cloog.h"
5988int
5989main ()
5990{
e552509b
ILT
5991#if CLOOG_VERSION_MAJOR != 0 \
5992 || CLOOG_VERSION_MINOR != 15 \
5993 || CLOOG_VERSION_REVISION < 9
5994 choke me
5995 #endif
a009f2e7
RW
5996 ;
5997 return 0;
5998}
5999_ACEOF
81ecdfbb 6000if ac_fn_c_try_compile "$LINENO"; then :
e552509b 6001 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 6002else
e552509b 6003 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
6004fi
6005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6006else
e552509b 6007 gcc_cv_cloog_ct_0_15_5=no
e28c595f 6008fi
81ecdfbb 6009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6010fi
e552509b
ILT
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6012$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6013 fi
6014
6015 CFLAGS=$_cloog_saved_CFLAGS
6016 LDFLAGS=$_cloog_saved_LDFLAGS
6017 fi
6018
6019
6020
e28c595f 6021
e28c595f
JM
6022
6023
6024
e552509b
ILT
6025 if test "x${with_cloog}" != x \
6026 || test "x${with_cloog_include}" != x \
6027 || test "x${with_cloog_lib}" != x ; then
6028 graphite_requested=yes
6029 else
6030 graphite_requested=no
6031 fi
6032
6033
6034
6035 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6036 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6037 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6038 clooglibs=
6039 clooginc=
6040 fi
6041
6042 if test "${graphite_requested}" = yes \
6043 && test "x${clooglibs}" = x \
6044 && test "x${clooginc}" = x ; then
6045
6046 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
6047 fi
6048
6049
6050fi
6051
700d40ca
ILT
6052# Check for LTO support.
6053# Check whether --enable-lto was given.
6054if test "${enable_lto+set}" = set; then :
6055 enableval=$enable_lto; enable_lto=$enableval
6056else
6057 enable_lto=yes; default_enable_lto=yes
6058fi
6059
6060
143754cd 6061
e49e5c92
DK
6062
6063
6064target_elf=no
6065case $target in
6066 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6067 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6068 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6069 target_elf=no
6070 ;;
6071 *)
6072 target_elf=yes
6073 ;;
6074esac
6075
6076if test $target_elf = yes; then :
74cea91b
DK
6077 # ELF platforms build the lto-plugin always.
6078 build_lto_plugin=yes
e49e5c92 6079
e49e5c92
DK
6080else
6081 if test x"$default_enable_lto" = x"yes" ; then
29821356 6082 case $target in
a8eb3f0a 6083 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
74cea91b 6084 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6085 *) enable_lto=no ;;
6086 esac
e49e5c92 6087 else
29821356
RW
6088 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6089 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6090 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6091 # warn during gcc/ subconfigure; unless you're bootstrapping with
6092 # -flto it won't be needed until after installation anyway.
6093 case $target in
a8eb3f0a 6094 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6095 *) if test x"$enable_lto" = x"yes"; then
6096 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6097 fi
6098 ;;
6099 esac
6100 fi
a8eb3f0a 6101 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6102 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6103 case $target in
74cea91b 6104 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6105 *) ;;
6106 esac
74cea91b 6107
e49e5c92
DK
6108fi
6109
700d40ca 6110
e28c595f 6111
947f426e 6112# By default, C is the only stage 1 language.
9b134994 6113stage1_languages=,c,
1d39f329 6114
e8a5fa9c 6115# Target libraries that we bootstrap.
2aa2364a 6116bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6117
9e07f89d
NN
6118# Figure out what language subdirectories are present.
6119# Look if the user specified --enable-languages="..."; if not, use
6120# the environment variable $LANGUAGES if defined. $LANGUAGES might
6121# go away some day.
6122# NB: embedded tabs in this IF block -- do not untabify
6123if test -d ${srcdir}/gcc; then
6124 if test x"${enable_languages+set}" != xset; then
6125 if test x"${LANGUAGES+set}" = xset; then
6126 enable_languages="${LANGUAGES}"
6127 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6128 else
6129 enable_languages=all
6130 fi
6131 else
6132 if test x"${enable_languages}" = x ||
6133 test x"${enable_languages}" = xyes;
6134 then
6135 echo configure.in: --enable-languages needs at least one language argument 1>&2
6136 exit 1
6137 fi
6138 fi
6139 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6140
096f7d00
DE
6141 # 'f95' is the old name for the 'fortran' language. We issue a warning
6142 # and make the substitution.
6143 case ,${enable_languages}, in
6144 *,f95,*)
6145 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6146 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6147 ;;
6148 esac
6149
9e07f89d
NN
6150 # First scan to see if an enabled language requires some other language.
6151 # We assume that a given config-lang.in will list all the language
6152 # front ends it requires, even if some are required indirectly.
6153 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6154 case ${lang_frag} in
6155 ..) ;;
6156 # The odd quoting in the next line works around
6157 # an apparent bug in bash 1.12 on linux.
6158 ${srcdir}/gcc/[*]/config-lang.in) ;;
6159 *)
e552509b
ILT
6160 # From the config-lang.in, get $language, $lang_requires, and
6161 # $lang_requires_boot_languages.
9e07f89d
NN
6162 language=
6163 lang_requires=
e552509b 6164 lang_requires_boot_languages=
9e07f89d 6165 . ${lang_frag}
e552509b 6166 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6167 case ,${enable_languages}, in
6168 *,$other,*) ;;
6169 *,all,*) ;;
6170 *,$language,*)
6171 echo " \`$other' language required by \`$language'; enabling" 1>&2
6172 enable_languages="${enable_languages},${other}"
6173 ;;
6174 esac
6175 done
e552509b
ILT
6176 for other in ${lang_requires_boot_languages} ; do
6177 if test "$other" != "c"; then
6178 case ,${enable_stage1_languages}, in
6179 *,$other,*) ;;
6180 *,all,*) ;;
6181 *)
6182 case ,${enable_languages}, in
6183 *,$language,*)
6184 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6185 enable_stage1_languages="$enable_stage1_languages,${other}"
6186 ;;
6187 esac
6188 ;;
6189 esac
6190 fi
6191 done
9e07f89d
NN
6192 ;;
6193 esac
6194 done
6195
9b134994 6196 new_enable_languages=,c,
700d40ca
ILT
6197
6198 # If LTO is enabled, add the LTO front end.
6199 extra_host_libiberty_configure_flags=
6200 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6201 case ,${enable_languages}, in
6202 *,lto,*) ;;
6203 *) enable_languages="${enable_languages},lto" ;;
6204 esac
a8eb3f0a 6205 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6206 configdirs="$configdirs lto-plugin"
6207 extra_host_libiberty_configure_flags=--enable-shared
6208 fi
6209 fi
6210
6211
9e07f89d 6212 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6213 potential_languages=,c,
9e07f89d 6214
9e1a94f4
ILT
6215 enabled_target_libs=
6216 disabled_target_libs=
6217
9e07f89d
NN
6218 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6219 case ${lang_frag} in
6220 ..) ;;
6221 # The odd quoting in the next line works around
6222 # an apparent bug in bash 1.12 on linux.
6223 ${srcdir}/gcc/[*]/config-lang.in) ;;
6224 *)
c6b750e1 6225 # From the config-lang.in, get $language, $target_libs,
1d39f329 6226 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6227 language=
6228 target_libs=
6229 lang_dirs=
64ce424c 6230 subdir_requires=
9b134994
PB
6231 boot_language=no
6232 build_by_default=yes
9e07f89d 6233 . ${lang_frag}
9b134994
PB
6234 if test x${language} = x; then
6235 echo "${lang_frag} doesn't set \$language." 1>&2
6236 exit 1
6237 fi
6238
1f53ca9a
AO
6239 if test "$language" = "c++" \
6240 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6241 boot_language=yes
6242 fi
6243
9b134994
PB
6244 case ,${enable_languages}, in
6245 *,${language},*)
9e07f89d
NN
6246 # Language was explicitly selected; include it.
6247 add_this_lang=yes
6248 ;;
9b134994
PB
6249 *,all,*)
6250 # 'all' was selected, select it if it is a default language
6251 add_this_lang=${build_by_default}
9e07f89d
NN
6252 ;;
6253 *)
6254 add_this_lang=no
6255 ;;
6256 esac
4b1cb4fe 6257
64ce424c 6258 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6259 for i in $subdir_requires; do
3d3adb43 6260 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6261 case ,${enable_languages}, in
6262 *,${language},*)
6263 # Specifically requested language; tell them.
81ecdfbb 6264 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6265 ;;
6266 *)
6267 # Silently disable.
9b134994 6268 add_this_lang=unsupported
64ce424c
PB
6269 ;;
6270 esac
6271 done
6272
9b134994
PB
6273 # Disable Ada if no preexisting GNAT is available.
6274 case ,${enable_languages},:${language}:${have_gnat} in
6275 *,${language},*:ada:no)
6276 # Specifically requested language; tell them.
81ecdfbb 6277 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6278 ;;
6279 *:ada:no)
6280 # Silently disable.
6281 add_this_lang=unsupported
6282 ;;
6283 esac
6284
59f7ec45
HPN
6285 # Disable a language that is unsupported by the target.
6286 case " $unsupported_languages " in
6287 *" $language "*)
9b134994 6288 add_this_lang=unsupported
59f7ec45
HPN
6289 ;;
6290 esac
6291
4b1cb4fe 6292 case $add_this_lang in
9b134994 6293 unsupported)
9e07f89d 6294 # Remove language-dependent dirs.
9e1a94f4
ILT
6295 disabled_target_libs="$disabled_target_libs $target_libs"
6296 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6297 ;;
9b134994
PB
6298 no)
6299 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6300 disabled_target_libs="$disabled_target_libs $target_libs"
6301 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6302 potential_languages="${potential_languages}${language},"
6303 ;;
6304 yes)
6305 new_enable_languages="${new_enable_languages}${language},"
6306 potential_languages="${potential_languages}${language},"
1d39f329 6307 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6308 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6309 case "${boot_language}:,$enable_stage1_languages," in
6310 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6311 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6312 case ",$stage1_languages," in
6313 *,$language,* | ,yes, | ,all,) ;;
6314 *) stage1_languages="${stage1_languages}${language}," ;;
6315 esac
e8a5fa9c
RW
6316 # We need to bootstrap any supporting libraries.
6317 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6318 ;;
6319 esac
6320 ;;
9e07f89d
NN
6321 esac
6322 ;;
6323 esac
6324 done
6325
9e1a94f4
ILT
6326 # Add target libraries which are only needed for disabled languages
6327 # to noconfigdirs.
6328 if test -n "$disabled_target_libs"; then
6329 for dir in $disabled_target_libs; do
6330 case " $enabled_target_libs " in
6331 *" ${dir} "*) ;;
6332 *) noconfigdirs="$noconfigdirs $dir" ;;
6333 esac
6334 done
6335 fi
6336
81ecdfbb
RW
6337 # Check whether --enable-stage1-languages was given.
6338if test "${enable_stage1_languages+set}" = set; then :
6339 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6340 ,no,|,,)
6341 # Set it to something that will have no effect in the loop below
6342 enable_stage1_languages=c ;;
6343 ,yes,)
6344 enable_stage1_languages=`echo $new_enable_languages | \
6345 sed -e "s/^,//" -e "s/,$//" ` ;;
6346 *,all,*)
6347 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6348 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6349 esac
6350
6351 # Add "good" languages from enable_stage1_languages to stage1_languages,
6352 # while "bad" languages go in missing_languages. Leave no duplicates.
6353 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6354 case $potential_languages in
6355 *,$i,*)
6356 case $stage1_languages in
6357 *,$i,*) ;;
6358 *) stage1_languages="$stage1_languages$i," ;;
6359 esac ;;
6360 *)
6361 case $missing_languages in
6362 *,$i,*) ;;
6363 *) missing_languages="$missing_languages$i," ;;
6364 esac ;;
6365 esac
6366 done
81ecdfbb
RW
6367fi
6368
9b134994
PB
6369
6370 # Remove leading/trailing commas that were added for simplicity
6371 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6372 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6373 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6374 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6375
9e07f89d 6376 if test "x$missing_languages" != x; then
81ecdfbb 6377 as_fn_error "
27258dd4 6378The following requested languages could not be built: ${missing_languages}
81ecdfbb 6379Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6380 fi
9e07f89d
NN
6381 if test "x$new_enable_languages" != "x$enable_languages"; then
6382 echo The following languages will be built: ${new_enable_languages}
9b134994 6383 enable_languages="$new_enable_languages"
9e07f89d 6384 fi
9b134994 6385
c6b750e1 6386
81ec575a 6387 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6388fi
6389
a6df5a19
PB
6390# Handle --disable-<component> generically.
6391for dir in $configdirs $build_configdirs $target_configdirs ; do
6392 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6393 varname=`echo $dirname | sed -e s/+/_/g`
6394 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6395 noconfigdirs="$noconfigdirs $dir"
6396 fi
6397done
6398
4f0ef2d8 6399# Check for Boehm's garbage collector
81ecdfbb
RW
6400# Check whether --enable-objc-gc was given.
6401if test "${enable_objc_gc+set}" = set; then :
6402 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6403 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6404 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6405 ;;
6406esac
81ecdfbb
RW
6407fi
6408
4f0ef2d8
CD
6409
6410# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6411case ,${enable_languages},:${enable_objc_gc} in
6412 *,objc,*:yes)
4f0ef2d8
CD
6413 # Keep target-boehm-gc if requested for Objective-C.
6414 ;;
4f0ef2d8 6415 *)
d42c4017
DA
6416 # Otherwise remove target-boehm-gc depending on target-libjava.
6417 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6418 noconfigdirs="$noconfigdirs target-boehm-gc"
6419 fi
4f0ef2d8
CD
6420 ;;
6421esac
6422
caeba88f
AL
6423# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6424# $build_configdirs and $target_configdirs.
9e07f89d
NN
6425# If we have the source for $noconfigdirs entries, add them to $notsupp.
6426
6427notsupp=""
6428for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6429 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6430 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6431 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6432 if test -r $srcdir/$dirname/configure ; then
6433 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6434 true
6435 else
6436 notsupp="$notsupp $dir"
6437 fi
6438 fi
6439 fi
caeba88f
AL
6440 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6441 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6442 if test -r $srcdir/$dirname/configure ; then
6443 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6444 true
6445 else
6446 notsupp="$notsupp $dir"
6447 fi
6448 fi
6449 fi
9e07f89d
NN
6450 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6451 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6452 if test -r $srcdir/$dirname/configure ; then
6453 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6454 true
6455 else
6456 notsupp="$notsupp $dir"
6457 fi
6458 fi
6459 fi
6460done
6461
6462# Sometimes the tools are distributed with libiberty but with no other
6463# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6464# Don't let libgcc imply libiberty either.
9e07f89d 6465if test -n "${target_configdirs}" ; then
f86e35b8 6466 libgcc=
9e07f89d
NN
6467 others=
6468 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6469 if test "$i" = "libgcc"; then
6470 libgcc=target-libgcc
6471 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6472 if test -r $srcdir/$i/configure ; then
6473 others=yes;
6474 break;
6475 fi
6476 fi
6477 done
6478 if test -z "${others}" ; then
f86e35b8 6479 target_configdirs=$libgcc
9e07f89d
NN
6480 fi
6481fi
6482
6483# Quietly strip out all directories which aren't configurable in this tree.
6484# This relies on all configurable subdirectories being autoconfiscated, which
6485# is now the case.
6a9cf61e
PB
6486build_configdirs_all="$build_configdirs"
6487build_configdirs=
6488for i in ${build_configdirs_all} ; do
c6b750e1 6489 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6490 if test -f ${srcdir}/$j/configure ; then
6491 build_configdirs="${build_configdirs} $i"
6492 fi
6493done
6494
9e07f89d
NN
6495configdirs_all="$configdirs"
6496configdirs=
6497for i in ${configdirs_all} ; do
6498 if test -f ${srcdir}/$i/configure ; then
6499 configdirs="${configdirs} $i"
6500 fi
6501done
6a9cf61e 6502
9e07f89d
NN
6503target_configdirs_all="$target_configdirs"
6504target_configdirs=
6505for i in ${target_configdirs_all} ; do
c6b750e1 6506 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6507 if test -f ${srcdir}/$j/configure ; then
6508 target_configdirs="${target_configdirs} $i"
6509 fi
6510done
6511
6512# Produce a warning message for the subdirs we can't configure.
6513# This isn't especially interesting in the Cygnus tree, but in the individual
6514# FSF releases, it's important to let people know when their machine isn't
6515# supported by the one or two programs in a package.
6516
6517if test -n "${notsupp}" && test -z "${norecursion}" ; then
6518 # If $appdirs is non-empty, at least one of those directories must still
6519 # be configured, or we error out. (E.g., if the gas release supports a
6520 # specified target in some subdirs but not the gas subdir, we shouldn't
6521 # pretend that all is well.)
6522 if test -n "$appdirs" ; then
6523 for dir in $appdirs ; do
6524 if test -r $dir/Makefile.in ; then
6525 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6526 appdirs=""
6527 break
6528 fi
6a9cf61e 6529 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6530 appdirs=""
6531 break
6532 fi
6533 fi
6534 done
6535 if test -n "$appdirs" ; then
6536 echo "*** This configuration is not supported by this package." 1>&2
6537 exit 1
6538 fi
6539 fi
6540 # Okay, some application will build, or we don't care to check. Still
6541 # notify of subdirs not getting built.
6542 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6543 echo " ${notsupp}" 1>&2
6544 echo " (Any other directories should still work fine.)" 1>&2
6545fi
6546
6547case "$host" in
6548 *msdosdjgpp*)
6549 enable_gdbtk=no ;;
6550esac
6551
18f6b6ee
PB
6552# To find our prefix, in gcc_cv_tool_prefix.
6553
6554# The user is always right.
6555if test "${PATH_SEPARATOR+set}" != set; then
6556 echo "#! /bin/sh" >conf$$.sh
6557 echo "exit 0" >>conf$$.sh
6558 chmod +x conf$$.sh
6559 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6560 PATH_SEPARATOR=';'
6561 else
6562 PATH_SEPARATOR=:
6563 fi
6564 rm -f conf$$.sh
6565fi
6566
6567
6568
6569if test "x$exec_prefix" = xNONE; then
6570 if test "x$prefix" = xNONE; then
6571 gcc_cv_tool_prefix=$ac_default_prefix
6572 else
6573 gcc_cv_tool_prefix=$prefix
6574 fi
6575else
6576 gcc_cv_tool_prefix=$exec_prefix
6577fi
6578
6579# If there is no compiler in the tree, use the PATH only. In any
6580# case, if there is no compiler in the tree nobody should use
6581# AS_FOR_TARGET and LD_FOR_TARGET.
6582if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6583 gcc_version=`cat $srcdir/gcc/BASE-VER`
6584 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6585 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6586 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6587 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6588 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6589 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6590else
6591 gcc_cv_tool_dirs=
6592fi
6593
6594if test x$build = x$target && test -n "$md_exec_prefix"; then
6595 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6596fi
6597
6598
6599
9e07f89d
NN
6600copy_dirs=
6601
c6b750e1 6602
81ecdfbb
RW
6603# Check whether --with-build-sysroot was given.
6604if test "${with_build_sysroot+set}" = set; then :
6605 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6606 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6607 fi
6608else
6609 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6610fi
a19b6204
MM
6611
6612
8a6ee3ab 6613
81ecdfbb
RW
6614
6615# Check whether --with-debug-prefix-map was given.
6616if test "${with_debug_prefix_map+set}" = set; then :
6617 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6618 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6619 for debug_map in $withval; do
6620 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6621 done
6622 fi
6623else
6624 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6625fi
6626
8a6ee3ab
JM
6627
6628
7f6ef0c0
PB
6629# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6630# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6631# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6632# We want to ensure that TARGET libraries (which we know are built with
6633# gcc) are built with "-O2 -g", so include those options when setting
6634# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6635if test "x$CFLAGS_FOR_TARGET" = x; then
6636 CFLAGS_FOR_TARGET=$CFLAGS
6637 case " $CFLAGS " in
6638 *" -O2 "*) ;;
6639 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6640 esac
6641 case " $CFLAGS " in
6642 *" -g "* | *" -g3 "*) ;;
6643 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6644 esac
6645fi
6646
6647
6648if test "x$CXXFLAGS_FOR_TARGET" = x; then
6649 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6650 case " $CXXFLAGS " in
6651 *" -O2 "*) ;;
6652 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6653 esac
6654 case " $CXXFLAGS " in
6655 *" -g "* | *" -g3 "*) ;;
6656 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6657 esac
6658fi
6659
6660
9e07f89d
NN
6661# Handle --with-headers=XXX. If the value is not "yes", the contents of
6662# the named directory are copied to $(tooldir)/sys-include.
6663if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6664 if test x${is_cross_compiler} = xno ; then
6665 echo 1>&2 '***' --with-headers is only supported when cross compiling
6666 exit 1
6667 fi
6668 if test x"${with_headers}" != xyes ; then
18f6b6ee 6669 x=${gcc_cv_tool_prefix}
c6b750e1 6670 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6671 fi
6672fi
6673
6674# Handle --with-libs=XXX. If the value is not "yes", the contents of
6675# the name directories are copied to $(tooldir)/lib. Multiple directories
6676# are permitted.
6677if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6678 if test x${is_cross_compiler} = xno ; then
6679 echo 1>&2 '***' --with-libs is only supported when cross compiling
6680 exit 1
6681 fi
6682 if test x"${with_libs}" != xyes ; then
6683 # Copy the libraries in reverse order, so that files in the first named
6684 # library override files in subsequent libraries.
18f6b6ee 6685 x=${gcc_cv_tool_prefix}
9e07f89d 6686 for l in ${with_libs}; do
c6b750e1 6687 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6688 done
6689 fi
6690fi
6691
700d40ca 6692# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6693#
6694# This is done by determining whether or not the appropriate directory
6695# is available, and by checking whether or not specific configurations
6696# have requested that this magic not happen.
c6b750e1
DJ
6697#
6698# The command line options always override the explicit settings in
2429c060
PB
6699# configure.in, and the settings in configure.in override this magic.
6700#
c6b750e1 6701# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6702# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6703# --without-gnu-ld options for the configure script. Similarly, if
6704# the default is to use the included zlib and you don't want to do that,
6705# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6706
6707if test x${use_gnu_as} = x &&
6708 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6709 with_gnu_as=yes
6710 extra_host_args="$extra_host_args --with-gnu-as"
6711fi
6712
6713if test x${use_gnu_ld} = x &&
93f9b408 6714 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6715 with_gnu_ld=yes
6716 extra_host_args="$extra_host_args --with-gnu-ld"
6717fi
6718
700d40ca
ILT
6719if test x${use_included_zlib} = x &&
6720 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6721 :
6722else
6723 with_system_zlib=yes
6724 extra_host_args="$extra_host_args --with-system-zlib"
6725fi
6726
2429c060
PB
6727# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6728# can detect this case.
6729
6730if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6731 with_newlib=yes
6732 extra_host_args="$extra_host_args --with-newlib"
6733fi
6734
9e07f89d
NN
6735# Handle ${copy_dirs}
6736set fnord ${copy_dirs}
6737shift
6738while test $# != 0 ; do
6739 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6740 :
6741 else
6742 echo Copying $1 to $2
6743
6744 # Use the install script to create the directory and all required
6745 # parent directories.
6746 if test -d $2 ; then
6747 :
6748 else
6749 echo >config.temp
6750 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6751 fi
6752
6753 # Copy the directory, assuming we have tar.
6754 # FIXME: Should we use B in the second tar? Not all systems support it.
6755 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6756
6757 # It is the responsibility of the user to correctly adjust all
6758 # symlinks. If somebody can figure out how to handle them correctly
6759 # here, feel free to add the code.
6760
6761 echo $1 > $2/COPIED
6762 fi
6763 shift; shift
6764done
6765
2429c060
PB
6766# Determine a target-dependent exec_prefix that the installed
6767# gcc will search in. Keep this list sorted by triplet, with
6768# the *-*-osname triplets last.
6769md_exec_prefix=
6770case "${target}" in
6771 alpha*-*-*vms*)
6772 md_exec_prefix=/gnu/lib/gcc-lib
6773 ;;
521ec477 6774 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6775 md_exec_prefix=/dev/env/DJDIR/bin
6776 ;;
521ec477 6777 i[34567]86-*-sco3.2v5*)
2429c060
PB
6778 if test $with_gnu_as = yes; then
6779 md_exec_prefix=/usr/gnu/bin
6780 else
6781 md_exec_prefix=/usr/ccs/bin/elf
6782 fi
6783 ;;
6784
6785 mn10300-*-* | \
6786 powerpc-*-chorusos* | \
6787 powerpc*-*-eabi* | \
6788 powerpc*-*-sysv* | \
6789 powerpc*-*-kaos* | \
6790 s390x-ibm-tpf*)
6791 md_exec_prefix=/usr/ccs/bin
6792 ;;
6793 sparc64-*-elf*)
6794 ;;
6795 v850*-*-*)
6796 md_exec_prefix=/usr/ccs/bin
6797 ;;
8b66833e 6798 xtensa*-*-elf*)
2429c060
PB
6799 ;;
6800
6801 *-*-beos* | \
6802 *-*-elf* | \
6803 *-*-hpux* | \
6804 *-*-netware* | \
6805 *-*-nto-qnx* | \
6806 *-*-rtems* | \
6807 *-*-solaris2* | \
521ec477 6808 *-*-sysv[45]* | \
2429c060
PB
6809 *-*-vxworks* | \
6810 *-wrs-windiss)
6811 md_exec_prefix=/usr/ccs/bin
6812 ;;
6813esac
6814
a0da8069
NN
6815extra_arflags_for_target=
6816extra_nmflags_for_target=
6817extra_ranlibflags_for_target=
6818target_makefile_frag=/dev/null
6819case "${target}" in
4e206d7e
DB
6820 mep*-*-*)
6821 target_makefile_frag="config/mt-mep"
6822 ;;
77d7106f
AM
6823 spu-*-*)
6824 target_makefile_frag="config/mt-spu"
6825 ;;
429acdec
RS
6826 mips*-sde-elf*)
6827 target_makefile_frag="config/mt-sde"
6828 ;;
f3b1e08e
RS
6829 mipsisa*-*-elfoabi*)
6830 target_makefile_frag="config/mt-mips-elfoabi"
6831 ;;
e7c8859c
RS
6832 mips*-*-*linux* | mips*-*-gnu*)
6833 target_makefile_frag="config/mt-mips-gnu"
6834 ;;
2a3124ca 6835 *-*-netware*)
a0da8069
NN
6836 target_makefile_frag="config/mt-netware"
6837 ;;
29383458 6838 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6839 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6840 ;;
6841 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6842 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6843 # commands to handle both 32-bit and 64-bit objects. These flags are
6844 # harmless if we're using GNU nm or ar.
6845 extra_arflags_for_target=" -X32_64"
6846 extra_nmflags_for_target=" -B -X32_64"
6847 ;;
92f4e989
JM
6848 *-*-darwin[3-9]*)
6849 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6850 extra_ranlibflags_for_target=" -c"
6851 ;;
6852 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6853 target_makefile_frag="config/mt-wince"
6854 ;;
6855esac
6856
6857alphaieee_frag=/dev/null
6858case $target in
6859 alpha*-*-*)
6860 # This just makes sure to use the -mieee option to build target libs.
6861 # This should probably be set individually by each library.
6862 alphaieee_frag="config/mt-alphaieee"
6863 ;;
6864esac
6865
6866# If --enable-target-optspace always use -Os instead of -O2 to build
6867# the target libraries, similarly if it is not specified, use -Os
6868# on selected platforms.
6869ospace_frag=/dev/null
6870case "${enable_target_optspace}:${target}" in
6871 yes:*)
6872 ospace_frag="config/mt-ospace"
6873 ;;
6874 :d30v-*)
6875 ospace_frag="config/mt-d30v"
6876 ;;
6877 :m32r-* | :d10v-* | :fr30-*)
6878 ospace_frag="config/mt-ospace"
6879 ;;
6880 no:* | :*)
6881 ;;
6882 *)
6883 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6884 ;;
6885esac
6886
a0da8069
NN
6887# Default to using --with-stabs for certain targets.
6888if test x${with_stabs} = x ; then
6889 case "${target}" in
e31d1ea3 6890 mips*-*-irix[56]*)
a0da8069
NN
6891 ;;
6892 mips*-*-* | alpha*-*-osf*)
6893 with_stabs=yes;
6894 extra_host_args="${extra_host_args} --with-stabs"
6895 ;;
6896 esac
6897fi
6898
6899# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6900# them automatically.
6901case "${host}" in
c6b750e1 6902 hppa*64*-*-hpux11*)
a0da8069
NN
6903 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6904 ;;
6905esac
6906
a0da8069
NN
6907# Some systems (e.g., one of the i386-aix systems the gas testers are
6908# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6909tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6910build_tooldir=${tooldir}
6911
a0da8069
NN
6912# Create a .gdbinit file which runs the one in srcdir
6913# and tells GDB to look there for source files.
6914
6915if test -r ${srcdir}/.gdbinit ; then
6916 case ${srcdir} in
6917 .) ;;
6918 *) cat > ./.gdbinit <<EOF
6919# ${NO_EDIT}
6920dir ${srcdir}
6921dir .
6922source ${srcdir}/.gdbinit
6923EOF
6924 ;;
6925 esac
6926fi
6927
a0da8069
NN
6928# Make sure that the compiler is able to generate an executable. If it
6929# can't, we are probably in trouble. We don't care whether we can run the
6930# executable--we might be using a cross compiler--we only care whether it
6931# can be created. At this point the main configure script has set CC.
6932we_are_ok=no
6933echo "int main () { return 0; }" > conftest.c
6934${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6935if test $? = 0 ; then
6936 if test -s conftest || test -s conftest.exe ; then
6937 we_are_ok=yes
6938 fi
c6b750e1 6939fi
a0da8069
NN
6940case $we_are_ok in
6941 no)
6942 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6943 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6944 rm -f conftest*
6945 exit 1
6946 ;;
6947esac
6948rm -f conftest*
6949
6950# The Solaris /usr/ucb/cc compiler does not appear to work.
6951case "${host}" in
6952 sparc-sun-solaris2*)
6953 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6954 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6955 could_use=
6956 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6957 if test -d /opt/cygnus/bin ; then
6958 if test "$could_use" = "" ; then
6959 could_use="/opt/cygnus/bin"
6960 else
6961 could_use="$could_use or /opt/cygnus/bin"
6962 fi
6963 fi
6964 if test "$could_use" = "" ; then
6965 echo "Warning: compilation may fail because you're using"
6966 echo "/usr/ucb/cc. You should change your PATH or CC "
6967 echo "variable and rerun configure."
6968 else
6969 echo "Warning: compilation may fail because you're using"
6970 echo "/usr/ucb/cc, when you should use the C compiler from"
6971 echo "$could_use. You should change your"
6972 echo "PATH or CC variable and rerun configure."
6973 fi
6974 fi
6975 ;;
6976esac
6977
3bbd2f8f 6978# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6979case "${host}" in
6980 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 6981 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6982 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6983 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6984esac
6985
3bbd2f8f 6986# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6987# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6988# built executables to PATH.
3bbd2f8f
AL
6989if test "$RPATH_ENVVAR" = PATH; then
6990 GCC_SHLIB_SUBDIR=/shlib
6991else
6992 GCC_SHLIB_SUBDIR=
6993fi
6994
a0da8069
NN
6995# Record target_configdirs and the configure arguments for target and
6996# build configuration in Makefile.
6997target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6998build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6999
2aa2364a
JR
7000# If we are building libgomp, bootstrap it.
7001if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7002 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7003fi
7004
a0da8069
NN
7005# Determine whether gdb needs tk/tcl or not.
7006# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7007# and in that case we want gdb to be built without tk. Ugh!
7008# In fact I believe gdb is the *only* package directly dependent on tk,
7009# so we should be able to put the 'maybe's in unconditionally and
7010# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7011# 100% sure that that's safe though.
c180f501 7012
675c6968 7013gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7014case "$enable_gdbtk" in
7015 no)
7016 GDB_TK="" ;;
c180f501
AC
7017 yes)
7018 GDB_TK="${gdb_tk}" ;;
a0da8069 7019 *)
c180f501
AC
7020 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7021 # distro. Eventually someone will fix this and move Insight, nee
7022 # gdbtk to a separate directory.
7023 if test -d ${srcdir}/gdb/gdbtk ; then
7024 GDB_TK="${gdb_tk}"
7025 else
7026 GDB_TK=""
7027 fi
7028 ;;
a0da8069 7029esac
907be67c
DJ
7030CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7031INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7032
6bd3dfaa 7033# Strip out unwanted targets.
dd12c3a8
NN
7034
7035# While at that, we remove Makefiles if we were started for recursive
7036# configuration, so that the top-level Makefile reconfigures them,
7037# like we used to do when configure itself was recursive.
dd12c3a8 7038
06a51eac
RW
7039# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7040# but now we're fixing up the Makefile ourselves with the additional
7041# commands passed to AC_CONFIG_FILES. Use separate variables
7042# extrasub-{build,host,target} not because there is any reason to split
7043# the substitutions up that way, but only to remain below the limit of
7044# 99 commands in a script, for HP-UX sed.
7045# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7046
81ecdfbb
RW
7047# Check whether --enable-bootstrap was given.
7048if test "${enable_bootstrap+set}" = set; then :
7049 enableval=$enable_bootstrap;
319cab08 7050else
9cb3fa6f 7051 enable_bootstrap=default
81ecdfbb
RW
7052fi
7053
319cab08 7054
9cb3fa6f
PB
7055# Issue errors and warnings for invalid/strange bootstrap combinations.
7056case "$configdirs" in
7057 *gcc*) have_compiler=yes ;;
7058 *) have_compiler=no ;;
7059esac
7060
7061case "$have_compiler:$host:$target:$enable_bootstrap" in
7062 *:*:*:no) ;;
7063
0aed8855 7064 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
7065 # and we are in a native configuration.
7066 yes:$build:$build:default)
0aed8855 7067 enable_bootstrap=yes ;;
9cb3fa6f
PB
7068
7069 *:*:*:default)
7070 enable_bootstrap=no ;;
7071
7072 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 7073 yes:$build:$build:yes)
9cb3fa6f
PB
7074 ;;
7075
7076 # Other configurations, but we have a compiler. Assume the user knows
7077 # what he's doing.
80911fe1 7078 yes:*:*:yes)
81ecdfbb
RW
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7080$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
7081 ;;
7082
7083 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 7084 no:*:*:yes)
81ecdfbb 7085 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
7086
7087 # Fail if wrong command line
7088 *)
81ecdfbb 7089 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
7090 ;;
7091esac
7092
4385ad3c
RW
7093case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7094 *,c++,*:yes:yes) ;;
7095 *:yes:yes)
7096 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7097 ;;
7098esac
7099
16b1ad29
RW
7100case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7101 yes:yes:*\ gold\ *:*,c++,*) ;;
7102 yes:yes:*\ gold\ *:*)
7103 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7104 ;;
7105esac
7106
9cb3fa6f 7107# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7108case $enable_bootstrap in
319cab08 7109 yes)
96655cc4
AO
7110 bootstrap_suffix=bootstrap
7111 BUILD_CONFIG=bootstrap-debug
7112 ;;
319cab08 7113 no)
96655cc4
AO
7114 bootstrap_suffix=no-bootstrap
7115 BUILD_CONFIG=
7116 ;;
319cab08
PB
7117esac
7118
96655cc4
AO
7119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7120$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7121
7122
7123# Check whether --with-build-config was given.
7124if test "${with_build_config+set}" = set; then :
7125 withval=$with_build_config; case $with_build_config in
7126 yes) with_build_config= ;;
7127 no) with_build_config= BUILD_CONFIG= ;;
7128 esac
7129fi
7130
7131
7132if test "x${with_build_config}" != x; then
7133 BUILD_CONFIG=$with_build_config
7134else
7135 case $BUILD_CONFIG in
7136 bootstrap-debug)
7137 if echo "int f (void) { return 0; }" > conftest.c &&
7138 ${CC} -c conftest.c &&
7139 mv conftest.o conftest.o.g0 &&
7140 ${CC} -c -g conftest.c &&
7141 mv conftest.o conftest.o.g &&
a009f2e7 7142 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7143 :
7144 else
7145 BUILD_CONFIG=
7146 fi
7147 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7148 ;;
7149 esac
7150fi
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7152$as_echo "$BUILD_CONFIG" >&6; }
7153
7154
06a51eac 7155extrasub_build=
6a9cf61e 7156for module in ${build_configdirs} ; do
498d4a71
CF
7157 if test -z "${no_recursion}" \
7158 && test -f ${build_subdir}/${module}/Makefile; then
7159 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7160 rm -f ${build_subdir}/${module}/Makefile
7161 fi
06a51eac 7162 extrasub_build="$extrasub_build
498d4a71
CF
7163/^@if build-$module\$/d
7164/^@endif build-$module\$/d
7165/^@if build-$module-$bootstrap_suffix\$/d
7166/^@endif build-$module-$bootstrap_suffix\$/d"
7167done
06a51eac 7168extrasub_host=
498d4a71 7169for module in ${configdirs} ; do
80911fe1 7170 if test -z "${no_recursion}"; then
8cf39b1b 7171 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7172 if test -f ${file}; then
7173 echo 1>&2 "*** removing ${file} to force reconfigure"
7174 rm -f ${file}
7175 fi
7176 done
498d4a71 7177 fi
06a51eac 7178 extrasub_host="$extrasub_host
498d4a71
CF
7179/^@if $module\$/d
7180/^@endif $module\$/d
7181/^@if $module-$bootstrap_suffix\$/d
7182/^@endif $module-$bootstrap_suffix\$/d"
7183done
06a51eac 7184extrasub_target=
498d4a71
CF
7185for module in ${target_configdirs} ; do
7186 if test -z "${no_recursion}" \
7187 && test -f ${target_subdir}/${module}/Makefile; then
7188 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7189 rm -f ${target_subdir}/${module}/Makefile
7190 fi
e8a5fa9c
RW
7191
7192 # We only bootstrap target libraries listed in bootstrap_target_libs.
7193 case $bootstrap_target_libs in
7194 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7195 *) target_bootstrap_suffix=no-bootstrap ;;
7196 esac
7197
06a51eac 7198 extrasub_target="$extrasub_target
498d4a71
CF
7199/^@if target-$module\$/d
7200/^@endif target-$module\$/d
e8a5fa9c
RW
7201/^@if target-$module-$target_bootstrap_suffix\$/d
7202/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7203done
7204
06a51eac
RW
7205# Do the final fixup along with target modules.
7206extrasub_target="$extrasub_target
6bd3dfaa 7207/^@if /,/^@endif /d"
a0da8069
NN
7208
7209# Create the serialization dependencies. This uses a temporary file.
7210
81ecdfbb
RW
7211# Check whether --enable-serial-configure was given.
7212if test "${enable_serial_configure+set}" = set; then :
7213 enableval=$enable_serial_configure;
7214fi
e6bfb94a
AO
7215
7216
1047cb91
DD
7217case ${enable_serial_configure} in
7218 yes)
7219 enable_serial_build_configure=yes
7220 enable_serial_host_configure=yes
7221 enable_serial_target_configure=yes
7222 ;;
7223esac
7224
a0da8069
NN
7225# These force 'configure's to be done one at a time, to avoid problems
7226# with contention over a shared config.cache.
7227rm -f serdep.tmp
e6bfb94a 7228echo '# serdep.tmp' > serdep.tmp
a0da8069 7229olditem=
1047cb91 7230test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7231for item in ${build_configdirs} ; do
7232 case ${olditem} in
7233 "") ;;
e6bfb94a 7234 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7235 esac
7236 olditem=${item}
7237done
7238olditem=
1047cb91 7239test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7240for item in ${configdirs} ; do
7241 case ${olditem} in
7242 "") ;;
e6bfb94a 7243 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7244 esac
7245 olditem=${item}
7246done
7247olditem=
1047cb91 7248test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7249for item in ${target_configdirs} ; do
7250 case ${olditem} in
7251 "") ;;
e6bfb94a 7252 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7253 esac
7254 olditem=${item}
7255done
7256serialization_dependencies=serdep.tmp
7257
7258
e6bfb94a 7259# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7260# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7261# might not want to pass down to subconfigures. The exception being
7262# --cache-file=/dev/null, which is used to turn off the use of cache
7263# files altogether, and which should be passed on to subconfigures.
7264# Also strip program-prefix, program-suffix, and program-transform-name,
7265# so that we can pass down a consistent program-transform-name.
c6b750e1
DJ
7266baseargs=
7267keep_next=no
7268skip_next=no
7269eval "set -- $ac_configure_args"
18f6b6ee
PB
7270for ac_arg
7271do
c6b750e1
DJ
7272 if test X"$skip_next" = X"yes"; then
7273 skip_next=no
7274 continue
7275 fi
7276 if test X"$keep_next" = X"yes"; then
7277 case $ac_arg in
7278 *\'*)
7279 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7280 esac
7281 baseargs="$baseargs '$ac_arg'"
7282 keep_next=no
7283 continue
7284 fi
7285
7286 # Handle separated arguments. Based on the logic generated by
7287 # autoconf 2.59.
7288 case $ac_arg in
7289 *=* | --config-cache | -C | -disable-* | --disable-* \
7290 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7291 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7292 | -with-* | --with-* | -without-* | --without-* | --x)
7293 separate_arg=no
7294 ;;
7295 -*)
7296 separate_arg=yes
7297 ;;
7298 *)
7299 separate_arg=no
7300 ;;
7301 esac
7302
7303 case "$ac_arg" in
30167e0a
NC
7304 --cache-file=/dev/null | \
7305 -cache-file=/dev/null )
7306 # Handled here to avoid the test to skip args below.
7307 baseargs="$baseargs '$ac_arg'"
7308 # Assert: $separate_arg should always be no.
7309 keep_next=$separate_arg
7310 ;;
c6b750e1
DJ
7311 --no*)
7312 continue
7313 ;;
7314 --c* | \
7315 --sr* | \
7316 --ho* | \
7317 --bu* | \
7318 --t* | \
7319 --program-* | \
7320 -cache_file* | \
7321 -srcdir* | \
7322 -host* | \
7323 -build* | \
7324 -target* | \
7325 -program-prefix* | \
7326 -program-suffix* | \
7327 -program-transform-name* )
7328 skip_next=$separate_arg
7329 continue
7330 ;;
7331 -*)
7332 # An option. Add it.
7333 case $ac_arg in
7334 *\'*)
7335 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7336 esac
7337 baseargs="$baseargs '$ac_arg'"
7338 keep_next=$separate_arg
7339 ;;
7340 *)
7341 # Either a variable assignment, or a nonopt (triplet). Don't
7342 # pass it down; let the Makefile handle this.
7343 continue
7344 ;;
7345 esac
7346done
7347# Remove the initial space we just introduced and, as these will be
7348# expanded by make, quote '$'.
7349baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7350
f27d4f92
DJ
7351# Add in --program-transform-name, after --program-prefix and
7352# --program-suffix have been applied to it. Autoconf has already
7353# doubled dollar signs and backslashes in program_transform_name; we want
7354# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7355# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7356# Also, because we want to override the logic in subdir configure scripts to
7357# choose program_transform_name, replace any s,x,x, with s,y,y,.
7358sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7359${program_transform_name}
7360EOF_SED
7361gcc_transform_name=`cat conftestsed.out`
7362rm -f conftestsed.out
7363baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7364if test "$silent" = yes; then
7365 baseargs="$baseargs --silent"
7366fi
34a0f3cf 7367baseargs="$baseargs --disable-option-checking"
f27d4f92 7368
4074d5f2
RW
7369# Record and document user additions to sub configure arguments.
7370
7371
7372
7373
a0da8069
NN
7374# For the build-side libraries, we just need to pretend we're native,
7375# and not use the same cache file. Multilibs are neither needed nor
7376# desired.
4074d5f2 7377build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7378
7379# For host modules, accept cache file option, or specification as blank.
7380case "${cache_file}" in
7381"") # empty
7382 cache_file_option="" ;;
7383/* | [A-Za-z]:[\\/]* ) # absolute path
7384 cache_file_option="--cache-file=${cache_file}" ;;
7385*) # relative path
7386 cache_file_option="--cache-file=../${cache_file}" ;;
7387esac
7388
82252c06
NN
7389# Host dirs don't like to share a cache file either, horribly enough.
7390# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7391host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7392
4074d5f2 7393target_configargs="$target_configargs ${baseargs}"
a0da8069
NN
7394
7395# Passing a --with-cross-host argument lets the target libraries know
7396# whether they are being built with a cross-compiler or being built
7397# native. However, it would be better to use other mechanisms to make the
7398# sorts of decisions they want to make on this basis. Please consider
7399# this option to be deprecated. FIXME.
7400if test x${is_cross_compiler} = xyes ; then
c6b750e1 7401 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7402fi
7403
938d2b74
RW
7404# Default to --enable-multilib.
7405if test x${enable_multilib} = x ; then
a0da8069 7406 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7407fi
a0da8069
NN
7408
7409# Pass --with-newlib if appropriate. Note that target_configdirs has
7410# changed from the earlier setting of with_newlib.
7411if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7412 target_configargs="--with-newlib ${target_configargs}"
7413fi
7414
95036d20
NN
7415# Different target subdirs use different values of certain variables
7416# (notably CXX). Worse, multilibs use *lots* of different values.
7417# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7418# it doesn't automatically accept command-line overrides of them.
7419# This means it's not safe for target subdirs to share a cache file,
7420# which is disgusting, but there you have it. Hopefully this can be
7421# fixed in future. It's still worthwhile to use a cache file for each
7422# directory. I think.
7423
ae380b45
MS
7424# Pass the appropriate --build, --host, --target and --cache-file arguments.
7425# We need to pass --target, as newer autoconf's requires consistency
7426# for target_alias and gcc doesn't manage it consistently.
4b900473 7427target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7428
a0da8069
NN
7429FLAGS_FOR_TARGET=
7430case " $target_configdirs " in
7431 *" newlib "*)
7432 case " $target_configargs " in
7433 *" --with-newlib "*)
7434 case "$target" in
1f53ca9a
AO
7435 *-cygwin*)
7436 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'
7437 ;;
a0da8069
NN
7438 esac
7439
7440 # If we're not building GCC, don't discard standard headers.
7441 if test -d ${srcdir}/gcc; then
7442 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7443
7444 if test "${build}" != "${host}"; then
7445 # On Canadian crosses, CC_FOR_TARGET will have already been set
7446 # by `configure', so we won't have an opportunity to add -Bgcc/
7447 # to it. This is right: we don't want to search that directory
7448 # for binaries, but we want the header files in there, so add
7449 # them explicitly.
e552509b 7450 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7451
7452 # Someone might think of using the pre-installed headers on
7453 # Canadian crosses, in case the installed compiler is not fully
7454 # compatible with the compiler being built. In this case, it
7455 # would be better to flag an error than risking having
7456 # incompatible object files being constructed. We can't
7457 # guarantee that an error will be flagged, but let's hope the
7458 # compiler will do it, when presented with incompatible header
7459 # files.
7460 fi
7461 fi
7462
7463 case "${target}-${is_cross_compiler}" in
ec11bdc6 7464 i[3456789]86-*-linux*-no)
a0da8069
NN
7465 # Here host == target, so we don't need to build gcc,
7466 # so we don't want to discard standard headers.
7467 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7468 ;;
7469 *)
7470 # If we're building newlib, use its generic headers last, but search
7471 # for any libc-related directories first (so make it the last -B
7472 # switch).
7473 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
7474
7475 # If we're building libgloss, find the startup file, simulator library
7476 # and linker script.
7477 case " $target_configdirs " in
7478 *" libgloss "*)
7479 # Look for startup file, simulator library and maybe linker script.
7480 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7481 # Look for libnosys.a in case the target needs it.
7482 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7483 # Most targets have the linker script in the source directory.
7484 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7485 ;;
7486 esac
a0da8069
NN
7487 ;;
7488 esac
7489 ;;
7490 esac
7491 ;;
7492esac
1f53ca9a 7493
45055374 7494case "$target" in
1f53ca9a
AO
7495 x86_64-*mingw* | *-w64-mingw*)
7496 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7497 # however, use a symlink named 'mingw' in ${prefix} .
7498 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7499 ;;
7500 *-mingw*)
7501 # MinGW can't be handled as Cygwin above since it does not use newlib.
7502 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'
7503 ;;
45055374 7504esac
a0da8069 7505
5fbad20a
DD
7506# Allow the user to override the flags for
7507# our build compiler if desired.
c66487f8
NC
7508if test x"${build}" = x"${host}" ; then
7509 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7510 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7511 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7512fi
5fbad20a 7513
a0da8069
NN
7514# On Canadian crosses, we'll be searching the right directories for
7515# the previously-installed cross compiler, so don't bother to add
7516# flags for directories within the install tree of the compiler
7517# being built; programs in there won't even run.
7518if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7519 # Search for pre-installed headers if nothing else fits.
bba45b8b 7520 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
7521fi
7522
7523if test "x${use_gnu_ld}" = x &&
7524 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7525 # Arrange for us to find uninstalled linker scripts.
b00612cc 7526 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7527fi
7528
a481dbb7
DD
7529# Search for other target-specific linker scripts and such.
7530case "${target}" in
4e206d7e
DB
7531 mep*)
7532 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7533 ;;
7534esac
7535
a0da8069 7536# Makefile fragments.
3e707e94
PB
7537for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7538do
7539 eval fragval=\$$frag
7540 if test $fragval != /dev/null; then
7541 eval $frag=${srcdir}/$fragval
7542 fi
7543done
a0da8069
NN
7544
7545
7546
7547
7548
7549# Miscellanea: directories, flags, etc.
7550
7551
7552
7553
7554
7555
7556
3bbd2f8f 7557
6a9cf61e 7558# Build module lists & subconfigure args.
a0da8069
NN
7559
7560
7561
be01d343
PB
7562# Host module lists & subconfigure args.
7563
7564
7565
911e63d0 7566
be01d343
PB
7567# Target module lists & subconfigure args.
7568
7569
7570
7571# Build tools.
7572
7573
7574
1576798e
PB
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
e552509b 7589
be01d343
PB
7590# Generate default definitions for YACC, M4, LEX and other programs that run
7591# on the build machine. These are used if the Makefile can't locate these
7592# programs in objdir.
7593MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7594
7595for ac_prog in 'bison -y' byacc yacc
7596do
c6b750e1 7597 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7598set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600$as_echo_n "checking for $ac_word... " >&6; }
7601if test "${ac_cv_prog_YACC+set}" = set; then :
7602 $as_echo_n "(cached) " >&6
be01d343
PB
7603else
7604 if test -n "$YACC"; then
7605 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7606else
c6b750e1
DJ
7607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608for as_dir in $PATH
7609do
7610 IFS=$as_save_IFS
7611 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7614 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7616 break 2
7617 fi
7618done
81ecdfbb
RW
7619 done
7620IFS=$as_save_IFS
c6b750e1 7621
be01d343
PB
7622fi
7623fi
c6b750e1 7624YACC=$ac_cv_prog_YACC
be01d343 7625if test -n "$YACC"; then
81ecdfbb
RW
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7627$as_echo "$YACC" >&6; }
be01d343 7628else
81ecdfbb
RW
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630$as_echo "no" >&6; }
be01d343
PB
7631fi
7632
81ecdfbb 7633
c6b750e1 7634 test -n "$YACC" && break
be01d343
PB
7635done
7636test -n "$YACC" || YACC="$MISSING bison -y"
7637
7638case " $build_configdirs " in
7639 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7640 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7641esac
7642
7643for ac_prog in bison
7644do
c6b750e1 7645 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7646set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7648$as_echo_n "checking for $ac_word... " >&6; }
7649if test "${ac_cv_prog_BISON+set}" = set; then :
7650 $as_echo_n "(cached) " >&6
be01d343
PB
7651else
7652 if test -n "$BISON"; then
7653 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7654else
c6b750e1
DJ
7655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7656for as_dir in $PATH
7657do
7658 IFS=$as_save_IFS
7659 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7662 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7664 break 2
7665 fi
7666done
81ecdfbb
RW
7667 done
7668IFS=$as_save_IFS
c6b750e1 7669
be01d343
PB
7670fi
7671fi
c6b750e1 7672BISON=$ac_cv_prog_BISON
be01d343 7673if test -n "$BISON"; then
81ecdfbb
RW
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7675$as_echo "$BISON" >&6; }
be01d343 7676else
81ecdfbb
RW
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678$as_echo "no" >&6; }
be01d343
PB
7679fi
7680
81ecdfbb 7681
c6b750e1 7682 test -n "$BISON" && break
be01d343
PB
7683done
7684test -n "$BISON" || BISON="$MISSING bison"
7685
7686case " $build_configdirs " in
7687 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7688esac
7689
7690for ac_prog in gm4 gnum4 m4
7691do
c6b750e1 7692 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7693set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695$as_echo_n "checking for $ac_word... " >&6; }
7696if test "${ac_cv_prog_M4+set}" = set; then :
7697 $as_echo_n "(cached) " >&6
be01d343
PB
7698else
7699 if test -n "$M4"; then
7700 ac_cv_prog_M4="$M4" # Let the user override the test.
7701else
c6b750e1
DJ
7702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703for as_dir in $PATH
7704do
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7709 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7711 break 2
7712 fi
7713done
81ecdfbb
RW
7714 done
7715IFS=$as_save_IFS
c6b750e1 7716
be01d343
PB
7717fi
7718fi
c6b750e1 7719M4=$ac_cv_prog_M4
be01d343 7720if test -n "$M4"; then
81ecdfbb
RW
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7722$as_echo "$M4" >&6; }
be01d343 7723else
81ecdfbb
RW
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725$as_echo "no" >&6; }
be01d343
PB
7726fi
7727
81ecdfbb 7728
c6b750e1 7729 test -n "$M4" && break
be01d343
PB
7730done
7731test -n "$M4" || M4="$MISSING m4"
7732
7733case " $build_configdirs " in
7734 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7735esac
7736
7737for ac_prog in flex lex
7738do
c6b750e1 7739 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7740set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7742$as_echo_n "checking for $ac_word... " >&6; }
7743if test "${ac_cv_prog_LEX+set}" = set; then :
7744 $as_echo_n "(cached) " >&6
be01d343
PB
7745else
7746 if test -n "$LEX"; then
7747 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7748else
c6b750e1
DJ
7749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7750for as_dir in $PATH
7751do
7752 IFS=$as_save_IFS
7753 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7756 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7758 break 2
7759 fi
7760done
81ecdfbb
RW
7761 done
7762IFS=$as_save_IFS
c6b750e1 7763
be01d343
PB
7764fi
7765fi
c6b750e1 7766LEX=$ac_cv_prog_LEX
be01d343 7767if test -n "$LEX"; then
81ecdfbb
RW
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7769$as_echo "$LEX" >&6; }
be01d343 7770else
81ecdfbb
RW
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7772$as_echo "no" >&6; }
be01d343
PB
7773fi
7774
81ecdfbb 7775
c6b750e1 7776 test -n "$LEX" && break
be01d343
PB
7777done
7778test -n "$LEX" || LEX="$MISSING flex"
7779
7780case " $build_configdirs " in
7781 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7782 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7783esac
7784
7785for ac_prog in flex
7786do
c6b750e1 7787 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7788set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790$as_echo_n "checking for $ac_word... " >&6; }
7791if test "${ac_cv_prog_FLEX+set}" = set; then :
7792 $as_echo_n "(cached) " >&6
be01d343
PB
7793else
7794 if test -n "$FLEX"; then
7795 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7796else
c6b750e1
DJ
7797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798for as_dir in $PATH
7799do
7800 IFS=$as_save_IFS
7801 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7802 for ac_exec_ext in '' $ac_executable_extensions; do
7803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7804 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7806 break 2
7807 fi
7808done
81ecdfbb
RW
7809 done
7810IFS=$as_save_IFS
c6b750e1 7811
be01d343
PB
7812fi
7813fi
c6b750e1 7814FLEX=$ac_cv_prog_FLEX
be01d343 7815if test -n "$FLEX"; then
81ecdfbb
RW
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7817$as_echo "$FLEX" >&6; }
be01d343 7818else
81ecdfbb
RW
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820$as_echo "no" >&6; }
be01d343
PB
7821fi
7822
81ecdfbb 7823
c6b750e1 7824 test -n "$FLEX" && break
be01d343
PB
7825done
7826test -n "$FLEX" || FLEX="$MISSING flex"
7827
7828case " $build_configdirs " in
7829 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7830esac
7831
7832for ac_prog in makeinfo
7833do
c6b750e1 7834 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7835set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7837$as_echo_n "checking for $ac_word... " >&6; }
7838if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7839 $as_echo_n "(cached) " >&6
be01d343
PB
7840else
7841 if test -n "$MAKEINFO"; then
7842 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7843else
c6b750e1
DJ
7844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845for as_dir in $PATH
7846do
7847 IFS=$as_save_IFS
7848 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7849 for ac_exec_ext in '' $ac_executable_extensions; do
7850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7851 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7853 break 2
7854 fi
7855done
81ecdfbb
RW
7856 done
7857IFS=$as_save_IFS
c6b750e1 7858
be01d343
PB
7859fi
7860fi
c6b750e1 7861MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7862if test -n "$MAKEINFO"; then
81ecdfbb
RW
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7864$as_echo "$MAKEINFO" >&6; }
be01d343 7865else
81ecdfbb
RW
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867$as_echo "no" >&6; }
be01d343
PB
7868fi
7869
81ecdfbb 7870
c6b750e1 7871 test -n "$MAKEINFO" && break
be01d343
PB
7872done
7873test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7874
7875case " $build_configdirs " in
7876 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7877 *)
7878
10ad8ef3 7879 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7880 # higher, else we use the "missing" dummy.
7881 if ${MAKEINFO} --version \
10ad8ef3 7882 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7883 :
7884 else
7885 MAKEINFO="$MISSING makeinfo"
7886 fi
7887 ;;
7888
7889esac
a0da8069 7890
be01d343 7891# FIXME: expect and dejagnu may become build tools?
a0da8069 7892
be01d343
PB
7893for ac_prog in expect
7894do
c6b750e1 7895 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7896set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898$as_echo_n "checking for $ac_word... " >&6; }
7899if test "${ac_cv_prog_EXPECT+set}" = set; then :
7900 $as_echo_n "(cached) " >&6
be01d343
PB
7901else
7902 if test -n "$EXPECT"; then
7903 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7904else
c6b750e1
DJ
7905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906for as_dir in $PATH
7907do
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7912 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7914 break 2
7915 fi
7916done
81ecdfbb
RW
7917 done
7918IFS=$as_save_IFS
c6b750e1 7919
be01d343
PB
7920fi
7921fi
c6b750e1 7922EXPECT=$ac_cv_prog_EXPECT
be01d343 7923if test -n "$EXPECT"; then
81ecdfbb
RW
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7925$as_echo "$EXPECT" >&6; }
be01d343 7926else
81ecdfbb
RW
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928$as_echo "no" >&6; }
be01d343 7929fi
a0da8069 7930
81ecdfbb 7931
c6b750e1 7932 test -n "$EXPECT" && break
be01d343
PB
7933done
7934test -n "$EXPECT" || EXPECT="expect"
a0da8069 7935
be01d343
PB
7936case " $configdirs " in
7937 *" expect "*)
7938 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7939 ;;
7940esac
a0da8069 7941
be01d343
PB
7942for ac_prog in runtest
7943do
c6b750e1 7944 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7945set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947$as_echo_n "checking for $ac_word... " >&6; }
7948if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7949 $as_echo_n "(cached) " >&6
be01d343
PB
7950else
7951 if test -n "$RUNTEST"; then
7952 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7953else
c6b750e1
DJ
7954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955for as_dir in $PATH
7956do
7957 IFS=$as_save_IFS
7958 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7959 for ac_exec_ext in '' $ac_executable_extensions; do
7960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7961 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7963 break 2
7964 fi
7965done
81ecdfbb
RW
7966 done
7967IFS=$as_save_IFS
c6b750e1 7968
be01d343
PB
7969fi
7970fi
c6b750e1 7971RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7972if test -n "$RUNTEST"; then
81ecdfbb
RW
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7974$as_echo "$RUNTEST" >&6; }
be01d343 7975else
81ecdfbb
RW
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977$as_echo "no" >&6; }
be01d343 7978fi
a0da8069 7979
81ecdfbb 7980
c6b750e1 7981 test -n "$RUNTEST" && break
be01d343
PB
7982done
7983test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7984
be01d343
PB
7985case " $configdirs " in
7986 *" dejagnu "*)
6b89cc21 7987 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7988 ;;
7989esac
a0da8069
NN
7990
7991
a0da8069 7992# Host tools.
859789af
AC
7993ncn_tool_prefix=
7994test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7995ncn_target_tool_prefix=
7996test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7997
9a819804
AO
7998
7999
8000if test -n "$AR"; then
8001 ac_cv_prog_AR=$AR
8002elif test -n "$ac_cv_prog_AR"; then
8003 AR=$ac_cv_prog_AR
8004fi
8005
8006if test -n "$ac_cv_prog_AR"; then
8007 for ncn_progname in ar; do
8008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8009set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011$as_echo_n "checking for $ac_word... " >&6; }
8012if test "${ac_cv_prog_AR+set}" = set; then :
8013 $as_echo_n "(cached) " >&6
9a819804
AO
8014else
8015 if test -n "$AR"; then
8016 ac_cv_prog_AR="$AR" # Let the user override the test.
8017else
8018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8019for as_dir in $PATH
8020do
8021 IFS=$as_save_IFS
8022 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8023 for ac_exec_ext in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8025 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8027 break 2
8028 fi
8029done
81ecdfbb
RW
8030 done
8031IFS=$as_save_IFS
9a819804
AO
8032
8033fi
8034fi
8035AR=$ac_cv_prog_AR
8036if test -n "$AR"; then
81ecdfbb
RW
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8038$as_echo "$AR" >&6; }
9a819804 8039else
81ecdfbb
RW
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8041$as_echo "no" >&6; }
9a819804
AO
8042fi
8043
81ecdfbb 8044
9a819804
AO
8045 done
8046fi
8047
8048for ncn_progname in ar; do
05cbd757
PB
8049 if test -n "$ncn_tool_prefix"; then
8050 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8051set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053$as_echo_n "checking for $ac_word... " >&6; }
8054if test "${ac_cv_prog_AR+set}" = set; then :
8055 $as_echo_n "(cached) " >&6
859789af
AC
8056else
8057 if test -n "$AR"; then
8058 ac_cv_prog_AR="$AR" # Let the user override the test.
8059else
c6b750e1
DJ
8060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061for as_dir in $PATH
8062do
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8067 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8069 break 2
8070 fi
8071done
81ecdfbb
RW
8072 done
8073IFS=$as_save_IFS
c6b750e1 8074
859789af
AC
8075fi
8076fi
c6b750e1 8077AR=$ac_cv_prog_AR
859789af 8078if test -n "$AR"; then
81ecdfbb
RW
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8080$as_echo "$AR" >&6; }
859789af 8081else
81ecdfbb
RW
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083$as_echo "no" >&6; }
859789af
AC
8084fi
8085
81ecdfbb 8086
05cbd757
PB
8087 fi
8088 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8090set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092$as_echo_n "checking for $ac_word... " >&6; }
8093if test "${ac_cv_prog_AR+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
859789af 8095else
05cbd757
PB
8096 if test -n "$AR"; then
8097 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8098else
c6b750e1
DJ
8099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100for as_dir in $PATH
8101do
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8106 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8108 break 2
8109 fi
8110done
81ecdfbb
RW
8111 done
8112IFS=$as_save_IFS
c6b750e1 8113
859789af
AC
8114fi
8115fi
c6b750e1 8116AR=$ac_cv_prog_AR
05cbd757 8117if test -n "$AR"; then
81ecdfbb
RW
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8119$as_echo "$AR" >&6; }
859789af 8120else
81ecdfbb
RW
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122$as_echo "no" >&6; }
859789af 8123fi
c6b750e1 8124
81ecdfbb 8125
05cbd757
PB
8126 fi
8127 test -n "$ac_cv_prog_AR" && break
8128done
8129
8130if test -z "$ac_cv_prog_AR" ; then
8131 set dummy ar
8132 if test $build = $host ; then
8133 AR="$2"
859789af 8134 else
05cbd757 8135 AR="${ncn_tool_prefix}$2"
859789af 8136 fi
859789af
AC
8137fi
8138
9a819804
AO
8139
8140
8141if test -n "$AS"; then
8142 ac_cv_prog_AS=$AS
8143elif test -n "$ac_cv_prog_AS"; then
8144 AS=$ac_cv_prog_AS
8145fi
8146
8147if test -n "$ac_cv_prog_AS"; then
8148 for ncn_progname in as; do
8149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8150set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152$as_echo_n "checking for $ac_word... " >&6; }
8153if test "${ac_cv_prog_AS+set}" = set; then :
8154 $as_echo_n "(cached) " >&6
9a819804
AO
8155else
8156 if test -n "$AS"; then
8157 ac_cv_prog_AS="$AS" # Let the user override the test.
8158else
8159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160for as_dir in $PATH
8161do
8162 IFS=$as_save_IFS
8163 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8166 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8168 break 2
8169 fi
8170done
81ecdfbb
RW
8171 done
8172IFS=$as_save_IFS
9a819804
AO
8173
8174fi
8175fi
8176AS=$ac_cv_prog_AS
8177if test -n "$AS"; then
81ecdfbb
RW
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8179$as_echo "$AS" >&6; }
9a819804 8180else
81ecdfbb
RW
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182$as_echo "no" >&6; }
9a819804
AO
8183fi
8184
81ecdfbb 8185
9a819804
AO
8186 done
8187fi
8188
8189for ncn_progname in as; do
05cbd757
PB
8190 if test -n "$ncn_tool_prefix"; then
8191 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8192set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194$as_echo_n "checking for $ac_word... " >&6; }
8195if test "${ac_cv_prog_AS+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
859789af
AC
8197else
8198 if test -n "$AS"; then
8199 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8200else
8201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202for as_dir in $PATH
8203do
8204 IFS=$as_save_IFS
8205 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8208 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8210 break 2
8211 fi
8212done
81ecdfbb
RW
8213 done
8214IFS=$as_save_IFS
c6b750e1 8215
859789af
AC
8216fi
8217fi
c6b750e1 8218AS=$ac_cv_prog_AS
859789af 8219if test -n "$AS"; then
81ecdfbb
RW
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8221$as_echo "$AS" >&6; }
859789af 8222else
81ecdfbb
RW
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224$as_echo "no" >&6; }
859789af
AC
8225fi
8226
81ecdfbb 8227
05cbd757
PB
8228 fi
8229 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8231set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233$as_echo_n "checking for $ac_word... " >&6; }
8234if test "${ac_cv_prog_AS+set}" = set; then :
8235 $as_echo_n "(cached) " >&6
859789af 8236else
05cbd757
PB
8237 if test -n "$AS"; then
8238 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8239else
c6b750e1
DJ
8240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8241for as_dir in $PATH
8242do
8243 IFS=$as_save_IFS
8244 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8245 for ac_exec_ext in '' $ac_executable_extensions; do
8246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8247 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8249 break 2
8250 fi
8251done
81ecdfbb
RW
8252 done
8253IFS=$as_save_IFS
c6b750e1 8254
859789af
AC
8255fi
8256fi
c6b750e1 8257AS=$ac_cv_prog_AS
05cbd757 8258if test -n "$AS"; then
81ecdfbb
RW
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8260$as_echo "$AS" >&6; }
859789af 8261else
81ecdfbb
RW
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263$as_echo "no" >&6; }
859789af 8264fi
c6b750e1 8265
81ecdfbb 8266
05cbd757
PB
8267 fi
8268 test -n "$ac_cv_prog_AS" && break
8269done
8270
8271if test -z "$ac_cv_prog_AS" ; then
8272 set dummy as
8273 if test $build = $host ; then
8274 AS="$2"
859789af 8275 else
05cbd757 8276 AS="${ncn_tool_prefix}$2"
859789af 8277 fi
859789af
AC
8278fi
8279
9a819804
AO
8280
8281
8282if test -n "$DLLTOOL"; then
8283 ac_cv_prog_DLLTOOL=$DLLTOOL
8284elif test -n "$ac_cv_prog_DLLTOOL"; then
8285 DLLTOOL=$ac_cv_prog_DLLTOOL
8286fi
8287
8288if test -n "$ac_cv_prog_DLLTOOL"; then
8289 for ncn_progname in dlltool; do
8290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8291set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293$as_echo_n "checking for $ac_word... " >&6; }
8294if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8295 $as_echo_n "(cached) " >&6
9a819804
AO
8296else
8297 if test -n "$DLLTOOL"; then
8298 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8299else
8300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8307 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8309 break 2
8310 fi
8311done
81ecdfbb
RW
8312 done
8313IFS=$as_save_IFS
9a819804
AO
8314
8315fi
8316fi
8317DLLTOOL=$ac_cv_prog_DLLTOOL
8318if test -n "$DLLTOOL"; then
81ecdfbb
RW
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8320$as_echo "$DLLTOOL" >&6; }
9a819804 8321else
81ecdfbb
RW
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323$as_echo "no" >&6; }
9a819804
AO
8324fi
8325
81ecdfbb 8326
9a819804
AO
8327 done
8328fi
8329
8330for ncn_progname in dlltool; do
05cbd757
PB
8331 if test -n "$ncn_tool_prefix"; then
8332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8333set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8335$as_echo_n "checking for $ac_word... " >&6; }
8336if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8337 $as_echo_n "(cached) " >&6
859789af
AC
8338else
8339 if test -n "$DLLTOOL"; then
8340 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8341else
c6b750e1
DJ
8342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8343for as_dir in $PATH
8344do
8345 IFS=$as_save_IFS
8346 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8347 for ac_exec_ext in '' $ac_executable_extensions; do
8348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8349 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8351 break 2
8352 fi
8353done
81ecdfbb
RW
8354 done
8355IFS=$as_save_IFS
c6b750e1 8356
859789af
AC
8357fi
8358fi
c6b750e1 8359DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8360if test -n "$DLLTOOL"; then
81ecdfbb
RW
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8362$as_echo "$DLLTOOL" >&6; }
859789af 8363else
81ecdfbb
RW
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8365$as_echo "no" >&6; }
859789af
AC
8366fi
8367
81ecdfbb 8368
05cbd757
PB
8369 fi
8370 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8372set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374$as_echo_n "checking for $ac_word... " >&6; }
8375if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
859789af 8377else
05cbd757
PB
8378 if test -n "$DLLTOOL"; then
8379 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8380else
c6b750e1
DJ
8381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382for as_dir in $PATH
8383do
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8388 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8390 break 2
8391 fi
8392done
81ecdfbb
RW
8393 done
8394IFS=$as_save_IFS
c6b750e1 8395
859789af
AC
8396fi
8397fi
c6b750e1 8398DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8399if test -n "$DLLTOOL"; then
81ecdfbb
RW
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8401$as_echo "$DLLTOOL" >&6; }
859789af 8402else
81ecdfbb
RW
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404$as_echo "no" >&6; }
859789af 8405fi
c6b750e1 8406
81ecdfbb 8407
05cbd757
PB
8408 fi
8409 test -n "$ac_cv_prog_DLLTOOL" && break
8410done
8411
8412if test -z "$ac_cv_prog_DLLTOOL" ; then
8413 set dummy dlltool
8414 if test $build = $host ; then
8415 DLLTOOL="$2"
859789af 8416 else
05cbd757 8417 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8418 fi
859789af
AC
8419fi
8420
9a819804
AO
8421
8422
8423if test -n "$LD"; then
8424 ac_cv_prog_LD=$LD
8425elif test -n "$ac_cv_prog_LD"; then
8426 LD=$ac_cv_prog_LD
8427fi
8428
8429if test -n "$ac_cv_prog_LD"; then
8430 for ncn_progname in ld; do
8431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8432set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8434$as_echo_n "checking for $ac_word... " >&6; }
8435if test "${ac_cv_prog_LD+set}" = set; then :
8436 $as_echo_n "(cached) " >&6
9a819804
AO
8437else
8438 if test -n "$LD"; then
8439 ac_cv_prog_LD="$LD" # Let the user override the test.
8440else
8441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442for as_dir in $PATH
8443do
8444 IFS=$as_save_IFS
8445 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8446 for ac_exec_ext in '' $ac_executable_extensions; do
8447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8448 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8450 break 2
8451 fi
8452done
81ecdfbb
RW
8453 done
8454IFS=$as_save_IFS
9a819804
AO
8455
8456fi
8457fi
8458LD=$ac_cv_prog_LD
8459if test -n "$LD"; then
81ecdfbb
RW
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8461$as_echo "$LD" >&6; }
9a819804 8462else
81ecdfbb
RW
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8464$as_echo "no" >&6; }
9a819804
AO
8465fi
8466
81ecdfbb 8467
9a819804
AO
8468 done
8469fi
8470
8471for ncn_progname in ld; do
05cbd757
PB
8472 if test -n "$ncn_tool_prefix"; then
8473 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8474set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8476$as_echo_n "checking for $ac_word... " >&6; }
8477if test "${ac_cv_prog_LD+set}" = set; then :
8478 $as_echo_n "(cached) " >&6
859789af
AC
8479else
8480 if test -n "$LD"; then
8481 ac_cv_prog_LD="$LD" # Let the user override the test.
8482else
c6b750e1
DJ
8483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8484for as_dir in $PATH
8485do
8486 IFS=$as_save_IFS
8487 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8488 for ac_exec_ext in '' $ac_executable_extensions; do
8489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8490 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8492 break 2
8493 fi
8494done
81ecdfbb
RW
8495 done
8496IFS=$as_save_IFS
c6b750e1 8497
859789af
AC
8498fi
8499fi
c6b750e1 8500LD=$ac_cv_prog_LD
859789af 8501if test -n "$LD"; then
81ecdfbb
RW
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8503$as_echo "$LD" >&6; }
859789af 8504else
81ecdfbb
RW
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8506$as_echo "no" >&6; }
859789af
AC
8507fi
8508
81ecdfbb 8509
05cbd757
PB
8510 fi
8511 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8513set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515$as_echo_n "checking for $ac_word... " >&6; }
8516if test "${ac_cv_prog_LD+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
859789af 8518else
05cbd757
PB
8519 if test -n "$LD"; then
8520 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8521else
c6b750e1
DJ
8522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523for as_dir in $PATH
8524do
8525 IFS=$as_save_IFS
8526 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8529 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8531 break 2
8532 fi
8533done
81ecdfbb
RW
8534 done
8535IFS=$as_save_IFS
c6b750e1 8536
859789af
AC
8537fi
8538fi
c6b750e1 8539LD=$ac_cv_prog_LD
05cbd757 8540if test -n "$LD"; then
81ecdfbb
RW
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8542$as_echo "$LD" >&6; }
859789af 8543else
81ecdfbb
RW
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545$as_echo "no" >&6; }
859789af 8546fi
c6b750e1 8547
81ecdfbb 8548
05cbd757
PB
8549 fi
8550 test -n "$ac_cv_prog_LD" && break
8551done
8552
8553if test -z "$ac_cv_prog_LD" ; then
8554 set dummy ld
8555 if test $build = $host ; then
8556 LD="$2"
859789af 8557 else
05cbd757 8558 LD="${ncn_tool_prefix}$2"
859789af 8559 fi
859789af
AC
8560fi
8561
9a819804
AO
8562
8563
8564if test -n "$LIPO"; then
8565 ac_cv_prog_LIPO=$LIPO
8566elif test -n "$ac_cv_prog_LIPO"; then
8567 LIPO=$ac_cv_prog_LIPO
8568fi
8569
8570if test -n "$ac_cv_prog_LIPO"; then
8571 for ncn_progname in lipo; do
8572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8573set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575$as_echo_n "checking for $ac_word... " >&6; }
8576if test "${ac_cv_prog_LIPO+set}" = set; then :
8577 $as_echo_n "(cached) " >&6
9a819804
AO
8578else
8579 if test -n "$LIPO"; then
8580 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8581else
8582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583for as_dir in $PATH
8584do
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8589 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8591 break 2
8592 fi
8593done
81ecdfbb
RW
8594 done
8595IFS=$as_save_IFS
9a819804
AO
8596
8597fi
8598fi
8599LIPO=$ac_cv_prog_LIPO
8600if test -n "$LIPO"; then
81ecdfbb
RW
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8602$as_echo "$LIPO" >&6; }
9a819804 8603else
81ecdfbb
RW
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605$as_echo "no" >&6; }
9a819804
AO
8606fi
8607
81ecdfbb 8608
9a819804
AO
8609 done
8610fi
8611
8612for ncn_progname in lipo; do
be01d343
PB
8613 if test -n "$ncn_tool_prefix"; then
8614 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8615set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8617$as_echo_n "checking for $ac_word... " >&6; }
8618if test "${ac_cv_prog_LIPO+set}" = set; then :
8619 $as_echo_n "(cached) " >&6
be01d343
PB
8620else
8621 if test -n "$LIPO"; then
8622 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8623else
c6b750e1
DJ
8624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625for as_dir in $PATH
8626do
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8631 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8633 break 2
8634 fi
8635done
81ecdfbb
RW
8636 done
8637IFS=$as_save_IFS
c6b750e1 8638
be01d343
PB
8639fi
8640fi
c6b750e1 8641LIPO=$ac_cv_prog_LIPO
be01d343 8642if test -n "$LIPO"; then
81ecdfbb
RW
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8644$as_echo "$LIPO" >&6; }
be01d343 8645else
81ecdfbb
RW
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8647$as_echo "no" >&6; }
be01d343
PB
8648fi
8649
81ecdfbb 8650
be01d343
PB
8651 fi
8652 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8654set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8656$as_echo_n "checking for $ac_word... " >&6; }
8657if test "${ac_cv_prog_LIPO+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
be01d343
PB
8659else
8660 if test -n "$LIPO"; then
8661 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8662else
c6b750e1
DJ
8663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664for as_dir in $PATH
8665do
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8670 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8672 break 2
8673 fi
8674done
81ecdfbb
RW
8675 done
8676IFS=$as_save_IFS
c6b750e1 8677
be01d343
PB
8678fi
8679fi
c6b750e1 8680LIPO=$ac_cv_prog_LIPO
be01d343 8681if test -n "$LIPO"; then
81ecdfbb
RW
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8683$as_echo "$LIPO" >&6; }
be01d343 8684else
81ecdfbb
RW
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8686$as_echo "no" >&6; }
be01d343 8687fi
c6b750e1 8688
81ecdfbb 8689
be01d343
PB
8690 fi
8691 test -n "$ac_cv_prog_LIPO" && break
8692done
8693
8694if test -z "$ac_cv_prog_LIPO" ; then
8695 set dummy lipo
8696 if test $build = $host ; then
8697 LIPO="$2"
8698 else
8699 LIPO="${ncn_tool_prefix}$2"
8700 fi
8701fi
8702
9a819804
AO
8703
8704
8705if test -n "$NM"; then
8706 ac_cv_prog_NM=$NM
8707elif test -n "$ac_cv_prog_NM"; then
8708 NM=$ac_cv_prog_NM
8709fi
8710
8711if test -n "$ac_cv_prog_NM"; then
8712 for ncn_progname in nm; do
8713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8714set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8716$as_echo_n "checking for $ac_word... " >&6; }
8717if test "${ac_cv_prog_NM+set}" = set; then :
8718 $as_echo_n "(cached) " >&6
859789af
AC
8719else
8720 if test -n "$NM"; then
8721 ac_cv_prog_NM="$NM" # Let the user override the test.
8722else
c6b750e1
DJ
8723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724for as_dir in $PATH
8725do
8726 IFS=$as_save_IFS
8727 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8730 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8732 break 2
8733 fi
8734done
81ecdfbb
RW
8735 done
8736IFS=$as_save_IFS
c6b750e1 8737
859789af
AC
8738fi
8739fi
c6b750e1 8740NM=$ac_cv_prog_NM
859789af 8741if test -n "$NM"; then
81ecdfbb
RW
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8743$as_echo "$NM" >&6; }
859789af 8744else
81ecdfbb
RW
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746$as_echo "no" >&6; }
859789af
AC
8747fi
8748
81ecdfbb 8749
9a819804
AO
8750 done
8751fi
8752
8753for ncn_progname in nm; do
8754 if test -n "$ncn_tool_prefix"; then
8755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8756set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8758$as_echo_n "checking for $ac_word... " >&6; }
8759if test "${ac_cv_prog_NM+set}" = set; then :
8760 $as_echo_n "(cached) " >&6
859789af 8761else
05cbd757
PB
8762 if test -n "$NM"; then
8763 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8764else
c6b750e1
DJ
8765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766for as_dir in $PATH
8767do
8768 IFS=$as_save_IFS
8769 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8770 for ac_exec_ext in '' $ac_executable_extensions; do
8771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8772 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8774 break 2
8775 fi
8776done
81ecdfbb
RW
8777 done
8778IFS=$as_save_IFS
c6b750e1 8779
859789af
AC
8780fi
8781fi
c6b750e1 8782NM=$ac_cv_prog_NM
05cbd757 8783if test -n "$NM"; then
81ecdfbb
RW
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8785$as_echo "$NM" >&6; }
859789af 8786else
81ecdfbb
RW
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788$as_echo "no" >&6; }
859789af 8789fi
c6b750e1 8790
81ecdfbb 8791
05cbd757 8792 fi
9a819804
AO
8793 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8795set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8797$as_echo_n "checking for $ac_word... " >&6; }
8798if test "${ac_cv_prog_NM+set}" = set; then :
8799 $as_echo_n "(cached) " >&6
9a819804
AO
8800else
8801 if test -n "$NM"; then
8802 ac_cv_prog_NM="$NM" # Let the user override the test.
8803else
8804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8805for as_dir in $PATH
8806do
8807 IFS=$as_save_IFS
8808 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8809 for ac_exec_ext in '' $ac_executable_extensions; do
8810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8811 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8813 break 2
8814 fi
8815done
81ecdfbb
RW
8816 done
8817IFS=$as_save_IFS
9a819804
AO
8818
8819fi
8820fi
8821NM=$ac_cv_prog_NM
8822if test -n "$NM"; then
81ecdfbb
RW
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8824$as_echo "$NM" >&6; }
9a819804 8825else
81ecdfbb
RW
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8827$as_echo "no" >&6; }
9a819804
AO
8828fi
8829
81ecdfbb 8830
9a819804
AO
8831 fi
8832 test -n "$ac_cv_prog_NM" && break
8833done
8834
8835if test -z "$ac_cv_prog_NM" ; then
8836 set dummy nm
8837 if test $build = $host ; then
8838 NM="$2"
8839 else
8840 NM="${ncn_tool_prefix}$2"
8841 fi
8842fi
8843
8844
8845
8846if test -n "$RANLIB"; then
8847 ac_cv_prog_RANLIB=$RANLIB
8848elif test -n "$ac_cv_prog_RANLIB"; then
8849 RANLIB=$ac_cv_prog_RANLIB
8850fi
8851
8852if test -n "$ac_cv_prog_RANLIB"; then
8853 for ncn_progname in ranlib; do
8854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8855set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8857$as_echo_n "checking for $ac_word... " >&6; }
8858if test "${ac_cv_prog_RANLIB+set}" = set; then :
8859 $as_echo_n "(cached) " >&6
9a819804
AO
8860else
8861 if test -n "$RANLIB"; then
8862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8863else
8864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8865for as_dir in $PATH
8866do
8867 IFS=$as_save_IFS
8868 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8869 for ac_exec_ext in '' $ac_executable_extensions; do
8870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8871 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8873 break 2
8874 fi
8875done
81ecdfbb
RW
8876 done
8877IFS=$as_save_IFS
9a819804
AO
8878
8879fi
8880fi
8881RANLIB=$ac_cv_prog_RANLIB
8882if test -n "$RANLIB"; then
81ecdfbb
RW
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8884$as_echo "$RANLIB" >&6; }
9a819804 8885else
81ecdfbb
RW
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887$as_echo "no" >&6; }
9a819804
AO
8888fi
8889
81ecdfbb 8890
9a819804
AO
8891 done
8892fi
859789af 8893
9a819804 8894for ncn_progname in ranlib; do
05cbd757
PB
8895 if test -n "$ncn_tool_prefix"; then
8896 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8897set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899$as_echo_n "checking for $ac_word... " >&6; }
8900if test "${ac_cv_prog_RANLIB+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
859789af
AC
8902else
8903 if test -n "$RANLIB"; then
8904 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8905else
c6b750e1
DJ
8906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907for as_dir in $PATH
8908do
8909 IFS=$as_save_IFS
8910 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8911 for ac_exec_ext in '' $ac_executable_extensions; do
8912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8913 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8915 break 2
8916 fi
8917done
81ecdfbb
RW
8918 done
8919IFS=$as_save_IFS
c6b750e1 8920
859789af
AC
8921fi
8922fi
c6b750e1 8923RANLIB=$ac_cv_prog_RANLIB
859789af 8924if test -n "$RANLIB"; then
81ecdfbb
RW
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8926$as_echo "$RANLIB" >&6; }
859789af 8927else
81ecdfbb
RW
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929$as_echo "no" >&6; }
859789af
AC
8930fi
8931
81ecdfbb 8932
05cbd757
PB
8933 fi
8934 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8936set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938$as_echo_n "checking for $ac_word... " >&6; }
8939if test "${ac_cv_prog_RANLIB+set}" = set; then :
8940 $as_echo_n "(cached) " >&6
859789af 8941else
05cbd757
PB
8942 if test -n "$RANLIB"; then
8943 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8944else
c6b750e1
DJ
8945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8946for as_dir in $PATH
8947do
8948 IFS=$as_save_IFS
8949 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8952 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8954 break 2
8955 fi
8956done
81ecdfbb
RW
8957 done
8958IFS=$as_save_IFS
c6b750e1 8959
859789af
AC
8960fi
8961fi
c6b750e1 8962RANLIB=$ac_cv_prog_RANLIB
05cbd757 8963if test -n "$RANLIB"; then
81ecdfbb
RW
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8965$as_echo "$RANLIB" >&6; }
859789af 8966else
81ecdfbb
RW
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968$as_echo "no" >&6; }
859789af 8969fi
c6b750e1 8970
81ecdfbb 8971
859789af 8972 fi
05cbd757
PB
8973 test -n "$ac_cv_prog_RANLIB" && break
8974done
8975
8976if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8977 RANLIB="true"
859789af
AC
8978fi
8979
9a819804
AO
8980
8981
8982if test -n "$STRIP"; then
8983 ac_cv_prog_STRIP=$STRIP
8984elif test -n "$ac_cv_prog_STRIP"; then
8985 STRIP=$ac_cv_prog_STRIP
8986fi
8987
8988if test -n "$ac_cv_prog_STRIP"; then
8989 for ncn_progname in strip; do
8990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8991set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8993$as_echo_n "checking for $ac_word... " >&6; }
8994if test "${ac_cv_prog_STRIP+set}" = set; then :
8995 $as_echo_n "(cached) " >&6
9a819804
AO
8996else
8997 if test -n "$STRIP"; then
8998 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8999else
9000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001for as_dir in $PATH
9002do
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9007 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9009 break 2
9010 fi
9011done
81ecdfbb
RW
9012 done
9013IFS=$as_save_IFS
9a819804
AO
9014
9015fi
9016fi
9017STRIP=$ac_cv_prog_STRIP
9018if test -n "$STRIP"; then
81ecdfbb
RW
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9020$as_echo "$STRIP" >&6; }
9a819804 9021else
81ecdfbb
RW
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023$as_echo "no" >&6; }
9a819804
AO
9024fi
9025
81ecdfbb 9026
9a819804
AO
9027 done
9028fi
9029
9030for ncn_progname in strip; do
be01d343
PB
9031 if test -n "$ncn_tool_prefix"; then
9032 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9033set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035$as_echo_n "checking for $ac_word... " >&6; }
9036if test "${ac_cv_prog_STRIP+set}" = set; then :
9037 $as_echo_n "(cached) " >&6
be01d343
PB
9038else
9039 if test -n "$STRIP"; then
9040 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9041else
c6b750e1
DJ
9042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043for as_dir in $PATH
9044do
9045 IFS=$as_save_IFS
9046 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9047 for ac_exec_ext in '' $ac_executable_extensions; do
9048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9049 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9051 break 2
9052 fi
9053done
81ecdfbb
RW
9054 done
9055IFS=$as_save_IFS
c6b750e1 9056
be01d343
PB
9057fi
9058fi
c6b750e1 9059STRIP=$ac_cv_prog_STRIP
be01d343 9060if test -n "$STRIP"; then
81ecdfbb
RW
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9062$as_echo "$STRIP" >&6; }
be01d343 9063else
81ecdfbb
RW
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065$as_echo "no" >&6; }
be01d343
PB
9066fi
9067
81ecdfbb 9068
be01d343
PB
9069 fi
9070 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9072set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9074$as_echo_n "checking for $ac_word... " >&6; }
9075if test "${ac_cv_prog_STRIP+set}" = set; then :
9076 $as_echo_n "(cached) " >&6
be01d343
PB
9077else
9078 if test -n "$STRIP"; then
9079 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9080else
c6b750e1
DJ
9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9088 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9090 break 2
9091 fi
9092done
81ecdfbb
RW
9093 done
9094IFS=$as_save_IFS
c6b750e1 9095
be01d343
PB
9096fi
9097fi
c6b750e1 9098STRIP=$ac_cv_prog_STRIP
be01d343 9099if test -n "$STRIP"; then
81ecdfbb
RW
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9101$as_echo "$STRIP" >&6; }
be01d343 9102else
81ecdfbb
RW
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9104$as_echo "no" >&6; }
be01d343 9105fi
c6b750e1 9106
81ecdfbb 9107
be01d343
PB
9108 fi
9109 test -n "$ac_cv_prog_STRIP" && break
9110done
9111
9112if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9113 STRIP="true"
be01d343
PB
9114fi
9115
9a819804
AO
9116
9117
9118if test -n "$WINDRES"; then
9119 ac_cv_prog_WINDRES=$WINDRES
9120elif test -n "$ac_cv_prog_WINDRES"; then
9121 WINDRES=$ac_cv_prog_WINDRES
9122fi
9123
9124if test -n "$ac_cv_prog_WINDRES"; then
9125 for ncn_progname in windres; do
9126 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9127set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9129$as_echo_n "checking for $ac_word... " >&6; }
9130if test "${ac_cv_prog_WINDRES+set}" = set; then :
9131 $as_echo_n "(cached) " >&6
9a819804
AO
9132else
9133 if test -n "$WINDRES"; then
9134 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9135else
9136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9137for as_dir in $PATH
9138do
9139 IFS=$as_save_IFS
9140 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9141 for ac_exec_ext in '' $ac_executable_extensions; do
9142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9143 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9145 break 2
9146 fi
9147done
81ecdfbb
RW
9148 done
9149IFS=$as_save_IFS
9a819804
AO
9150
9151fi
9152fi
9153WINDRES=$ac_cv_prog_WINDRES
9154if test -n "$WINDRES"; then
81ecdfbb
RW
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9156$as_echo "$WINDRES" >&6; }
9a819804 9157else
81ecdfbb
RW
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9159$as_echo "no" >&6; }
9a819804
AO
9160fi
9161
81ecdfbb 9162
9a819804
AO
9163 done
9164fi
9165
9166for ncn_progname in windres; do
05cbd757
PB
9167 if test -n "$ncn_tool_prefix"; then
9168 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9169set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9171$as_echo_n "checking for $ac_word... " >&6; }
9172if test "${ac_cv_prog_WINDRES+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
859789af
AC
9174else
9175 if test -n "$WINDRES"; then
9176 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9177else
c6b750e1
DJ
9178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9179for as_dir in $PATH
9180do
9181 IFS=$as_save_IFS
9182 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9183 for ac_exec_ext in '' $ac_executable_extensions; do
9184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9185 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9187 break 2
9188 fi
9189done
81ecdfbb
RW
9190 done
9191IFS=$as_save_IFS
c6b750e1 9192
859789af
AC
9193fi
9194fi
c6b750e1 9195WINDRES=$ac_cv_prog_WINDRES
859789af 9196if test -n "$WINDRES"; then
81ecdfbb
RW
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9198$as_echo "$WINDRES" >&6; }
859789af 9199else
81ecdfbb
RW
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201$as_echo "no" >&6; }
859789af
AC
9202fi
9203
81ecdfbb 9204
05cbd757
PB
9205 fi
9206 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9207 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9208set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9210$as_echo_n "checking for $ac_word... " >&6; }
9211if test "${ac_cv_prog_WINDRES+set}" = set; then :
9212 $as_echo_n "(cached) " >&6
859789af 9213else
05cbd757
PB
9214 if test -n "$WINDRES"; then
9215 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9216else
c6b750e1
DJ
9217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9218for as_dir in $PATH
9219do
9220 IFS=$as_save_IFS
9221 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9222 for ac_exec_ext in '' $ac_executable_extensions; do
9223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9224 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9226 break 2
9227 fi
9228done
81ecdfbb
RW
9229 done
9230IFS=$as_save_IFS
c6b750e1 9231
859789af
AC
9232fi
9233fi
c6b750e1 9234WINDRES=$ac_cv_prog_WINDRES
05cbd757 9235if test -n "$WINDRES"; then
81ecdfbb
RW
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9237$as_echo "$WINDRES" >&6; }
859789af 9238else
81ecdfbb
RW
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9240$as_echo "no" >&6; }
859789af 9241fi
c6b750e1 9242
81ecdfbb 9243
05cbd757
PB
9244 fi
9245 test -n "$ac_cv_prog_WINDRES" && break
9246done
9247
9248if test -z "$ac_cv_prog_WINDRES" ; then
9249 set dummy windres
9250 if test $build = $host ; then
9251 WINDRES="$2"
859789af 9252 else
05cbd757 9253 WINDRES="${ncn_tool_prefix}$2"
859789af 9254 fi
859789af
AC
9255fi
9256
9a819804
AO
9257
9258
0c24b341
NC
9259if test -n "$WINDMC"; then
9260 ac_cv_prog_WINDMC=$WINDMC
9261elif test -n "$ac_cv_prog_WINDMC"; then
9262 WINDMC=$ac_cv_prog_WINDMC
9263fi
9264
9265if test -n "$ac_cv_prog_WINDMC"; then
9266 for ncn_progname in windmc; do
9267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9268set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9270$as_echo_n "checking for $ac_word... " >&6; }
9271if test "${ac_cv_prog_WINDMC+set}" = set; then :
9272 $as_echo_n "(cached) " >&6
0c24b341
NC
9273else
9274 if test -n "$WINDMC"; then
9275 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9276else
9277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278for as_dir in $PATH
9279do
9280 IFS=$as_save_IFS
9281 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9284 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9286 break 2
9287 fi
9288done
81ecdfbb
RW
9289 done
9290IFS=$as_save_IFS
0c24b341
NC
9291
9292fi
9293fi
9294WINDMC=$ac_cv_prog_WINDMC
9295if test -n "$WINDMC"; then
81ecdfbb
RW
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9297$as_echo "$WINDMC" >&6; }
0c24b341 9298else
81ecdfbb
RW
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300$as_echo "no" >&6; }
0c24b341
NC
9301fi
9302
81ecdfbb 9303
0c24b341
NC
9304 done
9305fi
9306
9307for ncn_progname in windmc; do
9308 if test -n "$ncn_tool_prefix"; then
9309 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9310set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9312$as_echo_n "checking for $ac_word... " >&6; }
9313if test "${ac_cv_prog_WINDMC+set}" = set; then :
9314 $as_echo_n "(cached) " >&6
0c24b341
NC
9315else
9316 if test -n "$WINDMC"; then
9317 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9318else
9319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9320for as_dir in $PATH
9321do
9322 IFS=$as_save_IFS
9323 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9324 for ac_exec_ext in '' $ac_executable_extensions; do
9325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9326 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9328 break 2
9329 fi
9330done
81ecdfbb
RW
9331 done
9332IFS=$as_save_IFS
0c24b341
NC
9333
9334fi
9335fi
9336WINDMC=$ac_cv_prog_WINDMC
9337if test -n "$WINDMC"; then
81ecdfbb
RW
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9339$as_echo "$WINDMC" >&6; }
0c24b341 9340else
81ecdfbb
RW
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9342$as_echo "no" >&6; }
0c24b341
NC
9343fi
9344
81ecdfbb 9345
0c24b341
NC
9346 fi
9347 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9349set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9351$as_echo_n "checking for $ac_word... " >&6; }
9352if test "${ac_cv_prog_WINDMC+set}" = set; then :
9353 $as_echo_n "(cached) " >&6
0c24b341
NC
9354else
9355 if test -n "$WINDMC"; then
9356 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9357else
9358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9359for as_dir in $PATH
9360do
9361 IFS=$as_save_IFS
9362 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9363 for ac_exec_ext in '' $ac_executable_extensions; do
9364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9365 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9367 break 2
9368 fi
9369done
81ecdfbb
RW
9370 done
9371IFS=$as_save_IFS
0c24b341
NC
9372
9373fi
9374fi
9375WINDMC=$ac_cv_prog_WINDMC
9376if test -n "$WINDMC"; then
81ecdfbb
RW
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9378$as_echo "$WINDMC" >&6; }
0c24b341 9379else
81ecdfbb
RW
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381$as_echo "no" >&6; }
0c24b341
NC
9382fi
9383
81ecdfbb 9384
0c24b341
NC
9385 fi
9386 test -n "$ac_cv_prog_WINDMC" && break
9387done
9388
9389if test -z "$ac_cv_prog_WINDMC" ; then
9390 set dummy windmc
9391 if test $build = $host ; then
9392 WINDMC="$2"
9393 else
9394 WINDMC="${ncn_tool_prefix}$2"
9395 fi
9396fi
9397
9398
9399
9a819804
AO
9400if test -n "$OBJCOPY"; then
9401 ac_cv_prog_OBJCOPY=$OBJCOPY
9402elif test -n "$ac_cv_prog_OBJCOPY"; then
9403 OBJCOPY=$ac_cv_prog_OBJCOPY
9404fi
9405
9406if test -n "$ac_cv_prog_OBJCOPY"; then
9407 for ncn_progname in objcopy; do
9408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9409set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9411$as_echo_n "checking for $ac_word... " >&6; }
9412if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9413 $as_echo_n "(cached) " >&6
9a819804
AO
9414else
9415 if test -n "$OBJCOPY"; then
9416 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9417else
9418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9419for as_dir in $PATH
9420do
9421 IFS=$as_save_IFS
9422 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9423 for ac_exec_ext in '' $ac_executable_extensions; do
9424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9425 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9427 break 2
9428 fi
9429done
81ecdfbb
RW
9430 done
9431IFS=$as_save_IFS
9a819804
AO
9432
9433fi
9434fi
9435OBJCOPY=$ac_cv_prog_OBJCOPY
9436if test -n "$OBJCOPY"; then
81ecdfbb
RW
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9438$as_echo "$OBJCOPY" >&6; }
9a819804 9439else
81ecdfbb
RW
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9441$as_echo "no" >&6; }
9a819804
AO
9442fi
9443
81ecdfbb 9444
9a819804
AO
9445 done
9446fi
9447
9448for ncn_progname in objcopy; do
05cbd757
PB
9449 if test -n "$ncn_tool_prefix"; then
9450 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9451set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9453$as_echo_n "checking for $ac_word... " >&6; }
9454if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9455 $as_echo_n "(cached) " >&6
859789af
AC
9456else
9457 if test -n "$OBJCOPY"; then
9458 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9459else
c6b750e1
DJ
9460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9461for as_dir in $PATH
9462do
9463 IFS=$as_save_IFS
9464 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9465 for ac_exec_ext in '' $ac_executable_extensions; do
9466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9467 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9469 break 2
9470 fi
9471done
81ecdfbb
RW
9472 done
9473IFS=$as_save_IFS
c6b750e1 9474
859789af
AC
9475fi
9476fi
c6b750e1 9477OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9478if test -n "$OBJCOPY"; then
81ecdfbb
RW
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9480$as_echo "$OBJCOPY" >&6; }
859789af 9481else
81ecdfbb
RW
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483$as_echo "no" >&6; }
859789af
AC
9484fi
9485
81ecdfbb 9486
05cbd757
PB
9487 fi
9488 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9490set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9492$as_echo_n "checking for $ac_word... " >&6; }
9493if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9494 $as_echo_n "(cached) " >&6
859789af 9495else
05cbd757
PB
9496 if test -n "$OBJCOPY"; then
9497 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9498else
c6b750e1
DJ
9499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500for as_dir in $PATH
9501do
9502 IFS=$as_save_IFS
9503 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9504 for ac_exec_ext in '' $ac_executable_extensions; do
9505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9506 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9508 break 2
9509 fi
9510done
81ecdfbb
RW
9511 done
9512IFS=$as_save_IFS
c6b750e1 9513
859789af
AC
9514fi
9515fi
c6b750e1 9516OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9517if test -n "$OBJCOPY"; then
81ecdfbb
RW
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9519$as_echo "$OBJCOPY" >&6; }
859789af 9520else
81ecdfbb
RW
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9522$as_echo "no" >&6; }
859789af 9523fi
c6b750e1 9524
81ecdfbb 9525
05cbd757
PB
9526 fi
9527 test -n "$ac_cv_prog_OBJCOPY" && break
9528done
9529
9530if test -z "$ac_cv_prog_OBJCOPY" ; then
9531 set dummy objcopy
9532 if test $build = $host ; then
9533 OBJCOPY="$2"
859789af 9534 else
05cbd757 9535 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9536 fi
859789af
AC
9537fi
9538
9a819804
AO
9539
9540
9541if test -n "$OBJDUMP"; then
9542 ac_cv_prog_OBJDUMP=$OBJDUMP
9543elif test -n "$ac_cv_prog_OBJDUMP"; then
9544 OBJDUMP=$ac_cv_prog_OBJDUMP
9545fi
9546
9547if test -n "$ac_cv_prog_OBJDUMP"; then
9548 for ncn_progname in objdump; do
9549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9550set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9552$as_echo_n "checking for $ac_word... " >&6; }
9553if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9554 $as_echo_n "(cached) " >&6
9a819804
AO
9555else
9556 if test -n "$OBJDUMP"; then
9557 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9558else
9559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9560for as_dir in $PATH
9561do
9562 IFS=$as_save_IFS
9563 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9564 for ac_exec_ext in '' $ac_executable_extensions; do
9565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9566 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9568 break 2
9569 fi
9570done
81ecdfbb
RW
9571 done
9572IFS=$as_save_IFS
9a819804
AO
9573
9574fi
9575fi
9576OBJDUMP=$ac_cv_prog_OBJDUMP
9577if test -n "$OBJDUMP"; then
81ecdfbb
RW
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9579$as_echo "$OBJDUMP" >&6; }
9a819804 9580else
81ecdfbb
RW
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9582$as_echo "no" >&6; }
9a819804
AO
9583fi
9584
81ecdfbb 9585
9a819804
AO
9586 done
9587fi
9588
9589for ncn_progname in objdump; do
05cbd757
PB
9590 if test -n "$ncn_tool_prefix"; then
9591 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9592set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9594$as_echo_n "checking for $ac_word... " >&6; }
9595if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9596 $as_echo_n "(cached) " >&6
859789af
AC
9597else
9598 if test -n "$OBJDUMP"; then
9599 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9600else
c6b750e1
DJ
9601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602for as_dir in $PATH
9603do
9604 IFS=$as_save_IFS
9605 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9606 for ac_exec_ext in '' $ac_executable_extensions; do
9607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9608 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9610 break 2
9611 fi
9612done
81ecdfbb
RW
9613 done
9614IFS=$as_save_IFS
c6b750e1 9615
859789af
AC
9616fi
9617fi
c6b750e1 9618OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9619if test -n "$OBJDUMP"; then
81ecdfbb
RW
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9621$as_echo "$OBJDUMP" >&6; }
859789af 9622else
81ecdfbb
RW
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9624$as_echo "no" >&6; }
859789af
AC
9625fi
9626
81ecdfbb 9627
05cbd757
PB
9628 fi
9629 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9631set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633$as_echo_n "checking for $ac_word... " >&6; }
9634if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9635 $as_echo_n "(cached) " >&6
859789af 9636else
05cbd757
PB
9637 if test -n "$OBJDUMP"; then
9638 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9639else
c6b750e1
DJ
9640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641for as_dir in $PATH
9642do
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9647 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9649 break 2
9650 fi
9651done
81ecdfbb
RW
9652 done
9653IFS=$as_save_IFS
c6b750e1 9654
859789af
AC
9655fi
9656fi
c6b750e1 9657OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9658if test -n "$OBJDUMP"; then
81ecdfbb
RW
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9660$as_echo "$OBJDUMP" >&6; }
859789af 9661else
81ecdfbb
RW
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663$as_echo "no" >&6; }
859789af 9664fi
c6b750e1 9665
81ecdfbb 9666
05cbd757
PB
9667 fi
9668 test -n "$ac_cv_prog_OBJDUMP" && break
9669done
9670
9671if test -z "$ac_cv_prog_OBJDUMP" ; then
9672 set dummy objdump
9673 if test $build = $host ; then
9674 OBJDUMP="$2"
859789af 9675 else
05cbd757 9676 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9677 fi
859789af
AC
9678fi
9679
a0da8069
NN
9680
9681
9682
9683
9684
be01d343 9685# Target tools.
c6b750e1 9686
81ecdfbb
RW
9687# Check whether --with-build-time-tools was given.
9688if test "${with_build_time_tools+set}" = set; then :
9689 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9690 x/*) ;;
9691 *)
9692 with_build_time_tools=
81ecdfbb
RW
9693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9694$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9695 ;;
9696 esac
859789af 9697else
2429c060 9698 with_build_time_tools=
81ecdfbb
RW
9699fi
9700
859789af 9701
9a819804
AO
9702
9703
9704if test -n "$CC_FOR_TARGET"; then
9705 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9706elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9707 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9708fi
9709
9710if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9711 for ncn_progname in cc gcc; do
9712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9713set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9715$as_echo_n "checking for $ac_word... " >&6; }
9716if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9717 $as_echo_n "(cached) " >&6
9a819804
AO
9718else
9719 if test -n "$CC_FOR_TARGET"; then
9720 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9721else
9722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9723for as_dir in $PATH
9724do
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9727 for ac_exec_ext in '' $ac_executable_extensions; do
9728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9729 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9731 break 2
9732 fi
9733done
81ecdfbb
RW
9734 done
9735IFS=$as_save_IFS
9a819804
AO
9736
9737fi
9738fi
9739CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9740if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9742$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9743else
81ecdfbb
RW
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745$as_echo "no" >&6; }
9a819804
AO
9746fi
9747
81ecdfbb 9748
9a819804
AO
9749 done
9750fi
9751
9752if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9753 for ncn_progname in cc gcc; do
81ecdfbb
RW
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9755$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9756 if test -x $with_build_time_tools/${ncn_progname}; then
9757 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9759$as_echo "yes" >&6; }
cac3d6c4 9760 break
2429c060 9761 else
81ecdfbb
RW
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9763$as_echo "no" >&6; }
cac3d6c4
CM
9764 fi
9765 done
55db4b87
PB
9766fi
9767
2429c060
PB
9768if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9769 for ncn_progname in cc gcc; do
9770 if test -n "$ncn_target_tool_prefix"; then
9771 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9772set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774$as_echo_n "checking for $ac_word... " >&6; }
9775if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9776 $as_echo_n "(cached) " >&6
55db4b87
PB
9777else
9778 if test -n "$CC_FOR_TARGET"; then
9779 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9780else
c6b750e1
DJ
9781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782for as_dir in $PATH
9783do
9784 IFS=$as_save_IFS
9785 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9786 for ac_exec_ext in '' $ac_executable_extensions; do
9787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9788 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9790 break 2
9791 fi
9792done
81ecdfbb
RW
9793 done
9794IFS=$as_save_IFS
c6b750e1 9795
55db4b87
PB
9796fi
9797fi
c6b750e1 9798CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9799if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9801$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9802else
81ecdfbb
RW
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804$as_echo "no" >&6; }
55db4b87
PB
9805fi
9806
81ecdfbb 9807
2429c060
PB
9808 fi
9809 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9810 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9811set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813$as_echo_n "checking for $ac_word... " >&6; }
9814if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9815 $as_echo_n "(cached) " >&6
55db4b87 9816else
05cbd757
PB
9817 if test -n "$CC_FOR_TARGET"; then
9818 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9819else
c6b750e1
DJ
9820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821for as_dir in $PATH
9822do
9823 IFS=$as_save_IFS
9824 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9825 for ac_exec_ext in '' $ac_executable_extensions; do
9826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9827 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9829 break 2
9830 fi
9831done
81ecdfbb
RW
9832 done
9833IFS=$as_save_IFS
c6b750e1 9834
55db4b87
PB
9835fi
9836fi
c6b750e1 9837CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9838if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9840$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9841else
81ecdfbb
RW
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843$as_echo "no" >&6; }
55db4b87 9844fi
c6b750e1 9845
81ecdfbb 9846
2429c060
PB
9847 fi
9848 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9849 done
9850fi
c6b750e1 9851
05cbd757
PB
9852if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9853 set dummy cc gcc
9854 if test $build = $target ; then
9855 CC_FOR_TARGET="$2"
55db4b87 9856 else
05cbd757 9857 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9858 fi
d3f5afc4
MS
9859else
9860 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9861fi
9862
9a819804
AO
9863
9864
9865if test -n "$CXX_FOR_TARGET"; then
9866 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9867elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9868 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9869fi
9870
9871if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9872 for ncn_progname in c++ g++ cxx gxx; do
9873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9874set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9876$as_echo_n "checking for $ac_word... " >&6; }
9877if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9878 $as_echo_n "(cached) " >&6
9a819804
AO
9879else
9880 if test -n "$CXX_FOR_TARGET"; then
9881 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9882else
9883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9884for as_dir in $PATH
9885do
9886 IFS=$as_save_IFS
9887 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9888 for ac_exec_ext in '' $ac_executable_extensions; do
9889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9890 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9892 break 2
9893 fi
9894done
81ecdfbb
RW
9895 done
9896IFS=$as_save_IFS
9a819804
AO
9897
9898fi
9899fi
9900CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9901if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9903$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9904else
81ecdfbb
RW
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9906$as_echo "no" >&6; }
9a819804
AO
9907fi
9908
81ecdfbb 9909
9a819804
AO
9910 done
9911fi
9912
9913if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9914 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9916$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9917 if test -x $with_build_time_tools/${ncn_progname}; then
9918 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9920$as_echo "yes" >&6; }
2429c060
PB
9921 break
9922 else
81ecdfbb
RW
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9924$as_echo "no" >&6; }
2429c060
PB
9925 fi
9926 done
9927fi
9928
9929if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9930 for ncn_progname in c++ g++ cxx gxx; do
9931 if test -n "$ncn_target_tool_prefix"; then
9932 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9933set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935$as_echo_n "checking for $ac_word... " >&6; }
9936if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9937 $as_echo_n "(cached) " >&6
55db4b87
PB
9938else
9939 if test -n "$CXX_FOR_TARGET"; then
9940 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9941else
c6b750e1
DJ
9942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9943for as_dir in $PATH
9944do
9945 IFS=$as_save_IFS
9946 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9947 for ac_exec_ext in '' $ac_executable_extensions; do
9948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9949 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9951 break 2
9952 fi
9953done
81ecdfbb
RW
9954 done
9955IFS=$as_save_IFS
c6b750e1 9956
55db4b87
PB
9957fi
9958fi
c6b750e1 9959CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9960if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9962$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9963else
81ecdfbb
RW
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965$as_echo "no" >&6; }
55db4b87
PB
9966fi
9967
81ecdfbb 9968
2429c060
PB
9969 fi
9970 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9972set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9974$as_echo_n "checking for $ac_word... " >&6; }
9975if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9976 $as_echo_n "(cached) " >&6
55db4b87 9977else
05cbd757
PB
9978 if test -n "$CXX_FOR_TARGET"; then
9979 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9980else
c6b750e1
DJ
9981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982for as_dir in $PATH
9983do
9984 IFS=$as_save_IFS
9985 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9986 for ac_exec_ext in '' $ac_executable_extensions; do
9987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9988 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9990 break 2
9991 fi
9992done
81ecdfbb
RW
9993 done
9994IFS=$as_save_IFS
c6b750e1 9995
55db4b87
PB
9996fi
9997fi
c6b750e1 9998CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9999if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10001$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10002else
81ecdfbb
RW
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10004$as_echo "no" >&6; }
55db4b87 10005fi
c6b750e1 10006
81ecdfbb 10007
2429c060
PB
10008 fi
10009 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10010 done
10011fi
c6b750e1 10012
05cbd757
PB
10013if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10014 set dummy c++ g++ cxx gxx
10015 if test $build = $target ; then
10016 CXX_FOR_TARGET="$2"
55db4b87 10017 else
05cbd757 10018 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10019 fi
d3f5afc4
MS
10020else
10021 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10022fi
10023
9a819804
AO
10024
10025
10026if test -n "$GCC_FOR_TARGET"; then
10027 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10028elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10029 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10030fi
10031
10032if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10033 for ncn_progname in gcc; do
10034 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10035set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037$as_echo_n "checking for $ac_word... " >&6; }
10038if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
9a819804
AO
10040else
10041 if test -n "$GCC_FOR_TARGET"; then
10042 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10043else
10044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10045for as_dir in $PATH
10046do
10047 IFS=$as_save_IFS
10048 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10049 for ac_exec_ext in '' $ac_executable_extensions; do
10050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10051 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10053 break 2
10054 fi
10055done
81ecdfbb
RW
10056 done
10057IFS=$as_save_IFS
9a819804
AO
10058
10059fi
10060fi
10061GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10062if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10064$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10065else
81ecdfbb
RW
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10067$as_echo "no" >&6; }
9a819804
AO
10068fi
10069
81ecdfbb 10070
9a819804
AO
10071 done
10072fi
10073
10074if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10075 for ncn_progname in gcc; do
81ecdfbb
RW
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10077$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10078 if test -x $with_build_time_tools/${ncn_progname}; then
10079 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10081$as_echo "yes" >&6; }
2429c060
PB
10082 break
10083 else
81ecdfbb
RW
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10085$as_echo "no" >&6; }
2429c060
PB
10086 fi
10087 done
10088fi
10089
10090if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10091 for ncn_progname in gcc; do
10092 if test -n "$ncn_target_tool_prefix"; then
10093 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10094set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10096$as_echo_n "checking for $ac_word... " >&6; }
10097if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10098 $as_echo_n "(cached) " >&6
859789af 10099else
2429c060
PB
10100 if test -n "$GCC_FOR_TARGET"; then
10101 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10102else
c6b750e1
DJ
10103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104for as_dir in $PATH
10105do
10106 IFS=$as_save_IFS
10107 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10110 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10112 break 2
10113 fi
10114done
81ecdfbb
RW
10115 done
10116IFS=$as_save_IFS
c6b750e1 10117
55db4b87
PB
10118fi
10119fi
c6b750e1 10120GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10121if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10123$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10124else
81ecdfbb
RW
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10126$as_echo "no" >&6; }
55db4b87
PB
10127fi
10128
81ecdfbb 10129
2429c060
PB
10130 fi
10131 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10133set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135$as_echo_n "checking for $ac_word... " >&6; }
10136if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10137 $as_echo_n "(cached) " >&6
55db4b87 10138else
05cbd757
PB
10139 if test -n "$GCC_FOR_TARGET"; then
10140 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10141else
c6b750e1
DJ
10142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143for as_dir in $PATH
10144do
10145 IFS=$as_save_IFS
10146 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10147 for ac_exec_ext in '' $ac_executable_extensions; do
10148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10149 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10151 break 2
10152 fi
10153done
81ecdfbb
RW
10154 done
10155IFS=$as_save_IFS
c6b750e1 10156
55db4b87
PB
10157fi
10158fi
c6b750e1 10159GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10160if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10162$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10163else
81ecdfbb
RW
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165$as_echo "no" >&6; }
55db4b87 10166fi
c6b750e1 10167
81ecdfbb 10168
2429c060
PB
10169 fi
10170 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10171 done
10172fi
c6b750e1 10173
05cbd757
PB
10174if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10175 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10176else
10177 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10178fi
10179
9a819804
AO
10180
10181
10182if test -n "$GCJ_FOR_TARGET"; then
10183 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10184elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10185 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10186fi
10187
10188if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10189 for ncn_progname in gcj; do
10190 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10191set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193$as_echo_n "checking for $ac_word... " >&6; }
10194if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10195 $as_echo_n "(cached) " >&6
9a819804
AO
10196else
10197 if test -n "$GCJ_FOR_TARGET"; then
10198 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10199else
10200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10201for as_dir in $PATH
10202do
10203 IFS=$as_save_IFS
10204 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10205 for ac_exec_ext in '' $ac_executable_extensions; do
10206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10207 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10209 break 2
10210 fi
10211done
81ecdfbb
RW
10212 done
10213IFS=$as_save_IFS
9a819804
AO
10214
10215fi
10216fi
10217GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10218if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10220$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10221else
81ecdfbb
RW
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10223$as_echo "no" >&6; }
9a819804
AO
10224fi
10225
81ecdfbb 10226
9a819804
AO
10227 done
10228fi
10229
10230if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10231 for ncn_progname in gcj; do
81ecdfbb
RW
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10233$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10234 if test -x $with_build_time_tools/${ncn_progname}; then
10235 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10237$as_echo "yes" >&6; }
2429c060
PB
10238 break
10239 else
81ecdfbb
RW
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10241$as_echo "no" >&6; }
2429c060
PB
10242 fi
10243 done
10244fi
10245
10246if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10247 for ncn_progname in gcj; do
10248 if test -n "$ncn_target_tool_prefix"; then
10249 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10250set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10252$as_echo_n "checking for $ac_word... " >&6; }
10253if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10254 $as_echo_n "(cached) " >&6
55db4b87
PB
10255else
10256 if test -n "$GCJ_FOR_TARGET"; then
10257 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10258else
c6b750e1
DJ
10259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260for as_dir in $PATH
10261do
10262 IFS=$as_save_IFS
10263 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10264 for ac_exec_ext in '' $ac_executable_extensions; do
10265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10266 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10268 break 2
10269 fi
10270done
81ecdfbb
RW
10271 done
10272IFS=$as_save_IFS
c6b750e1 10273
55db4b87
PB
10274fi
10275fi
9a819804
AO
10276GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10277if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10279$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10280else
81ecdfbb
RW
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10282$as_echo "no" >&6; }
9a819804
AO
10283fi
10284
81ecdfbb 10285
9a819804
AO
10286 fi
10287 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10288 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10289set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291$as_echo_n "checking for $ac_word... " >&6; }
10292if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10293 $as_echo_n "(cached) " >&6
9a819804
AO
10294else
10295 if test -n "$GCJ_FOR_TARGET"; then
10296 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10297else
10298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299for as_dir in $PATH
10300do
10301 IFS=$as_save_IFS
10302 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10303 for ac_exec_ext in '' $ac_executable_extensions; do
10304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10305 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10307 break 2
10308 fi
10309done
81ecdfbb
RW
10310 done
10311IFS=$as_save_IFS
9a819804
AO
10312
10313fi
10314fi
10315GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10316if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10318$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10319else
81ecdfbb
RW
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10321$as_echo "no" >&6; }
9a819804
AO
10322fi
10323
81ecdfbb 10324
9a819804
AO
10325 fi
10326 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10327 done
10328fi
10329
10330if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10331 set dummy gcj
10332 if test $build = $target ; then
10333 GCJ_FOR_TARGET="$2"
10334 else
10335 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10336 fi
d3f5afc4
MS
10337else
10338 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10339fi
10340
10341
10342
10343if test -n "$GFORTRAN_FOR_TARGET"; then
10344 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10345elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10346 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10347fi
10348
9a819804
AO
10349if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10350 for ncn_progname in gfortran; do
10351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10352set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10354$as_echo_n "checking for $ac_word... " >&6; }
10355if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10356 $as_echo_n "(cached) " >&6
55db4b87 10357else
9a819804
AO
10358 if test -n "$GFORTRAN_FOR_TARGET"; then
10359 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10360else
c6b750e1
DJ
10361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362for as_dir in $PATH
10363do
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10366 for ac_exec_ext in '' $ac_executable_extensions; do
10367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10368 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10370 break 2
10371 fi
10372done
81ecdfbb
RW
10373 done
10374IFS=$as_save_IFS
c6b750e1 10375
55db4b87
PB
10376fi
10377fi
9a819804
AO
10378GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10379if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10381$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10382else
81ecdfbb
RW
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10384$as_echo "no" >&6; }
55db4b87 10385fi
c6b750e1 10386
81ecdfbb 10387
2429c060
PB
10388 done
10389fi
c6b750e1 10390
9a819804 10391if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10392 for ncn_progname in gfortran; do
81ecdfbb
RW
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10394$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10395 if test -x $with_build_time_tools/${ncn_progname}; then
10396 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10398$as_echo "yes" >&6; }
2429c060
PB
10399 break
10400 else
81ecdfbb
RW
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402$as_echo "no" >&6; }
2429c060
PB
10403 fi
10404 done
10405fi
10406
10407if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10408 for ncn_progname in gfortran; do
10409 if test -n "$ncn_target_tool_prefix"; then
10410 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10411set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10413$as_echo_n "checking for $ac_word... " >&6; }
10414if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10415 $as_echo_n "(cached) " >&6
55db4b87
PB
10416else
10417 if test -n "$GFORTRAN_FOR_TARGET"; then
10418 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10419else
c6b750e1
DJ
10420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10421for as_dir in $PATH
10422do
10423 IFS=$as_save_IFS
10424 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10425 for ac_exec_ext in '' $ac_executable_extensions; do
10426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10427 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10429 break 2
10430 fi
10431done
81ecdfbb
RW
10432 done
10433IFS=$as_save_IFS
c6b750e1 10434
55db4b87
PB
10435fi
10436fi
c6b750e1 10437GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10438if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10440$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10441else
81ecdfbb
RW
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10443$as_echo "no" >&6; }
55db4b87
PB
10444fi
10445
81ecdfbb 10446
2429c060
PB
10447 fi
10448 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10450set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10452$as_echo_n "checking for $ac_word... " >&6; }
10453if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10454 $as_echo_n "(cached) " >&6
55db4b87 10455else
05cbd757 10456 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10457 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10458else
10459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460for as_dir in $PATH
10461do
10462 IFS=$as_save_IFS
10463 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10464 for ac_exec_ext in '' $ac_executable_extensions; do
10465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10466 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10468 break 2
10469 fi
10470done
81ecdfbb
RW
10471 done
10472IFS=$as_save_IFS
c6b750e1 10473
55db4b87
PB
10474fi
10475fi
c6b750e1 10476GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10477if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10479$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10480else
81ecdfbb
RW
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10482$as_echo "no" >&6; }
55db4b87 10483fi
c6b750e1 10484
81ecdfbb 10485
2429c060
PB
10486 fi
10487 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10488 done
10489fi
c6b750e1 10490
05cbd757
PB
10491if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10492 set dummy gfortran
10493 if test $build = $target ; then
10494 GFORTRAN_FOR_TARGET="$2"
55db4b87 10495 else
05cbd757 10496 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10497 fi
d3f5afc4
MS
10498else
10499 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10500fi
10501
2429c060
PB
10502
10503
e552509b
ILT
10504if test -n "$GOC_FOR_TARGET"; then
10505 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10506elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10507 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10508fi
10509
10510if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10511 for ncn_progname in gccgo; do
10512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10513set dummy ${ncn_progname}; ac_word=$2
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515$as_echo_n "checking for $ac_word... " >&6; }
10516if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10517 $as_echo_n "(cached) " >&6
10518else
10519 if test -n "$GOC_FOR_TARGET"; then
10520 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10521else
10522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10523for as_dir in $PATH
10524do
10525 IFS=$as_save_IFS
10526 test -z "$as_dir" && as_dir=.
10527 for ac_exec_ext in '' $ac_executable_extensions; do
10528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10529 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10531 break 2
10532 fi
10533done
10534 done
10535IFS=$as_save_IFS
10536
10537fi
10538fi
10539GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10540if test -n "$GOC_FOR_TARGET"; then
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10542$as_echo "$GOC_FOR_TARGET" >&6; }
10543else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10545$as_echo "no" >&6; }
10546fi
10547
10548
10549 done
10550fi
10551
10552if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10553 for ncn_progname in gccgo; do
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10555$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10556 if test -x $with_build_time_tools/${ncn_progname}; then
10557 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10559$as_echo "yes" >&6; }
10560 break
10561 else
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563$as_echo "no" >&6; }
10564 fi
10565 done
10566fi
10567
10568if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10569 for ncn_progname in gccgo; do
10570 if test -n "$ncn_target_tool_prefix"; then
10571 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10572set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10574$as_echo_n "checking for $ac_word... " >&6; }
10575if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10576 $as_echo_n "(cached) " >&6
10577else
10578 if test -n "$GOC_FOR_TARGET"; then
10579 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10580else
10581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582for as_dir in $PATH
10583do
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10588 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10591 fi
10592done
10593 done
10594IFS=$as_save_IFS
10595
10596fi
10597fi
10598GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10599if test -n "$GOC_FOR_TARGET"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10601$as_echo "$GOC_FOR_TARGET" >&6; }
10602else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10604$as_echo "no" >&6; }
10605fi
10606
10607
10608 fi
10609 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10611set dummy ${ncn_progname}; ac_word=$2
10612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10613$as_echo_n "checking for $ac_word... " >&6; }
10614if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10615 $as_echo_n "(cached) " >&6
10616else
10617 if test -n "$GOC_FOR_TARGET"; then
10618 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10619else
10620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621for as_dir in $PATH
10622do
10623 IFS=$as_save_IFS
10624 test -z "$as_dir" && as_dir=.
10625 for ac_exec_ext in '' $ac_executable_extensions; do
10626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10627 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10629 break 2
10630 fi
10631done
10632 done
10633IFS=$as_save_IFS
10634
10635fi
10636fi
10637GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10638if test -n "$GOC_FOR_TARGET"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10640$as_echo "$GOC_FOR_TARGET" >&6; }
10641else
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10643$as_echo "no" >&6; }
10644fi
10645
10646
10647 fi
10648 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10649 done
10650fi
10651
10652if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10653 set dummy gccgo
10654 if test $build = $target ; then
10655 GOC_FOR_TARGET="$2"
10656 else
10657 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10658 fi
10659else
10660 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10661fi
10662
10663
10664
2429c060
PB
10665cat > conftest.c << \EOF
10666#ifdef __GNUC__
10667 gcc_yay;
10668#endif
10669EOF
10670if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10671 have_gcc_for_target=yes
859789af 10672else
2429c060
PB
10673 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10674 have_gcc_for_target=no
859789af 10675fi
2429c060
PB
10676rm conftest.c
10677
10678
10679
859789af 10680
2429c060
PB
10681if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10682 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10684$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10685 if test -x $with_build_time_tools/ar; then
10686 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10687 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10689$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10690 else
81ecdfbb
RW
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10692$as_echo "no" >&6; }
3a35eeb3 10693 fi
2429c060
PB
10694 elif test $build != $host && test $have_gcc_for_target = yes; then
10695 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10696 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10697 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10698 fi
2429c060 10699fi
c6b750e1 10700if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10701 # Extract the first word of "ar", so it can be a program name with args.
10702set dummy ar; ac_word=$2
81ecdfbb
RW
10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704$as_echo_n "checking for $ac_word... " >&6; }
10705if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10706 $as_echo_n "(cached) " >&6
859789af 10707else
c6b750e1
DJ
10708 case $AR_FOR_TARGET in
10709 [\\/]* | ?:[\\/]*)
2429c060
PB
10710 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10711 ;;
2429c060 10712 *)
c6b750e1
DJ
10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10714for as_dir in $gcc_cv_tool_dirs
10715do
10716 IFS=$as_save_IFS
10717 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10718 for ac_exec_ext in '' $ac_executable_extensions; do
10719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10720 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10722 break 2
10723 fi
10724done
81ecdfbb
RW
10725 done
10726IFS=$as_save_IFS
c6b750e1 10727
2429c060
PB
10728 ;;
10729esac
859789af 10730fi
c6b750e1 10731AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10732if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10734$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10735else
81ecdfbb
RW
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737$as_echo "no" >&6; }
859789af 10738fi
05cbd757 10739
81ecdfbb 10740
2429c060
PB
10741fi
10742if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10743
10744
10745if test -n "$AR_FOR_TARGET"; then
10746 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10747elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10748 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10749fi
10750
10751if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10752 for ncn_progname in ar; do
10753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10754set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10756$as_echo_n "checking for $ac_word... " >&6; }
10757if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10758 $as_echo_n "(cached) " >&6
9a819804
AO
10759else
10760 if test -n "$AR_FOR_TARGET"; then
10761 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10762else
10763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764for as_dir in $PATH
10765do
10766 IFS=$as_save_IFS
10767 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10768 for ac_exec_ext in '' $ac_executable_extensions; do
10769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10770 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10772 break 2
10773 fi
10774done
81ecdfbb
RW
10775 done
10776IFS=$as_save_IFS
9a819804
AO
10777
10778fi
10779fi
10780AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10781if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10783$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10784else
81ecdfbb
RW
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786$as_echo "no" >&6; }
9a819804
AO
10787fi
10788
81ecdfbb 10789
9a819804
AO
10790 done
10791fi
10792
10793if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10794 for ncn_progname in ar; do
81ecdfbb
RW
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10796$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10797 if test -x $with_build_time_tools/${ncn_progname}; then
10798 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10800$as_echo "yes" >&6; }
2429c060
PB
10801 break
10802 else
81ecdfbb
RW
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10804$as_echo "no" >&6; }
2429c060
PB
10805 fi
10806 done
859789af
AC
10807fi
10808
2429c060
PB
10809if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10810 for ncn_progname in ar; do
10811 if test -n "$ncn_target_tool_prefix"; then
10812 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10813set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10815$as_echo_n "checking for $ac_word... " >&6; }
10816if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10817 $as_echo_n "(cached) " >&6
7e0f7140 10818else
2429c060
PB
10819 if test -n "$AR_FOR_TARGET"; then
10820 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10821else
c6b750e1
DJ
10822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10823for as_dir in $PATH
10824do
10825 IFS=$as_save_IFS
10826 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10827 for ac_exec_ext in '' $ac_executable_extensions; do
10828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10829 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10831 break 2
10832 fi
10833done
81ecdfbb
RW
10834 done
10835IFS=$as_save_IFS
c6b750e1 10836
7e0f7140
GK
10837fi
10838fi
c6b750e1 10839AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10840if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10842$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10843else
81ecdfbb
RW
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845$as_echo "no" >&6; }
7e0f7140
GK
10846fi
10847
81ecdfbb 10848
2429c060
PB
10849 fi
10850 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10852set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10854$as_echo_n "checking for $ac_word... " >&6; }
10855if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10856 $as_echo_n "(cached) " >&6
7e0f7140 10857else
2429c060
PB
10858 if test -n "$AR_FOR_TARGET"; then
10859 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10860else
c6b750e1
DJ
10861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862for as_dir in $PATH
10863do
10864 IFS=$as_save_IFS
10865 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10866 for ac_exec_ext in '' $ac_executable_extensions; do
10867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10868 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10870 break 2
10871 fi
10872done
81ecdfbb
RW
10873 done
10874IFS=$as_save_IFS
c6b750e1 10875
7e0f7140
GK
10876fi
10877fi
c6b750e1 10878AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10879if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10881$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10882else
81ecdfbb
RW
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10884$as_echo "no" >&6; }
7e0f7140 10885fi
c6b750e1 10886
81ecdfbb 10887
2429c060
PB
10888 fi
10889 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10890 done
10891fi
c6b750e1 10892
2429c060
PB
10893if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10894 set dummy ar
7e0f7140 10895 if test $build = $target ; then
2429c060 10896 AR_FOR_TARGET="$2"
7e0f7140 10897 else
2429c060 10898 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10899 fi
d3f5afc4
MS
10900else
10901 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10902fi
10903
3a35eeb3
PB
10904else
10905 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10906fi
10907
10908
10909
10910
10911if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10912 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10914$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10915 if test -x $with_build_time_tools/as; then
10916 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10917 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10919$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10920 else
81ecdfbb
RW
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10922$as_echo "no" >&6; }
3a35eeb3 10923 fi
2429c060
PB
10924 elif test $build != $host && test $have_gcc_for_target = yes; then
10925 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10926 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10927 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10928 fi
10929fi
c6b750e1 10930if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10931 # Extract the first word of "as", so it can be a program name with args.
10932set dummy as; ac_word=$2
81ecdfbb
RW
10933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10934$as_echo_n "checking for $ac_word... " >&6; }
10935if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
2429c060 10937else
c6b750e1
DJ
10938 case $AS_FOR_TARGET in
10939 [\\/]* | ?:[\\/]*)
2429c060
PB
10940 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10941 ;;
2429c060 10942 *)
c6b750e1
DJ
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944for as_dir in $gcc_cv_tool_dirs
10945do
10946 IFS=$as_save_IFS
10947 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10950 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10952 break 2
10953 fi
10954done
81ecdfbb
RW
10955 done
10956IFS=$as_save_IFS
c6b750e1 10957
2429c060
PB
10958 ;;
10959esac
10960fi
c6b750e1 10961AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10962if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10964$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10965else
81ecdfbb
RW
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967$as_echo "no" >&6; }
2429c060
PB
10968fi
10969
81ecdfbb 10970
2429c060
PB
10971fi
10972if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10973
10974
10975if test -n "$AS_FOR_TARGET"; then
10976 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10977elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10978 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10979fi
10980
10981if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10982 for ncn_progname in as; do
10983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10984set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986$as_echo_n "checking for $ac_word... " >&6; }
10987if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10988 $as_echo_n "(cached) " >&6
9a819804
AO
10989else
10990 if test -n "$AS_FOR_TARGET"; then
10991 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10992else
10993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994for as_dir in $PATH
10995do
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10998 for ac_exec_ext in '' $ac_executable_extensions; do
10999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11000 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11002 break 2
11003 fi
11004done
81ecdfbb
RW
11005 done
11006IFS=$as_save_IFS
9a819804
AO
11007
11008fi
11009fi
11010AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11011if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11013$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11014else
81ecdfbb
RW
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016$as_echo "no" >&6; }
9a819804
AO
11017fi
11018
81ecdfbb 11019
9a819804
AO
11020 done
11021fi
11022
11023if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11024 for ncn_progname in as; do
81ecdfbb
RW
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11026$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11027 if test -x $with_build_time_tools/${ncn_progname}; then
11028 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11030$as_echo "yes" >&6; }
2429c060
PB
11031 break
11032 else
81ecdfbb
RW
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034$as_echo "no" >&6; }
2429c060
PB
11035 fi
11036 done
11037fi
11038
11039if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11040 for ncn_progname in as; do
11041 if test -n "$ncn_target_tool_prefix"; then
11042 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11043set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11045$as_echo_n "checking for $ac_word... " >&6; }
11046if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11047 $as_echo_n "(cached) " >&6
2429c060
PB
11048else
11049 if test -n "$AS_FOR_TARGET"; then
11050 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11051else
c6b750e1
DJ
11052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053for as_dir in $PATH
11054do
11055 IFS=$as_save_IFS
11056 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11059 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11061 break 2
11062 fi
11063done
81ecdfbb
RW
11064 done
11065IFS=$as_save_IFS
c6b750e1 11066
2429c060
PB
11067fi
11068fi
c6b750e1 11069AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11070if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11072$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11073else
81ecdfbb
RW
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075$as_echo "no" >&6; }
2429c060
PB
11076fi
11077
81ecdfbb 11078
2429c060
PB
11079 fi
11080 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11082set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11084$as_echo_n "checking for $ac_word... " >&6; }
11085if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11086 $as_echo_n "(cached) " >&6
2429c060
PB
11087else
11088 if test -n "$AS_FOR_TARGET"; then
11089 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11090else
c6b750e1
DJ
11091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092for as_dir in $PATH
11093do
11094 IFS=$as_save_IFS
11095 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11096 for ac_exec_ext in '' $ac_executable_extensions; do
11097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11098 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11100 break 2
11101 fi
11102done
81ecdfbb
RW
11103 done
11104IFS=$as_save_IFS
c6b750e1 11105
2429c060
PB
11106fi
11107fi
c6b750e1 11108AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11109if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11111$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11112else
81ecdfbb
RW
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11114$as_echo "no" >&6; }
2429c060 11115fi
c6b750e1 11116
81ecdfbb 11117
2429c060
PB
11118 fi
11119 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11120 done
11121fi
c6b750e1 11122
2429c060
PB
11123if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11124 set dummy as
11125 if test $build = $target ; then
11126 AS_FOR_TARGET="$2"
11127 else
11128 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11129 fi
d3f5afc4
MS
11130else
11131 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11132fi
11133
3a35eeb3
PB
11134else
11135 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11136fi
11137
11138
11139
11140
11141if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11142 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11144$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11145 if test -x $with_build_time_tools/dlltool; then
11146 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11147 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11149$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11150 else
81ecdfbb
RW
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11152$as_echo "no" >&6; }
3a35eeb3 11153 fi
2429c060
PB
11154 elif test $build != $host && test $have_gcc_for_target = yes; then
11155 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11156 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11157 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11158 fi
11159fi
c6b750e1 11160if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11161 # Extract the first word of "dlltool", so it can be a program name with args.
11162set dummy dlltool; ac_word=$2
81ecdfbb
RW
11163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11164$as_echo_n "checking for $ac_word... " >&6; }
11165if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
2429c060 11167else
c6b750e1
DJ
11168 case $DLLTOOL_FOR_TARGET in
11169 [\\/]* | ?:[\\/]*)
2429c060
PB
11170 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11171 ;;
2429c060 11172 *)
c6b750e1
DJ
11173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174for as_dir in $gcc_cv_tool_dirs
11175do
11176 IFS=$as_save_IFS
11177 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11180 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11182 break 2
11183 fi
11184done
81ecdfbb
RW
11185 done
11186IFS=$as_save_IFS
c6b750e1 11187
2429c060
PB
11188 ;;
11189esac
11190fi
c6b750e1 11191DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11192if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11194$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11195else
81ecdfbb
RW
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11197$as_echo "no" >&6; }
2429c060
PB
11198fi
11199
81ecdfbb 11200
2429c060
PB
11201fi
11202if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11203
11204
11205if test -n "$DLLTOOL_FOR_TARGET"; then
11206 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11207elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11208 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11209fi
11210
11211if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11212 for ncn_progname in dlltool; do
11213 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11214set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11216$as_echo_n "checking for $ac_word... " >&6; }
11217if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11218 $as_echo_n "(cached) " >&6
9a819804
AO
11219else
11220 if test -n "$DLLTOOL_FOR_TARGET"; then
11221 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11222else
11223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224for as_dir in $PATH
11225do
11226 IFS=$as_save_IFS
11227 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11230 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11232 break 2
11233 fi
11234done
81ecdfbb
RW
11235 done
11236IFS=$as_save_IFS
9a819804
AO
11237
11238fi
11239fi
11240DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11241if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11243$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11244else
81ecdfbb
RW
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246$as_echo "no" >&6; }
9a819804
AO
11247fi
11248
81ecdfbb 11249
9a819804
AO
11250 done
11251fi
11252
11253if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11254 for ncn_progname in dlltool; do
81ecdfbb
RW
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11256$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11257 if test -x $with_build_time_tools/${ncn_progname}; then
11258 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11260$as_echo "yes" >&6; }
2429c060
PB
11261 break
11262 else
81ecdfbb
RW
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11264$as_echo "no" >&6; }
2429c060
PB
11265 fi
11266 done
11267fi
11268
11269if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11270 for ncn_progname in dlltool; do
11271 if test -n "$ncn_target_tool_prefix"; then
11272 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11273set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11275$as_echo_n "checking for $ac_word... " >&6; }
11276if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11277 $as_echo_n "(cached) " >&6
2429c060
PB
11278else
11279 if test -n "$DLLTOOL_FOR_TARGET"; then
11280 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11281else
c6b750e1
DJ
11282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283for as_dir in $PATH
11284do
11285 IFS=$as_save_IFS
11286 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11289 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11291 break 2
11292 fi
11293done
81ecdfbb
RW
11294 done
11295IFS=$as_save_IFS
c6b750e1 11296
2429c060
PB
11297fi
11298fi
c6b750e1 11299DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11300if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11302$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11303else
81ecdfbb
RW
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305$as_echo "no" >&6; }
2429c060
PB
11306fi
11307
81ecdfbb 11308
2429c060
PB
11309 fi
11310 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11312set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11314$as_echo_n "checking for $ac_word... " >&6; }
11315if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11316 $as_echo_n "(cached) " >&6
2429c060
PB
11317else
11318 if test -n "$DLLTOOL_FOR_TARGET"; then
11319 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11320else
c6b750e1
DJ
11321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11322for as_dir in $PATH
11323do
11324 IFS=$as_save_IFS
11325 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11326 for ac_exec_ext in '' $ac_executable_extensions; do
11327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11328 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11330 break 2
11331 fi
11332done
81ecdfbb
RW
11333 done
11334IFS=$as_save_IFS
c6b750e1 11335
2429c060
PB
11336fi
11337fi
c6b750e1 11338DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11339if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11341$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11342else
81ecdfbb
RW
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11344$as_echo "no" >&6; }
2429c060 11345fi
c6b750e1 11346
81ecdfbb 11347
2429c060
PB
11348 fi
11349 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11350 done
11351fi
c6b750e1 11352
2429c060
PB
11353if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11354 set dummy dlltool
11355 if test $build = $target ; then
11356 DLLTOOL_FOR_TARGET="$2"
11357 else
11358 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11359 fi
d3f5afc4
MS
11360else
11361 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11362fi
11363
3a35eeb3
PB
11364else
11365 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11366fi
11367
11368
11369
11370
11371if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11372 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11374$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11375 if test -x $with_build_time_tools/ld; then
11376 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11377 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11379$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11380 else
81ecdfbb
RW
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382$as_echo "no" >&6; }
3a35eeb3 11383 fi
2429c060
PB
11384 elif test $build != $host && test $have_gcc_for_target = yes; then
11385 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11386 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11387 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11388 fi
11389fi
c6b750e1 11390if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11391 # Extract the first word of "ld", so it can be a program name with args.
11392set dummy ld; ac_word=$2
81ecdfbb
RW
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11394$as_echo_n "checking for $ac_word... " >&6; }
11395if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
2429c060 11397else
c6b750e1
DJ
11398 case $LD_FOR_TARGET in
11399 [\\/]* | ?:[\\/]*)
2429c060
PB
11400 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11401 ;;
2429c060 11402 *)
c6b750e1
DJ
11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404for as_dir in $gcc_cv_tool_dirs
11405do
11406 IFS=$as_save_IFS
11407 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11408 for ac_exec_ext in '' $ac_executable_extensions; do
11409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11410 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11412 break 2
11413 fi
11414done
81ecdfbb
RW
11415 done
11416IFS=$as_save_IFS
c6b750e1 11417
2429c060
PB
11418 ;;
11419esac
11420fi
c6b750e1 11421LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11422if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11424$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11425else
81ecdfbb
RW
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11427$as_echo "no" >&6; }
2429c060
PB
11428fi
11429
81ecdfbb 11430
2429c060
PB
11431fi
11432if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11433
11434
11435if test -n "$LD_FOR_TARGET"; then
11436 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11437elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11438 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11439fi
11440
11441if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11442 for ncn_progname in ld; do
11443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11444set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11446$as_echo_n "checking for $ac_word... " >&6; }
11447if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11448 $as_echo_n "(cached) " >&6
9a819804
AO
11449else
11450 if test -n "$LD_FOR_TARGET"; then
11451 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11452else
11453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11454for as_dir in $PATH
11455do
11456 IFS=$as_save_IFS
11457 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11458 for ac_exec_ext in '' $ac_executable_extensions; do
11459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11460 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11462 break 2
11463 fi
11464done
81ecdfbb
RW
11465 done
11466IFS=$as_save_IFS
9a819804
AO
11467
11468fi
11469fi
11470LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11471if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11473$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11474else
81ecdfbb
RW
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476$as_echo "no" >&6; }
9a819804
AO
11477fi
11478
81ecdfbb 11479
9a819804
AO
11480 done
11481fi
11482
11483if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11484 for ncn_progname in ld; do
81ecdfbb
RW
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11486$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11487 if test -x $with_build_time_tools/${ncn_progname}; then
11488 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11490$as_echo "yes" >&6; }
2429c060
PB
11491 break
11492 else
81ecdfbb
RW
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494$as_echo "no" >&6; }
2429c060
PB
11495 fi
11496 done
11497fi
11498
11499if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11500 for ncn_progname in ld; do
11501 if test -n "$ncn_target_tool_prefix"; then
11502 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11503set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11505$as_echo_n "checking for $ac_word... " >&6; }
11506if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11507 $as_echo_n "(cached) " >&6
2429c060
PB
11508else
11509 if test -n "$LD_FOR_TARGET"; then
11510 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11511else
c6b750e1
DJ
11512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11513for as_dir in $PATH
11514do
11515 IFS=$as_save_IFS
11516 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11517 for ac_exec_ext in '' $ac_executable_extensions; do
11518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11519 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11521 break 2
11522 fi
11523done
81ecdfbb
RW
11524 done
11525IFS=$as_save_IFS
c6b750e1 11526
2429c060
PB
11527fi
11528fi
c6b750e1 11529LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11530if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11532$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11533else
81ecdfbb
RW
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535$as_echo "no" >&6; }
2429c060
PB
11536fi
11537
81ecdfbb 11538
2429c060
PB
11539 fi
11540 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11542set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544$as_echo_n "checking for $ac_word... " >&6; }
11545if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11546 $as_echo_n "(cached) " >&6
2429c060
PB
11547else
11548 if test -n "$LD_FOR_TARGET"; then
11549 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11550else
c6b750e1
DJ
11551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552for as_dir in $PATH
11553do
11554 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11556 for ac_exec_ext in '' $ac_executable_extensions; do
11557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11558 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11560 break 2
11561 fi
11562done
81ecdfbb
RW
11563 done
11564IFS=$as_save_IFS
c6b750e1 11565
2429c060
PB
11566fi
11567fi
c6b750e1 11568LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11569if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11571$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11572else
81ecdfbb
RW
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574$as_echo "no" >&6; }
2429c060 11575fi
c6b750e1 11576
81ecdfbb 11577
2429c060
PB
11578 fi
11579 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11580 done
11581fi
c6b750e1 11582
2429c060
PB
11583if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11584 set dummy ld
11585 if test $build = $target ; then
11586 LD_FOR_TARGET="$2"
11587 else
11588 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11589 fi
d3f5afc4
MS
11590else
11591 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11592fi
11593
3a35eeb3
PB
11594else
11595 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11596fi
11597
11598
11599
11600
11601if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11602 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11604$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11605 if test -x $with_build_time_tools/lipo; then
11606 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11607 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11609$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11610 else
81ecdfbb
RW
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612$as_echo "no" >&6; }
3a35eeb3 11613 fi
2429c060
PB
11614 elif test $build != $host && test $have_gcc_for_target = yes; then
11615 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11616 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11617 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11618 fi
11619fi
9a819804
AO
11620if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11621 # Extract the first word of "lipo", so it can be a program name with args.
11622set dummy lipo; ac_word=$2
81ecdfbb
RW
11623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624$as_echo_n "checking for $ac_word... " >&6; }
11625if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
9a819804
AO
11627else
11628 case $LIPO_FOR_TARGET in
11629 [\\/]* | ?:[\\/]*)
11630 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11631 ;;
11632 *)
11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634for as_dir in $gcc_cv_tool_dirs
11635do
11636 IFS=$as_save_IFS
11637 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11640 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11642 break 2
11643 fi
11644done
81ecdfbb
RW
11645 done
11646IFS=$as_save_IFS
9a819804
AO
11647
11648 ;;
11649esac
11650fi
11651LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11652if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11654$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11655else
81ecdfbb
RW
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657$as_echo "no" >&6; }
9a819804
AO
11658fi
11659
81ecdfbb 11660
9a819804
AO
11661fi
11662if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11663
11664
11665if test -n "$LIPO_FOR_TARGET"; then
11666 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11667elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11668 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11669fi
11670
11671if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11672 for ncn_progname in lipo; do
11673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11674set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11676$as_echo_n "checking for $ac_word... " >&6; }
11677if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11678 $as_echo_n "(cached) " >&6
2429c060 11679else
9a819804
AO
11680 if test -n "$LIPO_FOR_TARGET"; then
11681 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11682else
11683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11684for as_dir in $PATH
c6b750e1
DJ
11685do
11686 IFS=$as_save_IFS
11687 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11688 for ac_exec_ext in '' $ac_executable_extensions; do
11689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11690 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11692 break 2
11693 fi
11694done
81ecdfbb
RW
11695 done
11696IFS=$as_save_IFS
c6b750e1 11697
2429c060 11698fi
9a819804
AO
11699fi
11700LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11701if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11703$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11704else
81ecdfbb
RW
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706$as_echo "no" >&6; }
2429c060
PB
11707fi
11708
81ecdfbb 11709
9a819804 11710 done
2429c060 11711fi
9a819804
AO
11712
11713if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11714 for ncn_progname in lipo; do
81ecdfbb
RW
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11716$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11717 if test -x $with_build_time_tools/${ncn_progname}; then
11718 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11720$as_echo "yes" >&6; }
2429c060
PB
11721 break
11722 else
81ecdfbb
RW
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724$as_echo "no" >&6; }
2429c060
PB
11725 fi
11726 done
11727fi
11728
11729if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11730 for ncn_progname in lipo; do
11731 if test -n "$ncn_target_tool_prefix"; then
11732 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11733set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11735$as_echo_n "checking for $ac_word... " >&6; }
11736if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11737 $as_echo_n "(cached) " >&6
2429c060
PB
11738else
11739 if test -n "$LIPO_FOR_TARGET"; then
11740 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11741else
c6b750e1
DJ
11742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11743for as_dir in $PATH
11744do
11745 IFS=$as_save_IFS
11746 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11749 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11751 break 2
11752 fi
11753done
81ecdfbb
RW
11754 done
11755IFS=$as_save_IFS
c6b750e1 11756
2429c060
PB
11757fi
11758fi
c6b750e1 11759LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11760if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11762$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11763else
81ecdfbb
RW
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765$as_echo "no" >&6; }
2429c060
PB
11766fi
11767
81ecdfbb 11768
2429c060
PB
11769 fi
11770 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11772set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774$as_echo_n "checking for $ac_word... " >&6; }
11775if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11776 $as_echo_n "(cached) " >&6
2429c060
PB
11777else
11778 if test -n "$LIPO_FOR_TARGET"; then
11779 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11780else
c6b750e1
DJ
11781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782for as_dir in $PATH
11783do
11784 IFS=$as_save_IFS
11785 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11786 for ac_exec_ext in '' $ac_executable_extensions; do
11787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11788 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11790 break 2
11791 fi
11792done
81ecdfbb
RW
11793 done
11794IFS=$as_save_IFS
c6b750e1 11795
2429c060
PB
11796fi
11797fi
c6b750e1 11798LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11799if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11801$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11802else
81ecdfbb
RW
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804$as_echo "no" >&6; }
2429c060 11805fi
c6b750e1 11806
81ecdfbb 11807
2429c060
PB
11808 fi
11809 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11810 done
11811fi
c6b750e1 11812
2429c060
PB
11813if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11814 set dummy lipo
11815 if test $build = $target ; then
11816 LIPO_FOR_TARGET="$2"
11817 else
11818 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11819 fi
d3f5afc4
MS
11820else
11821 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11822fi
11823
3a35eeb3
PB
11824else
11825 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11826fi
11827
11828
11829
11830
11831if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11832 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11834$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11835 if test -x $with_build_time_tools/nm; then
11836 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11837 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11839$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11840 else
81ecdfbb
RW
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842$as_echo "no" >&6; }
3a35eeb3 11843 fi
2429c060
PB
11844 elif test $build != $host && test $have_gcc_for_target = yes; then
11845 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11846 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11847 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11848 fi
11849fi
c6b750e1 11850if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11851 # Extract the first word of "nm", so it can be a program name with args.
11852set dummy nm; ac_word=$2
81ecdfbb
RW
11853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854$as_echo_n "checking for $ac_word... " >&6; }
11855if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11856 $as_echo_n "(cached) " >&6
2429c060 11857else
c6b750e1
DJ
11858 case $NM_FOR_TARGET in
11859 [\\/]* | ?:[\\/]*)
2429c060
PB
11860 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11861 ;;
2429c060 11862 *)
c6b750e1
DJ
11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864for as_dir in $gcc_cv_tool_dirs
11865do
11866 IFS=$as_save_IFS
11867 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11870 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11872 break 2
11873 fi
11874done
81ecdfbb
RW
11875 done
11876IFS=$as_save_IFS
c6b750e1 11877
2429c060
PB
11878 ;;
11879esac
11880fi
c6b750e1 11881NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11882if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11884$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11885else
81ecdfbb
RW
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887$as_echo "no" >&6; }
2429c060
PB
11888fi
11889
81ecdfbb 11890
2429c060
PB
11891fi
11892if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11893
11894
11895if test -n "$NM_FOR_TARGET"; then
11896 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11897elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11898 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11899fi
11900
11901if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11902 for ncn_progname in nm; do
11903 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11904set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11906$as_echo_n "checking for $ac_word... " >&6; }
11907if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11908 $as_echo_n "(cached) " >&6
9a819804
AO
11909else
11910 if test -n "$NM_FOR_TARGET"; then
11911 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11912else
11913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914for as_dir in $PATH
11915do
11916 IFS=$as_save_IFS
11917 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11918 for ac_exec_ext in '' $ac_executable_extensions; do
11919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11920 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11922 break 2
11923 fi
11924done
81ecdfbb
RW
11925 done
11926IFS=$as_save_IFS
9a819804
AO
11927
11928fi
11929fi
11930NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11931if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11933$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11934else
81ecdfbb
RW
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936$as_echo "no" >&6; }
9a819804
AO
11937fi
11938
81ecdfbb 11939
9a819804
AO
11940 done
11941fi
11942
11943if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11944 for ncn_progname in nm; do
81ecdfbb
RW
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11946$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11947 if test -x $with_build_time_tools/${ncn_progname}; then
11948 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11950$as_echo "yes" >&6; }
2429c060
PB
11951 break
11952 else
81ecdfbb
RW
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954$as_echo "no" >&6; }
2429c060
PB
11955 fi
11956 done
11957fi
11958
11959if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11960 for ncn_progname in nm; do
11961 if test -n "$ncn_target_tool_prefix"; then
11962 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11963set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965$as_echo_n "checking for $ac_word... " >&6; }
11966if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11967 $as_echo_n "(cached) " >&6
859789af 11968else
55db4b87
PB
11969 if test -n "$NM_FOR_TARGET"; then
11970 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11971else
c6b750e1
DJ
11972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11973for as_dir in $PATH
11974do
11975 IFS=$as_save_IFS
11976 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11977 for ac_exec_ext in '' $ac_executable_extensions; do
11978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11979 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11981 break 2
11982 fi
11983done
81ecdfbb
RW
11984 done
11985IFS=$as_save_IFS
c6b750e1 11986
859789af
AC
11987fi
11988fi
c6b750e1 11989NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11990if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11992$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11993else
81ecdfbb
RW
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995$as_echo "no" >&6; }
859789af
AC
11996fi
11997
81ecdfbb 11998
2429c060
PB
11999 fi
12000 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12002set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004$as_echo_n "checking for $ac_word... " >&6; }
12005if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12006 $as_echo_n "(cached) " >&6
859789af 12007else
05cbd757
PB
12008 if test -n "$NM_FOR_TARGET"; then
12009 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12010else
c6b750e1
DJ
12011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012for as_dir in $PATH
12013do
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12016 for ac_exec_ext in '' $ac_executable_extensions; do
12017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12018 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12020 break 2
12021 fi
12022done
81ecdfbb
RW
12023 done
12024IFS=$as_save_IFS
c6b750e1 12025
859789af
AC
12026fi
12027fi
c6b750e1 12028NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12029if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12031$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12032else
81ecdfbb
RW
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034$as_echo "no" >&6; }
859789af 12035fi
c6b750e1 12036
81ecdfbb 12037
2429c060
PB
12038 fi
12039 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12040 done
12041fi
c6b750e1 12042
05cbd757
PB
12043if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12044 set dummy nm
12045 if test $build = $target ; then
12046 NM_FOR_TARGET="$2"
859789af 12047 else
05cbd757 12048 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12049 fi
d3f5afc4
MS
12050else
12051 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12052fi
12053
3a35eeb3
PB
12054else
12055 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12056fi
12057
12058
12059
12060
12061if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12062 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12064$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12065 if test -x $with_build_time_tools/objdump; then
12066 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12067 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12069$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12070 else
81ecdfbb
RW
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072$as_echo "no" >&6; }
3a35eeb3 12073 fi
2429c060
PB
12074 elif test $build != $host && test $have_gcc_for_target = yes; then
12075 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12076 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12077 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12078 fi
12079fi
c6b750e1 12080if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12081 # Extract the first word of "objdump", so it can be a program name with args.
12082set dummy objdump; ac_word=$2
81ecdfbb
RW
12083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084$as_echo_n "checking for $ac_word... " >&6; }
12085if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
2429c060 12087else
c6b750e1
DJ
12088 case $OBJDUMP_FOR_TARGET in
12089 [\\/]* | ?:[\\/]*)
2429c060
PB
12090 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12091 ;;
2429c060 12092 *)
c6b750e1
DJ
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094for as_dir in $gcc_cv_tool_dirs
12095do
12096 IFS=$as_save_IFS
12097 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12100 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12102 break 2
12103 fi
12104done
81ecdfbb
RW
12105 done
12106IFS=$as_save_IFS
c6b750e1 12107
2429c060
PB
12108 ;;
12109esac
12110fi
c6b750e1 12111OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12112if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12114$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12115else
81ecdfbb
RW
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117$as_echo "no" >&6; }
2429c060
PB
12118fi
12119
81ecdfbb 12120
2429c060
PB
12121fi
12122if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12123
12124
12125if test -n "$OBJDUMP_FOR_TARGET"; then
12126 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12127elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12128 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12129fi
12130
12131if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12132 for ncn_progname in objdump; do
12133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12134set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12136$as_echo_n "checking for $ac_word... " >&6; }
12137if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12138 $as_echo_n "(cached) " >&6
9a819804
AO
12139else
12140 if test -n "$OBJDUMP_FOR_TARGET"; then
12141 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12142else
12143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144for as_dir in $PATH
12145do
12146 IFS=$as_save_IFS
12147 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12150 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12152 break 2
12153 fi
12154done
81ecdfbb
RW
12155 done
12156IFS=$as_save_IFS
9a819804
AO
12157
12158fi
12159fi
12160OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12161if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12163$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12164else
81ecdfbb
RW
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166$as_echo "no" >&6; }
9a819804
AO
12167fi
12168
81ecdfbb 12169
9a819804
AO
12170 done
12171fi
12172
12173if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12174 for ncn_progname in objdump; do
81ecdfbb
RW
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12176$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12177 if test -x $with_build_time_tools/${ncn_progname}; then
12178 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12180$as_echo "yes" >&6; }
2429c060
PB
12181 break
12182 else
81ecdfbb
RW
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184$as_echo "no" >&6; }
2429c060
PB
12185 fi
12186 done
12187fi
12188
12189if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12190 for ncn_progname in objdump; do
12191 if test -n "$ncn_target_tool_prefix"; then
12192 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12193set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12195$as_echo_n "checking for $ac_word... " >&6; }
12196if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12197 $as_echo_n "(cached) " >&6
5ae72758
DJ
12198else
12199 if test -n "$OBJDUMP_FOR_TARGET"; then
12200 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12201else
c6b750e1
DJ
12202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203for as_dir in $PATH
12204do
12205 IFS=$as_save_IFS
12206 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12209 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12211 break 2
12212 fi
12213done
81ecdfbb
RW
12214 done
12215IFS=$as_save_IFS
c6b750e1 12216
5ae72758
DJ
12217fi
12218fi
c6b750e1 12219OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12220if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12222$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12223else
81ecdfbb
RW
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225$as_echo "no" >&6; }
5ae72758
DJ
12226fi
12227
81ecdfbb 12228
2429c060
PB
12229 fi
12230 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12232set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234$as_echo_n "checking for $ac_word... " >&6; }
12235if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
5ae72758
DJ
12237else
12238 if test -n "$OBJDUMP_FOR_TARGET"; then
12239 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12240else
c6b750e1
DJ
12241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242for as_dir in $PATH
12243do
12244 IFS=$as_save_IFS
12245 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12248 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12250 break 2
12251 fi
12252done
81ecdfbb
RW
12253 done
12254IFS=$as_save_IFS
c6b750e1 12255
5ae72758
DJ
12256fi
12257fi
c6b750e1 12258OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12259if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12261$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12262else
81ecdfbb
RW
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264$as_echo "no" >&6; }
5ae72758 12265fi
c6b750e1 12266
81ecdfbb 12267
2429c060
PB
12268 fi
12269 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12270 done
12271fi
c6b750e1 12272
5ae72758
DJ
12273if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12274 set dummy objdump
12275 if test $build = $target ; then
12276 OBJDUMP_FOR_TARGET="$2"
12277 else
12278 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12279 fi
d3f5afc4
MS
12280else
12281 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12282fi
12283
3a35eeb3
PB
12284else
12285 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12286fi
12287
12288
12289
12290
12291if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12292 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12294$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12295 if test -x $with_build_time_tools/ranlib; then
12296 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12297 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12299$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12300 else
81ecdfbb
RW
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12302$as_echo "no" >&6; }
3a35eeb3 12303 fi
2429c060
PB
12304 elif test $build != $host && test $have_gcc_for_target = yes; then
12305 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12306 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12307 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12308 fi
12309fi
c6b750e1 12310if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12311 # Extract the first word of "ranlib", so it can be a program name with args.
12312set dummy ranlib; ac_word=$2
81ecdfbb
RW
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314$as_echo_n "checking for $ac_word... " >&6; }
12315if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
2429c060 12317else
c6b750e1
DJ
12318 case $RANLIB_FOR_TARGET in
12319 [\\/]* | ?:[\\/]*)
2429c060
PB
12320 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12321 ;;
2429c060 12322 *)
c6b750e1
DJ
12323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12324for as_dir in $gcc_cv_tool_dirs
12325do
12326 IFS=$as_save_IFS
12327 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12328 for ac_exec_ext in '' $ac_executable_extensions; do
12329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12330 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12332 break 2
12333 fi
12334done
81ecdfbb
RW
12335 done
12336IFS=$as_save_IFS
c6b750e1 12337
2429c060
PB
12338 ;;
12339esac
12340fi
c6b750e1 12341RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12342if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12344$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12345else
81ecdfbb
RW
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12347$as_echo "no" >&6; }
2429c060
PB
12348fi
12349
81ecdfbb 12350
2429c060
PB
12351fi
12352if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12353
12354
12355if test -n "$RANLIB_FOR_TARGET"; then
12356 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12357elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12358 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12359fi
12360
12361if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12362 for ncn_progname in ranlib; do
12363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12364set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366$as_echo_n "checking for $ac_word... " >&6; }
12367if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
9a819804
AO
12369else
12370 if test -n "$RANLIB_FOR_TARGET"; then
12371 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12372else
12373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374for as_dir in $PATH
12375do
12376 IFS=$as_save_IFS
12377 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12380 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12382 break 2
12383 fi
12384done
81ecdfbb
RW
12385 done
12386IFS=$as_save_IFS
9a819804
AO
12387
12388fi
12389fi
12390RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12391if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12393$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12394else
81ecdfbb
RW
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396$as_echo "no" >&6; }
9a819804
AO
12397fi
12398
81ecdfbb 12399
9a819804
AO
12400 done
12401fi
12402
12403if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12404 for ncn_progname in ranlib; do
81ecdfbb
RW
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12406$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12407 if test -x $with_build_time_tools/${ncn_progname}; then
12408 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12410$as_echo "yes" >&6; }
2429c060
PB
12411 break
12412 else
81ecdfbb
RW
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414$as_echo "no" >&6; }
2429c060
PB
12415 fi
12416 done
12417fi
12418
12419if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12420 for ncn_progname in ranlib; do
12421 if test -n "$ncn_target_tool_prefix"; then
12422 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12423set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12425$as_echo_n "checking for $ac_word... " >&6; }
12426if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
859789af 12428else
55db4b87
PB
12429 if test -n "$RANLIB_FOR_TARGET"; then
12430 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12431else
c6b750e1
DJ
12432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433for as_dir in $PATH
12434do
12435 IFS=$as_save_IFS
12436 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12437 for ac_exec_ext in '' $ac_executable_extensions; do
12438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12439 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12441 break 2
12442 fi
12443done
81ecdfbb
RW
12444 done
12445IFS=$as_save_IFS
c6b750e1 12446
859789af
AC
12447fi
12448fi
c6b750e1 12449RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12450if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12452$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12453else
81ecdfbb
RW
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455$as_echo "no" >&6; }
859789af
AC
12456fi
12457
81ecdfbb 12458
2429c060
PB
12459 fi
12460 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12462set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12464$as_echo_n "checking for $ac_word... " >&6; }
12465if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12466 $as_echo_n "(cached) " >&6
859789af 12467else
05cbd757
PB
12468 if test -n "$RANLIB_FOR_TARGET"; then
12469 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12470else
c6b750e1
DJ
12471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472for as_dir in $PATH
12473do
12474 IFS=$as_save_IFS
12475 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12476 for ac_exec_ext in '' $ac_executable_extensions; do
12477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12478 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12480 break 2
12481 fi
12482done
81ecdfbb
RW
12483 done
12484IFS=$as_save_IFS
c6b750e1 12485
859789af
AC
12486fi
12487fi
c6b750e1 12488RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12489if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12491$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12492else
81ecdfbb
RW
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12494$as_echo "no" >&6; }
859789af 12495fi
c6b750e1 12496
81ecdfbb 12497
2429c060
PB
12498 fi
12499 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12500 done
12501fi
c6b750e1 12502
2429c060
PB
12503if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12504 set dummy ranlib
12505 if test $build = $target ; then
12506 RANLIB_FOR_TARGET="$2"
12507 else
12508 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12509 fi
d3f5afc4
MS
12510else
12511 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12512fi
05cbd757 12513
3a35eeb3
PB
12514else
12515 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12516fi
12517
2429c060
PB
12518
12519
12520
12521if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12522 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12524$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12525 if test -x $with_build_time_tools/strip; then
12526 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12527 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12529$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12530 else
81ecdfbb
RW
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12532$as_echo "no" >&6; }
3a35eeb3 12533 fi
2429c060
PB
12534 elif test $build != $host && test $have_gcc_for_target = yes; then
12535 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12536 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12537 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12538 fi
12539fi
c6b750e1 12540if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12541 # Extract the first word of "strip", so it can be a program name with args.
12542set dummy strip; ac_word=$2
81ecdfbb
RW
12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12544$as_echo_n "checking for $ac_word... " >&6; }
12545if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12546 $as_echo_n "(cached) " >&6
2429c060 12547else
c6b750e1
DJ
12548 case $STRIP_FOR_TARGET in
12549 [\\/]* | ?:[\\/]*)
2429c060
PB
12550 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12551 ;;
2429c060 12552 *)
c6b750e1
DJ
12553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554for as_dir in $gcc_cv_tool_dirs
12555do
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12558 for ac_exec_ext in '' $ac_executable_extensions; do
12559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12560 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12562 break 2
12563 fi
12564done
81ecdfbb
RW
12565 done
12566IFS=$as_save_IFS
c6b750e1 12567
2429c060
PB
12568 ;;
12569esac
12570fi
c6b750e1 12571STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12572if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12574$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12575else
81ecdfbb
RW
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12577$as_echo "no" >&6; }
2429c060
PB
12578fi
12579
81ecdfbb 12580
2429c060
PB
12581fi
12582if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12583
12584
12585if test -n "$STRIP_FOR_TARGET"; then
12586 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12587elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12588 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12589fi
12590
12591if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12592 for ncn_progname in strip; do
12593 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12594set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12596$as_echo_n "checking for $ac_word... " >&6; }
12597if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12598 $as_echo_n "(cached) " >&6
9a819804
AO
12599else
12600 if test -n "$STRIP_FOR_TARGET"; then
12601 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12602else
12603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12604for as_dir in $PATH
12605do
12606 IFS=$as_save_IFS
12607 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12608 for ac_exec_ext in '' $ac_executable_extensions; do
12609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12610 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12612 break 2
12613 fi
12614done
81ecdfbb
RW
12615 done
12616IFS=$as_save_IFS
9a819804
AO
12617
12618fi
12619fi
12620STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12621if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12623$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12624else
81ecdfbb
RW
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12626$as_echo "no" >&6; }
9a819804
AO
12627fi
12628
81ecdfbb 12629
9a819804
AO
12630 done
12631fi
12632
12633if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12634 for ncn_progname in strip; do
81ecdfbb
RW
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12636$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12637 if test -x $with_build_time_tools/${ncn_progname}; then
12638 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12640$as_echo "yes" >&6; }
2429c060
PB
12641 break
12642 else
81ecdfbb
RW
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12644$as_echo "no" >&6; }
2429c060
PB
12645 fi
12646 done
12647fi
12648
12649if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12650 for ncn_progname in strip; do
12651 if test -n "$ncn_target_tool_prefix"; then
12652 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12653set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655$as_echo_n "checking for $ac_word... " >&6; }
12656if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12657 $as_echo_n "(cached) " >&6
7e0f7140
GK
12658else
12659 if test -n "$STRIP_FOR_TARGET"; then
12660 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12661else
12662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663for as_dir in $PATH
12664do
12665 IFS=$as_save_IFS
12666 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12669 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12671 break 2
12672 fi
12673done
81ecdfbb
RW
12674 done
12675IFS=$as_save_IFS
c6b750e1 12676
7e0f7140
GK
12677fi
12678fi
c6b750e1 12679STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12680if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12682$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12683else
81ecdfbb
RW
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685$as_echo "no" >&6; }
7e0f7140
GK
12686fi
12687
81ecdfbb 12688
2429c060
PB
12689 fi
12690 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12692set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12694$as_echo_n "checking for $ac_word... " >&6; }
12695if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12696 $as_echo_n "(cached) " >&6
7e0f7140
GK
12697else
12698 if test -n "$STRIP_FOR_TARGET"; then
12699 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12700else
c6b750e1
DJ
12701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702for as_dir in $PATH
12703do
12704 IFS=$as_save_IFS
12705 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12706 for ac_exec_ext in '' $ac_executable_extensions; do
12707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12708 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12710 break 2
12711 fi
12712done
81ecdfbb
RW
12713 done
12714IFS=$as_save_IFS
c6b750e1 12715
7e0f7140
GK
12716fi
12717fi
c6b750e1 12718STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12719if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12721$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12722else
81ecdfbb
RW
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12724$as_echo "no" >&6; }
7e0f7140 12725fi
c6b750e1 12726
81ecdfbb 12727
2429c060
PB
12728 fi
12729 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12730 done
12731fi
c6b750e1 12732
7e0f7140
GK
12733if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12734 set dummy strip
12735 if test $build = $target ; then
12736 STRIP_FOR_TARGET="$2"
12737 else
12738 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12739 fi
d3f5afc4
MS
12740else
12741 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12742fi
12743
3a35eeb3
PB
12744else
12745 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12746fi
12747
12748
12749
12750
12751if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12752 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12754$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12755 if test -x $with_build_time_tools/windres; then
12756 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12757 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12759$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12760 else
81ecdfbb
RW
12761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762$as_echo "no" >&6; }
3a35eeb3 12763 fi
2429c060
PB
12764 elif test $build != $host && test $have_gcc_for_target = yes; then
12765 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12766 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12767 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12768 fi
12769fi
c6b750e1 12770if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12771 # Extract the first word of "windres", so it can be a program name with args.
12772set dummy windres; ac_word=$2
81ecdfbb
RW
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774$as_echo_n "checking for $ac_word... " >&6; }
12775if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12776 $as_echo_n "(cached) " >&6
2429c060 12777else
c6b750e1
DJ
12778 case $WINDRES_FOR_TARGET in
12779 [\\/]* | ?:[\\/]*)
2429c060
PB
12780 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12781 ;;
2429c060 12782 *)
c6b750e1
DJ
12783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784for as_dir in $gcc_cv_tool_dirs
12785do
12786 IFS=$as_save_IFS
12787 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12788 for ac_exec_ext in '' $ac_executable_extensions; do
12789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12790 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12792 break 2
12793 fi
12794done
81ecdfbb
RW
12795 done
12796IFS=$as_save_IFS
c6b750e1 12797
2429c060
PB
12798 ;;
12799esac
12800fi
c6b750e1 12801WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12802if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12804$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12805else
81ecdfbb
RW
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807$as_echo "no" >&6; }
2429c060
PB
12808fi
12809
81ecdfbb 12810
2429c060
PB
12811fi
12812if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12813
12814
12815if test -n "$WINDRES_FOR_TARGET"; then
12816 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12817elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12818 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12819fi
12820
12821if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12822 for ncn_progname in windres; do
12823 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12824set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12826$as_echo_n "checking for $ac_word... " >&6; }
12827if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12828 $as_echo_n "(cached) " >&6
9a819804
AO
12829else
12830 if test -n "$WINDRES_FOR_TARGET"; then
12831 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12832else
12833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12834for as_dir in $PATH
12835do
12836 IFS=$as_save_IFS
12837 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12838 for ac_exec_ext in '' $ac_executable_extensions; do
12839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12840 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12842 break 2
12843 fi
12844done
81ecdfbb
RW
12845 done
12846IFS=$as_save_IFS
9a819804
AO
12847
12848fi
12849fi
12850WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12851if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12853$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12854else
81ecdfbb
RW
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12856$as_echo "no" >&6; }
9a819804
AO
12857fi
12858
81ecdfbb 12859
9a819804
AO
12860 done
12861fi
12862
12863if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12864 for ncn_progname in windres; do
81ecdfbb
RW
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12866$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12867 if test -x $with_build_time_tools/${ncn_progname}; then
12868 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12870$as_echo "yes" >&6; }
2429c060
PB
12871 break
12872 else
81ecdfbb
RW
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874$as_echo "no" >&6; }
2429c060
PB
12875 fi
12876 done
12877fi
12878
12879if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12880 for ncn_progname in windres; do
12881 if test -n "$ncn_target_tool_prefix"; then
12882 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12883set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12885$as_echo_n "checking for $ac_word... " >&6; }
12886if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12887 $as_echo_n "(cached) " >&6
859789af 12888else
55db4b87
PB
12889 if test -n "$WINDRES_FOR_TARGET"; then
12890 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12891else
c6b750e1
DJ
12892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12893for as_dir in $PATH
12894do
12895 IFS=$as_save_IFS
12896 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12897 for ac_exec_ext in '' $ac_executable_extensions; do
12898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12899 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12901 break 2
12902 fi
12903done
81ecdfbb
RW
12904 done
12905IFS=$as_save_IFS
c6b750e1 12906
859789af
AC
12907fi
12908fi
c6b750e1 12909WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12910if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12912$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12913else
81ecdfbb
RW
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915$as_echo "no" >&6; }
859789af
AC
12916fi
12917
81ecdfbb 12918
2429c060
PB
12919 fi
12920 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12922set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12924$as_echo_n "checking for $ac_word... " >&6; }
12925if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12926 $as_echo_n "(cached) " >&6
859789af 12927else
05cbd757
PB
12928 if test -n "$WINDRES_FOR_TARGET"; then
12929 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12930else
c6b750e1
DJ
12931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12932for as_dir in $PATH
12933do
12934 IFS=$as_save_IFS
12935 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12936 for ac_exec_ext in '' $ac_executable_extensions; do
12937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12938 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12940 break 2
12941 fi
12942done
81ecdfbb
RW
12943 done
12944IFS=$as_save_IFS
c6b750e1 12945
859789af
AC
12946fi
12947fi
c6b750e1 12948WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12949if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12951$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12952else
81ecdfbb
RW
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12954$as_echo "no" >&6; }
859789af 12955fi
c6b750e1 12956
81ecdfbb 12957
2429c060
PB
12958 fi
12959 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12960 done
12961fi
c6b750e1 12962
05cbd757
PB
12963if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12964 set dummy windres
12965 if test $build = $target ; then
12966 WINDRES_FOR_TARGET="$2"
859789af 12967 else
05cbd757 12968 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12969 fi
d3f5afc4
MS
12970else
12971 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12972fi
12973
3a35eeb3
PB
12974else
12975 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12976fi
12977
852e5f18 12978
0c24b341
NC
12979
12980
12981if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12982 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12984$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12985 if test -x $with_build_time_tools/windmc; then
12986 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12987 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12989$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12990 else
81ecdfbb
RW
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12992$as_echo "no" >&6; }
0c24b341
NC
12993 fi
12994 elif test $build != $host && test $have_gcc_for_target = yes; then
12995 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12996 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12997 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12998 fi
12999fi
13000if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13001 # Extract the first word of "windmc", so it can be a program name with args.
13002set dummy windmc; ac_word=$2
81ecdfbb
RW
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13004$as_echo_n "checking for $ac_word... " >&6; }
13005if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13006 $as_echo_n "(cached) " >&6
0c24b341
NC
13007else
13008 case $WINDMC_FOR_TARGET in
13009 [\\/]* | ?:[\\/]*)
13010 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13011 ;;
13012 *)
13013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13014for as_dir in $gcc_cv_tool_dirs
13015do
13016 IFS=$as_save_IFS
13017 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13018 for ac_exec_ext in '' $ac_executable_extensions; do
13019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13020 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13022 break 2
13023 fi
13024done
81ecdfbb
RW
13025 done
13026IFS=$as_save_IFS
0c24b341
NC
13027
13028 ;;
13029esac
13030fi
13031WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13032if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13034$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13035else
81ecdfbb
RW
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13037$as_echo "no" >&6; }
0c24b341
NC
13038fi
13039
81ecdfbb 13040
0c24b341
NC
13041fi
13042if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13043
13044
13045if test -n "$WINDMC_FOR_TARGET"; then
13046 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13047elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13048 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13049fi
13050
13051if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13052 for ncn_progname in windmc; do
13053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13054set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13056$as_echo_n "checking for $ac_word... " >&6; }
13057if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13058 $as_echo_n "(cached) " >&6
0c24b341
NC
13059else
13060 if test -n "$WINDMC_FOR_TARGET"; then
13061 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13062else
13063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064for as_dir in $PATH
13065do
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13070 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13072 break 2
13073 fi
13074done
81ecdfbb
RW
13075 done
13076IFS=$as_save_IFS
0c24b341
NC
13077
13078fi
13079fi
13080WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13081if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13083$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13084else
81ecdfbb
RW
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13086$as_echo "no" >&6; }
0c24b341
NC
13087fi
13088
81ecdfbb 13089
0c24b341
NC
13090 done
13091fi
13092
13093if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13094 for ncn_progname in windmc; do
81ecdfbb
RW
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13096$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13097 if test -x $with_build_time_tools/${ncn_progname}; then
13098 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13100$as_echo "yes" >&6; }
0c24b341
NC
13101 break
13102 else
81ecdfbb
RW
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104$as_echo "no" >&6; }
0c24b341
NC
13105 fi
13106 done
13107fi
13108
13109if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13110 for ncn_progname in windmc; do
13111 if test -n "$ncn_target_tool_prefix"; then
13112 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13113set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13115$as_echo_n "checking for $ac_word... " >&6; }
13116if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13117 $as_echo_n "(cached) " >&6
0c24b341
NC
13118else
13119 if test -n "$WINDMC_FOR_TARGET"; then
13120 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13121else
13122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13123for as_dir in $PATH
13124do
13125 IFS=$as_save_IFS
13126 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13127 for ac_exec_ext in '' $ac_executable_extensions; do
13128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13129 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13131 break 2
13132 fi
13133done
81ecdfbb
RW
13134 done
13135IFS=$as_save_IFS
0c24b341
NC
13136
13137fi
13138fi
13139WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13140if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13142$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13143else
81ecdfbb
RW
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13145$as_echo "no" >&6; }
0c24b341
NC
13146fi
13147
81ecdfbb 13148
0c24b341
NC
13149 fi
13150 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13152set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13154$as_echo_n "checking for $ac_word... " >&6; }
13155if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13156 $as_echo_n "(cached) " >&6
0c24b341
NC
13157else
13158 if test -n "$WINDMC_FOR_TARGET"; then
13159 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13160else
13161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13162for as_dir in $PATH
13163do
13164 IFS=$as_save_IFS
13165 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13166 for ac_exec_ext in '' $ac_executable_extensions; do
13167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13168 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13170 break 2
13171 fi
13172done
81ecdfbb
RW
13173 done
13174IFS=$as_save_IFS
0c24b341
NC
13175
13176fi
13177fi
13178WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13179if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13181$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13182else
81ecdfbb
RW
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184$as_echo "no" >&6; }
0c24b341
NC
13185fi
13186
81ecdfbb 13187
0c24b341
NC
13188 fi
13189 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13190 done
13191fi
13192
13193if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13194 set dummy windmc
13195 if test $build = $target ; then
13196 WINDMC_FOR_TARGET="$2"
13197 else
13198 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13199 fi
13200else
13201 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13202fi
13203
13204else
13205 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13206fi
13207
13208
be01d343
PB
13209RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13210
81ecdfbb
RW
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13212$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13213if test "x${build}" != "x${host}" ; then
2429c060
PB
13214 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13215 # We already found the complete path
b8025f34 13216 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13218$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13219 else
13220 # Canadian cross, just use what we found
81ecdfbb
RW
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13222$as_echo "pre-installed" >&6; }
2429c060 13223 fi
be01d343
PB
13224else
13225 ok=yes
13226 case " ${configdirs} " in
13227 *" binutils "*) ;;
13228 *) ok=no ;;
13229 esac
c6b750e1 13230
be01d343
PB
13231 if test $ok = yes; then
13232 # An in-tree tool is available and we can use it
13233 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13235$as_echo "just compiled" >&6; }
2429c060
PB
13236 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13237 # We already found the complete path
b8025f34 13238 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13240$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13241 elif test "x$target" = "x$host"; then
13242 # We can use an host tool
13243 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13245$as_echo "host tool" >&6; }
be01d343
PB
13246 else
13247 # We need a cross tool
81ecdfbb
RW
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13249$as_echo "pre-installed" >&6; }
be01d343
PB
13250 fi
13251fi
4b900473 13252
81ecdfbb
RW
13253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13254$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13255if test "x${build}" != "x${host}" ; then
2429c060
PB
13256 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13257 # We already found the complete path
b8025f34 13258 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13260$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13261 else
13262 # Canadian cross, just use what we found
81ecdfbb
RW
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13264$as_echo "pre-installed" >&6; }
2429c060 13265 fi
be01d343
PB
13266else
13267 ok=yes
13268 case " ${configdirs} " in
13269 *" gas "*) ;;
13270 *) ok=no ;;
13271 esac
c6b750e1 13272
be01d343
PB
13273 if test $ok = yes; then
13274 # An in-tree tool is available and we can use it
13275 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13277$as_echo "just compiled" >&6; }
2429c060
PB
13278 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13279 # We already found the complete path
b8025f34 13280 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13282$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13283 elif test "x$target" = "x$host"; then
13284 # We can use an host tool
13285 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13287$as_echo "host tool" >&6; }
be01d343
PB
13288 else
13289 # We need a cross tool
81ecdfbb
RW
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13291$as_echo "pre-installed" >&6; }
be01d343
PB
13292 fi
13293fi
4b900473 13294
81ecdfbb
RW
13295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13296$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13297if test "x${build}" != "x${host}" ; then
2429c060
PB
13298 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13299 # We already found the complete path
b8025f34 13300 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13302$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13303 else
13304 # Canadian cross, just use what we found
81ecdfbb
RW
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13306$as_echo "pre-installed" >&6; }
2429c060 13307 fi
be01d343
PB
13308else
13309 ok=yes
13310 case " ${configdirs} " in
13311 *" gcc "*) ;;
13312 *) ok=no ;;
13313 esac
c6b750e1 13314
be01d343
PB
13315 if test $ok = yes; then
13316 # An in-tree tool is available and we can use it
13317 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13319$as_echo "just compiled" >&6; }
2429c060
PB
13320 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13321 # We already found the complete path
b8025f34 13322 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13324$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13325 elif test "x$target" = "x$host"; then
13326 # We can use an host tool
13327 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13329$as_echo "host tool" >&6; }
be01d343
PB
13330 else
13331 # We need a cross tool
81ecdfbb
RW
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13333$as_echo "pre-installed" >&6; }
be01d343
PB
13334 fi
13335fi
4b900473 13336
81ecdfbb
RW
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13338$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13339if test "x${build}" != "x${host}" ; then
2429c060
PB
13340 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13341 # We already found the complete path
b8025f34 13342 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13344$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13345 else
13346 # Canadian cross, just use what we found
81ecdfbb
RW
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13348$as_echo "pre-installed" >&6; }
2429c060 13349 fi
be01d343
PB
13350else
13351 ok=yes
13352 case " ${configdirs} " in
13353 *" gcc "*) ;;
13354 *) ok=no ;;
13355 esac
13356 case ,${enable_languages}, in
13357 *,c++,*) ;;
13358 *) ok=no ;;
13359 esac
13360 if test $ok = yes; then
13361 # An in-tree tool is available and we can use it
13362 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13364$as_echo "just compiled" >&6; }
2429c060
PB
13365 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13366 # We already found the complete path
b8025f34 13367 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13369$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13370 elif test "x$target" = "x$host"; then
13371 # We can use an host tool
13372 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13374$as_echo "host tool" >&6; }
be01d343
PB
13375 else
13376 # We need a cross tool
81ecdfbb
RW
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13378$as_echo "pre-installed" >&6; }
be01d343
PB
13379 fi
13380fi
4b900473 13381
81ecdfbb
RW
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13383$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13384if test "x${build}" != "x${host}" ; then
2429c060
PB
13385 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13386 # We already found the complete path
b8025f34 13387 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13389$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13390 else
13391 # Canadian cross, just use what we found
81ecdfbb
RW
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13393$as_echo "pre-installed" >&6; }
2429c060 13394 fi
be01d343
PB
13395else
13396 ok=yes
13397 case " ${configdirs} " in
13398 *" gcc "*) ;;
13399 *) ok=no ;;
13400 esac
13401 case ,${enable_languages}, in
13402 *,c++,*) ;;
13403 *) ok=no ;;
13404 esac
13405 if test $ok = yes; then
13406 # An in-tree tool is available and we can use it
13407 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
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13409$as_echo "just compiled" >&6; }
2429c060
PB
13410 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13411 # We already found the complete path
b8025f34 13412 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13414$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13415 elif test "x$target" = "x$host"; then
13416 # We can use an host tool
13417 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13419$as_echo "host tool" >&6; }
be01d343
PB
13420 else
13421 # We need a cross tool
81ecdfbb
RW
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13423$as_echo "pre-installed" >&6; }
be01d343
PB
13424 fi
13425fi
4b900473 13426
81ecdfbb
RW
13427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13428$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13429if test "x${build}" != "x${host}" ; then
2429c060
PB
13430 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13431 # We already found the complete path
b8025f34 13432 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13434$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13435 else
13436 # Canadian cross, just use what we found
81ecdfbb
RW
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13438$as_echo "pre-installed" >&6; }
2429c060 13439 fi
be01d343
PB
13440else
13441 ok=yes
13442 case " ${configdirs} " in
13443 *" binutils "*) ;;
13444 *) ok=no ;;
13445 esac
c6b750e1 13446
be01d343
PB
13447 if test $ok = yes; then
13448 # An in-tree tool is available and we can use it
13449 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13451$as_echo "just compiled" >&6; }
2429c060
PB
13452 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13453 # We already found the complete path
b8025f34 13454 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13456$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13457 elif test "x$target" = "x$host"; then
13458 # We can use an host tool
13459 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13461$as_echo "host tool" >&6; }
be01d343
PB
13462 else
13463 # We need a cross tool
81ecdfbb
RW
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13465$as_echo "pre-installed" >&6; }
be01d343
PB
13466 fi
13467fi
4b900473 13468
81ecdfbb
RW
13469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13470$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13471if test "x${build}" != "x${host}" ; then
2429c060
PB
13472 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13473 # We already found the complete path
b8025f34 13474 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13476$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13477 else
13478 # Canadian cross, just use what we found
81ecdfbb
RW
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13480$as_echo "pre-installed" >&6; }
2429c060 13481 fi
be01d343
PB
13482else
13483 ok=yes
13484 case " ${configdirs} " in
13485 *" gcc "*) ;;
13486 *) ok=no ;;
13487 esac
c6b750e1 13488
be01d343
PB
13489 if test $ok = yes; then
13490 # An in-tree tool is available and we can use it
13491 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13493$as_echo "just compiled" >&6; }
2429c060
PB
13494 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13495 # We already found the complete path
b8025f34 13496 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13498$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13499 elif test "x$target" = "x$host"; then
13500 # We can use an host tool
13501 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13503$as_echo "host tool" >&6; }
be01d343
PB
13504 else
13505 # We need a cross tool
81ecdfbb
RW
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13507$as_echo "pre-installed" >&6; }
be01d343
PB
13508 fi
13509fi
4b900473 13510
81ecdfbb
RW
13511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13512$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13513if test "x${build}" != "x${host}" ; then
2429c060
PB
13514 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13515 # We already found the complete path
b8025f34 13516 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13518$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13519 else
13520 # Canadian cross, just use what we found
81ecdfbb
RW
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13522$as_echo "pre-installed" >&6; }
2429c060 13523 fi
be01d343
PB
13524else
13525 ok=yes
13526 case " ${configdirs} " in
13527 *" gcc "*) ;;
13528 *) ok=no ;;
13529 esac
13530 case ,${enable_languages}, in
13531 *,java,*) ;;
13532 *) ok=no ;;
13533 esac
13534 if test $ok = yes; then
13535 # An in-tree tool is available and we can use it
13536 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13538$as_echo "just compiled" >&6; }
2429c060
PB
13539 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13540 # We already found the complete path
b8025f34 13541 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13543$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13544 elif test "x$target" = "x$host"; then
13545 # We can use an host tool
13546 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13548$as_echo "host tool" >&6; }
be01d343
PB
13549 else
13550 # We need a cross tool
81ecdfbb
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13552$as_echo "pre-installed" >&6; }
be01d343
PB
13553 fi
13554fi
4b900473 13555
81ecdfbb
RW
13556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13557$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13558if test "x${build}" != "x${host}" ; then
2429c060
PB
13559 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13560 # We already found the complete path
b8025f34 13561 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13563$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13564 else
13565 # Canadian cross, just use what we found
81ecdfbb
RW
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13567$as_echo "pre-installed" >&6; }
2429c060 13568 fi
be01d343
PB
13569else
13570 ok=yes
13571 case " ${configdirs} " in
13572 *" gcc "*) ;;
13573 *) ok=no ;;
13574 esac
13575 case ,${enable_languages}, in
13576 *,fortran,*) ;;
13577 *) ok=no ;;
13578 esac
13579 if test $ok = yes; then
13580 # An in-tree tool is available and we can use it
13581 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13583$as_echo "just compiled" >&6; }
2429c060
PB
13584 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13585 # We already found the complete path
b8025f34 13586 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13588$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13589 elif test "x$target" = "x$host"; then
13590 # We can use an host tool
13591 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13593$as_echo "host tool" >&6; }
be01d343
PB
13594 else
13595 # We need a cross tool
81ecdfbb
RW
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13597$as_echo "pre-installed" >&6; }
be01d343
PB
13598 fi
13599fi
4b900473 13600
e552509b
ILT
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13602$as_echo_n "checking where to find the target gccgo... " >&6; }
13603if test "x${build}" != "x${host}" ; then
13604 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13605 # We already found the complete path
13606 ac_dir=`dirname $GOC_FOR_TARGET`
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13608$as_echo "pre-installed in $ac_dir" >&6; }
13609 else
13610 # Canadian cross, just use what we found
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13612$as_echo "pre-installed" >&6; }
13613 fi
13614else
13615 ok=yes
13616 case " ${configdirs} " in
13617 *" gcc "*) ;;
13618 *) ok=no ;;
13619 esac
13620 case ,${enable_languages}, in
13621 *,go,*) ;;
13622 *) ok=no ;;
13623 esac
13624 if test $ok = yes; then
13625 # An in-tree tool is available and we can use it
13626 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13628$as_echo "just compiled" >&6; }
13629 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13630 # We already found the complete path
13631 ac_dir=`dirname $GOC_FOR_TARGET`
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13633$as_echo "pre-installed in $ac_dir" >&6; }
13634 elif test "x$target" = "x$host"; then
13635 # We can use an host tool
13636 GOC_FOR_TARGET='$(GOC)'
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13638$as_echo "host tool" >&6; }
13639 else
13640 # We need a cross tool
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13642$as_echo "pre-installed" >&6; }
13643 fi
13644fi
13645
81ecdfbb
RW
13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13647$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13648if test "x${build}" != "x${host}" ; then
2429c060
PB
13649 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13650 # We already found the complete path
b8025f34 13651 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13653$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13654 else
13655 # Canadian cross, just use what we found
81ecdfbb
RW
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13657$as_echo "pre-installed" >&6; }
2429c060 13658 fi
be01d343
PB
13659else
13660 ok=yes
13661 case " ${configdirs} " in
13662 *" ld "*) ;;
13663 *) ok=no ;;
13664 esac
c6b750e1 13665
be01d343
PB
13666 if test $ok = yes; then
13667 # An in-tree tool is available and we can use it
13668 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13670$as_echo "just compiled" >&6; }
2429c060
PB
13671 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13672 # We already found the complete path
b8025f34 13673 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13675$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13676 elif test "x$target" = "x$host"; then
13677 # We can use an host tool
13678 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13680$as_echo "host tool" >&6; }
be01d343
PB
13681 else
13682 # We need a cross tool
81ecdfbb
RW
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13684$as_echo "pre-installed" >&6; }
be01d343
PB
13685 fi
13686fi
4b900473 13687
81ecdfbb
RW
13688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13689$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13690if test "x${build}" != "x${host}" ; then
2429c060
PB
13691 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13692 # We already found the complete path
b8025f34 13693 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13695$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13696 else
13697 # Canadian cross, just use what we found
81ecdfbb
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13699$as_echo "pre-installed" >&6; }
2429c060 13700 fi
be01d343 13701else
2429c060
PB
13702 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13703 # We already found the complete path
b8025f34 13704 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13706$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13707 elif test "x$target" = "x$host"; then
be01d343
PB
13708 # We can use an host tool
13709 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13711$as_echo "host tool" >&6; }
be01d343
PB
13712 else
13713 # We need a cross tool
81ecdfbb
RW
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13715$as_echo "pre-installed" >&6; }
be01d343
PB
13716 fi
13717fi
4b900473 13718
81ecdfbb
RW
13719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13720$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13721if test "x${build}" != "x${host}" ; then
2429c060
PB
13722 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13723 # We already found the complete path
b8025f34 13724 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13726$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13727 else
13728 # Canadian cross, just use what we found
81ecdfbb
RW
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13730$as_echo "pre-installed" >&6; }
2429c060 13731 fi
be01d343
PB
13732else
13733 ok=yes
13734 case " ${configdirs} " in
13735 *" binutils "*) ;;
13736 *) ok=no ;;
13737 esac
c6b750e1 13738
be01d343
PB
13739 if test $ok = yes; then
13740 # An in-tree tool is available and we can use it
13741 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13743$as_echo "just compiled" >&6; }
2429c060
PB
13744 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13745 # We already found the complete path
b8025f34 13746 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13748$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13749 elif test "x$target" = "x$host"; then
13750 # We can use an host tool
13751 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13753$as_echo "host tool" >&6; }
be01d343
PB
13754 else
13755 # We need a cross tool
81ecdfbb
RW
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13757$as_echo "pre-installed" >&6; }
be01d343
PB
13758 fi
13759fi
4b900473 13760
81ecdfbb
RW
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13762$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13763if test "x${build}" != "x${host}" ; then
2429c060
PB
13764 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13765 # We already found the complete path
b8025f34 13766 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13768$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13769 else
13770 # Canadian cross, just use what we found
81ecdfbb
RW
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13772$as_echo "pre-installed" >&6; }
2429c060 13773 fi
be01d343
PB
13774else
13775 ok=yes
13776 case " ${configdirs} " in
13777 *" binutils "*) ;;
13778 *) ok=no ;;
13779 esac
c6b750e1 13780
be01d343
PB
13781 if test $ok = yes; then
13782 # An in-tree tool is available and we can use it
13783 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13785$as_echo "just compiled" >&6; }
2429c060
PB
13786 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13787 # We already found the complete path
b8025f34 13788 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13790$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13791 elif test "x$target" = "x$host"; then
13792 # We can use an host tool
13793 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13795$as_echo "host tool" >&6; }
be01d343
PB
13796 else
13797 # We need a cross tool
81ecdfbb
RW
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13799$as_echo "pre-installed" >&6; }
be01d343
PB
13800 fi
13801fi
4b900473 13802
81ecdfbb
RW
13803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13804$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13805if test "x${build}" != "x${host}" ; then
2429c060
PB
13806 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13807 # We already found the complete path
b8025f34 13808 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13810$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13811 else
13812 # Canadian cross, just use what we found
81ecdfbb
RW
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13814$as_echo "pre-installed" >&6; }
2429c060 13815 fi
be01d343
PB
13816else
13817 ok=yes
13818 case " ${configdirs} " in
13819 *" binutils "*) ;;
13820 *) ok=no ;;
13821 esac
c6b750e1 13822
be01d343
PB
13823 if test $ok = yes; then
13824 # An in-tree tool is available and we can use it
13825 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13827$as_echo "just compiled" >&6; }
2429c060
PB
13828 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13829 # We already found the complete path
b8025f34 13830 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13832$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13833 elif test "x$target" = "x$host"; then
13834 # We can use an host tool
13835 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13837$as_echo "host tool" >&6; }
be01d343
PB
13838 else
13839 # We need a cross tool
81ecdfbb
RW
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13841$as_echo "pre-installed" >&6; }
be01d343
PB
13842 fi
13843fi
4b900473 13844
81ecdfbb
RW
13845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13846$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13847if test "x${build}" != "x${host}" ; then
2429c060
PB
13848 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13849 # We already found the complete path
b8025f34 13850 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13852$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13853 else
13854 # Canadian cross, just use what we found
81ecdfbb
RW
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13856$as_echo "pre-installed" >&6; }
2429c060 13857 fi
be01d343
PB
13858else
13859 ok=yes
13860 case " ${configdirs} " in
13861 *" binutils "*) ;;
13862 *) ok=no ;;
13863 esac
c6b750e1 13864
be01d343
PB
13865 if test $ok = yes; then
13866 # An in-tree tool is available and we can use it
9b980aa1 13867 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13869$as_echo "just compiled" >&6; }
2429c060
PB
13870 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13871 # We already found the complete path
b8025f34 13872 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13874$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13875 elif test "x$target" = "x$host"; then
13876 # We can use an host tool
13877 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13879$as_echo "host tool" >&6; }
be01d343
PB
13880 else
13881 # We need a cross tool
81ecdfbb
RW
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13883$as_echo "pre-installed" >&6; }
be01d343
PB
13884 fi
13885fi
4b900473 13886
81ecdfbb
RW
13887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13888$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13889if test "x${build}" != "x${host}" ; then
2429c060
PB
13890 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13891 # We already found the complete path
b8025f34 13892 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13894$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13895 else
13896 # Canadian cross, just use what we found
81ecdfbb
RW
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13898$as_echo "pre-installed" >&6; }
2429c060 13899 fi
be01d343
PB
13900else
13901 ok=yes
13902 case " ${configdirs} " in
13903 *" binutils "*) ;;
13904 *) ok=no ;;
13905 esac
c6b750e1 13906
be01d343
PB
13907 if test $ok = yes; then
13908 # An in-tree tool is available and we can use it
13909 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13911$as_echo "just compiled" >&6; }
2429c060
PB
13912 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13913 # We already found the complete path
b8025f34 13914 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13916$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13917 elif test "x$target" = "x$host"; then
13918 # We can use an host tool
13919 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13921$as_echo "host tool" >&6; }
be01d343
PB
13922 else
13923 # We need a cross tool
81ecdfbb
RW
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13925$as_echo "pre-installed" >&6; }
be01d343 13926 fi
a0da8069 13927fi
54752a6b 13928
81ecdfbb
RW
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13930$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13931if test "x${build}" != "x${host}" ; then
13932 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13933 # We already found the complete path
13934 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13936$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13937 else
13938 # Canadian cross, just use what we found
81ecdfbb
RW
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13940$as_echo "pre-installed" >&6; }
0c24b341
NC
13941 fi
13942else
13943 ok=yes
13944 case " ${configdirs} " in
13945 *" binutils "*) ;;
13946 *) ok=no ;;
13947 esac
13948
13949 if test $ok = yes; then
13950 # An in-tree tool is available and we can use it
13951 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13953$as_echo "just compiled" >&6; }
0c24b341
NC
13954 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13955 # We already found the complete path
13956 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13958$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13959 elif test "x$target" = "x$host"; then
13960 # We can use an host tool
13961 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13963$as_echo "host tool" >&6; }
0c24b341
NC
13964 else
13965 # We need a cross tool
81ecdfbb
RW
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13967$as_echo "pre-installed" >&6; }
0c24b341
NC
13968 fi
13969fi
13970
54752a6b
NN
13971
13972
be01d343 13973
4b900473 13974
a0da8069
NN
13975# Certain tools may need extra flags.
13976AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13977RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13978NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13979
be01d343
PB
13980# When building target libraries, except in a Canadian cross, we use
13981# the same toolchain as the compiler we just built.
13982COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13983COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13984COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13985if test $host = $build; then
13986 case " $configdirs " in
13987 *" gcc "*)
13988 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13989 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13990 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13991 ;;
13992 esac
13993fi
13994
13995
13996
13997
13998
81ecdfbb
RW
13999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14000$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14001# Check whether --enable-maintainer-mode was given.
14002if test "${enable_maintainer_mode+set}" = set; then :
14003 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14004else
14005 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14006fi
14007
14008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14009$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14010
14011
14012if test "$USE_MAINTAINER_MODE" = yes; then
14013 MAINTAINER_MODE_TRUE=
14014 MAINTAINER_MODE_FALSE='#'
14015else
14016 MAINTAINER_MODE_TRUE='#'
14017 MAINTAINER_MODE_FALSE=
c6b750e1 14018fi
3d5e36ae
AO
14019MAINT=$MAINTAINER_MODE_TRUE
14020
1d39f329
NN
14021# ---------------------
14022# GCC bootstrap support
14023# ---------------------
14024
14025# Stage specific cflags for build.
14026stage1_cflags="-g"
14027case $build in
14028 vax-*-*)
14029 case ${GCC} in
14030 yes) stage1_cflags="-g -Wa,-J" ;;
14031 *) stage1_cflags="-g -J" ;;
14032 esac ;;
1d39f329
NN
14033esac
14034
1d89b610 14035# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 14036if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
14037 saved_CFLAGS="$CFLAGS"
14038
14039 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14040 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14042$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
14044/* end confdefs.h. */
14045
2038f525
PB
14046#if (__GNUC__ < 3) \
14047 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14048 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14049#error http://gcc.gnu.org/PR29382
14050#endif
14051
c6b750e1
DJ
14052int
14053main ()
14054{
14055
14056 ;
14057 return 0;
14058}
14059_ACEOF
81ecdfbb
RW
14060if ac_fn_c_try_compile "$LINENO"; then :
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14062$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14063else
81ecdfbb
RW
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065$as_echo "no" >&6; }
c6b750e1 14066fi
81ecdfbb 14067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14068
14069 CFLAGS="$saved_CFLAGS"
14070fi
14071
14072
1d39f329 14073
8a0d8a5c 14074# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14075# Check whether --enable-stage1-checking was given.
14076if test "${enable_stage1_checking+set}" = set; then :
14077 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14078else
5566c1fa 14079 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14080 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14081else
5566c1fa 14082 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14083fi
81ecdfbb 14084fi
8a0d8a5c
PB
14085
14086
c6b750e1 14087
81ecdfbb
RW
14088# Enable -Werror in bootstrap stage2 and later.
14089# Check whether --enable-werror was given.
14090if test "${enable_werror+set}" = set; then :
14091 enableval=$enable_werror;
1d39f329 14092else
a0323144 14093 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14094 enable_werror=yes
79fcd0ec
PB
14095else
14096 enable_werror=no
14097fi
81ecdfbb
RW
14098fi
14099
1a6f2dc7
NN
14100case ${enable_werror} in
14101 yes) stage2_werror_flag="--enable-werror-always" ;;
14102 *) stage2_werror_flag="" ;;
1d39f329
NN
14103esac
14104
14105
e8a5fa9c
RW
14106# Specify what files to not compare during bootstrap.
14107
14108compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14109case "$target" in
14110 hppa*64*-*-hpux*) ;;
14111 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14112esac
1f53ca9a
AO
14113case " $configdirs " in
14114*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14115esac
e8a5fa9c
RW
14116
14117
81ecdfbb
RW
14118ac_config_files="$ac_config_files Makefile"
14119
c6b750e1 14120cat >confcache <<\_ACEOF
a0da8069
NN
14121# This file is a shell script that caches the results of configure
14122# tests run on this system so they can be shared between configure
c6b750e1
DJ
14123# scripts and configure runs, see configure's option --config-cache.
14124# It is not useful on other systems. If it contains results you don't
14125# want to keep, you may remove or edit it.
a0da8069 14126#
c6b750e1
DJ
14127# config.status only pays attention to the cache file if you give it
14128# the --recheck option to rerun configure.
a0da8069 14129#
c6b750e1
DJ
14130# `ac_cv_env_foo' variables (set or unset) will be overridden when
14131# loading this file, other *unset* `ac_cv_foo' will be assigned the
14132# following values.
14133
14134_ACEOF
14135
a0da8069
NN
14136# The following way of writing the cache mishandles newlines in values,
14137# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14138# So, we kill variables containing newlines.
a0da8069
NN
14139# Ultrix sh set writes to stderr and can't be redirected directly,
14140# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14141(
14142 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14143 eval ac_val=\$$ac_var
14144 case $ac_val in #(
14145 *${as_nl}*)
14146 case $ac_var in #(
14147 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14148$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14149 esac
14150 case $ac_var in #(
14151 _ | IFS | as_nl) ;; #(
14152 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14153 *) { eval $ac_var=; unset $ac_var;} ;;
14154 esac ;;
14155 esac
14156 done
14157
c6b750e1 14158 (set) 2>&1 |
81ecdfbb
RW
14159 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14160 *${as_nl}ac_space=\ *)
14161 # `set' does not quote correctly, so add quotes: double-quote
14162 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14163 sed -n \
14164 "s/'/'\\\\''/g;
14165 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14166 ;; #(
c6b750e1
DJ
14167 *)
14168 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14170 ;;
81ecdfbb
RW
14171 esac |
14172 sort
14173) |
c6b750e1 14174 sed '
81ecdfbb 14175 /^ac_cv_env_/b end
c6b750e1 14176 t clear
81ecdfbb 14177 :clear
c6b750e1
DJ
14178 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14179 t end
81ecdfbb
RW
14180 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14181 :end' >>confcache
14182if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14183 if test -w "$cache_file"; then
14184 test "x$cache_file" != "x/dev/null" &&
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14186$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14187 cat confcache >$cache_file
a0da8069 14188 else
81ecdfbb
RW
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14190$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14191 fi
852e5f18 14192fi
a0da8069 14193rm -f confcache
852e5f18 14194
a0da8069
NN
14195test "x$prefix" = xNONE && prefix=$ac_default_prefix
14196# Let make expand exec_prefix.
14197test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14198
a0da8069
NN
14199# Transform confdefs.h into DEFS.
14200# Protect against shell expansion while executing Makefile rules.
14201# Protect against Makefile macro expansion.
c6b750e1
DJ
14202#
14203# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14204# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14205# look for a macro that doesn't take arguments.
81ecdfbb
RW
14206ac_script='
14207:mline
14208/\\$/{
14209 N
14210 s,\\\n,,
14211 b mline
14212}
c6b750e1 14213t clear
81ecdfbb
RW
14214:clear
14215s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14216t quote
81ecdfbb 14217s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14218t quote
81ecdfbb
RW
14219b any
14220:quote
14221s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14222s/\[/\\&/g
14223s/\]/\\&/g
14224s/\$/$$/g
14225H
14226:any
14227${
14228 g
14229 s/^\n//
14230 s/\n/ /g
14231 p
14232}
14233'
14234DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14235
14236
14237ac_libobjs=
14238ac_ltlibobjs=
14239for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14240 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14241 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14242 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14243 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14244 # will be set to the directory where LIBOBJS objects are built.
14245 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14246 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14247done
14248LIBOBJS=$ac_libobjs
852e5f18 14249
c6b750e1 14250LTLIBOBJS=$ac_ltlibobjs
376a0e54 14251
cac3d6c4 14252
c6b750e1
DJ
14253
14254: ${CONFIG_STATUS=./config.status}
81ecdfbb 14255ac_write_fail=0
c6b750e1
DJ
14256ac_clean_files_save=$ac_clean_files
14257ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14258{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14259$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14260as_write_fail=0
14261cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14262#! $SHELL
14263# Generated by $as_me.
a0da8069 14264# Run this file to recreate the current configuration.
a0da8069 14265# Compiler output produced by configure, useful for debugging
c6b750e1 14266# configure, is in config.log if it exists.
376a0e54 14267
c6b750e1
DJ
14268debug=false
14269ac_cs_recheck=false
14270ac_cs_silent=false
c6b750e1 14271
81ecdfbb
RW
14272SHELL=\${CONFIG_SHELL-$SHELL}
14273export SHELL
14274_ASEOF
14275cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14276## -------------------- ##
14277## M4sh Initialization. ##
14278## -------------------- ##
14279
14280# Be more Bourne compatible
14281DUALCASE=1; export DUALCASE # for MKS sh
14282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14283 emulate sh
14284 NULLCMD=:
81ecdfbb 14285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14286 # is contrary to our usage. Disable this feature.
14287 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14288 setopt NO_GLOB_SUBST
14289else
14290 case `(set -o) 2>/dev/null` in #(
14291 *posix*) :
14292 set -o posix ;; #(
14293 *) :
14294 ;;
14295esac
c6b750e1 14296fi
c6b750e1 14297
81ecdfbb
RW
14298
14299as_nl='
14300'
14301export as_nl
14302# Printing a long string crashes Solaris 7 /usr/bin/printf.
14303as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14304as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14305as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14306# Prefer a ksh shell builtin over an external printf program on Solaris,
14307# but without wasting forks for bash or zsh.
14308if test -z "$BASH_VERSION$ZSH_VERSION" \
14309 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14310 as_echo='print -r --'
14311 as_echo_n='print -rn --'
14312elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14313 as_echo='printf %s\n'
14314 as_echo_n='printf %s'
14315else
14316 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14317 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14318 as_echo_n='/usr/ucb/echo -n'
14319 else
14320 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14321 as_echo_n_body='eval
14322 arg=$1;
14323 case $arg in #(
14324 *"$as_nl"*)
14325 expr "X$arg" : "X\\(.*\\)$as_nl";
14326 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14327 esac;
14328 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14329 '
14330 export as_echo_n_body
14331 as_echo_n='sh -c $as_echo_n_body as_echo'
14332 fi
14333 export as_echo_body
14334 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14335fi
14336
81ecdfbb
RW
14337# The user is always right.
14338if test "${PATH_SEPARATOR+set}" != set; then
14339 PATH_SEPARATOR=:
14340 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14341 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14342 PATH_SEPARATOR=';'
14343 }
14344fi
14345
14346
14347# IFS
14348# We need space, tab and new line, in precisely that order. Quoting is
14349# there to prevent editors from complaining about space-tab.
14350# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14351# splitting by setting IFS to empty value.)
14352IFS=" "" $as_nl"
14353
14354# Find who we are. Look in the path if we contain no directory separator.
14355case $0 in #((
14356 *[\\/]* ) as_myself=$0 ;;
14357 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14358for as_dir in $PATH
14359do
14360 IFS=$as_save_IFS
14361 test -z "$as_dir" && as_dir=.
14362 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14363 done
14364IFS=$as_save_IFS
14365
14366 ;;
14367esac
14368# We did not find ourselves, most probably we were run as `sh COMMAND'
14369# in which case we are not to be found in the path.
14370if test "x$as_myself" = x; then
14371 as_myself=$0
14372fi
14373if test ! -f "$as_myself"; then
14374 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14375 exit 1
14376fi
c6b750e1 14377
81ecdfbb
RW
14378# Unset variables that we do not need and which cause bugs (e.g. in
14379# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14380# suppresses any "Segmentation fault" message there. '((' could
14381# trigger a bug in pdksh 5.2.14.
14382for as_var in BASH_ENV ENV MAIL MAILPATH
14383do eval test x\${$as_var+set} = xset \
14384 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14385done
c6b750e1
DJ
14386PS1='$ '
14387PS2='> '
14388PS4='+ '
14389
14390# NLS nuisances.
81ecdfbb
RW
14391LC_ALL=C
14392export LC_ALL
14393LANGUAGE=C
14394export LANGUAGE
14395
14396# CDPATH.
14397(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14398
14399
14400# as_fn_error ERROR [LINENO LOG_FD]
14401# ---------------------------------
14402# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14403# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14404# script with status $?, using 1 if that was 0.
14405as_fn_error ()
14406{
14407 as_status=$?; test $as_status -eq 0 && as_status=1
14408 if test "$3"; then
14409 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14410 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14411 fi
81ecdfbb
RW
14412 $as_echo "$as_me: error: $1" >&2
14413 as_fn_exit $as_status
14414} # as_fn_error
14415
14416
14417# as_fn_set_status STATUS
14418# -----------------------
14419# Set $? to STATUS, without forking.
14420as_fn_set_status ()
14421{
14422 return $1
14423} # as_fn_set_status
14424
14425# as_fn_exit STATUS
14426# -----------------
14427# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14428as_fn_exit ()
14429{
14430 set +e
14431 as_fn_set_status $1
14432 exit $1
14433} # as_fn_exit
14434
14435# as_fn_unset VAR
14436# ---------------
14437# Portably unset VAR.
14438as_fn_unset ()
14439{
14440 { eval $1=; unset $1;}
14441}
14442as_unset=as_fn_unset
14443# as_fn_append VAR VALUE
14444# ----------------------
14445# Append the text in VALUE to the end of the definition contained in VAR. Take
14446# advantage of any shell optimizations that allow amortized linear growth over
14447# repeated appends, instead of the typical quadratic growth present in naive
14448# implementations.
14449if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14450 eval 'as_fn_append ()
14451 {
14452 eval $1+=\$2
14453 }'
14454else
14455 as_fn_append ()
14456 {
14457 eval $1=\$$1\$2
14458 }
14459fi # as_fn_append
14460
14461# as_fn_arith ARG...
14462# ------------------
14463# Perform arithmetic evaluation on the ARGs, and store the result in the
14464# global $as_val. Take advantage of shells that can avoid forks. The arguments
14465# must be portable across $(()) and expr.
14466if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14467 eval 'as_fn_arith ()
14468 {
14469 as_val=$(( $* ))
14470 }'
14471else
14472 as_fn_arith ()
14473 {
14474 as_val=`expr "$@" || test $? -eq 1`
14475 }
14476fi # as_fn_arith
14477
c6b750e1 14478
81ecdfbb
RW
14479if expr a : '\(a\)' >/dev/null 2>&1 &&
14480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14481 as_expr=expr
14482else
14483 as_expr=false
14484fi
14485
81ecdfbb 14486if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14487 as_basename=basename
14488else
14489 as_basename=false
14490fi
14491
81ecdfbb
RW
14492if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14493 as_dirname=dirname
14494else
14495 as_dirname=false
14496fi
c6b750e1 14497
81ecdfbb 14498as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14499$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14500 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14501 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14502$as_echo X/"$0" |
14503 sed '/^.*\/\([^/][^/]*\)\/*$/{
14504 s//\1/
14505 q
14506 }
14507 /^X\/\(\/\/\)$/{
14508 s//\1/
14509 q
14510 }
14511 /^X\/\(\/\).*/{
14512 s//\1/
14513 q
14514 }
14515 s/.*/./; q'`
c6b750e1 14516
c6b750e1
DJ
14517# Avoid depending upon Character Ranges.
14518as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14519as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14520as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14521as_cr_digits='0123456789'
14522as_cr_alnum=$as_cr_Letters$as_cr_digits
14523
81ecdfbb
RW
14524ECHO_C= ECHO_N= ECHO_T=
14525case `echo -n x` in #(((((
14526-n*)
14527 case `echo 'xy\c'` in
14528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14529 xy) ECHO_C='\c';;
14530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14531 ECHO_T=' ';;
14532 esac;;
14533*)
14534 ECHO_N='-n';;
c6b750e1
DJ
14535esac
14536
81ecdfbb
RW
14537rm -f conf$$ conf$$.exe conf$$.file
14538if test -d conf$$.dir; then
14539 rm -f conf$$.dir/conf$$.file
c6b750e1 14540else
81ecdfbb
RW
14541 rm -f conf$$.dir
14542 mkdir conf$$.dir 2>/dev/null
c6b750e1 14543fi
81ecdfbb
RW
14544if (echo >conf$$.file) 2>/dev/null; then
14545 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14546 as_ln_s='ln -s'
81ecdfbb
RW
14547 # ... but there are two gotchas:
14548 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14549 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14550 # In both cases, we have to default to `cp -p'.
14551 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14552 as_ln_s='cp -p'
14553 elif ln conf$$.file conf$$ 2>/dev/null; then
14554 as_ln_s=ln
14555 else
14556 as_ln_s='cp -p'
c6b750e1 14557 fi
c6b750e1
DJ
14558else
14559 as_ln_s='cp -p'
14560fi
81ecdfbb
RW
14561rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14562rmdir conf$$.dir 2>/dev/null
14563
14564
14565# as_fn_mkdir_p
14566# -------------
14567# Create "$as_dir" as a directory, including parents if necessary.
14568as_fn_mkdir_p ()
14569{
14570
14571 case $as_dir in #(
14572 -*) as_dir=./$as_dir;;
14573 esac
14574 test -d "$as_dir" || eval $as_mkdir_p || {
14575 as_dirs=
14576 while :; do
14577 case $as_dir in #(
14578 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14579 *) as_qdir=$as_dir;;
14580 esac
14581 as_dirs="'$as_qdir' $as_dirs"
14582 as_dir=`$as_dirname -- "$as_dir" ||
14583$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14584 X"$as_dir" : 'X\(//\)[^/]' \| \
14585 X"$as_dir" : 'X\(//\)$' \| \
14586 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14587$as_echo X"$as_dir" |
14588 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14589 s//\1/
14590 q
14591 }
14592 /^X\(\/\/\)[^/].*/{
14593 s//\1/
14594 q
14595 }
14596 /^X\(\/\/\)$/{
14597 s//\1/
14598 q
14599 }
14600 /^X\(\/\).*/{
14601 s//\1/
14602 q
14603 }
14604 s/.*/./; q'`
14605 test -d "$as_dir" && break
14606 done
14607 test -z "$as_dirs" || eval "mkdir $as_dirs"
14608 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14609
c6b750e1 14610
81ecdfbb 14611} # as_fn_mkdir_p
c6b750e1 14612if mkdir -p . 2>/dev/null; then
81ecdfbb 14613 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14614else
14615 test -d ./-p && rmdir ./-p
14616 as_mkdir_p=false
14617fi
14618
81ecdfbb
RW
14619if test -x / >/dev/null 2>&1; then
14620 as_test_x='test -x'
14621else
14622 if ls -dL / >/dev/null 2>&1; then
14623 as_ls_L_option=L
14624 else
14625 as_ls_L_option=
14626 fi
14627 as_test_x='
14628 eval sh -c '\''
14629 if test -d "$1"; then
14630 test -d "$1/.";
14631 else
14632 case $1 in #(
14633 -*)set "./$1";;
14634 esac;
14635 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14636 ???[sx]*):;;*)false;;esac;fi
14637 '\'' sh
14638 '
14639fi
14640as_executable_p=$as_test_x
c6b750e1
DJ
14641
14642# Sed expression to map a string onto a valid CPP name.
14643as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14644
14645# Sed expression to map a string onto a valid variable name.
14646as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14647
14648
c6b750e1 14649exec 6>&1
81ecdfbb
RW
14650## ----------------------------------- ##
14651## Main body of $CONFIG_STATUS script. ##
14652## ----------------------------------- ##
14653_ASEOF
14654test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14655
14656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14657# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14658# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14659# values after options handling.
14660ac_log="
c6b750e1 14661This file was extended by $as_me, which was
81ecdfbb 14662generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14663
14664 CONFIG_FILES = $CONFIG_FILES
14665 CONFIG_HEADERS = $CONFIG_HEADERS
14666 CONFIG_LINKS = $CONFIG_LINKS
14667 CONFIG_COMMANDS = $CONFIG_COMMANDS
14668 $ $0 $@
14669
81ecdfbb
RW
14670on `(hostname || uname -n) 2>/dev/null | sed 1q`
14671"
14672
c6b750e1
DJ
14673_ACEOF
14674
81ecdfbb
RW
14675case $ac_config_files in *"
14676"*) set x $ac_config_files; shift; ac_config_files=$*;;
14677esac
c6b750e1 14678
c6b750e1 14679
c6b750e1 14680
81ecdfbb
RW
14681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14682# Files that config.status was made for.
14683config_files="$ac_config_files"
c6b750e1 14684
81ecdfbb 14685_ACEOF
c6b750e1 14686
81ecdfbb 14687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14688ac_cs_usage="\
81ecdfbb
RW
14689\`$as_me' instantiates files and other configuration actions
14690from templates according to the current configuration. Unless the files
14691and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14692
81ecdfbb 14693Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14694
14695 -h, --help print this help, then exit
81ecdfbb
RW
14696 -V, --version print version number and configuration settings, then exit
14697 -q, --quiet, --silent
14698 do not print progress messages
c6b750e1
DJ
14699 -d, --debug don't remove temporary files
14700 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14701 --file=FILE[:TEMPLATE]
14702 instantiate the configuration file FILE
c6b750e1
DJ
14703
14704Configuration files:
14705$config_files
14706
81ecdfbb 14707Report bugs to the package provider."
c6b750e1 14708
81ecdfbb
RW
14709_ACEOF
14710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14711ac_cs_version="\\
14712config.status
81ecdfbb
RW
14713configured by $0, generated by GNU Autoconf 2.64,
14714 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14715
81ecdfbb 14716Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14717This config.status script is free software; the Free Software Foundation
14718gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14719
14720ac_pwd='$ac_pwd'
14721srcdir='$srcdir'
14722INSTALL='$INSTALL'
8e957354 14723AWK='$AWK'
81ecdfbb 14724test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14725_ACEOF
14726
81ecdfbb
RW
14727cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14728# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14729ac_need_defaults=:
14730while test $# != 0
a0da8069 14731do
c6b750e1
DJ
14732 case $1 in
14733 --*=*)
81ecdfbb
RW
14734 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14735 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14736 ac_shift=:
14737 ;;
81ecdfbb 14738 *)
c6b750e1
DJ
14739 ac_option=$1
14740 ac_optarg=$2
14741 ac_shift=shift
14742 ;;
c6b750e1
DJ
14743 esac
14744
14745 case $ac_option in
14746 # Handling of the options.
a0da8069 14747 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14748 ac_cs_recheck=: ;;
81ecdfbb
RW
14749 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14750 $as_echo "$ac_cs_version"; exit ;;
14751 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14752 debug=: ;;
14753 --file | --fil | --fi | --f )
14754 $ac_shift
81ecdfbb
RW
14755 case $ac_optarg in
14756 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14757 esac
14758 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14759 ac_need_defaults=false;;
81ecdfbb
RW
14760 --he | --h | --help | --hel | -h )
14761 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14764 ac_cs_silent=: ;;
14765
14766 # This is an error.
81ecdfbb
RW
14767 -*) as_fn_error "unrecognized option: \`$1'
14768Try \`$0 --help' for more information." ;;
c6b750e1 14769
81ecdfbb
RW
14770 *) as_fn_append ac_config_targets " $1"
14771 ac_need_defaults=false ;;
c6b750e1 14772
376a0e54 14773 esac
c6b750e1 14774 shift
376a0e54
CM
14775done
14776
c6b750e1 14777ac_configure_extra_args=
376a0e54 14778
c6b750e1
DJ
14779if $ac_cs_silent; then
14780 exec 6>/dev/null
14781 ac_configure_extra_args="$ac_configure_extra_args --silent"
14782fi
376a0e54 14783
c6b750e1 14784_ACEOF
81ecdfbb 14785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14786if \$ac_cs_recheck; then
81ecdfbb
RW
14787 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14788 shift
14789 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14790 CONFIG_SHELL='$SHELL'
14791 export CONFIG_SHELL
14792 exec "\$@"
c6b750e1
DJ
14793fi
14794
14795_ACEOF
81ecdfbb
RW
14796cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14797exec 5>>config.log
14798{
14799 echo
14800 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14801## Running $as_me. ##
14802_ASBOX
14803 $as_echo "$ac_log"
14804} >&5
c6b750e1 14805
81ecdfbb
RW
14806_ACEOF
14807cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14808#
14809# INIT-COMMANDS
14810#
14811extrasub_build="$extrasub_build"
14812 extrasub_host="$extrasub_host"
14813 extrasub_target="$extrasub_target"
14814
81ecdfbb 14815_ACEOF
c6b750e1 14816
81ecdfbb 14817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14818
81ecdfbb 14819# Handling of arguments.
c6b750e1
DJ
14820for ac_config_target in $ac_config_targets
14821do
81ecdfbb
RW
14822 case $ac_config_target in
14823 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14824
14825 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14826 esac
14827done
14828
81ecdfbb 14829
c6b750e1
DJ
14830# If the user did not use the arguments to specify the items to instantiate,
14831# then the envvar interface is used. Set only those that are not.
14832# We use the long form for the default assignment because of an extremely
14833# bizarre bug on SunOS 4.1.3.
14834if $ac_need_defaults; then
14835 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14836fi
14837
14838# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14839# simply because there is no reason against having it here, and in addition,
c6b750e1 14840# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14841# Hook for its removal unless debugging.
14842# Note that there is a small window in which the directory will not be cleaned:
14843# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14844$debug ||
14845{
81ecdfbb
RW
14846 tmp=
14847 trap 'exit_status=$?
14848 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14849' 0
14850 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14851}
c6b750e1
DJ
14852# Create a (secure) tmp directory for tmp files.
14853
14854{
81ecdfbb 14855 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14856 test -n "$tmp" && test -d "$tmp"
14857} ||
14858{
81ecdfbb
RW
14859 tmp=./conf$$-$RANDOM
14860 (umask 077 && mkdir "$tmp")
14861} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14862
14863# Set up the scripts for CONFIG_FILES section.
14864# No need to generate them if there are no CONFIG_FILES.
14865# This happens for instance with `./config.status config.h'.
14866if test -n "$CONFIG_FILES"; then
14867
14868if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14869 ac_cs_awk_getline=:
14870 ac_cs_awk_pipe_init=
14871 ac_cs_awk_read_file='
14872 while ((getline aline < (F[key])) > 0)
14873 print(aline)
14874 close(F[key])'
14875 ac_cs_awk_pipe_fini=
14876else
14877 ac_cs_awk_getline=false
14878 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14879 ac_cs_awk_read_file='
14880 print "|#_!!_#|"
14881 print "cat " F[key] " &&"
14882 '$ac_cs_awk_pipe_init
14883 # The final `:' finishes the AND list.
14884 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14885fi
14886ac_cr=`echo X | tr X '\015'`
14887# On cygwin, bash can eat \r inside `` if the user requested igncr.
14888# But we know of no other shell where ac_cr would be empty at this
14889# point, so we can use a bashism as a fallback.
14890if test "x$ac_cr" = x; then
14891 eval ac_cr=\$\'\\r\'
14892fi
14893ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14894if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14895 ac_cs_awk_cr='\r'
14896else
14897 ac_cs_awk_cr=$ac_cr
14898fi
14899
14900echo 'BEGIN {' >"$tmp/subs1.awk" &&
14901_ACEOF
14902
14903# Create commands to substitute file output variables.
c6b750e1 14904{
81ecdfbb
RW
14905 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14906 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14907 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14908 echo "_ACAWK" &&
14909 echo "_ACEOF"
14910} >conf$$files.sh &&
14911. ./conf$$files.sh ||
14912 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14913rm -f conf$$files.sh
c6b750e1 14914
81ecdfbb
RW
14915{
14916 echo "cat >conf$$subs.awk <<_ACEOF" &&
14917 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14918 echo "_ACEOF"
14919} >conf$$subs.sh ||
14920 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14921ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14922ac_delim='%!_!# '
14923for ac_last_try in false false false false false :; do
14924 . ./conf$$subs.sh ||
14925 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14926
14927 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14928 if test $ac_delim_n = $ac_delim_num; then
14929 break
14930 elif $ac_last_try; then
14931 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14932 else
14933 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14934 fi
14935done
14936rm -f conf$$subs.sh
14937
14938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14939cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14940_ACEOF
81ecdfbb
RW
14941sed -n '
14942h
14943s/^/S["/; s/!.*/"]=/
14944p
14945g
14946s/^[^!]*!//
14947:repl
14948t repl
14949s/'"$ac_delim"'$//
14950t delim
14951:nl
14952h
14953s/\(.\{148\}\).*/\1/
14954t more1
14955s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14956p
14957n
14958b repl
14959:more1
14960s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14961p
14962g
14963s/.\{148\}//
14964t nl
14965:delim
14966h
14967s/\(.\{148\}\).*/\1/
14968t more2
14969s/["\\]/\\&/g; s/^/"/; s/$/"/
14970p
14971b
14972:more2
14973s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14974p
14975g
14976s/.\{148\}//
14977t delim
14978' <conf$$subs.awk | sed '
14979/^[^""]/{
14980 N
14981 s/\n//
14982}
14983' >>$CONFIG_STATUS || ac_write_fail=1
14984rm -f conf$$subs.awk
14985cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14986_ACAWK
14987cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14988 for (key in S) S_is_set[key] = 1
14989 FS = "\a"
14990 \$ac_cs_awk_pipe_init
14991}
14992{
14993 line = $ 0
14994 nfields = split(line, field, "@")
14995 substed = 0
14996 len = length(field[1])
14997 for (i = 2; i < nfields; i++) {
14998 key = field[i]
14999 keylen = length(key)
15000 if (S_is_set[key]) {
15001 value = S[key]
15002 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15003 len += length(value) + length(field[++i])
15004 substed = 1
15005 } else
15006 len += 1 + keylen
15007 }
15008 if (nfields == 3 && !substed) {
15009 key = field[2]
15010 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15011 \$ac_cs_awk_read_file
15012 next
15013 }
15014 }
15015 print line
15016}
15017\$ac_cs_awk_pipe_fini
15018_ACAWK
15019_ACEOF
15020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15021if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15022 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15023else
15024 cat
15025fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15026 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15027_ACEOF
15028
15029# VPATH may cause trouble with some makes, so we remove $(srcdir),
15030# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15031# trailing colons and then remove the whole line if VPATH becomes empty
15032# (actually we leave an empty line to preserve line numbers).
15033if test "x$srcdir" = x.; then
15034 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15035s/:*\$(srcdir):*/:/
15036s/:*\${srcdir}:*/:/
15037s/:*@srcdir@:*/:/
15038s/^\([^=]*=[ ]*\):*/\1/
15039s/:*$//
15040s/^[^=]*=[ ]*$//
15041}'
15042fi
c6b750e1 15043
81ecdfbb
RW
15044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15045fi # test -n "$CONFIG_FILES"
c6b750e1 15046
c6b750e1 15047
81ecdfbb
RW
15048eval set X " :F $CONFIG_FILES "
15049shift
15050for ac_tag
15051do
15052 case $ac_tag in
15053 :[FHLC]) ac_mode=$ac_tag; continue;;
15054 esac
15055 case $ac_mode$ac_tag in
15056 :[FHL]*:*);;
15057 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15058 :[FH]-) ac_tag=-:-;;
15059 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15060 esac
15061 ac_save_IFS=$IFS
15062 IFS=:
15063 set x $ac_tag
15064 IFS=$ac_save_IFS
15065 shift
15066 ac_file=$1
15067 shift
252b5132 15068
81ecdfbb
RW
15069 case $ac_mode in
15070 :L) ac_source=$1;;
15071 :[FH])
15072 ac_file_inputs=
15073 for ac_f
15074 do
15075 case $ac_f in
15076 -) ac_f="$tmp/stdin";;
15077 *) # Look for the file first in the build tree, then in the source tree
15078 # (if the path is not absolute). The absolute path cannot be DOS-style,
15079 # because $ac_f cannot contain `:'.
15080 test -f "$ac_f" ||
15081 case $ac_f in
15082 [\\/$]*) false;;
15083 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15084 esac ||
15085 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15086 esac
15087 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15088 as_fn_append ac_file_inputs " '$ac_f'"
15089 done
c6b750e1 15090
81ecdfbb
RW
15091 # Let's still pretend it is `configure' which instantiates (i.e., don't
15092 # use $as_me), people would be surprised to read:
15093 # /* config.h. Generated by config.status. */
15094 configure_input='Generated from '`
15095 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15096 `' by configure.'
15097 if test x"$ac_file" != x-; then
15098 configure_input="$ac_file. $configure_input"
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15100$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15101 fi
81ecdfbb
RW
15102 # Neutralize special characters interpreted by sed in replacement strings.
15103 case $configure_input in #(
15104 *\&* | *\|* | *\\* )
15105 ac_sed_conf_input=`$as_echo "$configure_input" |
15106 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15107 *) ac_sed_conf_input=$configure_input;;
15108 esac
cac3d6c4 15109
81ecdfbb
RW
15110 case $ac_tag in
15111 *:-:* | *:-) cat >"$tmp/stdin" \
15112 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15113 esac
15114 ;;
a0da8069 15115 esac
252b5132 15116
81ecdfbb 15117 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15118$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15119 X"$ac_file" : 'X\(//\)[^/]' \| \
15120 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15121 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15122$as_echo X"$ac_file" |
15123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15124 s//\1/
15125 q
15126 }
15127 /^X\(\/\/\)[^/].*/{
15128 s//\1/
15129 q
15130 }
15131 /^X\(\/\/\)$/{
15132 s//\1/
15133 q
15134 }
15135 /^X\(\/\).*/{
15136 s//\1/
15137 q
15138 }
15139 s/.*/./; q'`
15140 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15141 ac_builddir=.
252b5132 15142
81ecdfbb
RW
15143case "$ac_dir" in
15144.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15145*)
15146 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15147 # A ".." for each directory in $ac_dir_suffix.
15148 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15149 case $ac_top_builddir_sub in
15150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15152 esac ;;
15153esac
15154ac_abs_top_builddir=$ac_pwd
15155ac_abs_builddir=$ac_pwd$ac_dir_suffix
15156# for backward compatibility:
15157ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15158
15159case $srcdir in
81ecdfbb 15160 .) # We are building in place.
c6b750e1 15161 ac_srcdir=.
81ecdfbb
RW
15162 ac_top_srcdir=$ac_top_builddir_sub
15163 ac_abs_top_srcdir=$ac_pwd ;;
15164 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15165 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15166 ac_top_srcdir=$srcdir
15167 ac_abs_top_srcdir=$srcdir ;;
15168 *) # Relative name.
15169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15170 ac_top_srcdir=$ac_top_build_prefix$srcdir
15171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15172esac
81ecdfbb 15173ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15174
252b5132 15175
81ecdfbb
RW
15176 case $ac_mode in
15177 :F)
15178 #
15179 # CONFIG_FILE
15180 #
c6b750e1
DJ
15181
15182 case $INSTALL in
15183 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15184 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15185 esac
81ecdfbb 15186_ACEOF
252b5132 15187
81ecdfbb
RW
15188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15189# If the template does not know about datarootdir, expand it.
15190# FIXME: This hack should be removed a few years after 2.60.
15191ac_datarootdir_hack=; ac_datarootdir_seen=
15192ac_sed_dataroot='
15193/datarootdir/ {
15194 p
15195 q
15196}
15197/@datadir@/p
15198/@docdir@/p
15199/@infodir@/p
15200/@localedir@/p
15201/@mandir@/p'
15202case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15203*datarootdir*) ac_datarootdir_seen=yes;;
15204*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15206$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15207_ACEOF
81ecdfbb
RW
15208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15209 ac_datarootdir_hack='
15210 s&@datadir@&$datadir&g
15211 s&@docdir@&$docdir&g
15212 s&@infodir@&$infodir&g
15213 s&@localedir@&$localedir&g
15214 s&@mandir@&$mandir&g
15215 s&\\\${datarootdir}&$datarootdir&g' ;;
15216esac
15217_ACEOF
15218
15219# Neutralize VPATH when `$srcdir' = `.'.
15220# Shell code in configure.ac might set extrasub.
15221# FIXME: do we really want to maintain this feature?
15222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15223ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15224$extrasub
15225_ACEOF
81ecdfbb 15226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15227:t
15228/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15229s|@configure_input@|$ac_sed_conf_input|;t t
15230s&@top_builddir@&$ac_top_builddir_sub&;t t
15231s&@top_build_prefix@&$ac_top_build_prefix&;t t
15232s&@srcdir@&$ac_srcdir&;t t
15233s&@abs_srcdir@&$ac_abs_srcdir&;t t
15234s&@top_srcdir@&$ac_top_srcdir&;t t
15235s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15236s&@builddir@&$ac_builddir&;t t
15237s&@abs_builddir@&$ac_abs_builddir&;t t
15238s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15239s&@INSTALL@&$ac_INSTALL&;t t
15240$ac_datarootdir_hack
15241"
15242eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15243if $ac_cs_awk_getline; then
15244 $AWK -f "$tmp/subs.awk"
15245else
15246 $AWK -f "$tmp/subs.awk" | $SHELL
15247fi >$tmp/out \
15248 || as_fn_error "could not create $ac_file" "$LINENO" 5
15249
15250test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15251 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15252 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15254which seems to be undefined. Please make sure it is defined." >&5
15255$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15256which seems to be undefined. Please make sure it is defined." >&2;}
15257
15258 rm -f "$tmp/stdin"
15259 case $ac_file in
15260 -) cat "$tmp/out" && rm -f "$tmp/out";;
15261 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15262 esac \
15263 || as_fn_error "could not create $ac_file" "$LINENO" 5
15264 ;;
c148b4cb 15265
c148b4cb 15266
c148b4cb 15267
81ecdfbb
RW
15268 esac
15269
06a51eac
RW
15270
15271 case $ac_file$ac_mode in
15272 "Makefile":F) sed "$extrasub_build" Makefile |
15273 sed "$extrasub_host" |
15274 sed "$extrasub_target" > mf$$
15275 mv -f mf$$ Makefile ;;
15276
15277 esac
81ecdfbb
RW
15278done # for ac_tag
15279
15280
15281as_fn_exit 0
c6b750e1 15282_ACEOF
c6b750e1
DJ
15283ac_clean_files=$ac_clean_files_save
15284
81ecdfbb
RW
15285test $ac_write_fail = 0 ||
15286 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15287
c6b750e1
DJ
15288
15289# configure is writing to config.log, and then calls config.status.
15290# config.status does its own redirection, appending to config.log.
15291# Unfortunately, on DOS this fails, as config.log is still kept open
15292# by configure, so config.status won't be able to write to it; its
15293# output is simply discarded. So we exec the FD to /dev/null,
15294# effectively closing config.log, so it can be properly (re)opened and
15295# appended to by config.status. When coming back to configure, we
15296# need to make the FD available again.
15297if test "$no_create" != yes; then
15298 ac_cs_success=:
15299 ac_config_status_args=
15300 test "$silent" = yes &&
15301 ac_config_status_args="$ac_config_status_args --quiet"
15302 exec 5>/dev/null
15303 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15304 exec 5>>config.log
15305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15306 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15307 $ac_cs_success || as_fn_exit $?
15308fi
15309if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15311$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15312fi
c148b4cb 15313
This page took 1.500697 seconds and 4 git commands to generate.