2013-10-29 Marc Glisse <marc.glisse@inria.fr>
[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
82033c9b 559host_shared
81ecdfbb
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
b121d7d4 574READELF_FOR_TARGET
81ecdfbb
RW
575RANLIB_FOR_TARGET
576OBJDUMP_FOR_TARGET
577NM_FOR_TARGET
578LIPO_FOR_TARGET
579LD_FOR_TARGET
580DLLTOOL_FOR_TARGET
581AS_FOR_TARGET
582AR_FOR_TARGET
e552509b 583GOC_FOR_TARGET
81ecdfbb
RW
584GFORTRAN_FOR_TARGET
585GCJ_FOR_TARGET
586GCC_FOR_TARGET
587CXX_FOR_TARGET
588CC_FOR_TARGET
b121d7d4 589READELF
81ecdfbb
RW
590OBJDUMP
591OBJCOPY
592WINDMC
593WINDRES
594STRIP
595RANLIB
596NM
597LIPO
598LD
599DLLTOOL
600AS
601AR
602RUNTEST
603EXPECT
604MAKEINFO
605FLEX
606LEX
607M4
608BISON
609YACC
81ecdfbb
RW
610WINDRES_FOR_BUILD
611WINDMC_FOR_BUILD
612RANLIB_FOR_BUILD
613NM_FOR_BUILD
614LD_FOR_BUILD
615LDFLAGS_FOR_BUILD
e552509b 616GOC_FOR_BUILD
81ecdfbb
RW
617GFORTRAN_FOR_BUILD
618GCJ_FOR_BUILD
619DLLTOOL_FOR_BUILD
620CXX_FOR_BUILD
621CXXFLAGS_FOR_BUILD
622CFLAGS_FOR_BUILD
623CC_FOR_BUILD
624AS_FOR_BUILD
625AR_FOR_BUILD
911e63d0 626target_configdirs
81ecdfbb 627configdirs
81ecdfbb 628build_configdirs
81ecdfbb
RW
629INSTALL_GDB_TK
630GDB_TK
631CONFIGURE_GDB_TK
632build_tooldir
633tooldir
634GCC_SHLIB_SUBDIR
635RPATH_ENVVAR
4074d5f2
RW
636target_configargs
637host_configargs
638build_configargs
96655cc4 639BUILD_CONFIG
91c1f14c 640LDFLAGS_FOR_TARGET
81ecdfbb
RW
641CXXFLAGS_FOR_TARGET
642CFLAGS_FOR_TARGET
643DEBUG_PREFIX_CFLAGS_FOR_TARGET
644SYSROOT_CFLAGS_FOR_TARGET
645stage1_languages
700d40ca 646extra_host_libiberty_configure_flags
81ecdfbb
RW
647clooginc
648clooglibs
7ec59b9e 649islinc
81ecdfbb 650poststage1_ldflags
143754cd 651poststage1_libs
81ecdfbb 652stage1_ldflags
b3676d82 653stage1_libs
7ec59b9e 654extra_isl_gmp_configure_flags
81ecdfbb
RW
655extra_mpc_mpfr_configure_flags
656extra_mpc_gmp_configure_flags
657extra_mpfr_configure_flags
658gmpinc
659gmplibs
660do_compare
661GNATMAKE
662GNATBIND
663ac_ct_CXX
664CXXFLAGS
665CXX
666OBJEXT
667EXEEXT
668ac_ct_CC
669CPPFLAGS
670LDFLAGS
671CFLAGS
672CC
ffdd6afc 673EXTRA_CONFIGARGS_LIBJAVA
81ecdfbb
RW
674target_subdir
675host_subdir
676build_subdir
677build_libsubdir
8e957354
PB
678AWK
679SED
81ecdfbb
RW
680LN_S
681LN
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685target_os
686target_vendor
687target_cpu
688target
689host_os
690host_vendor
691host_cpu
692host
693target_noncanonical
694host_noncanonical
695build_noncanonical
696build_os
697build_vendor
698build_cpu
699build
700TOPLEVEL_CONFIGURE_ARGUMENTS
701target_alias
702host_alias
703build_alias
704LIBS
705ECHO_T
706ECHO_N
707ECHO_C
708DEFS
709mandir
710localedir
711libdir
712psdir
713pdfdir
714dvidir
715htmldir
716infodir
717docdir
718oldincludedir
719includedir
720localstatedir
721sharedstatedir
722sysconfdir
723datadir
724datarootdir
725libexecdir
726sbindir
727bindir
728program_transform_name
729prefix
730exec_prefix
731PACKAGE_URL
732PACKAGE_BUGREPORT
733PACKAGE_STRING
734PACKAGE_VERSION
735PACKAGE_TARNAME
736PACKAGE_NAME
737PATH_SEPARATOR
738SHELL'
739ac_subst_files='serialization_dependencies
740host_makefile_frag
741target_makefile_frag
742alphaieee_frag
743ospace_frag'
744ac_user_opts='
745enable_option_checking
746with_build_libsubdir
747enable_gold
c7791212 748enable_ld
89a1e9c3
PB
749enable_libquadmath
750enable_libquadmath_support
81ecdfbb
RW
751enable_libada
752enable_libssp
f66a9a70 753enable_libstdcxx
ffdd6afc
ILT
754enable_static_libjava
755enable_bootstrap
81ecdfbb
RW
756with_mpc
757with_mpc_include
758with_mpc_lib
759with_mpfr_dir
760with_mpfr
761with_mpfr_include
762with_mpfr_lib
763with_gmp_dir
764with_gmp
765with_gmp_include
766with_gmp_lib
767with_host_libstdcxx
81ecdfbb 768with_stage1_libs
b3676d82 769with_stage1_ldflags
81ecdfbb 770with_boot_libs
143754cd 771with_boot_ldflags
8e71395b 772with_cloog
7ec59b9e
L
773with_isl
774with_isl_include
775with_isl_lib
776enable_isl_version_check
81ecdfbb
RW
777with_cloog_include
778with_cloog_lib
779enable_cloog_version_check
700d40ca 780enable_lto
81ecdfbb
RW
781enable_stage1_languages
782enable_objc_gc
783with_build_sysroot
784with_debug_prefix_map
96655cc4 785with_build_config
81ecdfbb
RW
786enable_serial_configure
787with_build_time_tools
788enable_maintainer_mode
789enable_stage1_checking
790enable_werror
82033c9b 791enable_host_shared
81ecdfbb
RW
792'
793 ac_precious_vars='build_alias
794host_alias
795target_alias
796CC
797CFLAGS
798LDFLAGS
799LIBS
800CPPFLAGS
801CXX
802CXXFLAGS
803CCC
4074d5f2
RW
804build_configargs
805host_configargs
806target_configargs
81ecdfbb
RW
807AR
808AS
809DLLTOOL
810LD
811LIPO
812NM
813RANLIB
814STRIP
815WINDRES
816WINDMC
817OBJCOPY
818OBJDUMP
b121d7d4 819READELF
81ecdfbb
RW
820CC_FOR_TARGET
821CXX_FOR_TARGET
822GCC_FOR_TARGET
823GCJ_FOR_TARGET
824GFORTRAN_FOR_TARGET
e552509b 825GOC_FOR_TARGET
81ecdfbb
RW
826AR_FOR_TARGET
827AS_FOR_TARGET
828DLLTOOL_FOR_TARGET
829LD_FOR_TARGET
830LIPO_FOR_TARGET
831NM_FOR_TARGET
832OBJDUMP_FOR_TARGET
833RANLIB_FOR_TARGET
b121d7d4 834READELF_FOR_TARGET
81ecdfbb
RW
835STRIP_FOR_TARGET
836WINDRES_FOR_TARGET
837WINDMC_FOR_TARGET'
838
a0da8069
NN
839
840# Initialize some variables set by options.
c6b750e1
DJ
841ac_init_help=
842ac_init_version=false
81ecdfbb
RW
843ac_unrecognized_opts=
844ac_unrecognized_sep=
a0da8069
NN
845# The variables have the same names as the options, with
846# dashes changed to underlines.
c6b750e1 847cache_file=/dev/null
a0da8069 848exec_prefix=NONE
a0da8069 849no_create=
a0da8069
NN
850no_recursion=
851prefix=NONE
852program_prefix=NONE
853program_suffix=NONE
854program_transform_name=s,x,x,
855silent=
856site=
857srcdir=
a0da8069
NN
858verbose=
859x_includes=NONE
860x_libraries=NONE
c6b750e1
DJ
861
862# Installation directory options.
863# These are left unexpanded so users can "make install exec_prefix=/foo"
864# and all the variables that are supposed to be based on exec_prefix
865# by default will actually change.
866# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 867# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
868bindir='${exec_prefix}/bin'
869sbindir='${exec_prefix}/sbin'
870libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
871datarootdir='${prefix}/share'
872datadir='${datarootdir}'
a0da8069
NN
873sysconfdir='${prefix}/etc'
874sharedstatedir='${prefix}/com'
875localstatedir='${prefix}/var'
a0da8069
NN
876includedir='${prefix}/include'
877oldincludedir='/usr/include'
81ecdfbb
RW
878docdir='${datarootdir}/doc/${PACKAGE}'
879infodir='${datarootdir}/info'
880htmldir='${docdir}'
881dvidir='${docdir}'
882pdfdir='${docdir}'
883psdir='${docdir}'
884libdir='${exec_prefix}/lib'
885localedir='${datarootdir}/locale'
886mandir='${datarootdir}/man'
252b5132 887
a0da8069 888ac_prev=
81ecdfbb 889ac_dashdash=
a0da8069
NN
890for ac_option
891do
a0da8069
NN
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
81ecdfbb 894 eval $ac_prev=\$ac_option
a0da8069
NN
895 ac_prev=
896 continue
897 fi
252b5132 898
81ecdfbb
RW
899 case $ac_option in
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *) ac_optarg=yes ;;
902 esac
a0da8069
NN
903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
81ecdfbb
RW
906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
a0da8069
NN
909
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 913 bindir=$ac_optarg ;;
a0da8069
NN
914
915 -build | --build | --buil | --bui | --bu)
c6b750e1 916 ac_prev=build_alias ;;
a0da8069 917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 918 build_alias=$ac_optarg ;;
a0da8069
NN
919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
a0da8069 929
81ecdfbb 930 -datadir | --datadir | --datadi | --datad)
a0da8069 931 ac_prev=datadir ;;
81ecdfbb 932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 933 datadir=$ac_optarg ;;
a0da8069 934
81ecdfbb
RW
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
a0da8069 942 -disable-* | --disable-*)
81ecdfbb 943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 944 # Reject names that are not valid shell variable names.
81ecdfbb
RW
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951"enable_$ac_useropt"
952"*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
a0da8069
NN
967
968 -enable-* | --enable-*)
81ecdfbb 969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 970 # Reject names that are not valid shell variable names.
81ecdfbb
RW
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977"enable_$ac_useropt"
978"*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
a0da8069 981 esac
81ecdfbb 982 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
c6b750e1 991 exec_prefix=$ac_optarg ;;
a0da8069
NN
992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
c6b750e1
DJ
997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
a0da8069
NN
1003
1004 -host | --host | --hos | --ho)
c6b750e1 1005 ac_prev=host_alias ;;
a0da8069 1006 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 1007 host_alias=$ac_optarg ;;
a0da8069 1008
81ecdfbb
RW
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
a0da8069
NN
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1020 includedir=$ac_optarg ;;
a0da8069
NN
1021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1025 infodir=$ac_optarg ;;
a0da8069
NN
1026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1030 libdir=$ac_optarg ;;
a0da8069
NN
1031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1037 libexecdir=$ac_optarg ;;
a0da8069 1038
81ecdfbb
RW
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
a0da8069 1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1045 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1049 localstatedir=$ac_optarg ;;
a0da8069
NN
1050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1054 mandir=$ac_optarg ;;
a0da8069
NN
1055
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1061 | --no-cr | --no-c | -n)
a0da8069
NN
1062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1075 oldincludedir=$ac_optarg ;;
a0da8069
NN
1076
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1080 prefix=$ac_optarg ;;
a0da8069
NN
1081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1087 program_prefix=$ac_optarg ;;
a0da8069
NN
1088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1094 program_suffix=$ac_optarg ;;
a0da8069
NN
1095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1111 program_transform_name=$ac_optarg ;;
a0da8069 1112
81ecdfbb
RW
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
a0da8069
NN
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
c6b750e1 1131 sbindir=$ac_optarg ;;
a0da8069
NN
1132
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
c6b750e1 1142 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1143
1144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
c6b750e1 1147 site=$ac_optarg ;;
a0da8069
NN
1148
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1152 srcdir=$ac_optarg ;;
a0da8069
NN
1153
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1159 sysconfdir=$ac_optarg ;;
a0da8069
NN
1160
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1162 ac_prev=target_alias ;;
a0da8069 1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1164 target_alias=$ac_optarg ;;
a0da8069
NN
1165
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1168
c6b750e1
DJ
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
a0da8069
NN
1171
1172 -with-* | --with-*)
81ecdfbb 1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1174 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181"with_$ac_useropt"
1182"*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
a0da8069 1185 esac
81ecdfbb 1186 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1187
1188 -without-* | --without-*)
81ecdfbb 1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1190 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197"with_$ac_useropt"
1198"*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
a0da8069
NN
1203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1213 x_includes=$ac_optarg ;;
a0da8069
NN
1214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1220 x_libraries=$ac_optarg ;;
a0da8069 1221
81ecdfbb
RW
1222 -*) as_fn_error "unrecognized option: \`$ac_option'
1223Try \`$0 --help' for more information."
a0da8069
NN
1224 ;;
1225
c6b750e1
DJ
1226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1232 esac
1233 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1234 export $ac_envvar ;;
1235
a0da8069 1236 *)
c6b750e1 1237 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1242 ;;
1243
1244 esac
1245done
1246
1247if test -n "$ac_prev"; then
c6b750e1 1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1249 as_fn_error "missing argument to $ac_option"
a0da8069 1250fi
a0da8069 1251
81ecdfbb
RW
1252if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
1255 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1257 esac
81ecdfbb 1258fi
a0da8069 1259
81ecdfbb
RW
1260# Check all directory arguments for consistency.
1261for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
a0da8069 1265do
81ecdfbb
RW
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
c6b750e1 1274 case $ac_val in
81ecdfbb
RW
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1277 esac
81ecdfbb 1278 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1279done
1280
c6b750e1
DJ
1281# There might be people who depend on the old broken behavior: `$host'
1282# used to hold the argument of --host etc.
1283# FIXME: To remove some day.
1284build=$build_alias
1285host=$host_alias
1286target=$target_alias
376a0e54 1287
c6b750e1
DJ
1288# FIXME: To remove some day.
1289if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
81ecdfbb 1292 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297fi
1298
1299ac_tool_prefix=
1300test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302test "$silent" = yes && exec 6>/dev/null
a0da8069 1303
a0da8069 1304
81ecdfbb
RW
1305ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306ac_ls_di=`ls -di .` &&
1307ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error "working directory cannot be determined"
1309test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error "pwd does not report name of working directory"
1311
1312
a0da8069
NN
1313# Find the source files, if location was not specified.
1314if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
81ecdfbb
RW
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322$as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
a0da8069 1340 srcdir=$ac_confdir
81ecdfbb 1341 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1342 srcdir=..
1343 fi
1344else
1345 ac_srcdir_defaulted=no
1346fi
81ecdfbb
RW
1347if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1350fi
1351ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352ac_abs_confdir=`(
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1354 pwd)`
1355# When building in place, set srcdir=.
1356if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358fi
1359# Remove unnecessary trailing slashes from srcdir.
1360# Double slashes in file names in object file debugging info
1361# mess up M-x gdb in Emacs.
1362case $srcdir in
1363*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364esac
6d0cd39e
AM
1365case $srcdir in
1366 *" "*)
1367 as_fn_error "path to source, $srcdir, contains spaces"
1368 ;;
1369esac
9cc8ae67
PB
1370ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1371
81ecdfbb
RW
1372for ac_var in $ac_precious_vars; do
1373 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_${ac_var}_value=\$${ac_var}
1375 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1377done
c6b750e1
DJ
1378
1379#
1380# Report the --help message.
1381#
1382if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1385 cat <<_ACEOF
1386\`configure' configures this package to adapt to many kinds of systems.
1387
1388Usage: $0 [OPTION]... [VAR=VALUE]...
1389
1390To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391VAR=VALUE. See below for descriptions of some of the useful variables.
1392
1393Defaults for the options are specified in brackets.
1394
1395Configuration:
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1405
c6b750e1
DJ
1406Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1408 [$ac_default_prefix]
c6b750e1 1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1410 [PREFIX]
c6b750e1
DJ
1411
1412By default, \`make install' will install all the files in
1413\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415for instance \`--prefix=\$HOME'.
1416
1417For better control, use the options below.
1418
1419Fine tuning of the installation directories:
81ecdfbb
RW
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1439_ACEOF
1440
1441 cat <<\_ACEOF
1442
1443Program names:
1444 --program-prefix=PREFIX prepend PREFIX to installed program names
1445 --program-suffix=SUFFIX append SUFFIX to installed program names
1446 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1447
1448System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 --target=TARGET configure for building compilers for TARGET [HOST]
1452_ACEOF
a0da8069 1453fi
a0da8069 1454
c6b750e1
DJ
1455if test -n "$ac_init_help"; then
1456
1457 cat <<\_ACEOF
1458
1459Optional Features:
81ecdfbb 1460 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1463 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1464 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1465 --disable-libquadmath do not build libquadmath directory
1466 --disable-libquadmath-support
1467 disable libquadmath support for Fortran
521ec477
DD
1468 --enable-libada build libada directory
1469 --enable-libssp build libssp directory
f66a9a70 1470 --disable-libstdcxx do not build libstdc++-v3 directory
ffdd6afc
ILT
1471 --enable-static-libjava[=ARG]
1472 build static libjava [default=no]
1473 --enable-bootstrap enable bootstrapping [yes if native build]
7ec59b9e
L
1474 --disable-isl-version-check
1475 disable check for ISL version
e552509b
ILT
1476 --disable-cloog-version-check
1477 disable check for CLooG version
700d40ca 1478 --enable-lto enable link time optimization support
7837304f
AS
1479 --enable-stage1-languages[=all]
1480 choose additional languages to build during stage1.
1481 Mostly useful for compiler development
1482 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1483 Objective-C runtime
521ec477 1484 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1485 force sequential configuration of sub-packages for
1486 the host, target or build machine, or all
1487 sub-packages
1488 --enable-maintainer-mode
1489 enable make rules and dependencies not useful (and
1490 sometimes confusing) to the casual installer
1491 --enable-stage1-checking[=all]
1492 choose additional checking for stage1 of the
1493 compiler
c6b750e1 1494 --enable-werror enable -Werror in bootstrap stage2 and later
82033c9b 1495 --enable-host-shared build host code as shared libraries
c6b750e1
DJ
1496
1497Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1501 --with-mpc=PATH specify prefix directory for installed MPC package.
1502 Equivalent to --with-mpc-include=PATH/include plus
1503 --with-mpc-lib=PATH/lib
1504 --with-mpc-include=PATH specify directory for installed MPC include files
1505 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1506 --with-mpfr-dir=PATH this option has been REMOVED
1507 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1508 Equivalent to --with-mpfr-include=PATH/include plus
1509 --with-mpfr-lib=PATH/lib
c6b750e1 1510 --with-mpfr-include=PATH
521ec477
DD
1511 specify directory for installed MPFR include files
1512 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1513 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1514 --with-gmp=PATH specify prefix directory for the installed GMP
1515 package. Equivalent to
1516 --with-gmp-include=PATH/include plus
1517 --with-gmp-lib=PATH/lib
521ec477
DD
1518 --with-gmp-include=PATH specify directory for installed GMP include files
1519 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1520 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1521 linking with PPL
b3676d82 1522 --with-stage1-libs=LIBS libraries for stage1
7837304f
AS
1523 --with-stage1-ldflags=FLAGS
1524 linker flags for stage1
7837304f
AS
1525 --with-boot-libs=LIBS libraries for stage2 and later
1526 --with-boot-ldflags=FLAGS
1527 linker flags for stage2 and later
8e71395b
L
1528 --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1529 package. Equivalent to
1530 --with-cloog-include=PATH/include plus
1531 --with-cloog-lib=PATH/lib
7ec59b9e 1532 --with-isl=PATH Specify prefix directory for the installed ISL
7837304f 1533 package. Equivalent to
7ec59b9e
L
1534 --with-isl-include=PATH/include plus
1535 --with-isl-lib=PATH/lib
1536 --with-isl-include=PATH Specify directory for installed ISL include files
1537 --with-isl-lib=PATH Specify the directory for the installed ISL library
e552509b
ILT
1538 --with-cloog-include=PATH
1539 Specify directory for installed CLooG include files
1540 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1541 library
521ec477 1542 --with-build-sysroot=SYSROOT
c6b750e1 1543 use sysroot as the system root during the build
8a6ee3ab 1544 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1545 map A to B, C to D ... in debug information
1546 --with-build-config='NAME NAME2...'
1547 use config/NAME.mk build configuration
521ec477 1548 --with-build-time-tools=PATH
c6b750e1 1549 use given path to find target tools during the build
c6b750e1
DJ
1550
1551Some influential environment variables:
1552 CC C compiler command
1553 CFLAGS C compiler flags
1554 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1555 nonstandard directory <lib dir>
81ecdfbb
RW
1556 LIBS libraries to pass to the linker, e.g. -l<library>
1557 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1559 CXX C++ compiler command
1560 CXXFLAGS C++ compiler flags
4074d5f2
RW
1561 build_configargs
1562 additional configure arguments for build directories
1563 host_configargs
1564 additional configure arguments for host directories
1565 target_configargs
1566 additional configure arguments for target directories
9a819804
AO
1567 AR AR for the host
1568 AS AS for the host
1569 DLLTOOL DLLTOOL for the host
1570 LD LD for the host
1571 LIPO LIPO for the host
1572 NM NM for the host
1573 RANLIB RANLIB for the host
1574 STRIP STRIP for the host
1575 WINDRES WINDRES for the host
0c24b341 1576 WINDMC WINDMC for the host
9a819804
AO
1577 OBJCOPY OBJCOPY for the host
1578 OBJDUMP OBJDUMP for the host
b121d7d4 1579 READELF READELF for the host
9a819804
AO
1580 CC_FOR_TARGET
1581 CC for the target
1582 CXX_FOR_TARGET
1583 CXX for the target
1584 GCC_FOR_TARGET
1585 GCC for the target
1586 GCJ_FOR_TARGET
1587 GCJ for the target
1588 GFORTRAN_FOR_TARGET
1589 GFORTRAN for the target
e552509b
ILT
1590 GOC_FOR_TARGET
1591 GOC for the target
9a819804
AO
1592 AR_FOR_TARGET
1593 AR for the target
1594 AS_FOR_TARGET
1595 AS for the target
1596 DLLTOOL_FOR_TARGET
1597 DLLTOOL for the target
1598 LD_FOR_TARGET
1599 LD for the target
1600 LIPO_FOR_TARGET
1601 LIPO for the target
1602 NM_FOR_TARGET
1603 NM for the target
1604 OBJDUMP_FOR_TARGET
1605 OBJDUMP for the target
1606 RANLIB_FOR_TARGET
1607 RANLIB for the target
b121d7d4
DD
1608 READELF_FOR_TARGET
1609 READELF for the target
9a819804
AO
1610 STRIP_FOR_TARGET
1611 STRIP for the target
1612 WINDRES_FOR_TARGET
1613 WINDRES for the target
0c24b341
NC
1614 WINDMC_FOR_TARGET
1615 WINDMC for the target
c6b750e1
DJ
1616
1617Use these variables to override the choices made by `configure' or to help
1618it to find libraries and programs with nonstandard names/locations.
1619
81ecdfbb 1620Report bugs to the package provider.
c6b750e1 1621_ACEOF
81ecdfbb 1622ac_status=$?
c6b750e1
DJ
1623fi
1624
1625if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
c6b750e1 1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 continue
c6b750e1
DJ
1631 ac_builddir=.
1632
81ecdfbb
RW
1633case "$ac_dir" in
1634.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1635*)
1636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 esac ;;
1643esac
1644ac_abs_top_builddir=$ac_pwd
1645ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646# for backward compatibility:
1647ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1648
1649case $srcdir in
81ecdfbb 1650 .) # We are building in place.
c6b750e1 1651 ac_srcdir=.
81ecdfbb
RW
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1655 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1658 *) # Relative name.
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1662esac
81ecdfbb
RW
1663ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1664
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1673 else
81ecdfbb
RW
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1677 done
1678fi
1679
81ecdfbb 1680test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1681if $ac_init_version; then
1682 cat <<\_ACEOF
81ecdfbb
RW
1683configure
1684generated by GNU Autoconf 2.64
c6b750e1 1685
81ecdfbb 1686Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1687This configure script is free software; the Free Software Foundation
1688gives unlimited permission to copy, distribute and modify it.
1689_ACEOF
81ecdfbb 1690 exit
c6b750e1 1691fi
81ecdfbb
RW
1692
1693## ------------------------ ##
1694## Autoconf initialization. ##
1695## ------------------------ ##
1696
1697# ac_fn_c_try_compile LINENO
1698# --------------------------
1699# Try to compile conftest.$ac_ext, and return whether this succeeded.
1700ac_fn_c_try_compile ()
1701{
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1705case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708esac
1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710$as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.$ac_objext; then :
1723 ac_retval=0
1724else
1725 $as_echo "$as_me: failed program was:" >&5
1726sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1
1729fi
1730 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1731 return $ac_retval
1732
1733} # ac_fn_c_try_compile
1734
1735# ac_fn_cxx_try_compile LINENO
1736# ----------------------------
1737# Try to compile conftest.$ac_ext, and return whether this succeeded.
1738ac_fn_cxx_try_compile ()
1739{
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1743case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1761 ac_retval=0
1762else
1763 $as_echo "$as_me: failed program was:" >&5
1764sed 's/^/| /' conftest.$ac_ext >&5
1765
1766 ac_retval=1
1767fi
1768 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1769 return $ac_retval
1770
1771} # ac_fn_cxx_try_compile
1772
b3676d82
EB
1773# ac_fn_cxx_try_link LINENO
1774# -------------------------
1775# Try to link conftest.$ac_ext, and return whether this succeeded.
1776ac_fn_cxx_try_link ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 rm -f conftest.$ac_objext conftest$ac_exeext
1780 if { { ac_try="$ac_link"
1781case "(($ac_try" in
1782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1784esac
1785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786$as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>conftest.err
1788 ac_status=$?
1789 if test -s conftest.err; then
1790 grep -v '^ *+' conftest.err >conftest.er1
1791 cat conftest.er1 >&5
1792 mv -f conftest.er1 conftest.err
1793 fi
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; } && {
1796 test -z "$ac_cxx_werror_flag" ||
1797 test ! -s conftest.err
1798 } && test -s conftest$ac_exeext && {
1799 test "$cross_compiling" = yes ||
1800 $as_test_x conftest$ac_exeext
1801 }; then :
1802 ac_retval=0
1803else
1804 $as_echo "$as_me: failed program was:" >&5
1805sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808fi
1809 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1810 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1811 # interfere with the next link command; also delete a directory that is
1812 # left behind by Apple's compiler. We do this before executing the actions.
1813 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 return $ac_retval
1816
1817} # ac_fn_cxx_try_link
1818
81ecdfbb
RW
1819# ac_fn_c_try_link LINENO
1820# -----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded.
1822ac_fn_c_try_link ()
1823{
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext conftest$ac_exeext
1826 if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1839 fi
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest$ac_exeext && {
1845 test "$cross_compiling" = yes ||
1846 $as_test_x conftest$ac_exeext
1847 }; then :
1848 ac_retval=0
1849else
1850 $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=1
1854fi
1855 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1856 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1857 # interfere with the next link command; also delete a directory that is
1858 # left behind by Apple's compiler. We do this before executing the actions.
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861 return $ac_retval
1862
1863} # ac_fn_c_try_link
7ec59b9e
L
1864
1865# ac_fn_c_try_run LINENO
1866# ----------------------
1867# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868# that executables *can* be run.
1869ac_fn_c_try_run ()
1870{
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1873case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1893 ac_retval=0
1894else
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 ac_retval=$ac_status
1900fi
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1903 return $ac_retval
1904
1905} # ac_fn_c_try_run
81ecdfbb 1906cat >config.log <<_ACEOF
c6b750e1
DJ
1907This file contains any messages produced by compilers while
1908running configure, to aid debugging if configure makes a mistake.
1909
1910It was created by $as_me, which was
81ecdfbb 1911generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1912
1913 $ $0 $@
1914
1915_ACEOF
81ecdfbb 1916exec 5>>config.log
c6b750e1
DJ
1917{
1918cat <<_ASUNAME
1919## --------- ##
1920## Platform. ##
1921## --------- ##
1922
1923hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1924uname -m = `(uname -m) 2>/dev/null || echo unknown`
1925uname -r = `(uname -r) 2>/dev/null || echo unknown`
1926uname -s = `(uname -s) 2>/dev/null || echo unknown`
1927uname -v = `(uname -v) 2>/dev/null || echo unknown`
1928
1929/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1930/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1931
1932/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1933/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1934/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1935/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1936/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1937/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1938/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1939
1940_ASUNAME
1941
1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1947 $as_echo "PATH: $as_dir"
1948 done
1949IFS=$as_save_IFS
c6b750e1
DJ
1950
1951} >&5
1952
1953cat >&5 <<_ACEOF
1954
1955
1956## ----------- ##
1957## Core tests. ##
1958## ----------- ##
1959
1960_ACEOF
1961
1962
1963# Keep a trace of the command line.
1964# Strip out --no-create and --no-recursion so they do not pile up.
1965# Strip out --silent because we don't want to record it for future runs.
1966# Also quote any args containing shell meta-characters.
1967# Make two passes to allow for proper duplicate-argument suppression.
1968ac_configure_args=
1969ac_configure_args0=
1970ac_configure_args1=
c6b750e1
DJ
1971ac_must_keep_next=false
1972for ac_pass in 1 2
1973do
1974 for ac_arg
1975 do
1976 case $ac_arg in
1977 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1978 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1979 | -silent | --silent | --silen | --sile | --sil)
1980 continue ;;
81ecdfbb
RW
1981 *\'*)
1982 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1983 esac
1984 case $ac_pass in
81ecdfbb 1985 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1986 2)
81ecdfbb 1987 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1988 if test $ac_must_keep_next = true; then
1989 ac_must_keep_next=false # Got value, back to normal.
1990 else
1991 case $ac_arg in
1992 *=* | --config-cache | -C | -disable-* | --disable-* \
1993 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1994 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1995 | -with-* | --with-* | -without-* | --without-* | --x)
1996 case "$ac_configure_args0 " in
1997 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1998 esac
1999 ;;
2000 -* ) ac_must_keep_next=true ;;
2001 esac
2002 fi
81ecdfbb 2003 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
2004 ;;
2005 esac
2006 done
2007done
81ecdfbb
RW
2008{ ac_configure_args0=; unset ac_configure_args0;}
2009{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
2010
2011# When interrupted or exit'd, cleanup temporary files, and complete
2012# config.log. We remove comments because anyway the quotes in there
2013# would cause problems or look ugly.
81ecdfbb
RW
2014# WARNING: Use '\'' to represent an apostrophe within the trap.
2015# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
2016trap 'exit_status=$?
2017 # Save into config.log some information that might help in debugging.
2018 {
2019 echo
2020
2021 cat <<\_ASBOX
2022## ---------------- ##
2023## Cache variables. ##
2024## ---------------- ##
2025_ASBOX
2026 echo
2027 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2028(
2029 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030 eval ac_val=\$$ac_var
2031 case $ac_val in #(
2032 *${as_nl}*)
2033 case $ac_var in #(
2034 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2036 esac
2037 case $ac_var in #(
2038 _ | IFS | as_nl) ;; #(
2039 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040 *) { eval $ac_var=; unset $ac_var;} ;;
2041 esac ;;
2042 esac
2043 done
c6b750e1 2044 (set) 2>&1 |
81ecdfbb
RW
2045 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046 *${as_nl}ac_space=\ *)
c6b750e1 2047 sed -n \
81ecdfbb
RW
2048 "s/'\''/'\''\\\\'\'''\''/g;
2049 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2050 ;; #(
c6b750e1 2051 *)
81ecdfbb 2052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 2053 ;;
81ecdfbb
RW
2054 esac |
2055 sort
2056)
c6b750e1
DJ
2057 echo
2058
2059 cat <<\_ASBOX
2060## ----------------- ##
2061## Output variables. ##
2062## ----------------- ##
2063_ASBOX
2064 echo
2065 for ac_var in $ac_subst_vars
2066 do
81ecdfbb
RW
2067 eval ac_val=\$$ac_var
2068 case $ac_val in
2069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 esac
2071 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2072 done | sort
2073 echo
2074
2075 if test -n "$ac_subst_files"; then
2076 cat <<\_ASBOX
81ecdfbb
RW
2077## ------------------- ##
2078## File substitutions. ##
2079## ------------------- ##
c6b750e1
DJ
2080_ASBOX
2081 echo
2082 for ac_var in $ac_subst_files
2083 do
81ecdfbb
RW
2084 eval ac_val=\$$ac_var
2085 case $ac_val in
2086 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087 esac
2088 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
2089 done | sort
2090 echo
2091 fi
2092
2093 if test -s confdefs.h; then
2094 cat <<\_ASBOX
2095## ----------- ##
2096## confdefs.h. ##
2097## ----------- ##
2098_ASBOX
2099 echo
81ecdfbb 2100 cat confdefs.h
c6b750e1
DJ
2101 echo
2102 fi
2103 test "$ac_signal" != 0 &&
81ecdfbb
RW
2104 $as_echo "$as_me: caught signal $ac_signal"
2105 $as_echo "$as_me: exit $exit_status"
c6b750e1 2106 } >&5
81ecdfbb
RW
2107 rm -f core *.core core.conftest.* &&
2108 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2109 exit $exit_status
81ecdfbb 2110' 0
c6b750e1 2111for ac_signal in 1 2 13 15; do
81ecdfbb 2112 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2113done
2114ac_signal=0
2115
2116# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2117rm -f -r conftest* confdefs.h
2118
2119$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2120
2121# Predefined preprocessor variables.
2122
2123cat >>confdefs.h <<_ACEOF
2124#define PACKAGE_NAME "$PACKAGE_NAME"
2125_ACEOF
2126
c6b750e1
DJ
2127cat >>confdefs.h <<_ACEOF
2128#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2129_ACEOF
2130
c6b750e1
DJ
2131cat >>confdefs.h <<_ACEOF
2132#define PACKAGE_VERSION "$PACKAGE_VERSION"
2133_ACEOF
2134
c6b750e1
DJ
2135cat >>confdefs.h <<_ACEOF
2136#define PACKAGE_STRING "$PACKAGE_STRING"
2137_ACEOF
2138
c6b750e1
DJ
2139cat >>confdefs.h <<_ACEOF
2140#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2141_ACEOF
2142
81ecdfbb
RW
2143cat >>confdefs.h <<_ACEOF
2144#define PACKAGE_URL "$PACKAGE_URL"
2145_ACEOF
2146
c6b750e1
DJ
2147
2148# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2149# Prefer an explicitly selected file to automatically selected ones.
2150ac_site_file1=NONE
2151ac_site_file2=NONE
2152if test -n "$CONFIG_SITE"; then
2153 ac_site_file1=$CONFIG_SITE
2154elif test "x$prefix" != xNONE; then
2155 ac_site_file1=$prefix/share/config.site
2156 ac_site_file2=$prefix/etc/config.site
2157else
2158 ac_site_file1=$ac_default_prefix/share/config.site
2159 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2160fi
81ecdfbb
RW
2161for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162do
2163 test "x$ac_site_file" = xNONE && continue
a0da8069 2164 if test -r "$ac_site_file"; then
81ecdfbb
RW
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2167 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2168 . "$ac_site_file"
2169 fi
2170done
2171
2172if test -r "$cache_file"; then
c6b750e1
DJ
2173 # Some versions of bash will fail to source /dev/null (special
2174 # files actually), so we avoid doing that.
2175 if test -f "$cache_file"; then
81ecdfbb
RW
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2177$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2178 case $cache_file in
81ecdfbb
RW
2179 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2180 *) . "./$cache_file";;
c6b750e1
DJ
2181 esac
2182 fi
a0da8069 2183else
81ecdfbb
RW
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2185$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2186 >$cache_file
2187fi
2188
2189# Check that the precious variables saved in the cache have kept the same
2190# value.
2191ac_cache_corrupted=false
81ecdfbb 2192for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2193 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2194 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2195 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2196 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2197 case $ac_old_set,$ac_new_set in
2198 set,)
81ecdfbb
RW
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2200$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2201 ac_cache_corrupted=: ;;
2202 ,set)
81ecdfbb
RW
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2204$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2205 ac_cache_corrupted=: ;;
2206 ,);;
2207 *)
2208 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2209 # differences in whitespace do not lead to failure.
2210 ac_old_val_w=`echo x $ac_old_val`
2211 ac_new_val_w=`echo x $ac_new_val`
2212 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2214$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2215 ac_cache_corrupted=:
2216 else
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2218$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2219 eval $ac_var=\$ac_old_val
2220 fi
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2222$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2224$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2225 fi;;
2226 esac
2227 # Pass precious variables to config.status.
2228 if test "$ac_new_set" = set; then
2229 case $ac_new_val in
81ecdfbb 2230 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2231 *) ac_arg=$ac_var=$ac_new_val ;;
2232 esac
2233 case " $ac_configure_args " in
2234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2235 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2236 esac
2237 fi
2238done
2239if $ac_cache_corrupted; then
81ecdfbb
RW
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2243$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2244 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2245fi
81ecdfbb
RW
2246## -------------------- ##
2247## Main body of script. ##
2248## -------------------- ##
a0da8069
NN
2249
2250ac_ext=c
a0da8069 2251ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2254ac_compiler_gnu=$ac_cv_c_compiler_gnu
2255
2256
2257
2258
c6b750e1
DJ
2259
2260
34a0f3cf 2261
c6b750e1 2262
5b553f7e
RW
2263
2264progname=$0
2265# if PWD already has a value, it is probably wrong.
2266if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2267
2268# Export original configure arguments for use by sub-configures.
2269# Quote arguments with shell meta charatcers.
2270TOPLEVEL_CONFIGURE_ARGUMENTS=
2271set -- "$progname" "$@"
2272for ac_arg
2273do
2274 case "$ac_arg" in
2275 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2276 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2277 # if the argument is of the form -foo=baz, quote the baz part only
2278 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2279 *) ;;
2280 esac
2281 # Add the quoted argument to the list.
2282 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2283done
2284if test "$silent" = yes; then
2285 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2286fi
2287# Remove the initial space we just introduced and, as these will be
2288# expanded by make, quote '$'.
2289TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2290
c6b750e1
DJ
2291
2292# Find the build, host, and target systems.
a0da8069 2293ac_aux_dir=
81ecdfbb
RW
2294for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2295 for ac_t in install-sh install.sh shtool; do
2296 if test -f "$ac_dir/$ac_t"; then
2297 ac_aux_dir=$ac_dir
2298 ac_install_sh="$ac_aux_dir/$ac_t -c"
2299 break 2
2300 fi
2301 done
a0da8069
NN
2302done
2303if test -z "$ac_aux_dir"; then
81ecdfbb 2304 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2305fi
81ecdfbb
RW
2306
2307# These three variables are undocumented and unsupported,
2308# and are intended to be withdrawn in a future Autoconf release.
2309# They can cause serious problems if a builder's source tree is in a directory
2310# whose full name contains unusual characters.
2311ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2312ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2313ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2314
a0da8069 2315
c6b750e1 2316# Make sure we can run config.sub.
81ecdfbb
RW
2317$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2318 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2319
2320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2321$as_echo_n "checking build system type... " >&6; }
2322if test "${ac_cv_build+set}" = set; then :
2323 $as_echo_n "(cached) " >&6
2324else
2325 ac_build_alias=$build_alias
2326test "x$ac_build_alias" = x &&
2327 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2328test "x$ac_build_alias" = x &&
2329 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2330ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2331 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2332
2333fi
2334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2335$as_echo "$ac_cv_build" >&6; }
2336case $ac_cv_build in
2337*-*-*) ;;
2338*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2339esac
c6b750e1 2340build=$ac_cv_build
81ecdfbb
RW
2341ac_save_IFS=$IFS; IFS='-'
2342set x $ac_cv_build
2343shift
2344build_cpu=$1
2345build_vendor=$2
2346shift; shift
2347# Remember, the first character of IFS is used to create $*,
2348# except with old shells:
2349build_os=$*
2350IFS=$ac_save_IFS
2351case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2352
a0da8069 2353
c6b750e1
DJ
2354 case ${build_alias} in
2355 "") build_noncanonical=${build} ;;
2356 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2357esac
2358
2359
cac3d6c4 2360
c6b750e1
DJ
2361 case ${host_alias} in
2362 "") host_noncanonical=${build_noncanonical} ;;
2363 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2364esac
2365
cac3d6c4 2366
c6b750e1
DJ
2367
2368 case ${target_alias} in
2369 "") target_noncanonical=${host_noncanonical} ;;
2370 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2371esac
2372
cac3d6c4 2373
c6b750e1
DJ
2374
2375
2376test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2377 test "$program_prefix$program_suffix$program_transform_name" = \
2378 NONENONEs,x,x, &&
c6b750e1 2379 program_transform_name=s,y,y,
cac3d6c4 2380
81ecdfbb
RW
2381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2382$as_echo_n "checking host system type... " >&6; }
2383if test "${ac_cv_host+set}" = set; then :
2384 $as_echo_n "(cached) " >&6
cac3d6c4 2385else
81ecdfbb
RW
2386 if test "x$host_alias" = x; then
2387 ac_cv_host=$ac_cv_build
2388else
2389 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2390 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2391fi
c6b750e1
DJ
2392
2393fi
81ecdfbb
RW
2394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2395$as_echo "$ac_cv_host" >&6; }
2396case $ac_cv_host in
2397*-*-*) ;;
2398*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2399esac
c6b750e1 2400host=$ac_cv_host
81ecdfbb
RW
2401ac_save_IFS=$IFS; IFS='-'
2402set x $ac_cv_host
2403shift
2404host_cpu=$1
2405host_vendor=$2
2406shift; shift
2407# Remember, the first character of IFS is used to create $*,
2408# except with old shells:
2409host_os=$*
2410IFS=$ac_save_IFS
2411case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2412
2413
81ecdfbb
RW
2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2415$as_echo_n "checking target system type... " >&6; }
2416if test "${ac_cv_target+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
c6b750e1 2418else
81ecdfbb
RW
2419 if test "x$target_alias" = x; then
2420 ac_cv_target=$ac_cv_host
2421else
2422 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2423 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2424fi
c6b750e1 2425
cac3d6c4 2426fi
81ecdfbb
RW
2427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2428$as_echo "$ac_cv_target" >&6; }
2429case $ac_cv_target in
2430*-*-*) ;;
2431*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2432esac
c6b750e1 2433target=$ac_cv_target
81ecdfbb
RW
2434ac_save_IFS=$IFS; IFS='-'
2435set x $ac_cv_target
2436shift
2437target_cpu=$1
2438target_vendor=$2
2439shift; shift
2440# Remember, the first character of IFS is used to create $*,
2441# except with old shells:
2442target_os=$*
2443IFS=$ac_save_IFS
2444case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2445
2446
2447# The aliases save the names the user supplied, while $host etc.
2448# will get canonicalized.
2449test -n "$target_alias" &&
2450 test "$program_prefix$program_suffix$program_transform_name" = \
2451 NONENONEs,x,x, &&
2452 program_prefix=${target_alias}-
81ecdfbb 2453
a0da8069 2454test "$program_prefix" != NONE &&
81ecdfbb 2455 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2456# Use a double $ so make ignores it.
2457test "$program_suffix" != NONE &&
81ecdfbb
RW
2458 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2459# Double any \ or $.
c6b750e1 2460# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2461ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2462program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2463
a0da8069
NN
2464
2465
e5c3f801
NN
2466# Get 'install' or 'install-sh' and its variants.
2467# Find a good install program. We prefer a C program (faster),
2468# so one script is as good as another. But avoid the broken or
2469# incompatible versions:
2470# SysV /etc/install, /usr/sbin/install
2471# SunOS /usr/etc/install
2472# IRIX /sbin/install
2473# AIX /bin/install
c6b750e1 2474# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2475# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2476# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2477# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2478# OS/2's system install, which has a completely different semantic
e5c3f801 2479# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2480# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2482$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2483if test -z "$INSTALL"; then
81ecdfbb
RW
2484if test "${ac_cv_path_install+set}" = set; then :
2485 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2486else
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488for as_dir in $PATH
2489do
2490 IFS=$as_save_IFS
2491 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2492 # Account for people who put trailing slashes in PATH elements.
2493case $as_dir/ in #((
2494 ./ | .// | /[cC]/* | \
c6b750e1 2495 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2496 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2497 /usr/ucb/* ) ;;
2498 *)
2499 # OSF1 and SCO ODT 3.0 have their own names for install.
2500 # Don't use installbsd from OSF since it installs stuff as root
2501 # by default.
2502 for ac_prog in ginstall scoinst install; do
2503 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2504 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2505 if test $ac_prog = install &&
c6b750e1 2506 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2507 # AIX install. It has an incompatible calling convention.
2508 :
c6b750e1
DJ
2509 elif test $ac_prog = install &&
2510 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2511 # program-specific install script used by HP pwplus--don't use.
2512 :
e5c3f801 2513 else
58c85be7
RW
2514 rm -rf conftest.one conftest.two conftest.dir
2515 echo one > conftest.one
2516 echo two > conftest.two
2517 mkdir conftest.dir
2518 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2519 test -s conftest.one && test -s conftest.two &&
2520 test -s conftest.dir/conftest.one &&
2521 test -s conftest.dir/conftest.two
2522 then
2523 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2524 break 3
2525 fi
e5c3f801
NN
2526 fi
2527 fi
2528 done
c6b750e1
DJ
2529 done
2530 ;;
2531esac
81ecdfbb
RW
2532
2533 done
2534IFS=$as_save_IFS
c6b750e1 2535
58c85be7 2536rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2537
2538fi
2539 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2540 INSTALL=$ac_cv_path_install
e5c3f801 2541 else
58c85be7
RW
2542 # As a last resort, use the slow shell script. Don't cache a
2543 # value for INSTALL within a source directory, because that will
e5c3f801 2544 # break other packages using the cache if that directory is
58c85be7 2545 # removed, or if the value is a relative name.
c6b750e1 2546 INSTALL=$ac_install_sh
e5c3f801
NN
2547 fi
2548fi
81ecdfbb
RW
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2550$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2551
2552# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2553# It thinks the first close brace ends the variable substitution.
2554test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2555
c6b750e1 2556test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2557
2558test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2559
81ecdfbb
RW
2560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2561$as_echo_n "checking whether ln works... " >&6; }
2562if test "${acx_cv_prog_LN+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
656fdd47
PB
2564else
2565 rm -f conftestdata_t
2566echo >conftestdata_f
2567if ln conftestdata_f conftestdata_t 2>/dev/null
2568then
2569 acx_cv_prog_LN=ln
2570else
2571 acx_cv_prog_LN=no
2572fi
2573rm -f conftestdata_f conftestdata_t
2574
2575fi
2576if test $acx_cv_prog_LN = no; then
2577 LN="cp"
81ecdfbb
RW
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2579$as_echo "no, using $LN" >&6; }
656fdd47
PB
2580else
2581 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2583$as_echo "yes" >&6; }
656fdd47
PB
2584fi
2585
81ecdfbb
RW
2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2587$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2588LN_S=$as_ln_s
2589if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2591$as_echo "yes" >&6; }
cac3d6c4 2592else
81ecdfbb
RW
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2594$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2595fi
2596
8e957354
PB
2597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2598$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2599if test "${ac_cv_path_SED+set}" = set; then :
2600 $as_echo_n "(cached) " >&6
2601else
2602 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2603 for ac_i in 1 2 3 4 5 6 7; do
2604 ac_script="$ac_script$as_nl$ac_script"
2605 done
2606 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2607 { ac_script=; unset ac_script;}
2608 if test -z "$SED"; then
2609 ac_path_SED_found=false
2610 # Loop through the user's path and test for each of PROGNAME-LIST
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_prog in sed gsed; do
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2619 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2620# Check for GNU ac_path_SED and select it if it is found.
2621 # Check for GNU $ac_path_SED
2622case `"$ac_path_SED" --version 2>&1` in
2623*GNU*)
2624 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2625*)
2626 ac_count=0
2627 $as_echo_n 0123456789 >"conftest.in"
2628 while :
2629 do
2630 cat "conftest.in" "conftest.in" >"conftest.tmp"
2631 mv "conftest.tmp" "conftest.in"
2632 cp "conftest.in" "conftest.nl"
2633 $as_echo '' >> "conftest.nl"
2634 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2636 as_fn_arith $ac_count + 1 && ac_count=$as_val
2637 if test $ac_count -gt ${ac_path_SED_max-0}; then
2638 # Best one so far, save it but keep looking for a better one
2639 ac_cv_path_SED="$ac_path_SED"
2640 ac_path_SED_max=$ac_count
2641 fi
2642 # 10*(2^10) chars as input seems more than enough
2643 test $ac_count -gt 10 && break
2644 done
2645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2646esac
2647
2648 $ac_path_SED_found && break 3
2649 done
2650 done
2651 done
2652IFS=$as_save_IFS
2653 if test -z "$ac_cv_path_SED"; then
2654 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2655 fi
2656else
2657 ac_cv_path_SED=$SED
2658fi
2659
2660fi
2661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2662$as_echo "$ac_cv_path_SED" >&6; }
2663 SED="$ac_cv_path_SED"
2664 rm -f conftest.sed
2665
2666for ac_prog in gawk mawk nawk awk
2667do
2668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2669set dummy $ac_prog; ac_word=$2
2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671$as_echo_n "checking for $ac_word... " >&6; }
2672if test "${ac_cv_prog_AWK+set}" = set; then :
2673 $as_echo_n "(cached) " >&6
2674else
2675 if test -n "$AWK"; then
2676 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2677else
2678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679for as_dir in $PATH
2680do
2681 IFS=$as_save_IFS
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_AWK="$ac_prog"
2686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 break 2
2688 fi
2689done
2690 done
2691IFS=$as_save_IFS
2692
2693fi
2694fi
2695AWK=$ac_cv_prog_AWK
2696if test -n "$AWK"; then
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2698$as_echo "$AWK" >&6; }
2699else
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701$as_echo "no" >&6; }
2702fi
2703
2704
2705 test -n "$AWK" && break
2706done
2707
e5c3f801 2708
0fdbe983
DJ
2709srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2710
2711# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2712# a relative path.
2713if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2714 INSTALL="${srcpwd}/install-sh -c"
2715fi
2716
a0da8069
NN
2717# Set srcdir to "." if that's what it is.
2718# This is important for multilib support.
2719pwd=`${PWDCMD-pwd}`
a0da8069
NN
2720if test "${pwd}" = "${srcpwd}" ; then
2721 srcdir=.
252b5132
RH
2722fi
2723
a0da8069 2724topsrcdir=$srcpwd
252b5132 2725
a0da8069 2726extra_host_args=
afefada0 2727
a0da8069
NN
2728### To add a new directory to the tree, first choose whether it is a target
2729### or a host dependent tool. Then put it into the appropriate list
2730### (library or tools, host or target), doing a dependency sort.
252b5132 2731
c6b750e1 2732# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2733# configdirs, or target_configdirs; see the serialization section below.
252b5132 2734
c6b750e1
DJ
2735# Dependency sorting is only needed when *configuration* must be done in
2736# a particular order. In all cases a dependency should be specified in
a0da8069 2737# the Makefile, whether or not it's implicitly specified here.
252b5132 2738
a0da8069
NN
2739# Double entries in build_configdirs, configdirs, or target_configdirs may
2740# cause circular dependencies and break everything horribly.
252b5132 2741
6a9cf61e
PB
2742# these library is used by various programs built for the build
2743# environment
2744#
2745build_libs="build-libiberty"
2746
2747# these tools are built for the build environment
a90ef4bf 2748build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2749
a0da8069
NN
2750# these libraries are used by various programs built for the host environment
2751#
2bf680c4 2752host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl cloog libelf libiconv"
a0da8069 2753
a0da8069
NN
2754# these tools are built for the host environment
2755# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2756# know that we are building the simulator.
2757# binutils, gas and ld appear in that order because it makes sense to run
2758# "make check" in that particular order.
e6de499b 2759# If --enable-gold is used, "gold" may replace "ld".
a90ef4bf 2760host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
a0da8069
NN
2761
2762# libgcj represents the runtime libraries only used by gcj.
2763libgcj="target-libffi \
a0da8069 2764 target-zlib \
a0da8069
NN
2765 target-libjava"
2766
2767# these libraries are built for the target environment, and are built after
2768# the host libraries and the host tools (which may be a cross compiler)
ffdd6afc 2769# Note that libiberty is not a target library.
b1299c4e 2770target_libraries="target-libgcc \
2bf680c4 2771 target-libbacktrace \
a0da8069
NN
2772 target-libgloss \
2773 target-newlib \
cff87f51 2774 target-libgomp \
7ec59b9e 2775 target-libatomic \
d32e2926 2776 target-libitm \
b9459e83 2777 target-libstdc++-v3 \
5286fdef 2778 target-libsanitizer \
95e43135 2779 target-libvtv \
bb780410 2780 target-libssp \
e552509b 2781 target-libquadmath \
4b1cb4fe 2782 target-libgfortran \
4f0ef2d8 2783 target-boehm-gc \
83326456 2784 ${libgcj} \
a2592b1b 2785 target-libobjc \
e552509b
ILT
2786 target-libada \
2787 target-libgo"
a0da8069 2788
9c14acb8
NN
2789# these tools are built using the target libraries, and are intended to
2790# run only in the target environment
a0da8069 2791#
9c14acb8 2792# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2793# list belongs in this list.
a0da8069 2794#
a90ef4bf 2795target_tools="target-rda"
252b5132 2796
a0da8069 2797################################################################################
252b5132 2798
a0da8069
NN
2799## All tools belong in one of the four categories, and are assigned above
2800## We assign ${configdirs} this way to remove all embedded newlines. This
2801## is important because configure will choke if they ever get through.
2802## ${configdirs} is directories we build using the host tools.
2803## ${target_configdirs} is directories we build using the target tools.
a0da8069 2804configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2805target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2806build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2807
9cc8ae67
PB
2808
2809
a0da8069 2810################################################################################
252b5132 2811
a0da8069 2812srcname="gnu development package"
252b5132 2813
a0da8069
NN
2814# This gets set non-empty for some net releases of packages.
2815appdirs=""
252b5132 2816
a0da8069
NN
2817# Define is_cross_compiler to save on calls to 'test'.
2818is_cross_compiler=
2819if test x"${host}" = x"${target}" ; then
2820 is_cross_compiler=no
252b5132 2821else
a0da8069 2822 is_cross_compiler=yes
c6b750e1 2823fi
252b5132 2824
9175bfc0 2825# Find the build and target subdir names.
dd12c3a8 2826
66a79c16
DJ
2827# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2828# have matching libraries, they should use host libraries: Makefile.tpl
2829# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2830# However, they still use the build modules, because the corresponding
2831# host modules (e.g. bison) are only built for the host when bootstrap
2832# finishes. So:
2833# - build_subdir is where we find build modules, and never changes.
2834# - build_libsubdir is where we find build libraries, and can be overridden.
2835
2836# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2837build_subdir="build-${build_noncanonical}"
c6b750e1 2838
81ecdfbb
RW
2839# Check whether --with-build-libsubdir was given.
2840if test "${with_build_libsubdir+set}" = set; then :
2841 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2842else
2843 build_libsubdir="$build_subdir"
81ecdfbb
RW
2844fi
2845
b00612cc
PB
2846# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2847if ( test $srcdir = . && test -d gcc ) \
2848 || test -d $srcdir/../host-${host_noncanonical}; then
2849 host_subdir="host-${host_noncanonical}"
2850else
2851 host_subdir=.
2852fi
dd12c3a8
NN
2853# No prefix.
2854target_subdir=${target_noncanonical}
c6b750e1 2855
2fd0b40b
RW
2856# Be sure to cover against remnants of an in-tree build.
2857if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2858 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2859Use a pristine source tree when building in a separate tree" "$LINENO" 5
2860fi
252b5132 2861
a0da8069
NN
2862# Skipdirs are removed silently.
2863skipdirs=
2864# Noconfigdirs are removed loudly.
2865noconfigdirs=""
252b5132 2866
a0da8069
NN
2867use_gnu_ld=
2868# Make sure we don't let GNU ld be added if we didn't want it.
2869if test x$with_gnu_ld = xno ; then
2870 use_gnu_ld=no
93f9b408 2871 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2872fi
2873
a0da8069
NN
2874use_gnu_as=
2875# Make sure we don't let GNU as be added if we didn't want it.
2876if test x$with_gnu_as = xno ; then
2877 use_gnu_as=no
2878 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2879fi
2880
700d40ca
ILT
2881use_included_zlib=
2882# Make sure we don't let ZLIB be added if we didn't want it.
2883if test x$with_system_zlib = xyes ; then
2884 use_included_zlib=no
2885 noconfigdirs="$noconfigdirs zlib"
2886fi
2887
c6b750e1 2888# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2889# it's not even worth trying to configure, much less build, that tool.
252b5132 2890
a0da8069
NN
2891case ${with_x} in
2892 yes | "") ;; # the default value for this tree is that X11 is available
2893 no)
675c6968 2894 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2895 # We won't be able to build gdbtk without X.
c6b750e1 2896 enable_gdbtk=no
a0da8069
NN
2897 ;;
2898 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2899esac
252b5132 2900
0377a422 2901# Some are only suitable for cross toolchains.
a0da8069
NN
2902# Remove these if host=target.
2903cross_only="target-libgloss target-newlib target-opcodes"
2904
2905case $is_cross_compiler in
2906 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2907esac
252b5132 2908
a0da8069
NN
2909# If both --with-headers and --with-libs are specified, default to
2910# --without-newlib.
32be62b5
RS
2911if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2912 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2913 if test x"${with_newlib}" = x ; then
2914 with_newlib=no
2915 fi
252b5132
RH
2916fi
2917
a0da8069
NN
2918# Recognize --with-newlib/--without-newlib.
2919case ${with_newlib} in
2920 no) skipdirs="${skipdirs} target-newlib" ;;
2921 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2922esac
252b5132 2923
c7791212
NC
2924# Handle --enable-gold, --enable-ld.
2925# --disable-gold [--enable-ld]
2926# Build only ld. Default option.
d3b50760
L
2927# --enable-gold [--enable-ld]
2928# Build both gold and ld. Install gold as "ld.gold", install ld
2929# as "ld.bfd" and "ld".
2930# --enable-gold=default [--enable-ld]
c7791212
NC
2931# Build both gold and ld. Install gold as "ld.gold" and "ld",
2932# install ld as "ld.bfd".
2933# --enable-gold[=default] --disable-ld
2934# Build only gold, which is then installed as both "ld.gold" and "ld".
2935# --enable-gold --enable-ld=default
d3b50760
L
2936# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2937# and ld.bfd).
c7791212
NC
2938# In other words, ld is default
2939# --enable-gold=default --enable-ld=default
2940# Error.
2941
2942default_ld=
81ecdfbb
RW
2943# Check whether --enable-gold was given.
2944if test "${enable_gold+set}" = set; then :
2945 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2946else
2947 ENABLE_GOLD=no
81ecdfbb
RW
2948fi
2949
c7791212
NC
2950case "${ENABLE_GOLD}" in
2951 yes|default)
e6de499b
NC
2952 # Check for ELF target.
2953 is_elf=no
2954 case "${target}" in
2955 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2344b8da 2956 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27 2957 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2bda3143 2958 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
e6de499b
NC
2959 case "${target}" in
2960 *-*-linux*aout* | *-*-linux*oldld*)
2961 ;;
2962 *)
2963 is_elf=yes
2964 ;;
2965 esac
2966 esac
2967
2968 if test "$is_elf" = "yes"; then
2969 # Check for target supported by gold.
93f9b408 2970 case "${target}" in
5c0b3823 2971 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* | tilegx*-*-*)
c7791212
NC
2972 configdirs="$configdirs gold"
2973 if test x${ENABLE_GOLD} = xdefault; then
2974 default_ld=gold
2975 fi
e6de499b 2976 ENABLE_GOLD=yes
93f9b408
ILT
2977 ;;
2978 esac
e6de499b
NC
2979 fi
2980 ;;
2981 no)
2982 ;;
2983 *)
2984 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2985 ;;
c7791212
NC
2986esac
2987
2988# Check whether --enable-ld was given.
2989if test "${enable_ld+set}" = set; then :
2990 enableval=$enable_ld; ENABLE_LD=$enableval
2991else
2992 ENABLE_LD=yes
2993fi
2994
2995
2996case "${ENABLE_LD}" in
2997 default)
d3b50760 2998 if test x${default_ld} != x; then
c7791212
NC
2999 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
3000 fi
3001 ;;
3002 yes)
3003 ;;
3004 no)
3005 if test x${ENABLE_GOLD} != xyes; then
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3007$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3008 fi
3009 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3010 ;;
3011 *)
3012 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
3013 ;;
3014esac
93f9b408 3015
a0da8069 3016# Configure extra directories which are host specific
252b5132 3017
a0da8069
NN
3018case "${host}" in
3019 *-cygwin*)
3020 configdirs="$configdirs libtermcap" ;;
3021esac
252b5132 3022
59f7ec45
HPN
3023# A target can indicate whether a language isn't supported for some reason.
3024# Only spaces may be used in this macro; not newlines or tabs.
3025unsupported_languages=
3026
c6b750e1 3027# Remove more programs from consideration, based on the host or
a0da8069
NN
3028# target this usually means that a port of the program doesn't
3029# exist yet.
252b5132 3030
a0da8069 3031case "${host}" in
3516a403 3032 i[3456789]86-*-msdosdjgpp*)
6a608608 3033 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 3034 ;;
a0da8069 3035esac
252b5132 3036
4b1cb4fe 3037
89a1e9c3
PB
3038# Check whether --enable-libquadmath was given.
3039if test "${enable_libquadmath+set}" = set; then :
3040 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3041else
3042 ENABLE_LIBQUADMATH=yes
3043fi
3044
3045if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3046 noconfigdirs="$noconfigdirs target-libquadmath"
3047fi
3048
3049
3050# Check whether --enable-libquadmath-support was given.
3051if test "${enable_libquadmath_support+set}" = set; then :
3052 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3053else
3054 ENABLE_LIBQUADMATH_SUPPORT=yes
3055fi
3056
3057enable_libquadmath_support=
3058if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3059 enable_libquadmath_support=no
3060fi
3061
3062
81ecdfbb
RW
3063# Check whether --enable-libada was given.
3064if test "${enable_libada+set}" = set; then :
3065 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
3066else
3067 ENABLE_LIBADA=yes
81ecdfbb
RW
3068fi
3069
a2592b1b 3070if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 3071 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
3072fi
3073
81ecdfbb
RW
3074# Check whether --enable-libssp was given.
3075if test "${enable_libssp+set}" = set; then :
3076 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
3077else
3078 ENABLE_LIBSSP=yes
81ecdfbb
RW
3079fi
3080
5f128533 3081
f66a9a70
L
3082# Check whether --enable-libstdcxx was given.
3083if test "${enable_libstdcxx+set}" = set; then :
3084 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3085else
3086 ENABLE_LIBSTDCXX=default
3087fi
3088
3089if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3090 noconfigdirs="$noconfigdirs libstdc++-v3"
3091fi
3092
a0da8069
NN
3093# Save it here so that, even in case of --enable-libgcj, if the Java
3094# front-end isn't enabled, we still get libgcj disabled.
3095libgcj_saved=$libgcj
3096case $enable_libgcj in
3097yes)
3098 # If we reset it here, it won't get added to noconfigdirs in the
3099 # target-specific build rules, so it will be forcibly enabled
3100 # (unless the Java language itself isn't enabled).
3101 libgcj=
3102 ;;
3103no)
3104 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
3105 # Don't disable libffi, though, other languages use it.
3106 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
3107 # Clear libgcj_saved so that even if java is enabled libffi won't be
3108 # built.
3109 libgcj_saved=
a0da8069
NN
3110 ;;
3111esac
252b5132 3112
ffdd6afc
ILT
3113# Check whether --enable-static-libjava was given.
3114if test "${enable_static_libjava+set}" = set; then :
3115 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3116else
3117 ENABLE_STATIC_LIBJAVA=no
3118fi
3119
3120enable_static_libjava=
3121if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3122 enable_static_libjava=yes
3123fi
3124
3125if test x$enable_static_libjava != xyes ; then
3126 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3127fi
3128
4b1cb4fe 3129
a6df5a19
PB
3130# Disable libgomp on non POSIX hosted systems.
3131if test x$enable_libgomp = x ; then
b3ded179
PB
3132 # Enable libgomp by default on hosted POSIX systems.
3133 case "${target}" in
29383458 3134 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3135 ;;
5b806d27 3136 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3137 ;;
2479f722 3138 *-*-solaris2* | *-*-hpux11*)
b3ded179
PB
3139 ;;
3140 *-*-darwin* | *-*-aix*)
3141 ;;
3142 *)
3143 noconfigdirs="$noconfigdirs target-libgomp"
3144 ;;
3145 esac
a6df5a19 3146fi
b3ded179 3147
7ec59b9e
L
3148# Disable libatomic on unsupported systems.
3149if test -d ${srcdir}/libatomic; then
3150 if test x$enable_libatomic = x; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3152$as_echo_n "checking for libatomic support... " >&6; }
3153 if (srcdir=${srcdir}/libatomic; \
3154 . ${srcdir}/configure.tgt; \
3155 test -n "$UNSUPPORTED")
3156 then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3158$as_echo "no" >&6; }
3159 noconfigdirs="$noconfigdirs target-libatomic"
3160 else
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3162$as_echo "yes" >&6; }
3163 fi
3164 fi
3165fi
3166
d32e2926
RH
3167# Disable libitm on unsupported systems.
3168if test -d ${srcdir}/libitm; then
3169 if test x$enable_libitm = x; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3171$as_echo_n "checking for libitm support... " >&6; }
3172 if (srcdir=${srcdir}/libitm; \
3173 . ${srcdir}/configure.tgt; \
3174 test -n "$UNSUPPORTED")
3175 then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177$as_echo "no" >&6; }
3178 noconfigdirs="$noconfigdirs target-libitm"
3179 else
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3181$as_echo "yes" >&6; }
3182 fi
3183 fi
3184fi
3185
5286fdef
L
3186# Disable libsanitizer on unsupported systems.
3187if test -d ${srcdir}/libsanitizer; then
3188 if test x$enable_libsanitizer = x; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3190$as_echo_n "checking for libsanitizer support... " >&6; }
3191 if (srcdir=${srcdir}/libsanitizer; \
3192 . ${srcdir}/configure.tgt; \
3193 test -n "$UNSUPPORTED")
3194 then
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196$as_echo "no" >&6; }
3197 noconfigdirs="$noconfigdirs target-libsanitizer"
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200$as_echo "yes" >&6; }
3201 fi
3202 fi
3203fi
3204
95e43135
JBG
3205# Disable libvtv on unsupported systems.
3206if test -d ${srcdir}/libvtv; then
3207 if test x$enable_libvtv = x; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3209$as_echo_n "checking for libvtv support... " >&6; }
3210 if (srcdir=${srcdir}/libvtv; \
3211 . ${srcdir}/configure.tgt; \
3212 test "$VTV_SUPPORTED" != "yes")
3213 then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
3216 noconfigdirs="$noconfigdirs target-libvtv"
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3219$as_echo "yes" >&6; }
3220 fi
3221 fi
3222fi
3223
1488e230
DE
3224# Disable libquadmath for some systems.
3225case "${target}" in
5286fdef
L
3226 avr-*-*)
3227 noconfigdirs="$noconfigdirs target-libquadmath"
3228 ;;
1488e230
DE
3229 # libquadmath is unused on AIX and libquadmath build process use of
3230 # LD_LIBRARY_PATH can break AIX bootstrap.
3231 powerpc-*-aix* | rs6000-*-aix*)
3232 noconfigdirs="$noconfigdirs target-libquadmath"
3233 ;;
3234esac
3235
065a5627
JM
3236# Disable libssp for some systems.
3237case "${target}" in
3238 avr-*-*)
c5f5c3c2 3239 # No hosted I/O support.
065a5627
JM
3240 noconfigdirs="$noconfigdirs target-libssp"
3241 ;;
3242 powerpc-*-aix* | rs6000-*-aix*)
3243 noconfigdirs="$noconfigdirs target-libssp"
3244 ;;
99c513f6 3245 rl78-*-*)
202e2356
NC
3246 # libssp uses a misaligned load to trigger a fault, but the RL78
3247 # doesn't fault for those - instead, it gives a build-time error
3248 # for explicit misaligned loads.
99c513f6
DD
3249 noconfigdirs="$noconfigdirs target-libssp"
3250 ;;
065a5627
JM
3251esac
3252
065a5627 3253# Disable libstdc++-v3 for some systems.
f66a9a70
L
3254# Allow user to override this if they pass --enable-libstdc++-v3
3255if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3256 case "${target}" in
3257 *-*-vxworks*)
3258 # VxWorks uses the Dinkumware C++ library.
3259 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3260 ;;
3261 arm*-wince-pe*)
3262 # the C++ libraries don't build on top of CE's C libraries
3263 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3264 ;;
3265 avr-*-*)
3266 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3267 ;;
3268 esac
3269fi
065a5627
JM
3270
3271# Disable Fortran for some systems.
3272case "${target}" in
3273 mmix-*-*)
3274 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3275 unsupported_languages="$unsupported_languages fortran"
3276 ;;
3277esac
3278
0827f9a6 3279# Disable Java if libffi is not supported.
9863d716 3280case "${target}" in
e7d5abf1
JBG
3281 aarch64-*-*)
3282 ;;
0827f9a6
JM
3283 alpha*-*-*)
3284 ;;
3285 arm*-*-*)
3286 ;;
3287 cris-*-*)
3288 ;;
3289 frv-*-*)
3290 ;;
3291 hppa*-*-linux*)
3292 ;;
3293 hppa*-*-hpux*)
3294 ;;
3295 i?86-*-*)
3296 ;;
3297 ia64*-*-*)
3298 ;;
3299 m32r*-*-*)
3300 ;;
3301 m68k-*-*)
3302 ;;
2479f722 3303 mips*-*-rtems*)
0827f9a6
JM
3304 ;;
3305 mips*-*-linux*)
3306 ;;
3307 powerpc*-*-linux*)
3308 ;;
3309 powerpc-*-darwin*)
3310 ;;
3311 powerpc-*-aix* | rs6000-*-aix*)
3312 ;;
3313 powerpc-*-freebsd*)
3314 ;;
3315 powerpc64-*-freebsd*)
3316 ;;
3317 powerpc*-*-rtems*)
9863d716 3318 ;;
0827f9a6
JM
3319 s390-*-* | s390x-*-*)
3320 ;;
3321 sh-*-* | sh[34]*-*-*)
3322 ;;
3323 sh64-*-* | sh5*-*-*)
3324 ;;
3325 sparc*-*-*)
3326 ;;
3327 x86_64-*-*)
3328 ;;
3329 *-*-*)
3330 unsupported_languages="$unsupported_languages java"
3331 ;;
3332esac
3333
3334# Disable Java, libgcj or related libraries for some systems.
3335case "${target}" in
9863d716
JM
3336 powerpc-*-darwin*)
3337 ;;
3338 i[3456789]86-*-darwin*)
3339 ;;
3340 x86_64-*-darwin[912]*)
3341 ;;
3342 *-*-darwin*)
3343 noconfigdirs="$noconfigdirs ${libgcj}"
3344 ;;
9863d716
JM
3345 *-*-netware*)
3346 noconfigdirs="$noconfigdirs ${libgcj}"
3347 ;;
3348 *-*-rtems*)
3349 noconfigdirs="$noconfigdirs ${libgcj}"
3350 ;;
3351 *-*-tpf*)
3352 noconfigdirs="$noconfigdirs ${libgcj}"
3353 ;;
3354 *-*-uclinux*)
3355 noconfigdirs="$noconfigdirs ${libgcj}"
3356 ;;
3357 *-*-vxworks*)
3358 noconfigdirs="$noconfigdirs ${libgcj}"
3359 ;;
9863d716
JM
3360 alpha*-*-*vms*)
3361 noconfigdirs="$noconfigdirs ${libgcj}"
3362 ;;
0827f9a6 3363 arm-wince-pe)
9863d716
JM
3364 noconfigdirs="$noconfigdirs ${libgcj}"
3365 ;;
9863d716
JM
3366 arm*-*-symbianelf*)
3367 noconfigdirs="$noconfigdirs ${libgcj}"
3368 ;;
9863d716 3369 bfin-*-*)
9863d716
JM
3370 noconfigdirs="$noconfigdirs target-boehm-gc"
3371 ;;
9863d716
JM
3372 cris-*-* | crisv32-*-*)
3373 unsupported_languages="$unsupported_languages java"
3374 case "${target}" in
3375 *-*-linux*)
3376 ;;
3377 *) # See PR46792 regarding target-libffi.
3378 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3379 esac
3380 ;;
9863d716
JM
3381 hppa*64*-*-linux*)
3382 # In this case, it's because the hppa64-linux target is for
3383 # the kernel only at this point and has no libc, and thus no
3384 # headers, crt*.o, etc., all of which are needed by these.
82ae827f 3385 unsupported_languages="$unsupported_languages java"
9863d716 3386 ;;
82ae827f 3387 hppa*64*-*-hpux*)
9863d716
JM
3388 noconfigdirs="$noconfigdirs ${libgcj}"
3389 ;;
3390 hppa*-hp-hpux11*)
3391 ;;
82ae827f 3392 hppa*-*-hpux*)
9863d716
JM
3393 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3394 # build on HP-UX 10.20.
3395 noconfigdirs="$noconfigdirs ${libgcj}"
3396 ;;
9863d716
JM
3397 ia64*-*-*vms*)
3398 noconfigdirs="$noconfigdirs ${libgcj}"
3399 ;;
9863d716
JM
3400 i[3456789]86-w64-mingw*)
3401 noconfigdirs="$noconfigdirs ${libgcj}"
3402 ;;
3403 i[3456789]86-*-mingw*)
3404 noconfigdirs="$noconfigdirs ${libgcj}"
3405 ;;
3406 x86_64-*-mingw*)
3407 noconfigdirs="$noconfigdirs ${libgcj}"
3408 ;;
9863d716
JM
3409 mmix-*-*)
3410 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
9863d716
JM
3411 ;;
3412 powerpc-*-aix*)
3413 # copied from rs6000-*-* entry
3414 noconfigdirs="$noconfigdirs ${libgcj}"
3415 ;;
9863d716
JM
3416 rs6000-*-aix*)
3417 noconfigdirs="$noconfigdirs ${libgcj}"
3418 ;;
9863d716
JM
3419 *-*-lynxos*)
3420 noconfigdirs="$noconfigdirs ${libgcj}"
3421 ;;
9863d716
JM
3422esac
3423
a413f71a
ILT
3424# Disable libgo for some systems where it is known to not work.
3425# For testing, you can easily override this with --enable-libgo.
3426if test x$enable_libgo = x; then
3427 case "${target}" in
3428 *-*-darwin*)
3429 # PR 46986
3430 noconfigdirs="$noconfigdirs target-libgo"
3431 ;;
3432 *-*-cygwin* | *-*-mingw*)
3433 noconfigdirs="$noconfigdirs target-libgo"
3434 ;;
3435 *-*-aix*)
3436 noconfigdirs="$noconfigdirs target-libgo"
3437 ;;
3438 esac
3439fi
3440
691bb5a1
DD
3441# Default libgloss CPU subdirectory.
3442libgloss_dir="$target_cpu"
4b1cb4fe 3443
ff46fb8f
JM
3444case "${target}" in
3445 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3446 libgloss_dir=wince
3447 ;;
f1dd87fc
YZ
3448 aarch64*-*-* )
3449 libgloss_dir=aarch64
3450 ;;
ff46fb8f
JM
3451 arm*-*-*)
3452 libgloss_dir=arm
3453 ;;
3454 cris-*-* | crisv32-*-*)
3455 libgloss_dir=cris
3456 ;;
3457 hppa*-*-*)
3458 libgloss_dir=pa
3459 ;;
3460 i[3456789]86-*-*)
3461 libgloss_dir=i386
3462 ;;
3463 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3464 libgloss_dir=m68hc11
3465 ;;
3466 m68*-*-* | fido-*-*)
3467 libgloss_dir=m68k
3468 ;;
3469 mips*-*-*)
3470 libgloss_dir=mips
3471 ;;
3472 powerpc*-*-*)
3473 libgloss_dir=rs6000
3474 ;;
3475 sparc*-*-*)
3476 libgloss_dir=sparc
3477 ;;
3478esac
3479
c7e4b184 3480# Disable newlib and libgloss for various target OSes.
a0da8069 3481case "${target}" in
c7e4b184
JM
3482 alpha*-dec-osf*)
3483 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3484 ;;
3485 i[3456789]86-*-linux*)
3486 # This section makes it possible to build newlib natively on linux.
3487 # If we are using a cross compiler then don't configure newlib.
3488 if test x${is_cross_compiler} != xno ; then
3489 noconfigdirs="$noconfigdirs target-newlib"
3490 fi
3491 noconfigdirs="$noconfigdirs target-libgloss"
3492 # If we are not using a cross compiler, do configure newlib.
3493 # Note however, that newlib will only be configured in this situation
3494 # if the --with-newlib option has been given, because otherwise
3495 # 'target-newlib' will appear in skipdirs.
3496 ;;
3497 i[3456789]86-*-rdos*)
3498 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3499 ;;
3500 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3501 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3502 ;;
3503 sparc-*-sunos4*)
3504 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3505 ;;
3506 *-*-aix*)
3507 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3508 ;;
3509 *-*-beos*)
3510 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3511 ;;
a0da8069 3512 *-*-chorusos)
b2f14e4a 3513 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3514 ;;
c7e4b184
JM
3515 *-*-dragonfly*)
3516 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3517 ;;
3518 *-*-freebsd*)
3519 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3520 ;;
3521 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3522 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3523 ;;
3524 *-*-lynxos*)
3525 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3526 ;;
3527 *-*-mingw*)
3528 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3529 ;;
3530 *-*-netbsd*)
3531 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3532 ;;
3533 *-*-netware*)
3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3535 ;;
3536 *-*-tpf*)
3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3538 ;;
3539 *-*-uclinux*)
3540 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3541 ;;
3542 *-*-vxworks*)
3543 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3544 ;;
3545esac
3546
3547case "${target}" in
3548 *-*-chorusos)
3549 ;;
24741ab2 3550 powerpc-*-darwin*)
9d39db92 3551 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3552 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3553 ;;
85bd1942
TG
3554 i[3456789]86-*-darwin*)
3555 noconfigdirs="$noconfigdirs ld gprof"
3556 noconfigdirs="$noconfigdirs sim target-rda"
3557 ;;
e8a5fa9c 3558 x86_64-*-darwin[912]*)
652dec25
TG
3559 noconfigdirs="$noconfigdirs ld gas gprof"
3560 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3561 ;;
04d1ab34 3562 *-*-darwin*)
d320aacb 3563 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3564 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3565 ;;
5b806d27 3566 *-*-dragonfly*)
5b806d27 3567 ;;
de0b4a87 3568 *-*-freebsd*)
4b1cb4fe
DD
3569 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3570 && test -f /usr/local/include/gmp.h; then
3571 with_gmp=/usr/local
3572 fi
4b1cb4fe 3573 ;;
f8a495c8
NC
3574 *-*-kaos*)
3575 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3576 noconfigdirs="$noconfigdirs target-libgloss"
3577 ;;
a0da8069 3578 *-*-netbsd*)
a0da8069 3579 ;;
2a3124ca 3580 *-*-netware*)
a0da8069
NN
3581 ;;
3582 *-*-rtems*)
9863d716 3583 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3584 ;;
1587117a
EC
3585 # The tpf target doesn't support gdb yet.
3586 *-*-tpf*)
c7e4b184 3587 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
1587117a 3588 ;;
c1968181 3589 *-*-uclinux*)
c7e4b184 3590 noconfigdirs="$noconfigdirs target-rda"
c1968181 3591 ;;
a0da8069 3592 *-*-vxworks*)
a0da8069
NN
3593 ;;
3594 alpha*-dec-osf*)
3595 # ld works, but does not support shared libraries.
a0da8069 3596 # gas doesn't generate exception information.
c7e4b184 3597 noconfigdirs="$noconfigdirs gas ld"
a0da8069
NN
3598 ;;
3599 alpha*-*-*vms*)
9863d716 3600 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3601 ;;
a0da8069
NN
3602 alpha*-*-*)
3603 # newlib is not 64 bit ready
9863d716 3604 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3605 ;;
a0da8069 3606 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3607 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3608 ;;
f4cfb980 3609 arc-*-*|arceb-*-*)
782cb41f 3610 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3611 ;;
a0da8069 3612 arm-*-pe*)
9863d716 3613 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3614 ;;
a0da8069 3615 arm-*-riscix*)
b2f14e4a 3616 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3617 ;;
8e71395b
L
3618 avr-*-rtems*)
3619 ;;
3620 avr-*-*)
3621 if test x${with_avrlibc} != xno; then
3622 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3623 fi
3624 ;;
a0da8069 3625 c4x-*-* | tic4x-*-*)
b2f14e4a 3626 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3627 ;;
b2f14e4a
JM
3628 tic54x-*-*)
3629 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3630 ;;
a0da8069 3631 d10v-*-*)
b2f14e4a 3632 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3633 ;;
3634 d30v-*-*)
b2f14e4a 3635 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3636 ;;
3637 fr30-*-elf*)
9863d716 3638 noconfigdirs="$noconfigdirs gdb"
a0da8069 3639 ;;
20135e4c 3640 moxie-*-*)
20135e4c
NC
3641 noconfigdirs="$noconfigdirs gprof"
3642 ;;
a0da8069 3643 h8300*-*-*)
9863d716 3644 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3645 ;;
3646 h8500-*-*)
b2f14e4a 3647 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3648 ;;
caeba88f 3649 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3650 ;;
93cc359e 3651 hppa*64*-*-linux*)
a0da8069 3652 ;;
f0ff0f90 3653 hppa*-*-linux*)
5dcac624 3654 ;;
a0da8069 3655 hppa*-*-*elf* | \
a0da8069
NN
3656 hppa*-*-lites* | \
3657 hppa*-*-openbsd* | \
3658 hppa*64*-*-*)
4f0ef2d8
CD
3659 ;;
3660 hppa*-hp-hpux11*)
0377a422 3661 noconfigdirs="$noconfigdirs ld"
a0da8069 3662 ;;
691bb5a1 3663 hppa*-*-pro*)
691bb5a1 3664 ;;
a0da8069 3665 hppa*-*-*)
9863d716 3666 noconfigdirs="$noconfigdirs ld"
a0da8069 3667 ;;
b07c2aad 3668 i960-*-*)
b2f14e4a 3669 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3670 ;;
a0da8069
NN
3671 ia64*-*-elf*)
3672 # No gdb support yet.
0377a422 3673 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3674 ;;
3675 ia64*-**-hpux*)
92c9a463 3676 # No ld support yet.
9863d716 3677 noconfigdirs="$noconfigdirs libgui itcl ld"
a0da8069 3678 ;;
19e99079 3679 ia64*-*-*vms*)
7ec59b9e
L
3680 # No ld support yet.
3681 noconfigdirs="$noconfigdirs libgui itcl ld"
19e99079 3682 ;;
1f53ca9a 3683 i[3456789]86-w64-mingw*)
1f53ca9a
AO
3684 ;;
3685 i[3456789]86-*-mingw*)
45055374 3686 target_configdirs="$target_configdirs target-winsup"
c6b750e1 3687 ;;
a0da8069
NN
3688 *-*-cygwin*)
3689 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3690 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3691 # always build newlib if winsup directory is present.
45055374 3692 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3693 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3694 elif test -d "$srcdir/newlib"; then
45055374 3695 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3696 fi
c6b750e1 3697 ;;
ec11bdc6 3698 i[3456789]86-*-pe)
782cb41f 3699 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3700 ;;
ec11bdc6 3701 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3702 # The linker does not yet know about weak symbols in COFF,
3703 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3704 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3705 ;;
ec11bdc6 3706 i[3456789]86-*-sco*)
b2f14e4a 3707 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3708 ;;
cff32a7c 3709 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
a0da8069
NN
3710 noconfigdirs="$noconfigdirs target-libgloss"
3711 ;;
ec11bdc6 3712 i[3456789]86-*-sysv4*)
b2f14e4a 3713 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3714 ;;
ec11bdc6 3715 i[3456789]86-*-beos*)
c7e4b184 3716 noconfigdirs="$noconfigdirs gdb"
bba45b8b 3717 ;;
b59bea8a 3718 i[3456789]86-*-rdos*)
c7e4b184 3719 noconfigdirs="$noconfigdirs gdb"
691bb5a1 3720 ;;
a0da8069 3721 mmix-*-*)
9863d716 3722 noconfigdirs="$noconfigdirs gdb"
a0da8069 3723 ;;
4970f871 3724 mt-*-*)
cdb9b172
AH
3725 noconfigdirs="$noconfigdirs sim"
3726 ;;
a0da8069
NN
3727 powerpc-*-aix*)
3728 # copied from rs6000-*-* entry
c7e4b184 3729 noconfigdirs="$noconfigdirs gprof"
a0da8069 3730 ;;
93cc359e 3731 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3732 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3733 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3734 # always build newlib.
3735 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3736 ;;
3737 # This is temporary until we can link against shared libraries
3738 powerpcle-*-solaris*)
b2f14e4a 3739 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
a0da8069
NN
3740 ;;
3741 powerpc-*-beos*)
c7e4b184 3742 noconfigdirs="$noconfigdirs gdb"
a0da8069 3743 ;;
a0da8069 3744 rs6000-*-lynxos*)
c7e4b184 3745 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3746 ;;
3747 rs6000-*-aix*)
c7e4b184 3748 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3749 ;;
3750 rs6000-*-*)
9863d716 3751 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3752 ;;
3753 m68k-apollo-*)
b2f14e4a 3754 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3755 ;;
25a07265 3756 microblaze*)
9863d716 3757 noconfigdirs="$noconfigdirs gprof"
25a07265 3758 ;;
d09bbf00 3759 mips*-sde-elf* | mips*-mti-elf*)
5bd8be13
RS
3760 if test x$with_newlib = xyes; then
3761 noconfigdirs="$noconfigdirs gprof"
3762 fi
5bd8be13 3763 ;;
a0da8069 3764 mips*-*-irix5*)
b2f14e4a 3765 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3766 ;;
3767 mips*-*-irix6*)
9863d716 3768 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3769 ;;
a0da8069 3770 mips*-*-bsd*)
e8044f35 3771 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
a0da8069 3772 ;;
a0da8069 3773 mips*-*-linux*)
a0da8069 3774 ;;
e8044f35
RS
3775 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3776 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3777 noconfigdirs="$noconfigdirs ld gas gprof"
3778 ;;
a0da8069 3779 mips*-*-*)
9863d716 3780 noconfigdirs="$noconfigdirs gprof"
a0da8069 3781 ;;
dbf85af7 3782 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3783 case "${target}" in
3784 sh*-*-elf)
9863d716 3785 ;;
e8a5fa9c 3786 *)
9863d716 3787 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3788 esac
a0da8069 3789 ;;
a0da8069 3790 sparc-*-sunos4*)
c7e4b184 3791 if test x${is_cross_compiler} = xno ; then
a0da8069
NN
3792 use_gnu_ld=no
3793 fi
3794 ;;
619a3713 3795 tic6x-*-*)
40ae9136 3796 noconfigdirs="$noconfigdirs sim"
619a3713 3797 ;;
eb4b2452
NC
3798 tilepro-*-* | tilegx-*-*)
3799 noconfigdirs="$noconfigdirs sim"
3800 ;;
a0da8069 3801 v810-*-*)
b2f14e4a 3802 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3803 ;;
3804 vax-*-*)
9863d716 3805 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3806 ;;
a0da8069 3807esac
252b5132 3808
a0da8069
NN
3809# If we aren't building newlib, then don't build libgloss, since libgloss
3810# depends upon some newlib header files.
3811case "${noconfigdirs}" in
3812 *target-libgloss*) ;;
3813 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3814esac
3815
a0da8069 3816# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3817host_makefile_frag=/dev/null
3818if test -d ${srcdir}/config ; then
3819case "${host}" in
ec11bdc6 3820 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3821 host_makefile_frag="config/mh-djgpp"
3822 ;;
3823 *-cygwin*)
e33b51a6 3824
81ecdfbb
RW
3825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3826$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3827echo a >cygwin-cat-check
1f53ca9a 3828if test `cat cygwin-cat-check` = a ; then
8ade07e9 3829 rm cygwin-cat-check
81ecdfbb
RW
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3831$as_echo "yes" >&6; }
e33b51a6 3832else
8ade07e9 3833 rm cygwin-cat-check
81ecdfbb
RW
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835$as_echo "no" >&6; }
3836 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3837 Please either mount the build directory in binary mode or run the following
3838 commands before running any configure script:
3839set -o igncr
3840export SHELLOPTS
81ecdfbb 3841 " "$LINENO" 5
e33b51a6 3842fi
e33b51a6 3843
a0da8069
NN
3844 host_makefile_frag="config/mh-cygwin"
3845 ;;
8a1599ab 3846 *-mingw*)
84e7906e 3847 host_makefile_frag="config/mh-mingw"
2d1e8239 3848 ;;
da888c87 3849 hppa*-hp-hpux10*)
da888c87 3850 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3851 ;;
3516a403 3852 hppa*-hp-hpux*)
da888c87
PB
3853 host_makefile_frag="config/mh-pa"
3854 ;;
3855 hppa*-*)
3856 host_makefile_frag="config/mh-pa"
3857 ;;
e552509b
ILT
3858 *-*-darwin*)
3859 host_makefile_frag="config/mh-darwin"
0df3d27f 3860 ;;
f6d183c0
PB
3861 powerpc-*-aix*)
3862 host_makefile_frag="config/mh-ppc-aix"
3863 ;;
3864 rs6000-*-aix*)
3865 host_makefile_frag="config/mh-ppc-aix"
3866 ;;
a0da8069
NN
3867esac
3868fi
3869
9e07f89d 3870if test "${build}" != "${host}" ; then
1576798e
PB
3871 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3872 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3873 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3874 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3875 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3876 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3877 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3878 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3879 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3880 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3881 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3882 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3883 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3884else
3885 AR_FOR_BUILD="\$(AR)"
3886 AS_FOR_BUILD="\$(AS)"
512b7dfb 3887 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3888 CXX_FOR_BUILD="\$(CXX)"
3889 GCJ_FOR_BUILD="\$(GCJ)"
3890 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3891 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3892 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3893 LD_FOR_BUILD="\$(LD)"
3894 NM_FOR_BUILD="\$(NM)"
3895 RANLIB_FOR_BUILD="\$(RANLIB)"
3896 WINDRES_FOR_BUILD="\$(WINDRES)"
3897 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3898fi
3899
3900ac_ext=c
c6b750e1
DJ
3901ac_cpp='$CPP $CPPFLAGS'
3902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905if test -n "$ac_tool_prefix"; then
3906 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3907set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3909$as_echo_n "checking for $ac_word... " >&6; }
3910if test "${ac_cv_prog_CC+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3912else
3913 if test -n "$CC"; then
3914 ac_cv_prog_CC="$CC" # Let the user override the test.
3915else
3916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917for as_dir in $PATH
3918do
3919 IFS=$as_save_IFS
3920 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3923 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3925 break 2
3926 fi
3927done
81ecdfbb
RW
3928 done
3929IFS=$as_save_IFS
c6b750e1
DJ
3930
3931fi
3932fi
3933CC=$ac_cv_prog_CC
3934if test -n "$CC"; then
81ecdfbb
RW
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936$as_echo "$CC" >&6; }
c6b750e1 3937else
81ecdfbb
RW
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939$as_echo "no" >&6; }
c6b750e1
DJ
3940fi
3941
81ecdfbb 3942
c6b750e1
DJ
3943fi
3944if test -z "$ac_cv_prog_CC"; then
3945 ac_ct_CC=$CC
6a9cf61e 3946 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3947set dummy gcc; ac_word=$2
81ecdfbb
RW
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949$as_echo_n "checking for $ac_word... " >&6; }
3950if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3952else
3953 if test -n "$ac_ct_CC"; then
3954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3955else
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3963 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3965 break 2
3966 fi
3967done
81ecdfbb
RW
3968 done
3969IFS=$as_save_IFS
c6b750e1
DJ
3970
3971fi
3972fi
3973ac_ct_CC=$ac_cv_prog_ac_ct_CC
3974if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3976$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3977else
81ecdfbb
RW
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979$as_echo "no" >&6; }
c6b750e1
DJ
3980fi
3981
81ecdfbb
RW
3982 if test "x$ac_ct_CC" = x; then
3983 CC=""
3984 else
3985 case $cross_compiling:$ac_tool_warned in
3986yes:)
3987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3989ac_tool_warned=yes ;;
3990esac
3991 CC=$ac_ct_CC
3992 fi
c6b750e1
DJ
3993else
3994 CC="$ac_cv_prog_CC"
3995fi
3996
3997if test -z "$CC"; then
81ecdfbb
RW
3998 if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 4000set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002$as_echo_n "checking for $ac_word... " >&6; }
4003if test "${ac_cv_prog_CC+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
9e07f89d
NN
4005else
4006 if test -n "$CC"; then
4007 ac_cv_prog_CC="$CC" # Let the user override the test.
4008else
c6b750e1
DJ
4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH
4011do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4016 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4018 break 2
4019 fi
4020done
81ecdfbb
RW
4021 done
4022IFS=$as_save_IFS
c6b750e1 4023
9e07f89d
NN
4024fi
4025fi
c6b750e1 4026CC=$ac_cv_prog_CC
9e07f89d 4027if test -n "$CC"; then
81ecdfbb
RW
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4029$as_echo "$CC" >&6; }
c6b750e1 4030else
81ecdfbb
RW
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032$as_echo "no" >&6; }
c6b750e1
DJ
4033fi
4034
c6b750e1 4035
81ecdfbb 4036 fi
c6b750e1 4037fi
9e07f89d
NN
4038if test -z "$CC"; then
4039 # Extract the first word of "cc", so it can be a program name with args.
4040set dummy cc; ac_word=$2
81ecdfbb
RW
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042$as_echo_n "checking for $ac_word... " >&6; }
4043if test "${ac_cv_prog_CC+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
9e07f89d
NN
4045else
4046 if test -n "$CC"; then
4047 ac_cv_prog_CC="$CC" # Let the user override the test.
4048else
9e07f89d 4049 ac_prog_rejected=no
c6b750e1
DJ
4050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051for as_dir in $PATH
4052do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4057 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4058 ac_prog_rejected=yes
4059 continue
4060 fi
4061 ac_cv_prog_CC="cc"
81ecdfbb 4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4063 break 2
4064 fi
4065done
81ecdfbb
RW
4066 done
4067IFS=$as_save_IFS
c6b750e1 4068
9e07f89d
NN
4069if test $ac_prog_rejected = yes; then
4070 # We found a bogon in the path, so make sure we never use it.
4071 set dummy $ac_cv_prog_CC
4072 shift
c6b750e1 4073 if test $# != 0; then
9e07f89d
NN
4074 # We chose a different compiler from the bogus one.
4075 # However, it has the same basename, so the bogon will be chosen
4076 # first if we set CC to just the basename; use the full file name.
4077 shift
c6b750e1 4078 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4079 fi
4080fi
4081fi
4082fi
c6b750e1 4083CC=$ac_cv_prog_CC
9e07f89d 4084if test -n "$CC"; then
81ecdfbb
RW
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4086$as_echo "$CC" >&6; }
9e07f89d 4087else
81ecdfbb
RW
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089$as_echo "no" >&6; }
9e07f89d
NN
4090fi
4091
81ecdfbb 4092
c6b750e1
DJ
4093fi
4094if test -z "$CC"; then
4095 if test -n "$ac_tool_prefix"; then
81ecdfbb 4096 for ac_prog in cl.exe
c6b750e1
DJ
4097 do
4098 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4099set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4101$as_echo_n "checking for $ac_word... " >&6; }
4102if test "${ac_cv_prog_CC+set}" = set; then :
4103 $as_echo_n "(cached) " >&6
9e07f89d
NN
4104else
4105 if test -n "$CC"; then
4106 ac_cv_prog_CC="$CC" # Let the user override the test.
4107else
c6b750e1
DJ
4108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109for as_dir in $PATH
4110do
4111 IFS=$as_save_IFS
4112 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4115 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4117 break 2
376a0e54 4118 fi
c6b750e1 4119done
81ecdfbb
RW
4120 done
4121IFS=$as_save_IFS
cac3d6c4 4122
c6b750e1
DJ
4123fi
4124fi
4125CC=$ac_cv_prog_CC
4126if test -n "$CC"; then
81ecdfbb
RW
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4128$as_echo "$CC" >&6; }
cac3d6c4 4129else
81ecdfbb
RW
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4131$as_echo "no" >&6; }
9e07f89d 4132fi
cac3d6c4 4133
81ecdfbb 4134
c6b750e1
DJ
4135 test -n "$CC" && break
4136 done
cac3d6c4 4137fi
c6b750e1
DJ
4138if test -z "$CC"; then
4139 ac_ct_CC=$CC
81ecdfbb 4140 for ac_prog in cl.exe
c6b750e1
DJ
4141do
4142 # Extract the first word of "$ac_prog", so it can be a program name with args.
4143set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4145$as_echo_n "checking for $ac_word... " >&6; }
4146if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4147 $as_echo_n "(cached) " >&6
cac3d6c4 4148else
c6b750e1
DJ
4149 if test -n "$ac_ct_CC"; then
4150 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4151else
c6b750e1
DJ
4152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153for as_dir in $PATH
4154do
4155 IFS=$as_save_IFS
4156 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4157 for ac_exec_ext in '' $ac_executable_extensions; do
4158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4159 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4161 break 2
4162 fi
4163done
81ecdfbb
RW
4164 done
4165IFS=$as_save_IFS
c6b750e1 4166
cac3d6c4
CM
4167fi
4168fi
c6b750e1
DJ
4169ac_ct_CC=$ac_cv_prog_ac_ct_CC
4170if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4172$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4173else
81ecdfbb
RW
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175$as_echo "no" >&6; }
cac3d6c4 4176fi
376a0e54 4177
81ecdfbb 4178
c6b750e1
DJ
4179 test -n "$ac_ct_CC" && break
4180done
4181
81ecdfbb
RW
4182 if test "x$ac_ct_CC" = x; then
4183 CC=""
4184 else
4185 case $cross_compiling:$ac_tool_warned in
4186yes:)
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4188$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4189ac_tool_warned=yes ;;
4190esac
4191 CC=$ac_ct_CC
4192 fi
c6b750e1
DJ
4193fi
4194
4195fi
4196
4197
81ecdfbb
RW
4198test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200as_fn_error "no acceptable C compiler found in \$PATH
4201See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4202
4203# Provide some information about the compiler.
81ecdfbb
RW
4204$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4205set X $ac_compile
4206ac_compiler=$2
4207for ac_option in --version -v -V -qversion; do
4208 { { ac_try="$ac_compiler $ac_option >&5"
4209case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212esac
4213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4214$as_echo "$ac_try_echo"; } >&5
4215 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4216 ac_status=$?
81ecdfbb
RW
4217 if test -s conftest.err; then
4218 sed '10a\
4219... rest of stderr output deleted ...
4220 10q' conftest.err >conftest.er1
4221 cat conftest.er1 >&5
4222 rm -f conftest.er1 conftest.err
4223 fi
4224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4225 test $ac_status = 0; }
4226done
c6b750e1 4227
81ecdfbb 4228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4229/* end confdefs.h. */
4230
4231int
4232main ()
4233{
4234
4235 ;
4236 return 0;
4237}
4238_ACEOF
4239ac_clean_files_save=$ac_clean_files
81ecdfbb 4240ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4241# Try to create an executable without -o first, disregard a.out.
4242# It will help us diagnose broken compilers, and finding out an intuition
4243# of exeext.
81ecdfbb
RW
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4245$as_echo_n "checking for C compiler default output file name... " >&6; }
4246ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4247
4248# The possible output files:
4249ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4250
4251ac_rmfiles=
4252for ac_file in $ac_files
4253do
4254 case $ac_file in
4255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4256 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4257 esac
4258done
4259rm -f $ac_rmfiles
4260
4261if { { ac_try="$ac_link_default"
4262case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4265esac
4266eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4267$as_echo "$ac_try_echo"; } >&5
4268 (eval "$ac_link_default") 2>&5
c6b750e1 4269 ac_status=$?
81ecdfbb
RW
4270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4271 test $ac_status = 0; }; then :
4272 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4273# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4274# in a Makefile. We should not override ac_cv_exeext if it was cached,
4275# so that the user can short-circuit this test for compilers unknown to
4276# Autoconf.
4277for ac_file in $ac_files ''
c6b750e1
DJ
4278do
4279 test -f "$ac_file" || continue
4280 case $ac_file in
81ecdfbb 4281 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4282 ;;
4283 [ab].out )
4284 # We found the default executable, but exeext='' is most
4285 # certainly right.
4286 break;;
4287 *.* )
81ecdfbb
RW
4288 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4289 then :; else
4290 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4291 fi
4292 # We set ac_cv_exeext here because the later test for it is not
4293 # safe: cross compilers may not add the suffix if given an `-o'
4294 # argument, so we may need to know it at that point already.
4295 # Even if this section looks crufty: it has the advantage of
4296 # actually working.
c6b750e1
DJ
4297 break;;
4298 * )
4299 break;;
4300 esac
4301done
81ecdfbb
RW
4302test "$ac_cv_exeext" = no && ac_cv_exeext=
4303
c6b750e1 4304else
81ecdfbb
RW
4305 ac_file=''
4306fi
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4308$as_echo "$ac_file" >&6; }
4309if test -z "$ac_file"; then :
4310 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4311sed 's/^/| /' conftest.$ac_ext >&5
4312
81ecdfbb
RW
4313{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315{ as_fn_set_status 77
4316as_fn_error "C compiler cannot create executables
4317See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4318fi
c6b750e1 4319ac_exeext=$ac_cv_exeext
c6b750e1 4320
81ecdfbb 4321# Check that the compiler produces executables we can run. If not, either
c6b750e1 4322# the compiler is broken, or we cross compile.
81ecdfbb
RW
4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4324$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4325# If not cross compiling, check that we can run a simple program.
4326if test "$cross_compiling" != yes; then
4327 if { ac_try='./$ac_file'
81ecdfbb
RW
4328 { { case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331esac
4332eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333$as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
c6b750e1 4335 ac_status=$?
81ecdfbb
RW
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }; }; then
c6b750e1
DJ
4338 cross_compiling=no
4339 else
4340 if test "$cross_compiling" = maybe; then
4341 cross_compiling=yes
4342 else
81ecdfbb
RW
4343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4345as_fn_error "cannot run C compiled programs.
c6b750e1 4346If you meant to cross compile, use \`--host'.
81ecdfbb 4347See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4348 fi
4349 fi
4350fi
81ecdfbb
RW
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4352$as_echo "yes" >&6; }
c6b750e1 4353
81ecdfbb 4354rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4355ac_clean_files=$ac_clean_files_save
81ecdfbb 4356# Check that the compiler produces executables we can run. If not, either
c6b750e1 4357# the compiler is broken, or we cross compile.
81ecdfbb
RW
4358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4359$as_echo_n "checking whether we are cross compiling... " >&6; }
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4361$as_echo "$cross_compiling" >&6; }
4362
4363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4364$as_echo_n "checking for suffix of executables... " >&6; }
4365if { { ac_try="$ac_link"
4366case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369esac
4370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4371$as_echo "$ac_try_echo"; } >&5
4372 (eval "$ac_link") 2>&5
c6b750e1 4373 ac_status=$?
81ecdfbb
RW
4374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4375 test $ac_status = 0; }; then :
c6b750e1
DJ
4376 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4377# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4378# work properly (i.e., refer to `conftest.exe'), while it won't with
4379# `rm'.
4380for ac_file in conftest.exe conftest conftest.*; do
4381 test -f "$ac_file" || continue
4382 case $ac_file in
81ecdfbb 4383 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4384 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4385 break;;
4386 * ) break;;
4387 esac
4388done
4389else
81ecdfbb
RW
4390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4392as_fn_error "cannot compute suffix of executables: cannot compile and link
4393See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4394fi
c6b750e1 4395rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4397$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4398
4399rm -f conftest.$ac_ext
4400EXEEXT=$ac_cv_exeext
4401ac_exeext=$EXEEXT
81ecdfbb
RW
4402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4403$as_echo_n "checking for suffix of object files... " >&6; }
4404if test "${ac_cv_objext+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
c6b750e1 4406else
81ecdfbb 4407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4408/* end confdefs.h. */
4409
4410int
4411main ()
4412{
4413
4414 ;
4415 return 0;
4416}
4417_ACEOF
4418rm -f conftest.o conftest.obj
81ecdfbb
RW
4419if { { ac_try="$ac_compile"
4420case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423esac
4424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425$as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_compile") 2>&5
c6b750e1 4427 ac_status=$?
81ecdfbb
RW
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }; then :
4430 for ac_file in conftest.o conftest.obj conftest.*; do
4431 test -f "$ac_file" || continue;
c6b750e1 4432 case $ac_file in
81ecdfbb 4433 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4434 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4435 break;;
4436 esac
4437done
cac3d6c4 4438else
81ecdfbb 4439 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4440sed 's/^/| /' conftest.$ac_ext >&5
4441
81ecdfbb
RW
4442{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4444as_fn_error "cannot compute suffix of object files: cannot compile
4445See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4446fi
c6b750e1
DJ
4447rm -f conftest.$ac_cv_objext conftest.$ac_ext
4448fi
81ecdfbb
RW
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4450$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4451OBJEXT=$ac_cv_objext
4452ac_objext=$OBJEXT
81ecdfbb
RW
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4454$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4455if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4456 $as_echo_n "(cached) " >&6
c6b750e1 4457else
81ecdfbb 4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4459/* end confdefs.h. */
4460
4461int
4462main ()
4463{
4464#ifndef __GNUC__
4465 choke me
4466#endif
4467
4468 ;
4469 return 0;
4470}
4471_ACEOF
81ecdfbb 4472if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4473 ac_compiler_gnu=yes
4474else
81ecdfbb 4475 ac_compiler_gnu=no
c6b750e1 4476fi
81ecdfbb 4477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4478ac_cv_c_compiler_gnu=$ac_compiler_gnu
4479
4480fi
81ecdfbb
RW
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4482$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4483if test $ac_compiler_gnu = yes; then
4484 GCC=yes
4485else
4486 GCC=
4487fi
c6b750e1
DJ
4488ac_test_CFLAGS=${CFLAGS+set}
4489ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4491$as_echo_n "checking whether $CC accepts -g... " >&6; }
4492if test "${ac_cv_prog_cc_g+set}" = set; then :
4493 $as_echo_n "(cached) " >&6
4494else
4495 ac_save_c_werror_flag=$ac_c_werror_flag
4496 ac_c_werror_flag=yes
4497 ac_cv_prog_cc_g=no
4498 CFLAGS="-g"
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4500/* end confdefs.h. */
4501
4502int
4503main ()
4504{
4505
4506 ;
4507 return 0;
4508}
4509_ACEOF
81ecdfbb 4510if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4511 ac_cv_prog_cc_g=yes
4512else
81ecdfbb
RW
4513 CFLAGS=""
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515/* end confdefs.h. */
4516
4517int
4518main ()
4519{
4520
4521 ;
4522 return 0;
4523}
4524_ACEOF
4525if ac_fn_c_try_compile "$LINENO"; then :
4526
4527else
4528 ac_c_werror_flag=$ac_save_c_werror_flag
4529 CFLAGS="-g"
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531/* end confdefs.h. */
cac3d6c4 4532
81ecdfbb
RW
4533int
4534main ()
4535{
4536
4537 ;
4538 return 0;
4539}
4540_ACEOF
4541if ac_fn_c_try_compile "$LINENO"; then :
4542 ac_cv_prog_cc_g=yes
4543fi
4544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4545fi
81ecdfbb 4546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4547fi
81ecdfbb
RW
4548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4549 ac_c_werror_flag=$ac_save_c_werror_flag
4550fi
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4552$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4553if test "$ac_test_CFLAGS" = set; then
c6b750e1 4554 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4555elif test $ac_cv_prog_cc_g = yes; then
4556 if test "$GCC" = yes; then
4557 CFLAGS="-g -O2"
4558 else
4559 CFLAGS="-g"
4560 fi
4561else
4562 if test "$GCC" = yes; then
4563 CFLAGS="-O2"
4564 else
4565 CFLAGS=
4566 fi
4567fi
81ecdfbb
RW
4568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4569$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4570if test "${ac_cv_prog_cc_c89+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
c6b750e1 4572else
81ecdfbb 4573 ac_cv_prog_cc_c89=no
c6b750e1 4574ac_save_CC=$CC
81ecdfbb 4575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4576/* end confdefs.h. */
4577#include <stdarg.h>
4578#include <stdio.h>
4579#include <sys/types.h>
4580#include <sys/stat.h>
4581/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4582struct buf { int x; };
4583FILE * (*rcsopen) (struct buf *, struct stat *, int);
4584static char *e (p, i)
4585 char **p;
4586 int i;
4587{
4588 return p[i];
4589}
4590static char *f (char * (*g) (char **, int), char **p, ...)
4591{
4592 char *s;
4593 va_list v;
4594 va_start (v,p);
4595 s = g (p, va_arg (v,int));
4596 va_end (v);
4597 return s;
4598}
4599
4600/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4601 function prototypes and stuff, but not '\xHH' hex character constants.
4602 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4603 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4604 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4605 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4606 that's true only with -std. */
c6b750e1
DJ
4607int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4608
81ecdfbb
RW
4609/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4610 inside strings and character constants. */
4611#define FOO(x) 'x'
4612int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4613
c6b750e1
DJ
4614int test (int i, double x);
4615struct s1 {int (*f) (int a);};
4616struct s2 {int (*f) (double a);};
4617int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4618int argc;
4619char **argv;
4620int
4621main ()
4622{
4623return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4624 ;
4625 return 0;
4626}
4627_ACEOF
81ecdfbb
RW
4628for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4629 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4630do
4631 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4634fi
81ecdfbb
RW
4635rm -f core conftest.err conftest.$ac_objext
4636 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4637done
81ecdfbb 4638rm -f conftest.$ac_ext
c6b750e1
DJ
4639CC=$ac_save_CC
4640
4641fi
81ecdfbb
RW
4642# AC_CACHE_VAL
4643case "x$ac_cv_prog_cc_c89" in
4644 x)
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4646$as_echo "none needed" >&6; } ;;
4647 xno)
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4649$as_echo "unsupported" >&6; } ;;
c6b750e1 4650 *)
81ecdfbb
RW
4651 CC="$CC $ac_cv_prog_cc_c89"
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4653$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4654esac
81ecdfbb 4655if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4656
c6b750e1
DJ
4657fi
4658
c6b750e1
DJ
4659ac_ext=c
4660ac_cpp='$CPP $CPPFLAGS'
4661ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4662ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4663ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4664
81ecdfbb 4665ac_ext=cpp
18f6b6ee
PB
4666ac_cpp='$CXXCPP $CPPFLAGS'
4667ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4670if test -z "$CXX"; then
4671 if test -n "$CCC"; then
4672 CXX=$CCC
4673 else
4674 if test -n "$ac_tool_prefix"; then
4675 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4676 do
4677 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4678set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4680$as_echo_n "checking for $ac_word... " >&6; }
4681if test "${ac_cv_prog_CXX+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4683else
4684 if test -n "$CXX"; then
4685 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4686else
4687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688for as_dir in $PATH
4689do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4694 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4696 break 2
4697 fi
4698done
81ecdfbb
RW
4699 done
4700IFS=$as_save_IFS
512b7dfb 4701
18f6b6ee
PB
4702fi
4703fi
4704CXX=$ac_cv_prog_CXX
4705if test -n "$CXX"; then
81ecdfbb
RW
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4707$as_echo "$CXX" >&6; }
18f6b6ee 4708else
81ecdfbb
RW
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710$as_echo "no" >&6; }
18f6b6ee
PB
4711fi
4712
81ecdfbb 4713
18f6b6ee
PB
4714 test -n "$CXX" && break
4715 done
4716fi
4717if test -z "$CXX"; then
4718 ac_ct_CXX=$CXX
81ecdfbb 4719 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4720do
4721 # Extract the first word of "$ac_prog", so it can be a program name with args.
4722set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724$as_echo_n "checking for $ac_word... " >&6; }
4725if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4727else
4728 if test -n "$ac_ct_CXX"; then
4729 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4730else
4731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732for as_dir in $PATH
4733do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4738 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4740 break 2
512b7dfb 4741 fi
18f6b6ee 4742done
81ecdfbb
RW
4743 done
4744IFS=$as_save_IFS
512b7dfb 4745
18f6b6ee
PB
4746fi
4747fi
4748ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4749if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4751$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4752else
81ecdfbb
RW
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754$as_echo "no" >&6; }
18f6b6ee
PB
4755fi
4756
81ecdfbb 4757
18f6b6ee
PB
4758 test -n "$ac_ct_CXX" && break
4759done
18f6b6ee 4760
81ecdfbb
RW
4761 if test "x$ac_ct_CXX" = x; then
4762 CXX="g++"
4763 else
4764 case $cross_compiling:$ac_tool_warned in
4765yes:)
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4768ac_tool_warned=yes ;;
4769esac
4770 CXX=$ac_ct_CXX
4771 fi
18f6b6ee
PB
4772fi
4773
81ecdfbb
RW
4774 fi
4775fi
18f6b6ee 4776# Provide some information about the compiler.
81ecdfbb
RW
4777$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4778set X $ac_compile
4779ac_compiler=$2
4780for ac_option in --version -v -V -qversion; do
4781 { { ac_try="$ac_compiler $ac_option >&5"
4782case "(($ac_try" in
4783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4784 *) ac_try_echo=$ac_try;;
4785esac
4786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4787$as_echo "$ac_try_echo"; } >&5
4788 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4789 ac_status=$?
81ecdfbb
RW
4790 if test -s conftest.err; then
4791 sed '10a\
4792... rest of stderr output deleted ...
4793 10q' conftest.err >conftest.er1
4794 cat conftest.er1 >&5
4795 rm -f conftest.er1 conftest.err
4796 fi
4797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4798 test $ac_status = 0; }
4799done
18f6b6ee 4800
81ecdfbb
RW
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4802$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4803if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
18f6b6ee 4805else
81ecdfbb 4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4807/* end confdefs.h. */
4808
4809int
4810main ()
4811{
4812#ifndef __GNUC__
4813 choke me
4814#endif
4815
4816 ;
4817 return 0;
4818}
4819_ACEOF
81ecdfbb 4820if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4821 ac_compiler_gnu=yes
4822else
81ecdfbb 4823 ac_compiler_gnu=no
18f6b6ee 4824fi
81ecdfbb 4825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4826ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4827
4828fi
81ecdfbb
RW
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4830$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4831if test $ac_compiler_gnu = yes; then
4832 GXX=yes
4833else
4834 GXX=
4835fi
18f6b6ee
PB
4836ac_test_CXXFLAGS=${CXXFLAGS+set}
4837ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4839$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4840if test "${ac_cv_prog_cxx_g+set}" = set; then :
4841 $as_echo_n "(cached) " >&6
4842else
4843 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4844 ac_cxx_werror_flag=yes
4845 ac_cv_prog_cxx_g=no
4846 CXXFLAGS="-g"
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4848/* end confdefs.h. */
4849
4850int
4851main ()
4852{
4853
4854 ;
4855 return 0;
4856}
4857_ACEOF
81ecdfbb 4858if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4859 ac_cv_prog_cxx_g=yes
4860else
81ecdfbb
RW
4861 CXXFLAGS=""
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4863/* end confdefs.h. */
81ecdfbb 4864
18f6b6ee
PB
4865int
4866main ()
4867{
81ecdfbb 4868
18f6b6ee
PB
4869 ;
4870 return 0;
4871}
4872_ACEOF
81ecdfbb 4873if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4874
81ecdfbb
RW
4875else
4876 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4877 CXXFLAGS="-g"
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4879/* end confdefs.h. */
81ecdfbb 4880
18f6b6ee
PB
4881int
4882main ()
4883{
81ecdfbb 4884
18f6b6ee
PB
4885 ;
4886 return 0;
4887}
4888_ACEOF
81ecdfbb
RW
4889if ac_fn_cxx_try_compile "$LINENO"; then :
4890 ac_cv_prog_cxx_g=yes
18f6b6ee 4891fi
81ecdfbb
RW
4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893fi
4894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895fi
4896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4898fi
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4900$as_echo "$ac_cv_prog_cxx_g" >&6; }
4901if test "$ac_test_CXXFLAGS" = set; then
4902 CXXFLAGS=$ac_save_CXXFLAGS
4903elif test $ac_cv_prog_cxx_g = yes; then
4904 if test "$GXX" = yes; then
4905 CXXFLAGS="-g -O2"
4906 else
4907 CXXFLAGS="-g"
4908 fi
4909else
4910 if test "$GXX" = yes; then
4911 CXXFLAGS="-O2"
4912 else
4913 CXXFLAGS=
4914 fi
18f6b6ee 4915fi
18f6b6ee
PB
4916ac_ext=c
4917ac_cpp='$CPP $CPPFLAGS'
4918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920ac_compiler_gnu=$ac_cv_c_compiler_gnu
4921
4922
4923# We must set the default linker to the linker used by gcc for the correct
4924# operation of libtool. If LD is not defined and we are using gcc, try to
4925# set the LD default to the ld used by gcc.
4926if test -z "$LD"; then
4927 if test "$GCC" = yes; then
4928 case $build in
4929 *-*-mingw*)
4930 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4931 *)
4932 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4933 esac
4934 case $gcc_prog_ld in
4935 # Accept absolute paths.
4936 [\\/]* | [A-Za-z]:[\\/]*)
4937 LD="$gcc_prog_ld" ;;
4938 esac
4939 fi
512b7dfb
PB
4940fi
4941
b3676d82
EB
4942# Check whether -static-libstdc++ -static-libgcc is supported.
4943have_static_libs=no
4944if test "$GCC" = yes; then
4945 saved_LDFLAGS="$LDFLAGS"
4946
4947 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
4949$as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
4950 ac_ext=cpp
4951ac_cpp='$CXXCPP $CPPFLAGS'
4952ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4953ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4954ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4955
4956
4957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958/* end confdefs.h. */
a882be68
EB
4959
4960#if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
4961#error -static-libstdc++ not implemented
4962#endif
b3676d82
EB
4963int main() {}
4964_ACEOF
4965if ac_fn_cxx_try_link "$LINENO"; then :
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4967$as_echo "yes" >&6; }; have_static_libs=yes
4968else
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970$as_echo "no" >&6; }
4971fi
4972rm -f core conftest.err conftest.$ac_objext \
4973 conftest$ac_exeext conftest.$ac_ext
4974 ac_ext=c
4975ac_cpp='$CPP $CPPFLAGS'
4976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4978ac_compiler_gnu=$ac_cv_c_compiler_gnu
4979
4980
4981 LDFLAGS="$saved_LDFLAGS"
4982fi
4983
512b7dfb
PB
4984
4985
4986
c6b750e1 4987if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4988 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4989set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991$as_echo_n "checking for $ac_word... " >&6; }
4992if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4993 $as_echo_n "(cached) " >&6
9e07f89d 4994else
512b7dfb
PB
4995 if test -n "$GNATBIND"; then
4996 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4997else
c6b750e1
DJ
4998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999for as_dir in $PATH
5000do
5001 IFS=$as_save_IFS
5002 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5003 for ac_exec_ext in '' $ac_executable_extensions; do
5004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5005 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 5006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5007 break 2
5008 fi
5009done
81ecdfbb
RW
5010 done
5011IFS=$as_save_IFS
c6b750e1 5012
9e07f89d
NN
5013fi
5014fi
512b7dfb
PB
5015GNATBIND=$ac_cv_prog_GNATBIND
5016if test -n "$GNATBIND"; then
81ecdfbb
RW
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5018$as_echo "$GNATBIND" >&6; }
9e07f89d 5019else
81ecdfbb
RW
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021$as_echo "no" >&6; }
9e07f89d
NN
5022fi
5023
81ecdfbb 5024
c6b750e1 5025fi
512b7dfb
PB
5026if test -z "$ac_cv_prog_GNATBIND"; then
5027 ac_ct_GNATBIND=$GNATBIND
5028 # Extract the first word of "gnatbind", so it can be a program name with args.
5029set dummy gnatbind; ac_word=$2
81ecdfbb
RW
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031$as_echo_n "checking for $ac_word... " >&6; }
5032if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
9e07f89d 5034else
512b7dfb
PB
5035 if test -n "$ac_ct_GNATBIND"; then
5036 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 5037else
c6b750e1
DJ
5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5045 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 5046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
5047 break 2
5048 fi
5049done
81ecdfbb
RW
5050 done
5051IFS=$as_save_IFS
c6b750e1 5052
9e07f89d
NN
5053fi
5054fi
512b7dfb
PB
5055ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5056if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5058$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 5059else
81ecdfbb
RW
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061$as_echo "no" >&6; }
9e07f89d
NN
5062fi
5063
81ecdfbb
RW
5064 if test "x$ac_ct_GNATBIND" = x; then
5065 GNATBIND="no"
5066 else
5067 case $cross_compiling:$ac_tool_warned in
5068yes:)
5069{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071ac_tool_warned=yes ;;
5072esac
5073 GNATBIND=$ac_ct_GNATBIND
5074 fi
24ff9987 5075else
512b7dfb 5076 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5077fi
5078
7df2cd5d 5079if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5080 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5081set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083$as_echo_n "checking for $ac_word... " >&6; }
5084if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
7df2cd5d 5086else
512b7dfb
PB
5087 if test -n "$GNATMAKE"; then
5088 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5089else
5090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091for as_dir in $PATH
5092do
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5097 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5099 break 2
5100 fi
5101done
81ecdfbb
RW
5102 done
5103IFS=$as_save_IFS
7df2cd5d
PB
5104
5105fi
5106fi
512b7dfb
PB
5107GNATMAKE=$ac_cv_prog_GNATMAKE
5108if test -n "$GNATMAKE"; then
81ecdfbb
RW
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5110$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5111else
81ecdfbb
RW
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113$as_echo "no" >&6; }
7df2cd5d
PB
5114fi
5115
81ecdfbb 5116
7df2cd5d 5117fi
512b7dfb
PB
5118if test -z "$ac_cv_prog_GNATMAKE"; then
5119 ac_ct_GNATMAKE=$GNATMAKE
5120 # Extract the first word of "gnatmake", so it can be a program name with args.
5121set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123$as_echo_n "checking for $ac_word... " >&6; }
5124if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
7df2cd5d 5126else
512b7dfb
PB
5127 if test -n "$ac_ct_GNATMAKE"; then
5128 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5129else
5130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5131for as_dir in $PATH
5132do
5133 IFS=$as_save_IFS
5134 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5137 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5139 break 2
5140 fi
5141done
81ecdfbb
RW
5142 done
5143IFS=$as_save_IFS
7df2cd5d 5144
7df2cd5d
PB
5145fi
5146fi
512b7dfb
PB
5147ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5148if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5150$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5151else
81ecdfbb
RW
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153$as_echo "no" >&6; }
7df2cd5d
PB
5154fi
5155
81ecdfbb
RW
5156 if test "x$ac_ct_GNATMAKE" = x; then
5157 GNATMAKE="no"
5158 else
5159 case $cross_compiling:$ac_tool_warned in
5160yes:)
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5162$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163ac_tool_warned=yes ;;
5164esac
5165 GNATMAKE=$ac_ct_GNATMAKE
5166 fi
7df2cd5d 5167else
512b7dfb 5168 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5169fi
5170
81ecdfbb
RW
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5172$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5173if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
9e07f89d
NN
5175else
5176 cat >conftest.adb <<EOF
5177procedure conftest is begin null; end conftest;
5178EOF
5179acx_cv_cc_gcc_supports_ada=no
5180# There is a bug in old released versions of GCC which causes the
5181# driver to exit successfully when the appropriate language module
5182# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5183# Therefore we must check for the error message as well as an
5184# unsuccessful exit.
b8908782
DD
5185# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5186# given a .adb file, but produce no object file. So we must check
5187# if an object file was really produced to guard against this.
9e07f89d 5188errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5189if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5190 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5191fi
5192rm -f conftest.*
5193fi
81ecdfbb
RW
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5195$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5196
64b986c0 5197if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5198 have_gnat=yes
5199else
5200 have_gnat=no
5201fi
5202
81ecdfbb
RW
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5204$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5205if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
b8908782
DD
5207else
5208 echo abfoo >t1
5209 echo cdfoo >t2
5210 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5211 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5212 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5213 :
5214 else
5215 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5216 fi
5217 fi
b8908782
DD
5218 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5219 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5220 :
b8908782
DD
5221 else
5222 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5223 fi
5224 fi
5225 rm t1 t2
5226
5227fi
81ecdfbb
RW
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5229$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5230do_compare="$gcc_cv_prog_cmp_skip"
5231
5232
9e07f89d 5233
ffdd6afc
ILT
5234# Check whether --enable-bootstrap was given.
5235if test "${enable_bootstrap+set}" = set; then :
5236 enableval=$enable_bootstrap;
5237else
5238 enable_bootstrap=default
5239fi
5240
5241
5242# Issue errors and warnings for invalid/strange bootstrap combinations.
5243if test -r $srcdir/gcc/configure; then
5244 have_compiler=yes
5245else
5246 have_compiler=no
5247fi
5248
5249case "$have_compiler:$host:$target:$enable_bootstrap" in
5250 *:*:*:no) ;;
5251
5252 # Default behavior. Enable bootstrap if we have a compiler
5253 # and we are in a native configuration.
5254 yes:$build:$build:default)
5255 enable_bootstrap=yes ;;
5256
5257 *:*:*:default)
5258 enable_bootstrap=no ;;
5259
5260 # We have a compiler and we are in a native configuration, bootstrap is ok
5261 yes:$build:$build:yes)
5262 ;;
5263
5264 # Other configurations, but we have a compiler. Assume the user knows
5265 # what he's doing.
5266 yes:*:*:yes)
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5268$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5269 ;;
5270
5271 # No compiler: if they passed --enable-bootstrap explicitly, fail
5272 no:*:*:yes)
5273 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5274
5275 # Fail if wrong command line
5276 *)
5277 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5278 ;;
5279esac
5280
d5f2ee2e
KG
5281# Used for setting $lt_cv_objdir
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5283$as_echo_n "checking for objdir... " >&6; }
5284if test "${lt_cv_objdir+set}" = set; then :
5285 $as_echo_n "(cached) " >&6
5286else
5287 rm -f .libs 2>/dev/null
5288mkdir .libs 2>/dev/null
5289if test -d .libs; then
5290 lt_cv_objdir=.libs
5291else
5292 # MS-DOS does not allow filenames that begin with a dot.
5293 lt_cv_objdir=_libs
5294fi
5295rmdir .libs 2>/dev/null
5296fi
5297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5298$as_echo "$lt_cv_objdir" >&6; }
5299objdir=$lt_cv_objdir
5300
5301
5302
5303
5304
5305cat >>confdefs.h <<_ACEOF
5306#define LT_OBJDIR "$lt_cv_objdir/"
5307_ACEOF
5308
5309
5310
e8a5fa9c 5311# Check for GMP, MPFR and MPC
d9b76ff9 5312gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5313gmpinc=
4b900473 5314have_gmp=no
e8a5fa9c
RW
5315
5316# Specify a location for mpc
5317# check for this first so it ends up on the link line before mpfr.
5318
81ecdfbb
RW
5319# Check whether --with-mpc was given.
5320if test "${with_mpc+set}" = set; then :
5321 withval=$with_mpc;
5322fi
e8a5fa9c 5323
e8a5fa9c 5324
e552509b 5325# Check whether --with-mpc-include was given.
81ecdfbb
RW
5326if test "${with_mpc_include+set}" = set; then :
5327 withval=$with_mpc_include;
5328fi
e8a5fa9c 5329
e8a5fa9c 5330
e552509b 5331# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5332if test "${with_mpc_lib+set}" = set; then :
5333 withval=$with_mpc_lib;
5334fi
e8a5fa9c 5335
e8a5fa9c
RW
5336
5337if test "x$with_mpc" != x; then
d9b76ff9
KG
5338 gmplibs="-L$with_mpc/lib $gmplibs"
5339 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5340fi
5341if test "x$with_mpc_include" != x; then
d9b76ff9 5342 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5343fi
5344if test "x$with_mpc_lib" != x; then
d9b76ff9 5345 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5346fi
5347if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5348 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5349 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5350 # Do not test the mpc version. Assume that it is sufficient, since
5351 # it is in the source tree, and the library has not been built yet
5352 # but it would be included on the link line in the version check below
5353 # hence making the test fail.
d9b76ff9 5354 have_gmp=yes
e8a5fa9c 5355fi
4b900473 5356
11b04d1f
DD
5357# Specify a location for mpfr
5358# check for this first so it ends up on the link line before gmp.
c6b750e1 5359
81ecdfbb
RW
5360# Check whether --with-mpfr-dir was given.
5361if test "${with_mpfr_dir+set}" = set; then :
5362 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5363Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5364fi
5365
11b04d1f
DD
5366
5367
81ecdfbb
RW
5368# Check whether --with-mpfr was given.
5369if test "${with_mpfr+set}" = set; then :
5370 withval=$with_mpfr;
5371fi
c6b750e1 5372
11b04d1f 5373
e552509b 5374# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5375if test "${with_mpfr_include+set}" = set; then :
5376 withval=$with_mpfr_include;
5377fi
c6b750e1 5378
8a0d8a5c 5379
e552509b 5380# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5381if test "${with_mpfr_lib+set}" = set; then :
5382 withval=$with_mpfr_lib;
5383fi
8a0d8a5c 5384
11b04d1f
DD
5385
5386if test "x$with_mpfr" != x; then
5387 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5388 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5389fi
8a0d8a5c 5390if test "x$with_mpfr_include" != x; then
d9b76ff9 5391 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5392fi
5393if test "x$with_mpfr_lib" != x; then
5394 gmplibs="-L$with_mpfr_lib $gmplibs"
5395fi
4b900473 5396if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
58b1dd21
NC
5397 # MPFR v3.1.0 moved the sources into a src sub-directory.
5398 if test -d ${srcdir}/mpfr/src; then
5399 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
5400 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
5401 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
5402 else
5403 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
5404 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
5405 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
5406 fi
4b900473
PB
5407 # Do not test the mpfr version. Assume that it is sufficient, since
5408 # it is in the source tree, and the library has not been built yet
5409 # but it would be included on the link line in the version check below
5410 # hence making the test fail.
5411 have_gmp=yes
5412fi
11b04d1f 5413
4b1cb4fe 5414# Specify a location for gmp
c6b750e1 5415
81ecdfbb
RW
5416# Check whether --with-gmp-dir was given.
5417if test "${with_gmp_dir+set}" = set; then :
5418 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5419Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5420fi
5421
4b1cb4fe
DD
5422
5423
81ecdfbb
RW
5424# Check whether --with-gmp was given.
5425if test "${with_gmp+set}" = set; then :
5426 withval=$with_gmp;
5427fi
c6b750e1 5428
4b1cb4fe 5429
e552509b 5430# Check whether --with-gmp-include was given.
81ecdfbb
RW
5431if test "${with_gmp_include+set}" = set; then :
5432 withval=$with_gmp_include;
5433fi
c6b750e1 5434
8a0d8a5c 5435
e552509b 5436# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5437if test "${with_gmp_lib+set}" = set; then :
5438 withval=$with_gmp_lib;
5439fi
8a0d8a5c
PB
5440
5441
4b1cb4fe 5442
11b04d1f
DD
5443if test "x$with_gmp" != x; then
5444 gmplibs="-L$with_gmp/lib $gmplibs"
5445 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5446fi
8a0d8a5c
PB
5447if test "x$with_gmp_include" != x; then
5448 gmpinc="-I$with_gmp_include $gmpinc"
5449fi
5450if test "x$with_gmp_lib" != x; then
5451 gmplibs="-L$with_gmp_lib $gmplibs"
5452fi
4b900473 5453if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5454 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5455 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5456 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5457 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7ec59b9e 5458 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5459 # Do not test the gmp version. Assume that it is sufficient, since
5460 # it is in the source tree, and the library has not been built yet
5461 # but it would be included on the link line in the version check below
5462 # hence making the test fail.
5463 have_gmp=yes
5464fi
4b1cb4fe 5465
ceb92e78 5466if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5467 have_gmp=yes
5468 saved_CFLAGS="$CFLAGS"
5469 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5470 # Check for the recommended and required versions of GMP.
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5472$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5473
5474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5475/* end confdefs.h. */
5476#include "gmp.h"
5477int
5478main ()
5479{
5480
5481 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5482 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8e71395b 5483 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
a6b5846e
KG
5484 choke me
5485 #endif
5486
5487 ;
5488 return 0;
5489}
5490_ACEOF
5491if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5493/* end confdefs.h. */
a6b5846e 5494#include <gmp.h>
c6b750e1
DJ
5495int
5496main ()
5497{
4b1cb4fe 5498
a6b5846e
KG
5499 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5500 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5501 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5502 choke me
5503 #endif
c6b750e1
DJ
5504
5505 ;
5506 return 0;
5507}
5508_ACEOF
81ecdfbb
RW
5509if ac_fn_c_try_compile "$LINENO"; then :
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5511$as_echo "yes" >&6; }
a6b5846e
KG
5512else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5514$as_echo "buggy but acceptable" >&6; }
5515fi
5516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5517else
81ecdfbb
RW
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5520fi
81ecdfbb 5521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5522
e8a5fa9c 5523 # If we have GMP, check the MPFR version.
4b900473 5524 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5525 # Check for the recommended and required versions of MPFR.
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5527$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5529/* end confdefs.h. */
9b134994 5530#include <gmp.h>
4b900473 5531 #include <mpfr.h>
c6b750e1
DJ
5532int
5533main ()
5534{
9b134994 5535
7ec59b9e 5536 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,0)
4b900473
PB
5537 choke me
5538 #endif
c6b750e1
DJ
5539
5540 ;
5541 return 0;
5542}
5543_ACEOF
81ecdfbb
RW
5544if ac_fn_c_try_compile "$LINENO"; then :
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5546/* end confdefs.h. */
4b1cb4fe 5547#include <gmp.h>
4b900473 5548 #include <mpfr.h>
c6b750e1
DJ
5549int
5550main ()
5551{
9dbaa842 5552
a6b5846e 5553 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5554 choke me
5555 #endif
e8a5fa9c
RW
5556
5557 ;
5558 return 0;
5559}
5560_ACEOF
81ecdfbb
RW
5561if ac_fn_c_try_compile "$LINENO"; then :
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5563$as_echo "yes" >&6; }
e8a5fa9c 5564else
81ecdfbb
RW
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5566$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5567fi
81ecdfbb 5568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5569else
81ecdfbb
RW
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5572fi
81ecdfbb 5573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5574 fi
5575
5576 # Check for the MPC header version.
d9b76ff9 5577 if test x"$have_gmp" = xyes ; then
a6b5846e 5578 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5580$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5582/* end confdefs.h. */
5583#include <mpc.h>
5584int
5585main ()
5586{
5587
a6b5846e
KG
5588 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5589 choke me
5590 #endif
5591
5592 ;
5593 return 0;
5594}
5595_ACEOF
5596if ac_fn_c_try_compile "$LINENO"; then :
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598/* end confdefs.h. */
5599#include <mpc.h>
5600int
5601main ()
5602{
5603
5604 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5605 choke me
5606 #endif
5607
5608 ;
5609 return 0;
5610}
5611_ACEOF
81ecdfbb
RW
5612if ac_fn_c_try_compile "$LINENO"; then :
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5614$as_echo "yes" >&6; }
a6b5846e
KG
5615else
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5617$as_echo "buggy but acceptable" >&6; }
5618fi
5619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5620else
81ecdfbb 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5622$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5623fi
81ecdfbb 5624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5625 fi
5626
5627 # Now check the MPFR library.
5628 if test x"$have_gmp" = xyes; then
5629 saved_LIBS="$LIBS"
5630 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5632$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5634/* end confdefs.h. */
d9b76ff9 5635#include <mpc.h>
e8a5fa9c
RW
5636int
5637main ()
5638{
5639
5640 mpfr_t n;
5641 mpfr_t x;
d9b76ff9 5642 mpc_t c;
e8a5fa9c
RW
5643 int t;
5644 mpfr_init (n);
5645 mpfr_init (x);
5646 mpfr_atan2 (n, n, x, GMP_RNDN);
5647 mpfr_erfc (n, x, GMP_RNDN);
5648 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5649 mpfr_clear(n);
5650 mpfr_clear(x);
5651 mpc_init2 (c, 53);
5652 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5653 mpc_cosh (c, c, MPC_RNDNN);
5654 mpc_pow (c, c, c, MPC_RNDNN);
5655 mpc_acosh (c, c, MPC_RNDNN);
5656 mpc_clear (c);
c6b750e1
DJ
5657
5658 ;
5659 return 0;
5660}
5661_ACEOF
81ecdfbb
RW
5662if ac_fn_c_try_link "$LINENO"; then :
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5664$as_echo "yes" >&6; }
c6b750e1 5665else
81ecdfbb
RW
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5667$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5668fi
81ecdfbb
RW
5669rm -f core conftest.err conftest.$ac_objext \
5670 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5671 LIBS="$saved_LIBS"
5672 fi
5673
4b900473 5674 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5675
a6b5846e
KG
5676# The library versions listed in the error message below should match
5677# the HARD-minimums enforced above.
4b900473 5678 if test x$have_gmp != xyes; then
7ec59b9e 5679 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
d9b76ff9
KG
5680Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5681their locations. Source code for these libraries can be found at
5682their respective hosting sites as well as at
5683ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5684http://gcc.gnu.org/install/prerequisites.html for additional info. If
5685you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5686make sure that you have installed both the libraries and the header
5687files. They may be located in separate packages." "$LINENO" 5
4b900473 5688 fi
9dbaa842
DD
5689fi
5690
e8a5fa9c
RW
5691# Flags needed for both GMP, MPFR and/or MPC.
5692
5693
5694
4b1cb4fe
DD
5695
5696
5697
7ec59b9e 5698
29383458
JM
5699# Allow host libstdc++ to be specified for static linking with PPL.
5700
81ecdfbb
RW
5701# Check whether --with-host-libstdcxx was given.
5702if test "${with_host_libstdcxx+set}" = set; then :
5703 withval=$with_host_libstdcxx;
5704fi
29383458 5705
29383458
JM
5706
5707case $with_host_libstdcxx in
5708 no|yes)
81ecdfbb 5709 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5710 ;;
5711esac
e28c595f 5712
b3676d82 5713# Libraries to use for stage1 or when not bootstrapping.
e8a5fa9c 5714
b3676d82
EB
5715# Check whether --with-stage1-libs was given.
5716if test "${with_stage1_libs+set}" = set; then :
5717 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
5718 stage1_libs=
e8a5fa9c 5719 else
b3676d82 5720 stage1_libs=$withval
e8a5fa9c
RW
5721 fi
5722else
b3676d82 5723 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5724fi
5725
e8a5fa9c
RW
5726
5727
b3676d82 5728# Linker flags to use for stage1 or when not bootstrapping.
e8a5fa9c 5729
b3676d82
EB
5730# Check whether --with-stage1-ldflags was given.
5731if test "${with_stage1_ldflags+set}" = set; then :
5732 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5733 stage1_ldflags=
e8a5fa9c 5734 else
b3676d82 5735 stage1_ldflags=$withval
e8a5fa9c
RW
5736 fi
5737else
b3676d82
EB
5738 stage1_ldflags=
5739 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
5740 # if supported. But if the user explicitly specified the libraries to use,
5741 # trust that they are doing what they want.
5742 if test "$stage1_libs" = "" -a "$have_static_libs" = yes; then
5743 stage1_ldflags="-static-libstdc++ -static-libgcc"
5744 fi
81ecdfbb
RW
5745fi
5746
e8a5fa9c
RW
5747
5748
e8a5fa9c
RW
5749# Libraries to use for stage2 and later builds. This defaults to the
5750# argument passed to --with-host-libstdcxx.
5751
81ecdfbb
RW
5752# Check whether --with-boot-libs was given.
5753if test "${with_boot_libs+set}" = set; then :
5754 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5755 poststage1_libs=
5756 else
5757 poststage1_libs=$withval
5758 fi
5759else
5760 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5761fi
5762
e8a5fa9c
RW
5763
5764
143754cd
NC
5765# Linker flags to use for stage2 and later builds.
5766
5767# Check whether --with-boot-ldflags was given.
5768if test "${with_boot_ldflags+set}" = set; then :
5769 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5770 poststage1_ldflags=
5771 else
5772 poststage1_ldflags=$withval
5773 fi
5774else
5775 poststage1_ldflags=
4f11b223
ILT
5776 # In stages 2 and 3, default to linking libstdc++ and libgcc
5777 # statically. But if the user explicitly specified the libraries to
5778 # use, trust that they are doing what they want.
5779 if test "$poststage1_libs" = ""; then
143754cd
NC
5780 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5781 fi
5782fi
5783
5784
5785
8e71395b
L
5786# GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5787# Basic setup is inlined here, actual checks are in config/cloog.m4 and
5788# config/isl.m4
5789
5790
5791# Check whether --with-cloog was given.
5792if test "${with_cloog+set}" = set; then :
5793 withval=$with_cloog;
5794fi
e28c595f
JM
5795
5796
7ec59b9e
L
5797# Check whether --with-isl was given.
5798if test "${with_isl+set}" = set; then :
5799 withval=$with_isl;
81ecdfbb 5800fi
e28c595f 5801
e28c595f 5802
8e71395b
L
5803# Treat either --without-cloog or --without-isl as a request to disable
5804# GRAPHITE support and skip all following checks.
5805if test "x$with_isl" != "xno" &&
5806 test "x$with_cloog" != "xno"; then
5807 # Check for ISL
5808
5809
7ec59b9e
L
5810# Check whether --with-isl-include was given.
5811if test "${with_isl_include+set}" = set; then :
5812 withval=$with_isl_include;
81ecdfbb
RW
5813fi
5814
e28c595f 5815
7ec59b9e
L
5816# Check whether --with-isl-lib was given.
5817if test "${with_isl_lib+set}" = set; then :
5818 withval=$with_isl_lib;
81ecdfbb 5819fi
e28c595f 5820
e28c595f 5821
7ec59b9e
L
5822 # Check whether --enable-isl-version-check was given.
5823if test "${enable_isl_version_check+set}" = set; then :
5824 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
5825else
5826 ENABLE_ISL_CHECK=yes
b123da99
SP
5827fi
5828
5829
7ec59b9e
L
5830 # Initialize isllibs and islinc.
5831 case $with_isl in
5832 no)
5833 isllibs=
5834 islinc=
5835 ;;
5836 "" | yes)
5837 ;;
5838 *)
5839 isllibs="-L$with_isl/lib"
5840 islinc="-I$with_isl/include"
5841 ;;
5842 esac
5843 if test "x${with_isl_include}" != x ; then
5844 islinc="-I$with_isl_include"
5845 fi
5846 if test "x${with_isl_lib}" != x; then
5847 isllibs="-L$with_isl_lib"
5848 fi
5849 if test "x${islinc}" = x && test "x${isllibs}" = x \
5850 && test -d ${srcdir}/isl; then
5851 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
5852 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
5853 ENABLE_ISL_CHECK=no
3dae1673
JBG
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree ISL, disabling version check" >&5
5855$as_echo "$as_me: WARNING: using in-tree ISL, disabling version check" >&2;}
7ec59b9e 5856 fi
b123da99 5857
b123da99 5858
e28c595f 5859
7ec59b9e
L
5860 if test "${ENABLE_ISL_CHECK}" = yes ; then
5861 _isl_saved_CFLAGS=$CFLAGS
5862 _isl_saved_LDFLAGS=$LDFLAGS
5863 _isl_saved_LIBS=$LIBS
5864
5865 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5866 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5867 LIBS="${_isl_saved_LIBS} -lisl"
7ec59b9e
L
5868
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 of ISL" >&5
5870$as_echo_n "checking for version 0.10 of ISL... " >&6; }
3dae1673 5871 if test "$cross_compiling" = yes; then :
7ec59b9e
L
5872 gcc_cv_isl=yes
5873else
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b123da99 5875/* end confdefs.h. */
7ec59b9e
L
5876#include <isl/version.h>
5877 #include <string.h>
b123da99
SP
5878int
5879main ()
5880{
7ec59b9e
L
5881if (strncmp (isl_version (), "isl-0.10", strlen ("isl-0.10")) != 0)
5882 return 1;
5883
b123da99
SP
5884 ;
5885 return 0;
5886}
5887_ACEOF
7ec59b9e
L
5888if ac_fn_c_try_run "$LINENO"; then :
5889 gcc_cv_isl=yes
e28c595f 5890else
7ec59b9e 5891 gcc_cv_isl=no
b123da99 5892fi
7ec59b9e
L
5893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5894 conftest.$ac_objext conftest.beam conftest.$ac_ext
b123da99 5895fi
7ec59b9e 5896
3dae1673
JBG
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5898$as_echo "$gcc_cv_isl" >&6; }
5899
5900 CFLAGS=$_isl_saved_CFLAGS
5901 LDFLAGS=$_isl_saved_LDFLAGS
5902 LIBS=$_isl_saved_LIBS
5903 fi
5904
5905
5906 if test "${gcc_cv_isl}" = no ; then
5907
5908 if test "${ENABLE_ISL_CHECK}" = yes ; then
5909 _isl_saved_CFLAGS=$CFLAGS
5910 _isl_saved_LDFLAGS=$LDFLAGS
5911 _isl_saved_LIBS=$LIBS
5912
5913 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5914 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5915 LIBS="${_isl_saved_LIBS} -lisl"
3dae1673
JBG
5916
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 of ISL" >&5
5918$as_echo_n "checking for version 0.11 of ISL... " >&6; }
5919 if test "$cross_compiling" = yes; then :
5920 gcc_cv_isl=yes
5921else
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923/* end confdefs.h. */
5924#include <isl/version.h>
5925 #include <string.h>
5926int
5927main ()
5928{
5929if (strncmp (isl_version (), "isl-0.11", strlen ("isl-0.11")) != 0)
5930 return 1;
5931
5932 ;
5933 return 0;
5934}
5935_ACEOF
5936if ac_fn_c_try_run "$LINENO"; then :
5937 gcc_cv_isl=yes
5938else
5939 gcc_cv_isl=no
5940fi
5941rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5942 conftest.$ac_objext conftest.beam conftest.$ac_ext
81ecdfbb 5943fi
3dae1673
JBG
5944
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
7ec59b9e 5946$as_echo "$gcc_cv_isl" >&6; }
81ecdfbb 5947
7ec59b9e
L
5948 CFLAGS=$_isl_saved_CFLAGS
5949 LDFLAGS=$_isl_saved_LDFLAGS
5950 LIBS=$_isl_saved_LIBS
b123da99 5951 fi
e28c595f 5952
b123da99 5953
b3fc79f8
JBG
5954 if test "${gcc_cv_isl}" = no ; then
5955
5956 if test "${ENABLE_ISL_CHECK}" = yes ; then
5957 _isl_saved_CFLAGS=$CFLAGS
5958 _isl_saved_LDFLAGS=$LDFLAGS
5959 _isl_saved_LIBS=$LIBS
5960
5961 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
5962 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs}"
5963 LIBS="${_isl_saved_LIBS} -lisl"
5964
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.12 of ISL" >&5
5966$as_echo_n "checking for version 0.12 of ISL... " >&6; }
5967 if test "$cross_compiling" = yes; then :
5968 gcc_cv_isl=yes
5969else
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971/* end confdefs.h. */
5972#include <isl/version.h>
5973 #include <string.h>
5974int
5975main ()
5976{
5977if (strncmp (isl_version (), "isl-0.12", strlen ("isl-0.12")) != 0)
5978 return 1;
5979
5980 ;
5981 return 0;
5982}
5983_ACEOF
5984if ac_fn_c_try_run "$LINENO"; then :
5985 gcc_cv_isl=yes
5986else
5987 gcc_cv_isl=no
5988fi
5989rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5990 conftest.$ac_objext conftest.beam conftest.$ac_ext
5991fi
5992
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
5994$as_echo "$gcc_cv_isl" >&6; }
5995
5996 CFLAGS=$_isl_saved_CFLAGS
5997 LDFLAGS=$_isl_saved_LDFLAGS
5998 LIBS=$_isl_saved_LIBS
5999 fi
6000
6001
6002 fi
3dae1673 6003 fi
e28c595f 6004
e28c595f 6005
7ec59b9e
L
6006
6007
7ec59b9e
L
6008 if test "x${with_isl}" = xno; then
6009 graphite_requested=no
6010 elif test "x${with_isl}" != x \
6011 || test "x${with_isl_include}" != x \
6012 || test "x${with_isl_lib}" != x ; then
6013 graphite_requested=yes
6014 else
6015 graphite_requested=no
b123da99 6016 fi
e28c595f 6017
e28c595f
JM
6018
6019
7ec59b9e
L
6020 if test "${gcc_cv_isl}" = no ; then
6021 isllibs=
6022 islinc=
6023 fi
e28c595f 6024
7ec59b9e
L
6025 if test "${graphite_requested}" = yes \
6026 && test "x${isllibs}" = x \
6027 && test "x${islinc}" = x ; then
e28c595f 6028
7ec59b9e
L
6029 as_fn_error "Unable to find a usable ISL. See config.log for details." "$LINENO" 5
6030 fi
e552509b 6031
e28c595f
JM
6032
6033
8e71395b
L
6034 if test "x$gcc_cv_isl" != "xno"; then
6035 # Check for CLOOG
81ecdfbb 6036
e28c595f 6037
e552509b 6038# Check whether --with-cloog-include was given.
81ecdfbb
RW
6039if test "${with_cloog_include+set}" = set; then :
6040 withval=$with_cloog_include;
6041fi
e28c595f 6042
e28c595f 6043
e552509b 6044# Check whether --with-cloog-lib was given.
81ecdfbb
RW
6045if test "${with_cloog_lib+set}" = set; then :
6046 withval=$with_cloog_lib;
6047fi
e28c595f 6048
e28c595f 6049
e552509b
ILT
6050 # Check whether --enable-cloog-version-check was given.
6051if test "${enable_cloog_version_check+set}" = set; then :
6052 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
6053else
6054 ENABLE_CLOOG_CHECK=yes
6055fi
6056
6057
6058 # Initialize clooglibs and clooginc.
6059 case $with_cloog in
6060 no)
6061 clooglibs=
6062 clooginc=
6063 ;;
6064 "" | yes)
6065 ;;
6066 *)
6067 clooglibs="-L$with_cloog/lib"
6068 clooginc="-I$with_cloog/include"
6069 ;;
6070 esac
6071 if test "x${with_cloog_include}" != x ; then
6072 clooginc="-I$with_cloog_include"
6073 fi
6074 if test "x${with_cloog_lib}" != x; then
6075 clooglibs="-L$with_cloog_lib"
6076 fi
3dae1673 6077 if test "x${clooginc}" = x && test "x${clooglibs}" = x \
7ec59b9e
L
6078 && test -d ${srcdir}/cloog; then
6079 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
6080 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -I'${srcdir}'/cloog/include '
3dae1673
JBG
6081 ENABLE_CLOOG_CHECK=no
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree CLooG, disabling version check" >&5
6083$as_echo "$as_me: WARNING: using in-tree CLooG, disabling version check" >&2;}
8d8eef9a
RW
6084 fi
6085
7ec59b9e 6086 clooginc="-DCLOOG_INT_GMP ${clooginc}"
8e71395b 6087 clooglibs="${clooglibs} -lcloog-isl ${isllibs} -lisl"
e28c595f 6088
e552509b
ILT
6089
6090
6091
6092
6093 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6094 _cloog_saved_CFLAGS=$CFLAGS
6095 _cloog_saved_LDFLAGS=$LDFLAGS
6096
7ec59b9e
L
6097 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6098 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
e552509b 6099
7ec59b9e
L
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.17.0 of CLooG" >&5
6101$as_echo_n "checking for version 0.17.0 of CLooG... " >&6; }
3dae1673 6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e552509b 6103/* end confdefs.h. */
7ec59b9e 6104#include "cloog/version.h"
e552509b
ILT
6105int
6106main ()
6107{
6108#if CLOOG_VERSION_MAJOR != 0 \
7ec59b9e
L
6109 || CLOOG_VERSION_MINOR != 17 \
6110 || CLOOG_VERSION_REVISION < 0
e552509b
ILT
6111 choke me
6112 #endif
6113 ;
6114 return 0;
6115}
6116_ACEOF
6117if ac_fn_c_try_compile "$LINENO"; then :
7ec59b9e 6118 gcc_cv_cloog=yes
e552509b 6119else
7ec59b9e 6120 gcc_cv_cloog=no
e552509b
ILT
6121fi
6122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3dae1673
JBG
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
6124$as_echo "$gcc_cv_cloog" >&6; }
6125
6126 CFLAGS=$_cloog_saved_CFLAGS
6127 LDFLAGS=$_cloog_saved_LDFLAGS
6128 fi
6129
6130
6131 if test "${gcc_cv_cloog}" = no ; then
6132
6133
6134
6135 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6136 _cloog_saved_CFLAGS=$CFLAGS
6137 _cloog_saved_LDFLAGS=$LDFLAGS
6138
6139 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${islinc} ${gmpinc}"
6140 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${isllibs} ${gmplib}"
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.18.0 of CLooG" >&5
6143$as_echo_n "checking for version 0.18.0 of CLooG... " >&6; }
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145/* end confdefs.h. */
6146#include "cloog/version.h"
6147int
6148main ()
6149{
6150#if CLOOG_VERSION_MAJOR != 0 \
6151 || CLOOG_VERSION_MINOR != 18 \
6152 || CLOOG_VERSION_REVISION < 0
6153 choke me
6154 #endif
6155 ;
6156 return 0;
6157}
6158_ACEOF
6159if ac_fn_c_try_compile "$LINENO"; then :
6160 gcc_cv_cloog=yes
6161else
6162 gcc_cv_cloog=no
e552509b 6163fi
3dae1673
JBG
6164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog" >&5
7ec59b9e 6166$as_echo "$gcc_cv_cloog" >&6; }
e552509b
ILT
6167
6168 CFLAGS=$_cloog_saved_CFLAGS
6169 LDFLAGS=$_cloog_saved_LDFLAGS
6170 fi
6171
6172
3dae1673 6173 fi
e552509b 6174
e28c595f 6175
e28c595f
JM
6176
6177
6178
8d8eef9a
RW
6179 if test "x${with_cloog}" = xno; then
6180 graphite_requested=no
6181 elif test "x${with_cloog}" != x \
e552509b
ILT
6182 || test "x${with_cloog_include}" != x \
6183 || test "x${with_cloog_lib}" != x ; then
6184 graphite_requested=yes
6185 else
6186 graphite_requested=no
6187 fi
6188
6189
6190
7ec59b9e 6191 if test "${gcc_cv_cloog}" = no ; then
e552509b
ILT
6192 clooglibs=
6193 clooginc=
6194 fi
6195
6196 if test "${graphite_requested}" = yes \
6197 && test "x${clooglibs}" = x \
6198 && test "x${clooginc}" = x ; then
6199
8e71395b 6200 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
6201 fi
6202
6203
8e71395b 6204 fi
e552509b
ILT
6205fi
6206
7ec59b9e
L
6207# If either the ISL or the CLooG check failed, disable builds of in-tree
6208# variants of both
8e71395b
L
6209if test "x$with_isl" = xno ||
6210 test "x$with_cloog" = xno ||
6211 test "x$gcc_cv_cloog" = xno ||
6212 test "x$gcc_cv_isl" = xno; then
7ec59b9e 6213 noconfigdirs="$noconfigdirs cloog isl"
8e71395b
L
6214 islinc=
6215 clooginc=
6216 clooglibs=
7ec59b9e
L
6217fi
6218
8e71395b
L
6219
6220
6221
6222
6223
700d40ca
ILT
6224# Check for LTO support.
6225# Check whether --enable-lto was given.
6226if test "${enable_lto+set}" = set; then :
6227 enableval=$enable_lto; enable_lto=$enableval
6228else
6229 enable_lto=yes; default_enable_lto=yes
6230fi
6231
6232
143754cd 6233
e49e5c92
DK
6234
6235
6236target_elf=no
6237case $target in
6238 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
090bc50f 6239 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6240 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6241 target_elf=no
6242 ;;
6243 *)
6244 target_elf=yes
6245 ;;
6246esac
6247
6248if test $target_elf = yes; then :
74cea91b
DK
6249 # ELF platforms build the lto-plugin always.
6250 build_lto_plugin=yes
e49e5c92 6251
e49e5c92
DK
6252else
6253 if test x"$default_enable_lto" = x"yes" ; then
29821356 6254 case $target in
899b04ef 6255 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 6256 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6257 *) enable_lto=no ;;
6258 esac
e49e5c92 6259 else
29821356
RW
6260 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6261 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6262 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6263 # warn during gcc/ subconfigure; unless you're bootstrapping with
6264 # -flto it won't be needed until after installation anyway.
6265 case $target in
a8eb3f0a 6266 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6267 *) if test x"$enable_lto" = x"yes"; then
6268 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6269 fi
6270 ;;
6271 esac
6272 fi
a8eb3f0a 6273 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6274 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6275 case $target in
74cea91b 6276 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6277 *) ;;
6278 esac
74cea91b 6279
e49e5c92
DK
6280fi
6281
700d40ca 6282
e28c595f 6283
7ec59b9e 6284# By default, C and C++ are the only stage 1 languages.
9b134994 6285stage1_languages=,c,
1d39f329 6286
e8a5fa9c 6287# Target libraries that we bootstrap.
2aa2364a 6288bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6289
9e07f89d
NN
6290# Figure out what language subdirectories are present.
6291# Look if the user specified --enable-languages="..."; if not, use
6292# the environment variable $LANGUAGES if defined. $LANGUAGES might
6293# go away some day.
6294# NB: embedded tabs in this IF block -- do not untabify
6295if test -d ${srcdir}/gcc; then
6296 if test x"${enable_languages+set}" != xset; then
6297 if test x"${LANGUAGES+set}" = xset; then
6298 enable_languages="${LANGUAGES}"
6299 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6300 else
6301 enable_languages=all
6302 fi
6303 else
6304 if test x"${enable_languages}" = x ||
6305 test x"${enable_languages}" = xyes;
6306 then
6307 echo configure.in: --enable-languages needs at least one language argument 1>&2
6308 exit 1
6309 fi
6310 fi
6311 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6312
096f7d00
DE
6313 # 'f95' is the old name for the 'fortran' language. We issue a warning
6314 # and make the substitution.
6315 case ,${enable_languages}, in
6316 *,f95,*)
6317 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6318 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6319 ;;
6320 esac
6321
7ec59b9e
L
6322 # If bootstrapping, C++ must be enabled.
6323 case ",$enable_languages,:$enable_bootstrap" in
6324 *,c++,*:*) ;;
6325 *:yes)
ffdd6afc
ILT
6326 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6327 enable_languages="${enable_languages},c++"
6328 else
7ec59b9e 6329 as_fn_error "bootstrapping requires c++ sources" "$LINENO" 5
ffdd6afc
ILT
6330 fi
6331 ;;
6332 esac
6333
9e07f89d
NN
6334 # First scan to see if an enabled language requires some other language.
6335 # We assume that a given config-lang.in will list all the language
6336 # front ends it requires, even if some are required indirectly.
6337 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6338 case ${lang_frag} in
6339 ..) ;;
6340 # The odd quoting in the next line works around
6341 # an apparent bug in bash 1.12 on linux.
6342 ${srcdir}/gcc/[*]/config-lang.in) ;;
6343 *)
e552509b
ILT
6344 # From the config-lang.in, get $language, $lang_requires, and
6345 # $lang_requires_boot_languages.
9e07f89d
NN
6346 language=
6347 lang_requires=
e552509b 6348 lang_requires_boot_languages=
9e07f89d 6349 . ${lang_frag}
e552509b 6350 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6351 case ,${enable_languages}, in
6352 *,$other,*) ;;
6353 *,all,*) ;;
6354 *,$language,*)
6355 echo " \`$other' language required by \`$language'; enabling" 1>&2
6356 enable_languages="${enable_languages},${other}"
6357 ;;
6358 esac
6359 done
e552509b
ILT
6360 for other in ${lang_requires_boot_languages} ; do
6361 if test "$other" != "c"; then
6362 case ,${enable_stage1_languages}, in
6363 *,$other,*) ;;
6364 *,all,*) ;;
6365 *)
6366 case ,${enable_languages}, in
6367 *,$language,*)
6368 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6369 enable_stage1_languages="$enable_stage1_languages,${other}"
6370 ;;
6371 esac
6372 ;;
6373 esac
6374 fi
6375 done
9e07f89d
NN
6376 ;;
6377 esac
6378 done
6379
9b134994 6380 new_enable_languages=,c,
700d40ca
ILT
6381
6382 # If LTO is enabled, add the LTO front end.
6383 extra_host_libiberty_configure_flags=
6384 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6385 case ,${enable_languages}, in
6386 *,lto,*) ;;
6387 *) enable_languages="${enable_languages},lto" ;;
6388 esac
a8eb3f0a 6389 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6390 configdirs="$configdirs lto-plugin"
6391 extra_host_libiberty_configure_flags=--enable-shared
6392 fi
6393 fi
6394
6395
9e07f89d 6396 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6397 potential_languages=,c,
9e07f89d 6398
9e1a94f4
ILT
6399 enabled_target_libs=
6400 disabled_target_libs=
6401
9e07f89d
NN
6402 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6403 case ${lang_frag} in
6404 ..) ;;
6405 # The odd quoting in the next line works around
6406 # an apparent bug in bash 1.12 on linux.
6407 ${srcdir}/gcc/[*]/config-lang.in) ;;
6408 *)
c6b750e1 6409 # From the config-lang.in, get $language, $target_libs,
1d39f329 6410 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6411 language=
6412 target_libs=
6413 lang_dirs=
64ce424c 6414 subdir_requires=
9b134994
PB
6415 boot_language=no
6416 build_by_default=yes
9e07f89d 6417 . ${lang_frag}
9b134994
PB
6418 if test x${language} = x; then
6419 echo "${lang_frag} doesn't set \$language." 1>&2
6420 exit 1
6421 fi
6422
ffdd6afc 6423 if test "$language" = "c++"; then
7ec59b9e 6424 boot_language=yes
e8a5fa9c
RW
6425 fi
6426
8e71395b 6427 add_this_lang=no
9b134994
PB
6428 case ,${enable_languages}, in
6429 *,${language},*)
7ec59b9e
L
6430 # Language was explicitly selected; include it
6431 # unless it is C, which is enabled by default.
6432 if test "$language" != "c"; then
6433 add_this_lang=yes
6434 fi
9e07f89d 6435 ;;
9b134994
PB
6436 *,all,*)
6437 # 'all' was selected, select it if it is a default language
8e71395b
L
6438 if test "$language" != "c"; then
6439 add_this_lang=${build_by_default}
6440 fi
9e07f89d
NN
6441 ;;
6442 esac
4b1cb4fe 6443
64ce424c 6444 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6445 for i in $subdir_requires; do
3d3adb43 6446 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6447 case ,${enable_languages}, in
6448 *,${language},*)
6449 # Specifically requested language; tell them.
81ecdfbb 6450 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6451 ;;
6452 *)
6453 # Silently disable.
9b134994 6454 add_this_lang=unsupported
64ce424c
PB
6455 ;;
6456 esac
6457 done
6458
9b134994
PB
6459 # Disable Ada if no preexisting GNAT is available.
6460 case ,${enable_languages},:${language}:${have_gnat} in
6461 *,${language},*:ada:no)
6462 # Specifically requested language; tell them.
81ecdfbb 6463 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6464 ;;
6465 *:ada:no)
6466 # Silently disable.
6467 add_this_lang=unsupported
6468 ;;
6469 esac
6470
59f7ec45
HPN
6471 # Disable a language that is unsupported by the target.
6472 case " $unsupported_languages " in
6473 *" $language "*)
9b134994 6474 add_this_lang=unsupported
59f7ec45
HPN
6475 ;;
6476 esac
6477
4b1cb4fe 6478 case $add_this_lang in
9b134994 6479 unsupported)
9e07f89d 6480 # Remove language-dependent dirs.
9e1a94f4
ILT
6481 disabled_target_libs="$disabled_target_libs $target_libs"
6482 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6483 ;;
9b134994
PB
6484 no)
6485 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6486 disabled_target_libs="$disabled_target_libs $target_libs"
6487 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6488 potential_languages="${potential_languages}${language},"
6489 ;;
6490 yes)
6491 new_enable_languages="${new_enable_languages}${language},"
6492 potential_languages="${potential_languages}${language},"
1d39f329 6493 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6494 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6495 case "${boot_language}:,$enable_stage1_languages," in
6496 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6497 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6498 case ",$stage1_languages," in
6499 *,$language,* | ,yes, | ,all,) ;;
6500 *) stage1_languages="${stage1_languages}${language}," ;;
6501 esac
e8a5fa9c
RW
6502 # We need to bootstrap any supporting libraries.
6503 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6504 ;;
6505 esac
6506 ;;
9e07f89d
NN
6507 esac
6508 ;;
6509 esac
6510 done
6511
9e1a94f4
ILT
6512 # Add target libraries which are only needed for disabled languages
6513 # to noconfigdirs.
6514 if test -n "$disabled_target_libs"; then
6515 for dir in $disabled_target_libs; do
6516 case " $enabled_target_libs " in
6517 *" ${dir} "*) ;;
6518 *) noconfigdirs="$noconfigdirs $dir" ;;
6519 esac
6520 done
6521 fi
6522
81ecdfbb
RW
6523 # Check whether --enable-stage1-languages was given.
6524if test "${enable_stage1_languages+set}" = set; then :
6525 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6526 ,no,|,,)
6527 # Set it to something that will have no effect in the loop below
6528 enable_stage1_languages=c ;;
6529 ,yes,)
6530 enable_stage1_languages=`echo $new_enable_languages | \
6531 sed -e "s/^,//" -e "s/,$//" ` ;;
6532 *,all,*)
6533 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6534 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6535 esac
6536
6537 # Add "good" languages from enable_stage1_languages to stage1_languages,
6538 # while "bad" languages go in missing_languages. Leave no duplicates.
6539 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6540 case $potential_languages in
6541 *,$i,*)
6542 case $stage1_languages in
6543 *,$i,*) ;;
6544 *) stage1_languages="$stage1_languages$i," ;;
6545 esac ;;
6546 *)
6547 case $missing_languages in
6548 *,$i,*) ;;
6549 *) missing_languages="$missing_languages$i," ;;
6550 esac ;;
6551 esac
6552 done
81ecdfbb
RW
6553fi
6554
9b134994
PB
6555
6556 # Remove leading/trailing commas that were added for simplicity
6557 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6558 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6559 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6560 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6561
9e07f89d 6562 if test "x$missing_languages" != x; then
81ecdfbb 6563 as_fn_error "
27258dd4 6564The following requested languages could not be built: ${missing_languages}
81ecdfbb 6565Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6566 fi
9e07f89d
NN
6567 if test "x$new_enable_languages" != "x$enable_languages"; then
6568 echo The following languages will be built: ${new_enable_languages}
9b134994 6569 enable_languages="$new_enable_languages"
9e07f89d 6570 fi
9b134994 6571
c6b750e1 6572
81ec575a 6573 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6574fi
6575
a6df5a19
PB
6576# Handle --disable-<component> generically.
6577for dir in $configdirs $build_configdirs $target_configdirs ; do
6578 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6579 varname=`echo $dirname | sed -e s/+/_/g`
6580 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6581 noconfigdirs="$noconfigdirs $dir"
6582 fi
6583done
6584
4f0ef2d8 6585# Check for Boehm's garbage collector
81ecdfbb
RW
6586# Check whether --enable-objc-gc was given.
6587if test "${enable_objc_gc+set}" = set; then :
6588 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6589 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6590 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6591 ;;
6592esac
81ecdfbb
RW
6593fi
6594
4f0ef2d8
CD
6595
6596# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6597case ,${enable_languages},:${enable_objc_gc} in
6598 *,objc,*:yes)
4f0ef2d8
CD
6599 # Keep target-boehm-gc if requested for Objective-C.
6600 ;;
4f0ef2d8 6601 *)
d42c4017
DA
6602 # Otherwise remove target-boehm-gc depending on target-libjava.
6603 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6604 noconfigdirs="$noconfigdirs target-boehm-gc"
6605 fi
4f0ef2d8
CD
6606 ;;
6607esac
6608
95e43135 6609# Disable libitm, libsanitizer, libvtv if we're not building C++
7ec59b9e
L
6610case ,${enable_languages}, in
6611 *,c++,*) ;;
6612 *)
95e43135 6613 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
7ec59b9e
L
6614 ;;
6615esac
6616
caeba88f
AL
6617# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6618# $build_configdirs and $target_configdirs.
9e07f89d
NN
6619# If we have the source for $noconfigdirs entries, add them to $notsupp.
6620
6621notsupp=""
6622for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6623 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6624 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6625 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6626 if test -r $srcdir/$dirname/configure ; then
6627 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6628 true
6629 else
6630 notsupp="$notsupp $dir"
6631 fi
6632 fi
6633 fi
caeba88f
AL
6634 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6635 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6636 if test -r $srcdir/$dirname/configure ; then
6637 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6638 true
6639 else
6640 notsupp="$notsupp $dir"
6641 fi
6642 fi
6643 fi
9e07f89d
NN
6644 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6645 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6646 if test -r $srcdir/$dirname/configure ; then
6647 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6648 true
6649 else
6650 notsupp="$notsupp $dir"
6651 fi
6652 fi
6653 fi
6654done
6655
9e07f89d
NN
6656# Quietly strip out all directories which aren't configurable in this tree.
6657# This relies on all configurable subdirectories being autoconfiscated, which
6658# is now the case.
6a9cf61e
PB
6659build_configdirs_all="$build_configdirs"
6660build_configdirs=
6661for i in ${build_configdirs_all} ; do
c6b750e1 6662 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6663 if test -f ${srcdir}/$j/configure ; then
6664 build_configdirs="${build_configdirs} $i"
6665 fi
6666done
6667
9e07f89d
NN
6668configdirs_all="$configdirs"
6669configdirs=
6670for i in ${configdirs_all} ; do
6671 if test -f ${srcdir}/$i/configure ; then
6672 configdirs="${configdirs} $i"
6673 fi
6674done
6a9cf61e 6675
9e07f89d
NN
6676target_configdirs_all="$target_configdirs"
6677target_configdirs=
6678for i in ${target_configdirs_all} ; do
c6b750e1 6679 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6680 if test -f ${srcdir}/$j/configure ; then
6681 target_configdirs="${target_configdirs} $i"
6682 fi
6683done
6684
6685# Produce a warning message for the subdirs we can't configure.
6686# This isn't especially interesting in the Cygnus tree, but in the individual
6687# FSF releases, it's important to let people know when their machine isn't
6688# supported by the one or two programs in a package.
6689
6690if test -n "${notsupp}" && test -z "${norecursion}" ; then
6691 # If $appdirs is non-empty, at least one of those directories must still
6692 # be configured, or we error out. (E.g., if the gas release supports a
6693 # specified target in some subdirs but not the gas subdir, we shouldn't
6694 # pretend that all is well.)
6695 if test -n "$appdirs" ; then
6696 for dir in $appdirs ; do
6697 if test -r $dir/Makefile.in ; then
6698 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6699 appdirs=""
6700 break
6701 fi
6a9cf61e 6702 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6703 appdirs=""
6704 break
6705 fi
6706 fi
6707 done
6708 if test -n "$appdirs" ; then
6709 echo "*** This configuration is not supported by this package." 1>&2
6710 exit 1
6711 fi
6712 fi
6713 # Okay, some application will build, or we don't care to check. Still
6714 # notify of subdirs not getting built.
6715 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6716 echo " ${notsupp}" 1>&2
6717 echo " (Any other directories should still work fine.)" 1>&2
6718fi
6719
6720case "$host" in
6721 *msdosdjgpp*)
6722 enable_gdbtk=no ;;
6723esac
6724
18f6b6ee
PB
6725# To find our prefix, in gcc_cv_tool_prefix.
6726
6727# The user is always right.
6728if test "${PATH_SEPARATOR+set}" != set; then
6729 echo "#! /bin/sh" >conf$$.sh
6730 echo "exit 0" >>conf$$.sh
6731 chmod +x conf$$.sh
6732 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6733 PATH_SEPARATOR=';'
6734 else
6735 PATH_SEPARATOR=:
6736 fi
6737 rm -f conf$$.sh
6738fi
6739
6740
6741
6742if test "x$exec_prefix" = xNONE; then
6743 if test "x$prefix" = xNONE; then
6744 gcc_cv_tool_prefix=$ac_default_prefix
6745 else
6746 gcc_cv_tool_prefix=$prefix
6747 fi
6748else
6749 gcc_cv_tool_prefix=$exec_prefix
6750fi
6751
6752# If there is no compiler in the tree, use the PATH only. In any
6753# case, if there is no compiler in the tree nobody should use
6754# AS_FOR_TARGET and LD_FOR_TARGET.
6755if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6756 gcc_version=`cat $srcdir/gcc/BASE-VER`
6757 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6758 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6759 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6760 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6761 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6762 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6763else
6764 gcc_cv_tool_dirs=
6765fi
6766
6767if test x$build = x$target && test -n "$md_exec_prefix"; then
6768 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6769fi
6770
6771
6772
9e07f89d
NN
6773copy_dirs=
6774
c6b750e1 6775
81ecdfbb
RW
6776# Check whether --with-build-sysroot was given.
6777if test "${with_build_sysroot+set}" = set; then :
6778 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6779 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6780 fi
6781else
6782 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6783fi
a19b6204
MM
6784
6785
8a6ee3ab 6786
81ecdfbb
RW
6787
6788# Check whether --with-debug-prefix-map was given.
6789if test "${with_debug_prefix_map+set}" = set; then :
6790 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6791 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6792 for debug_map in $withval; do
6793 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6794 done
6795 fi
6796else
6797 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6798fi
6799
8a6ee3ab
JM
6800
6801
7f6ef0c0
PB
6802# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6803# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6804# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6805# We want to ensure that TARGET libraries (which we know are built with
6806# gcc) are built with "-O2 -g", so include those options when setting
6807# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6808if test "x$CFLAGS_FOR_TARGET" = x; then
6809 CFLAGS_FOR_TARGET=$CFLAGS
6810 case " $CFLAGS " in
6811 *" -O2 "*) ;;
68f107fa 6812 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6813 esac
6814 case " $CFLAGS " in
6815 *" -g "* | *" -g3 "*) ;;
68f107fa 6816 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6817 esac
6818fi
6819
6820
6821if test "x$CXXFLAGS_FOR_TARGET" = x; then
6822 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6823 case " $CXXFLAGS " in
6824 *" -O2 "*) ;;
68f107fa 6825 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6826 esac
6827 case " $CXXFLAGS " in
6828 *" -g "* | *" -g3 "*) ;;
68f107fa 6829 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
7f6ef0c0
PB
6830 esac
6831fi
6832
6833
91c1f14c
DK
6834
6835
9e07f89d
NN
6836# Handle --with-headers=XXX. If the value is not "yes", the contents of
6837# the named directory are copied to $(tooldir)/sys-include.
6838if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6839 if test x${is_cross_compiler} = xno ; then
6840 echo 1>&2 '***' --with-headers is only supported when cross compiling
6841 exit 1
6842 fi
6843 if test x"${with_headers}" != xyes ; then
18f6b6ee 6844 x=${gcc_cv_tool_prefix}
c6b750e1 6845 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6846 fi
6847fi
6848
6849# Handle --with-libs=XXX. If the value is not "yes", the contents of
6850# the name directories are copied to $(tooldir)/lib. Multiple directories
6851# are permitted.
6852if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6853 if test x${is_cross_compiler} = xno ; then
6854 echo 1>&2 '***' --with-libs is only supported when cross compiling
6855 exit 1
6856 fi
6857 if test x"${with_libs}" != xyes ; then
6858 # Copy the libraries in reverse order, so that files in the first named
6859 # library override files in subsequent libraries.
18f6b6ee 6860 x=${gcc_cv_tool_prefix}
9e07f89d 6861 for l in ${with_libs}; do
c6b750e1 6862 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6863 done
6864 fi
6865fi
6866
700d40ca 6867# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6868#
6869# This is done by determining whether or not the appropriate directory
6870# is available, and by checking whether or not specific configurations
6871# have requested that this magic not happen.
c6b750e1
DJ
6872#
6873# The command line options always override the explicit settings in
2429c060
PB
6874# configure.in, and the settings in configure.in override this magic.
6875#
c6b750e1 6876# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6877# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6878# --without-gnu-ld options for the configure script. Similarly, if
6879# the default is to use the included zlib and you don't want to do that,
6880# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6881
6882if test x${use_gnu_as} = x &&
6883 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6884 with_gnu_as=yes
6885 extra_host_args="$extra_host_args --with-gnu-as"
6886fi
6887
6888if test x${use_gnu_ld} = x &&
93f9b408 6889 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6890 with_gnu_ld=yes
6891 extra_host_args="$extra_host_args --with-gnu-ld"
6892fi
6893
700d40ca
ILT
6894if test x${use_included_zlib} = x &&
6895 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6896 :
6897else
6898 with_system_zlib=yes
6899 extra_host_args="$extra_host_args --with-system-zlib"
6900fi
6901
2429c060
PB
6902# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6903# can detect this case.
6904
6905if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6906 with_newlib=yes
6907 extra_host_args="$extra_host_args --with-newlib"
6908fi
6909
9e07f89d
NN
6910# Handle ${copy_dirs}
6911set fnord ${copy_dirs}
6912shift
6913while test $# != 0 ; do
6914 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6915 :
6916 else
6917 echo Copying $1 to $2
6918
6919 # Use the install script to create the directory and all required
6920 # parent directories.
6921 if test -d $2 ; then
6922 :
6923 else
6924 echo >config.temp
6925 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6926 fi
6927
6928 # Copy the directory, assuming we have tar.
6929 # FIXME: Should we use B in the second tar? Not all systems support it.
6930 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6931
6932 # It is the responsibility of the user to correctly adjust all
6933 # symlinks. If somebody can figure out how to handle them correctly
6934 # here, feel free to add the code.
6935
6936 echo $1 > $2/COPIED
6937 fi
6938 shift; shift
6939done
6940
2429c060
PB
6941# Determine a target-dependent exec_prefix that the installed
6942# gcc will search in. Keep this list sorted by triplet, with
6943# the *-*-osname triplets last.
6944md_exec_prefix=
6945case "${target}" in
521ec477 6946 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6947 md_exec_prefix=/dev/env/DJDIR/bin
6948 ;;
2429c060 6949 *-*-hpux* | \
2429c060 6950 *-*-nto-qnx* | \
1f111696 6951 *-*-solaris2*)
2429c060
PB
6952 md_exec_prefix=/usr/ccs/bin
6953 ;;
6954esac
6955
a0da8069
NN
6956extra_arflags_for_target=
6957extra_nmflags_for_target=
6958extra_ranlibflags_for_target=
6959target_makefile_frag=/dev/null
6960case "${target}" in
77d7106f
AM
6961 spu-*-*)
6962 target_makefile_frag="config/mt-spu"
6963 ;;
d09bbf00 6964 mips*-sde-elf* | mips*-mti-elf*)
429acdec
RS
6965 target_makefile_frag="config/mt-sde"
6966 ;;
f3b1e08e
RS
6967 mipsisa*-*-elfoabi*)
6968 target_makefile_frag="config/mt-mips-elfoabi"
6969 ;;
e7c8859c
RS
6970 mips*-*-*linux* | mips*-*-gnu*)
6971 target_makefile_frag="config/mt-mips-gnu"
6972 ;;
29383458 6973 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6974 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6975 ;;
6976 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6977 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6978 # commands to handle both 32-bit and 64-bit objects. These flags are
6979 # harmless if we're using GNU nm or ar.
6980 extra_arflags_for_target=" -X32_64"
6981 extra_nmflags_for_target=" -B -X32_64"
6982 ;;
a0da8069
NN
6983esac
6984
6985alphaieee_frag=/dev/null
6986case $target in
6987 alpha*-*-*)
6988 # This just makes sure to use the -mieee option to build target libs.
6989 # This should probably be set individually by each library.
6990 alphaieee_frag="config/mt-alphaieee"
6991 ;;
6992esac
6993
6994# If --enable-target-optspace always use -Os instead of -O2 to build
6995# the target libraries, similarly if it is not specified, use -Os
6996# on selected platforms.
6997ospace_frag=/dev/null
6998case "${enable_target_optspace}:${target}" in
6999 yes:*)
7000 ospace_frag="config/mt-ospace"
7001 ;;
7002 :d30v-*)
7003 ospace_frag="config/mt-d30v"
7004 ;;
7005 :m32r-* | :d10v-* | :fr30-*)
7006 ospace_frag="config/mt-ospace"
7007 ;;
7008 no:* | :*)
7009 ;;
7010 *)
7011 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
7012 ;;
7013esac
7014
a0da8069
NN
7015# Some systems (e.g., one of the i386-aix systems the gas testers are
7016# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 7017tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
7018build_tooldir=${tooldir}
7019
a0da8069
NN
7020# Create a .gdbinit file which runs the one in srcdir
7021# and tells GDB to look there for source files.
7022
7023if test -r ${srcdir}/.gdbinit ; then
7024 case ${srcdir} in
7025 .) ;;
7026 *) cat > ./.gdbinit <<EOF
7027# ${NO_EDIT}
7028dir ${srcdir}
7029dir .
7030source ${srcdir}/.gdbinit
7031EOF
7032 ;;
7033 esac
7034fi
7035
a0da8069
NN
7036# Make sure that the compiler is able to generate an executable. If it
7037# can't, we are probably in trouble. We don't care whether we can run the
7038# executable--we might be using a cross compiler--we only care whether it
7039# can be created. At this point the main configure script has set CC.
7040we_are_ok=no
7041echo "int main () { return 0; }" > conftest.c
7042${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7043if test $? = 0 ; then
7044 if test -s conftest || test -s conftest.exe ; then
7045 we_are_ok=yes
7046 fi
c6b750e1 7047fi
a0da8069
NN
7048case $we_are_ok in
7049 no)
7050 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7051 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7052 rm -f conftest*
7053 exit 1
7054 ;;
7055esac
7056rm -f conftest*
7057
3bbd2f8f 7058# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7059case "${host}" in
7060 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7061 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7062 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7063 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7064esac
7065
3bbd2f8f 7066# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7067# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7068# built executables to PATH.
3bbd2f8f
AL
7069if test "$RPATH_ENVVAR" = PATH; then
7070 GCC_SHLIB_SUBDIR=/shlib
7071else
7072 GCC_SHLIB_SUBDIR=
7073fi
7074
a0da8069
NN
7075# Record target_configdirs and the configure arguments for target and
7076# build configuration in Makefile.
7077target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7078build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 7079
2aa2364a
JR
7080# If we are building libgomp, bootstrap it.
7081if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7082 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7083fi
7084
5eb08693
L
7085# If we are building libsanitizer, bootstrap it.
7086if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1 ; then
7087 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
7088fi
7089
95e43135
JBG
7090# If we are building libvtv, bootstrap it.
7091if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 ; then
7092 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
7093fi
7094
a0da8069
NN
7095# Determine whether gdb needs tk/tcl or not.
7096# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7097# and in that case we want gdb to be built without tk. Ugh!
7098# In fact I believe gdb is the *only* package directly dependent on tk,
7099# so we should be able to put the 'maybe's in unconditionally and
7100# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7101# 100% sure that that's safe though.
c180f501 7102
675c6968 7103gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7104case "$enable_gdbtk" in
7105 no)
7106 GDB_TK="" ;;
c180f501
AC
7107 yes)
7108 GDB_TK="${gdb_tk}" ;;
a0da8069 7109 *)
c180f501
AC
7110 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7111 # distro. Eventually someone will fix this and move Insight, nee
7112 # gdbtk to a separate directory.
7113 if test -d ${srcdir}/gdb/gdbtk ; then
7114 GDB_TK="${gdb_tk}"
7115 else
7116 GDB_TK=""
7117 fi
7118 ;;
a0da8069 7119esac
907be67c
DJ
7120CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7121INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7122
6bd3dfaa 7123# Strip out unwanted targets.
dd12c3a8
NN
7124
7125# While at that, we remove Makefiles if we were started for recursive
7126# configuration, so that the top-level Makefile reconfigures them,
7127# like we used to do when configure itself was recursive.
dd12c3a8 7128
06a51eac
RW
7129# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7130# but now we're fixing up the Makefile ourselves with the additional
7131# commands passed to AC_CONFIG_FILES. Use separate variables
7132# extrasub-{build,host,target} not because there is any reason to split
7133# the substitutions up that way, but only to remain below the limit of
7134# 99 commands in a script, for HP-UX sed.
7135# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7136
16b1ad29
RW
7137case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7138 yes:yes:*\ gold\ *:*,c++,*) ;;
7139 yes:yes:*\ gold\ *:*)
7140 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7141 ;;
7142esac
7143
9cb3fa6f 7144# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7145case $enable_bootstrap in
319cab08 7146 yes)
96655cc4
AO
7147 bootstrap_suffix=bootstrap
7148 BUILD_CONFIG=bootstrap-debug
7149 ;;
319cab08 7150 no)
96655cc4
AO
7151 bootstrap_suffix=no-bootstrap
7152 BUILD_CONFIG=
7153 ;;
319cab08
PB
7154esac
7155
96655cc4
AO
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7157$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7158
7159
7160# Check whether --with-build-config was given.
7161if test "${with_build_config+set}" = set; then :
7162 withval=$with_build_config; case $with_build_config in
7163 yes) with_build_config= ;;
7164 no) with_build_config= BUILD_CONFIG= ;;
7165 esac
7166fi
7167
7168
7169if test "x${with_build_config}" != x; then
7170 BUILD_CONFIG=$with_build_config
7171else
7172 case $BUILD_CONFIG in
7173 bootstrap-debug)
7174 if echo "int f (void) { return 0; }" > conftest.c &&
7175 ${CC} -c conftest.c &&
7176 mv conftest.o conftest.o.g0 &&
7177 ${CC} -c -g conftest.c &&
7178 mv conftest.o conftest.o.g &&
a009f2e7 7179 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7180 :
7181 else
7182 BUILD_CONFIG=
7183 fi
7184 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7185 ;;
7186 esac
7187fi
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7189$as_echo "$BUILD_CONFIG" >&6; }
7190
7191
06a51eac 7192extrasub_build=
6a9cf61e 7193for module in ${build_configdirs} ; do
498d4a71
CF
7194 if test -z "${no_recursion}" \
7195 && test -f ${build_subdir}/${module}/Makefile; then
7196 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7197 rm -f ${build_subdir}/${module}/Makefile
7198 fi
06a51eac 7199 extrasub_build="$extrasub_build
498d4a71
CF
7200/^@if build-$module\$/d
7201/^@endif build-$module\$/d
7202/^@if build-$module-$bootstrap_suffix\$/d
7203/^@endif build-$module-$bootstrap_suffix\$/d"
7204done
06a51eac 7205extrasub_host=
498d4a71 7206for module in ${configdirs} ; do
80911fe1 7207 if test -z "${no_recursion}"; then
8cf39b1b 7208 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7209 if test -f ${file}; then
7210 echo 1>&2 "*** removing ${file} to force reconfigure"
7211 rm -f ${file}
7212 fi
7213 done
498d4a71 7214 fi
06a51eac 7215 extrasub_host="$extrasub_host
498d4a71
CF
7216/^@if $module\$/d
7217/^@endif $module\$/d
7218/^@if $module-$bootstrap_suffix\$/d
7219/^@endif $module-$bootstrap_suffix\$/d"
7220done
06a51eac 7221extrasub_target=
498d4a71
CF
7222for module in ${target_configdirs} ; do
7223 if test -z "${no_recursion}" \
7224 && test -f ${target_subdir}/${module}/Makefile; then
7225 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7226 rm -f ${target_subdir}/${module}/Makefile
7227 fi
e8a5fa9c
RW
7228
7229 # We only bootstrap target libraries listed in bootstrap_target_libs.
7230 case $bootstrap_target_libs in
7231 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7232 *) target_bootstrap_suffix=no-bootstrap ;;
7233 esac
7234
06a51eac 7235 extrasub_target="$extrasub_target
498d4a71
CF
7236/^@if target-$module\$/d
7237/^@endif target-$module\$/d
e8a5fa9c
RW
7238/^@if target-$module-$target_bootstrap_suffix\$/d
7239/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7240done
7241
06a51eac
RW
7242# Do the final fixup along with target modules.
7243extrasub_target="$extrasub_target
6bd3dfaa 7244/^@if /,/^@endif /d"
a0da8069
NN
7245
7246# Create the serialization dependencies. This uses a temporary file.
7247
81ecdfbb
RW
7248# Check whether --enable-serial-configure was given.
7249if test "${enable_serial_configure+set}" = set; then :
7250 enableval=$enable_serial_configure;
7251fi
e6bfb94a
AO
7252
7253
1047cb91
DD
7254case ${enable_serial_configure} in
7255 yes)
7256 enable_serial_build_configure=yes
7257 enable_serial_host_configure=yes
7258 enable_serial_target_configure=yes
7259 ;;
7260esac
7261
a0da8069
NN
7262# These force 'configure's to be done one at a time, to avoid problems
7263# with contention over a shared config.cache.
7264rm -f serdep.tmp
e6bfb94a 7265echo '# serdep.tmp' > serdep.tmp
a0da8069 7266olditem=
1047cb91 7267test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7268for item in ${build_configdirs} ; do
7269 case ${olditem} in
7270 "") ;;
e6bfb94a 7271 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7272 esac
7273 olditem=${item}
7274done
7275olditem=
1047cb91 7276test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7277for item in ${configdirs} ; do
7278 case ${olditem} in
7279 "") ;;
e6bfb94a 7280 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7281 esac
7282 olditem=${item}
7283done
7284olditem=
1047cb91 7285test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7286for item in ${target_configdirs} ; do
7287 case ${olditem} in
7288 "") ;;
e6bfb94a 7289 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7290 esac
7291 olditem=${item}
7292done
7293serialization_dependencies=serdep.tmp
7294
7295
e6bfb94a 7296# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7297# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7298# might not want to pass down to subconfigures. The exception being
7299# --cache-file=/dev/null, which is used to turn off the use of cache
7300# files altogether, and which should be passed on to subconfigures.
7301# Also strip program-prefix, program-suffix, and program-transform-name,
7302# so that we can pass down a consistent program-transform-name.
c6b750e1 7303baseargs=
65b4571a 7304tbaseargs=
c6b750e1
DJ
7305keep_next=no
7306skip_next=no
7307eval "set -- $ac_configure_args"
18f6b6ee
PB
7308for ac_arg
7309do
c6b750e1
DJ
7310 if test X"$skip_next" = X"yes"; then
7311 skip_next=no
7312 continue
7313 fi
7314 if test X"$keep_next" = X"yes"; then
7315 case $ac_arg in
7316 *\'*)
7317 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7318 esac
7319 baseargs="$baseargs '$ac_arg'"
65b4571a 7320 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7321 keep_next=no
7322 continue
7323 fi
7324
7325 # Handle separated arguments. Based on the logic generated by
7326 # autoconf 2.59.
7327 case $ac_arg in
7328 *=* | --config-cache | -C | -disable-* | --disable-* \
7329 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7330 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7331 | -with-* | --with-* | -without-* | --without-* | --x)
7332 separate_arg=no
7333 ;;
7334 -*)
7335 separate_arg=yes
7336 ;;
7337 *)
7338 separate_arg=no
7339 ;;
7340 esac
7341
65b4571a
AO
7342 skip_targ=no
7343 case $ac_arg in
7344
7345 --with-* | --without-*)
7346 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7347
7348 case $libopt in
7349 *[-_]include)
7350 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7351 ;;
7352 *[-_]lib)
7353 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7354 ;;
7355 *)
7356 lib=$libopt
7357 ;;
7358 esac
7359
7360
7361 case $lib in
7ec59b9e 7362 mpc | mpfr | gmp | cloog)
65b4571a
AO
7363 # If we're processing --with-$lib, --with-$lib-include or
7364 # --with-$lib-lib, for one of the libs above, and target is
7365 # different from host, don't pass the current argument to any
7366 # target library's configure.
7367 if test x$is_cross_compiler = xyes; then
7368 skip_targ=yes
7369 fi
7370 ;;
7371 esac
7372 ;;
7373 esac
7374
c6b750e1 7375 case "$ac_arg" in
30167e0a
NC
7376 --cache-file=/dev/null | \
7377 -cache-file=/dev/null )
7378 # Handled here to avoid the test to skip args below.
7379 baseargs="$baseargs '$ac_arg'"
65b4571a 7380 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7381 # Assert: $separate_arg should always be no.
7382 keep_next=$separate_arg
7383 ;;
c6b750e1
DJ
7384 --no*)
7385 continue
7386 ;;
7387 --c* | \
7388 --sr* | \
7389 --ho* | \
7390 --bu* | \
7391 --t* | \
7392 --program-* | \
7393 -cache_file* | \
7394 -srcdir* | \
7395 -host* | \
7396 -build* | \
7397 -target* | \
7398 -program-prefix* | \
7399 -program-suffix* | \
7400 -program-transform-name* )
7401 skip_next=$separate_arg
7402 continue
7403 ;;
7404 -*)
7405 # An option. Add it.
7406 case $ac_arg in
7407 *\'*)
7408 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7409 esac
7410 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7411 if test X"$skip_targ" = Xno; then
7412 tbaseargs="$tbaseargs '$ac_arg'"
7413 fi
c6b750e1
DJ
7414 keep_next=$separate_arg
7415 ;;
7416 *)
7417 # Either a variable assignment, or a nonopt (triplet). Don't
7418 # pass it down; let the Makefile handle this.
7419 continue
7420 ;;
7421 esac
7422done
7423# Remove the initial space we just introduced and, as these will be
7424# expanded by make, quote '$'.
7425baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7426
f27d4f92
DJ
7427# Add in --program-transform-name, after --program-prefix and
7428# --program-suffix have been applied to it. Autoconf has already
7429# doubled dollar signs and backslashes in program_transform_name; we want
7430# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7431# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7432# Also, because we want to override the logic in subdir configure scripts to
7433# choose program_transform_name, replace any s,x,x, with s,y,y,.
7434sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7435${program_transform_name}
7436EOF_SED
7437gcc_transform_name=`cat conftestsed.out`
7438rm -f conftestsed.out
7439baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7440tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7441if test "$silent" = yes; then
7442 baseargs="$baseargs --silent"
65b4571a 7443 tbaseargs="$tbaseargs --silent"
2444379b 7444fi
34a0f3cf 7445baseargs="$baseargs --disable-option-checking"
65b4571a 7446tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7447
4074d5f2
RW
7448# Record and document user additions to sub configure arguments.
7449
7450
7451
7452
a0da8069
NN
7453# For the build-side libraries, we just need to pretend we're native,
7454# and not use the same cache file. Multilibs are neither needed nor
7455# desired.
4074d5f2 7456build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7457
7458# For host modules, accept cache file option, or specification as blank.
7459case "${cache_file}" in
7460"") # empty
7461 cache_file_option="" ;;
7462/* | [A-Za-z]:[\\/]* ) # absolute path
7463 cache_file_option="--cache-file=${cache_file}" ;;
7464*) # relative path
7465 cache_file_option="--cache-file=../${cache_file}" ;;
7466esac
7467
82252c06
NN
7468# Host dirs don't like to share a cache file either, horribly enough.
7469# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7470host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7471
65b4571a 7472target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7473
7474# Passing a --with-cross-host argument lets the target libraries know
7475# whether they are being built with a cross-compiler or being built
7476# native. However, it would be better to use other mechanisms to make the
7477# sorts of decisions they want to make on this basis. Please consider
7478# this option to be deprecated. FIXME.
7479if test x${is_cross_compiler} = xyes ; then
c6b750e1 7480 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7481fi
7482
938d2b74
RW
7483# Default to --enable-multilib.
7484if test x${enable_multilib} = x ; then
a0da8069 7485 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7486fi
a0da8069
NN
7487
7488# Pass --with-newlib if appropriate. Note that target_configdirs has
7489# changed from the earlier setting of with_newlib.
7490if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7491 target_configargs="--with-newlib ${target_configargs}"
7492fi
7493
95036d20
NN
7494# Different target subdirs use different values of certain variables
7495# (notably CXX). Worse, multilibs use *lots* of different values.
7496# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7497# it doesn't automatically accept command-line overrides of them.
7498# This means it's not safe for target subdirs to share a cache file,
7499# which is disgusting, but there you have it. Hopefully this can be
7500# fixed in future. It's still worthwhile to use a cache file for each
7501# directory. I think.
7502
ae380b45
MS
7503# Pass the appropriate --build, --host, --target and --cache-file arguments.
7504# We need to pass --target, as newer autoconf's requires consistency
7505# for target_alias and gcc doesn't manage it consistently.
4b900473 7506target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7507
a0da8069
NN
7508FLAGS_FOR_TARGET=
7509case " $target_configdirs " in
7510 *" newlib "*)
7511 case " $target_configargs " in
7512 *" --with-newlib "*)
7513 case "$target" in
1f53ca9a 7514 *-cygwin*)
6d94c122 7515 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
1f53ca9a 7516 ;;
a0da8069
NN
7517 esac
7518
7519 # If we're not building GCC, don't discard standard headers.
7520 if test -d ${srcdir}/gcc; then
7521 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7522
7523 if test "${build}" != "${host}"; then
7524 # On Canadian crosses, CC_FOR_TARGET will have already been set
7525 # by `configure', so we won't have an opportunity to add -Bgcc/
7526 # to it. This is right: we don't want to search that directory
7527 # for binaries, but we want the header files in there, so add
7528 # them explicitly.
e552509b 7529 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7530
7531 # Someone might think of using the pre-installed headers on
7532 # Canadian crosses, in case the installed compiler is not fully
7533 # compatible with the compiler being built. In this case, it
7534 # would be better to flag an error than risking having
7535 # incompatible object files being constructed. We can't
7536 # guarantee that an error will be flagged, but let's hope the
7537 # compiler will do it, when presented with incompatible header
7538 # files.
7539 fi
7540 fi
7541
7542 case "${target}-${is_cross_compiler}" in
ec11bdc6 7543 i[3456789]86-*-linux*-no)
a0da8069
NN
7544 # Here host == target, so we don't need to build gcc,
7545 # so we don't want to discard standard headers.
7546 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7547 ;;
7548 *)
7549 # If we're building newlib, use its generic headers last, but search
7550 # for any libc-related directories first (so make it the last -B
7551 # switch).
7552 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
7553
7554 # If we're building libgloss, find the startup file, simulator library
7555 # and linker script.
7556 case " $target_configdirs " in
7557 *" libgloss "*)
7558 # Look for startup file, simulator library and maybe linker script.
7559 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7560 # Look for libnosys.a in case the target needs it.
7561 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7562 # Most targets have the linker script in the source directory.
7563 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7564 ;;
7565 esac
a0da8069
NN
7566 ;;
7567 esac
7568 ;;
7569 esac
7570 ;;
7571esac
1f53ca9a 7572
45055374 7573case "$target" in
1f53ca9a
AO
7574 x86_64-*mingw* | *-w64-mingw*)
7575 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7576 # however, use a symlink named 'mingw' in ${prefix} .
7577 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7578 ;;
7579 *-mingw*)
7580 # MinGW can't be handled as Cygwin above since it does not use newlib.
7581 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'
7582 ;;
45055374 7583esac
a0da8069 7584
5fbad20a
DD
7585# Allow the user to override the flags for
7586# our build compiler if desired.
c66487f8
NC
7587if test x"${build}" = x"${host}" ; then
7588 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7589 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7590 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7591fi
5fbad20a 7592
a0da8069
NN
7593# On Canadian crosses, we'll be searching the right directories for
7594# the previously-installed cross compiler, so don't bother to add
7595# flags for directories within the install tree of the compiler
7596# being built; programs in there won't even run.
7597if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7598 # Search for pre-installed headers if nothing else fits.
bba45b8b 7599 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
7600fi
7601
7602if test "x${use_gnu_ld}" = x &&
7603 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7604 # Arrange for us to find uninstalled linker scripts.
b00612cc 7605 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7606fi
7607
a481dbb7
DD
7608# Search for other target-specific linker scripts and such.
7609case "${target}" in
4e206d7e
DB
7610 mep*)
7611 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7612 ;;
7613esac
7614
a0da8069 7615# Makefile fragments.
3e707e94
PB
7616for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7617do
7618 eval fragval=\$$frag
7619 if test $fragval != /dev/null; then
7620 eval $frag=${srcdir}/$fragval
7621 fi
7622done
a0da8069
NN
7623
7624
7625
7626
7627
7628# Miscellanea: directories, flags, etc.
7629
7630
7631
7632
7633
7634
7635
3bbd2f8f 7636
6a9cf61e 7637# Build module lists & subconfigure args.
a0da8069
NN
7638
7639
7640
be01d343
PB
7641# Host module lists & subconfigure args.
7642
7643
7644
911e63d0 7645
be01d343
PB
7646# Target module lists & subconfigure args.
7647
7648
7649
7650# Build tools.
7651
7652
7653
1576798e
PB
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
be01d343
PB
7668# Generate default definitions for YACC, M4, LEX and other programs that run
7669# on the build machine. These are used if the Makefile can't locate these
7670# programs in objdir.
7671MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7672
7673for ac_prog in 'bison -y' byacc yacc
7674do
c6b750e1 7675 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7676set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7678$as_echo_n "checking for $ac_word... " >&6; }
7679if test "${ac_cv_prog_YACC+set}" = set; then :
7680 $as_echo_n "(cached) " >&6
be01d343
PB
7681else
7682 if test -n "$YACC"; then
7683 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7684else
c6b750e1
DJ
7685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686for as_dir in $PATH
7687do
7688 IFS=$as_save_IFS
7689 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7692 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7694 break 2
7695 fi
7696done
81ecdfbb
RW
7697 done
7698IFS=$as_save_IFS
c6b750e1 7699
be01d343
PB
7700fi
7701fi
c6b750e1 7702YACC=$ac_cv_prog_YACC
be01d343 7703if test -n "$YACC"; then
81ecdfbb
RW
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7705$as_echo "$YACC" >&6; }
be01d343 7706else
81ecdfbb
RW
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708$as_echo "no" >&6; }
be01d343
PB
7709fi
7710
81ecdfbb 7711
c6b750e1 7712 test -n "$YACC" && break
be01d343
PB
7713done
7714test -n "$YACC" || YACC="$MISSING bison -y"
7715
7716case " $build_configdirs " in
7717 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7718esac
7719
7720for ac_prog in bison
7721do
c6b750e1 7722 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7723set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7725$as_echo_n "checking for $ac_word... " >&6; }
7726if test "${ac_cv_prog_BISON+set}" = set; then :
7727 $as_echo_n "(cached) " >&6
be01d343
PB
7728else
7729 if test -n "$BISON"; then
7730 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7731else
c6b750e1
DJ
7732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7733for as_dir in $PATH
7734do
7735 IFS=$as_save_IFS
7736 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7737 for ac_exec_ext in '' $ac_executable_extensions; do
7738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7739 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7741 break 2
7742 fi
7743done
81ecdfbb
RW
7744 done
7745IFS=$as_save_IFS
c6b750e1 7746
be01d343
PB
7747fi
7748fi
c6b750e1 7749BISON=$ac_cv_prog_BISON
be01d343 7750if test -n "$BISON"; then
81ecdfbb
RW
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7752$as_echo "$BISON" >&6; }
be01d343 7753else
81ecdfbb
RW
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7755$as_echo "no" >&6; }
be01d343
PB
7756fi
7757
81ecdfbb 7758
c6b750e1 7759 test -n "$BISON" && break
be01d343
PB
7760done
7761test -n "$BISON" || BISON="$MISSING bison"
7762
7763case " $build_configdirs " in
7764 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7765esac
7766
7767for ac_prog in gm4 gnum4 m4
7768do
c6b750e1 7769 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7770set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772$as_echo_n "checking for $ac_word... " >&6; }
7773if test "${ac_cv_prog_M4+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
be01d343
PB
7775else
7776 if test -n "$M4"; then
7777 ac_cv_prog_M4="$M4" # Let the user override the test.
7778else
c6b750e1
DJ
7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7786 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7788 break 2
7789 fi
7790done
81ecdfbb
RW
7791 done
7792IFS=$as_save_IFS
c6b750e1 7793
be01d343
PB
7794fi
7795fi
c6b750e1 7796M4=$ac_cv_prog_M4
be01d343 7797if test -n "$M4"; then
81ecdfbb
RW
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7799$as_echo "$M4" >&6; }
be01d343 7800else
81ecdfbb
RW
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802$as_echo "no" >&6; }
be01d343
PB
7803fi
7804
81ecdfbb 7805
c6b750e1 7806 test -n "$M4" && break
be01d343
PB
7807done
7808test -n "$M4" || M4="$MISSING m4"
7809
7810case " $build_configdirs " in
7811 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7812esac
7813
7814for ac_prog in flex lex
7815do
c6b750e1 7816 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7817set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7819$as_echo_n "checking for $ac_word... " >&6; }
7820if test "${ac_cv_prog_LEX+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
be01d343
PB
7822else
7823 if test -n "$LEX"; then
7824 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7825else
c6b750e1
DJ
7826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7827for as_dir in $PATH
7828do
7829 IFS=$as_save_IFS
7830 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7831 for ac_exec_ext in '' $ac_executable_extensions; do
7832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7833 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7835 break 2
7836 fi
7837done
81ecdfbb
RW
7838 done
7839IFS=$as_save_IFS
c6b750e1 7840
be01d343
PB
7841fi
7842fi
c6b750e1 7843LEX=$ac_cv_prog_LEX
be01d343 7844if test -n "$LEX"; then
81ecdfbb
RW
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7846$as_echo "$LEX" >&6; }
be01d343 7847else
81ecdfbb
RW
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849$as_echo "no" >&6; }
be01d343
PB
7850fi
7851
81ecdfbb 7852
c6b750e1 7853 test -n "$LEX" && break
be01d343
PB
7854done
7855test -n "$LEX" || LEX="$MISSING flex"
7856
7857case " $build_configdirs " in
7858 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7859 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7860esac
7861
7862for ac_prog in flex
7863do
c6b750e1 7864 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7865set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7867$as_echo_n "checking for $ac_word... " >&6; }
7868if test "${ac_cv_prog_FLEX+set}" = set; then :
7869 $as_echo_n "(cached) " >&6
be01d343
PB
7870else
7871 if test -n "$FLEX"; then
7872 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7873else
c6b750e1
DJ
7874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7875for as_dir in $PATH
7876do
7877 IFS=$as_save_IFS
7878 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7879 for ac_exec_ext in '' $ac_executable_extensions; do
7880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7881 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7883 break 2
7884 fi
7885done
81ecdfbb
RW
7886 done
7887IFS=$as_save_IFS
c6b750e1 7888
be01d343
PB
7889fi
7890fi
c6b750e1 7891FLEX=$ac_cv_prog_FLEX
be01d343 7892if test -n "$FLEX"; then
81ecdfbb
RW
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7894$as_echo "$FLEX" >&6; }
be01d343 7895else
81ecdfbb
RW
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897$as_echo "no" >&6; }
be01d343
PB
7898fi
7899
81ecdfbb 7900
c6b750e1 7901 test -n "$FLEX" && break
be01d343
PB
7902done
7903test -n "$FLEX" || FLEX="$MISSING flex"
7904
7905case " $build_configdirs " in
7906 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7907esac
7908
7909for ac_prog in makeinfo
7910do
c6b750e1 7911 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7912set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7914$as_echo_n "checking for $ac_word... " >&6; }
7915if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7916 $as_echo_n "(cached) " >&6
be01d343
PB
7917else
7918 if test -n "$MAKEINFO"; then
7919 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7920else
c6b750e1
DJ
7921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7922for as_dir in $PATH
7923do
7924 IFS=$as_save_IFS
7925 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7928 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7930 break 2
7931 fi
7932done
81ecdfbb
RW
7933 done
7934IFS=$as_save_IFS
c6b750e1 7935
be01d343
PB
7936fi
7937fi
c6b750e1 7938MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7939if test -n "$MAKEINFO"; then
81ecdfbb
RW
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7941$as_echo "$MAKEINFO" >&6; }
be01d343 7942else
81ecdfbb
RW
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944$as_echo "no" >&6; }
be01d343
PB
7945fi
7946
81ecdfbb 7947
c6b750e1 7948 test -n "$MAKEINFO" && break
be01d343
PB
7949done
7950test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7951
7952case " $build_configdirs " in
7953 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7954 *)
7955
10ad8ef3 7956 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7957 # higher, else we use the "missing" dummy.
7958 if ${MAKEINFO} --version \
10ad8ef3 7959 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7960 :
7961 else
7962 MAKEINFO="$MISSING makeinfo"
7963 fi
7964 ;;
7965
7966esac
a0da8069 7967
be01d343 7968# FIXME: expect and dejagnu may become build tools?
a0da8069 7969
be01d343
PB
7970for ac_prog in expect
7971do
c6b750e1 7972 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7973set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7975$as_echo_n "checking for $ac_word... " >&6; }
7976if test "${ac_cv_prog_EXPECT+set}" = set; then :
7977 $as_echo_n "(cached) " >&6
be01d343
PB
7978else
7979 if test -n "$EXPECT"; then
7980 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7981else
c6b750e1
DJ
7982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7983for as_dir in $PATH
7984do
7985 IFS=$as_save_IFS
7986 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7987 for ac_exec_ext in '' $ac_executable_extensions; do
7988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7989 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7991 break 2
7992 fi
7993done
81ecdfbb
RW
7994 done
7995IFS=$as_save_IFS
c6b750e1 7996
be01d343
PB
7997fi
7998fi
c6b750e1 7999EXPECT=$ac_cv_prog_EXPECT
be01d343 8000if test -n "$EXPECT"; then
81ecdfbb
RW
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8002$as_echo "$EXPECT" >&6; }
be01d343 8003else
81ecdfbb
RW
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8005$as_echo "no" >&6; }
be01d343 8006fi
a0da8069 8007
81ecdfbb 8008
c6b750e1 8009 test -n "$EXPECT" && break
be01d343
PB
8010done
8011test -n "$EXPECT" || EXPECT="expect"
a0da8069 8012
be01d343
PB
8013case " $configdirs " in
8014 *" expect "*)
8015 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8016 ;;
8017esac
a0da8069 8018
be01d343
PB
8019for ac_prog in runtest
8020do
c6b750e1 8021 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8022set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8024$as_echo_n "checking for $ac_word... " >&6; }
8025if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
be01d343
PB
8027else
8028 if test -n "$RUNTEST"; then
8029 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8030else
c6b750e1
DJ
8031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034 IFS=$as_save_IFS
8035 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8036 for ac_exec_ext in '' $ac_executable_extensions; do
8037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8038 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8040 break 2
8041 fi
8042done
81ecdfbb
RW
8043 done
8044IFS=$as_save_IFS
c6b750e1 8045
be01d343
PB
8046fi
8047fi
c6b750e1 8048RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8049if test -n "$RUNTEST"; then
81ecdfbb
RW
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8051$as_echo "$RUNTEST" >&6; }
be01d343 8052else
81ecdfbb
RW
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054$as_echo "no" >&6; }
be01d343 8055fi
a0da8069 8056
81ecdfbb 8057
c6b750e1 8058 test -n "$RUNTEST" && break
be01d343
PB
8059done
8060test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8061
be01d343
PB
8062case " $configdirs " in
8063 *" dejagnu "*)
6b89cc21 8064 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8065 ;;
8066esac
a0da8069
NN
8067
8068
a0da8069 8069# Host tools.
859789af
AC
8070ncn_tool_prefix=
8071test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8072ncn_target_tool_prefix=
8073test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8074
9a819804
AO
8075
8076
8077if test -n "$AR"; then
8078 ac_cv_prog_AR=$AR
8079elif test -n "$ac_cv_prog_AR"; then
8080 AR=$ac_cv_prog_AR
8081fi
8082
8083if test -n "$ac_cv_prog_AR"; then
8084 for ncn_progname in ar; do
8085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8086set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8088$as_echo_n "checking for $ac_word... " >&6; }
8089if test "${ac_cv_prog_AR+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
9a819804
AO
8091else
8092 if test -n "$AR"; then
8093 ac_cv_prog_AR="$AR" # Let the user override the test.
8094else
8095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096for as_dir in $PATH
8097do
8098 IFS=$as_save_IFS
8099 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8100 for ac_exec_ext in '' $ac_executable_extensions; do
8101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8102 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8104 break 2
8105 fi
8106done
81ecdfbb
RW
8107 done
8108IFS=$as_save_IFS
9a819804
AO
8109
8110fi
8111fi
8112AR=$ac_cv_prog_AR
8113if test -n "$AR"; then
81ecdfbb
RW
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8115$as_echo "$AR" >&6; }
9a819804 8116else
81ecdfbb
RW
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118$as_echo "no" >&6; }
9a819804
AO
8119fi
8120
81ecdfbb 8121
9a819804
AO
8122 done
8123fi
8124
8125for ncn_progname in ar; do
05cbd757
PB
8126 if test -n "$ncn_tool_prefix"; then
8127 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8128set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130$as_echo_n "checking for $ac_word... " >&6; }
8131if test "${ac_cv_prog_AR+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
859789af
AC
8133else
8134 if test -n "$AR"; then
8135 ac_cv_prog_AR="$AR" # Let the user override the test.
8136else
c6b750e1
DJ
8137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138for as_dir in $PATH
8139do
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8144 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8146 break 2
8147 fi
8148done
81ecdfbb
RW
8149 done
8150IFS=$as_save_IFS
c6b750e1 8151
859789af
AC
8152fi
8153fi
c6b750e1 8154AR=$ac_cv_prog_AR
859789af 8155if test -n "$AR"; then
81ecdfbb
RW
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8157$as_echo "$AR" >&6; }
859789af 8158else
81ecdfbb
RW
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160$as_echo "no" >&6; }
859789af
AC
8161fi
8162
81ecdfbb 8163
05cbd757
PB
8164 fi
8165 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8166 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8167set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8169$as_echo_n "checking for $ac_word... " >&6; }
8170if test "${ac_cv_prog_AR+set}" = set; then :
8171 $as_echo_n "(cached) " >&6
859789af 8172else
05cbd757
PB
8173 if test -n "$AR"; then
8174 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8175else
c6b750e1
DJ
8176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8177for as_dir in $PATH
8178do
8179 IFS=$as_save_IFS
8180 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8181 for ac_exec_ext in '' $ac_executable_extensions; do
8182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8183 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8185 break 2
8186 fi
8187done
81ecdfbb
RW
8188 done
8189IFS=$as_save_IFS
c6b750e1 8190
859789af
AC
8191fi
8192fi
c6b750e1 8193AR=$ac_cv_prog_AR
05cbd757 8194if test -n "$AR"; then
81ecdfbb
RW
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8196$as_echo "$AR" >&6; }
859789af 8197else
81ecdfbb
RW
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8199$as_echo "no" >&6; }
859789af 8200fi
c6b750e1 8201
81ecdfbb 8202
05cbd757
PB
8203 fi
8204 test -n "$ac_cv_prog_AR" && break
8205done
8206
8207if test -z "$ac_cv_prog_AR" ; then
8208 set dummy ar
8209 if test $build = $host ; then
8210 AR="$2"
859789af 8211 else
05cbd757 8212 AR="${ncn_tool_prefix}$2"
859789af 8213 fi
859789af
AC
8214fi
8215
9a819804
AO
8216
8217
8218if test -n "$AS"; then
8219 ac_cv_prog_AS=$AS
8220elif test -n "$ac_cv_prog_AS"; then
8221 AS=$ac_cv_prog_AS
8222fi
8223
8224if test -n "$ac_cv_prog_AS"; then
8225 for ncn_progname in as; do
8226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8227set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229$as_echo_n "checking for $ac_word... " >&6; }
8230if test "${ac_cv_prog_AS+set}" = set; then :
8231 $as_echo_n "(cached) " >&6
9a819804
AO
8232else
8233 if test -n "$AS"; then
8234 ac_cv_prog_AS="$AS" # Let the user override the test.
8235else
8236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237for as_dir in $PATH
8238do
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8243 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8245 break 2
8246 fi
8247done
81ecdfbb
RW
8248 done
8249IFS=$as_save_IFS
9a819804
AO
8250
8251fi
8252fi
8253AS=$ac_cv_prog_AS
8254if test -n "$AS"; then
81ecdfbb
RW
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8256$as_echo "$AS" >&6; }
9a819804 8257else
81ecdfbb
RW
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259$as_echo "no" >&6; }
9a819804
AO
8260fi
8261
81ecdfbb 8262
9a819804
AO
8263 done
8264fi
8265
8266for ncn_progname in as; do
05cbd757
PB
8267 if test -n "$ncn_tool_prefix"; then
8268 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8269set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271$as_echo_n "checking for $ac_word... " >&6; }
8272if test "${ac_cv_prog_AS+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
859789af
AC
8274else
8275 if test -n "$AS"; then
8276 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8277else
8278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279for as_dir in $PATH
8280do
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8285 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8287 break 2
8288 fi
8289done
81ecdfbb
RW
8290 done
8291IFS=$as_save_IFS
c6b750e1 8292
859789af
AC
8293fi
8294fi
c6b750e1 8295AS=$ac_cv_prog_AS
859789af 8296if test -n "$AS"; then
81ecdfbb
RW
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8298$as_echo "$AS" >&6; }
859789af 8299else
81ecdfbb
RW
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301$as_echo "no" >&6; }
859789af
AC
8302fi
8303
81ecdfbb 8304
05cbd757
PB
8305 fi
8306 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8307 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8308set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8310$as_echo_n "checking for $ac_word... " >&6; }
8311if test "${ac_cv_prog_AS+set}" = set; then :
8312 $as_echo_n "(cached) " >&6
859789af 8313else
05cbd757
PB
8314 if test -n "$AS"; then
8315 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8316else
c6b750e1
DJ
8317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318for as_dir in $PATH
8319do
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8324 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8326 break 2
8327 fi
8328done
81ecdfbb
RW
8329 done
8330IFS=$as_save_IFS
c6b750e1 8331
859789af
AC
8332fi
8333fi
c6b750e1 8334AS=$ac_cv_prog_AS
05cbd757 8335if test -n "$AS"; then
81ecdfbb
RW
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8337$as_echo "$AS" >&6; }
859789af 8338else
81ecdfbb
RW
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340$as_echo "no" >&6; }
859789af 8341fi
c6b750e1 8342
81ecdfbb 8343
05cbd757
PB
8344 fi
8345 test -n "$ac_cv_prog_AS" && break
8346done
8347
8348if test -z "$ac_cv_prog_AS" ; then
8349 set dummy as
8350 if test $build = $host ; then
8351 AS="$2"
859789af 8352 else
05cbd757 8353 AS="${ncn_tool_prefix}$2"
859789af 8354 fi
859789af
AC
8355fi
8356
9a819804
AO
8357
8358
8359if test -n "$DLLTOOL"; then
8360 ac_cv_prog_DLLTOOL=$DLLTOOL
8361elif test -n "$ac_cv_prog_DLLTOOL"; then
8362 DLLTOOL=$ac_cv_prog_DLLTOOL
8363fi
8364
8365if test -n "$ac_cv_prog_DLLTOOL"; then
8366 for ncn_progname in dlltool; do
8367 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8368set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8370$as_echo_n "checking for $ac_word... " >&6; }
8371if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
9a819804
AO
8373else
8374 if test -n "$DLLTOOL"; then
8375 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8376else
8377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378for as_dir in $PATH
8379do
8380 IFS=$as_save_IFS
8381 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8384 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8386 break 2
8387 fi
8388done
81ecdfbb
RW
8389 done
8390IFS=$as_save_IFS
9a819804
AO
8391
8392fi
8393fi
8394DLLTOOL=$ac_cv_prog_DLLTOOL
8395if test -n "$DLLTOOL"; then
81ecdfbb
RW
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8397$as_echo "$DLLTOOL" >&6; }
9a819804 8398else
81ecdfbb
RW
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8400$as_echo "no" >&6; }
9a819804
AO
8401fi
8402
81ecdfbb 8403
9a819804
AO
8404 done
8405fi
8406
8407for ncn_progname in dlltool; do
05cbd757
PB
8408 if test -n "$ncn_tool_prefix"; then
8409 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8410set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8412$as_echo_n "checking for $ac_word... " >&6; }
8413if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
859789af
AC
8415else
8416 if test -n "$DLLTOOL"; then
8417 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8418else
c6b750e1
DJ
8419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420for as_dir in $PATH
8421do
8422 IFS=$as_save_IFS
8423 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8424 for ac_exec_ext in '' $ac_executable_extensions; do
8425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8426 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8428 break 2
8429 fi
8430done
81ecdfbb
RW
8431 done
8432IFS=$as_save_IFS
c6b750e1 8433
859789af
AC
8434fi
8435fi
c6b750e1 8436DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8437if test -n "$DLLTOOL"; then
81ecdfbb
RW
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8439$as_echo "$DLLTOOL" >&6; }
859789af 8440else
81ecdfbb
RW
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8442$as_echo "no" >&6; }
859789af
AC
8443fi
8444
81ecdfbb 8445
05cbd757
PB
8446 fi
8447 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8448 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8449set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8451$as_echo_n "checking for $ac_word... " >&6; }
8452if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8453 $as_echo_n "(cached) " >&6
859789af 8454else
05cbd757
PB
8455 if test -n "$DLLTOOL"; then
8456 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8457else
c6b750e1
DJ
8458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459for as_dir in $PATH
8460do
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8465 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8467 break 2
8468 fi
8469done
81ecdfbb
RW
8470 done
8471IFS=$as_save_IFS
c6b750e1 8472
859789af
AC
8473fi
8474fi
c6b750e1 8475DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8476if test -n "$DLLTOOL"; then
81ecdfbb
RW
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8478$as_echo "$DLLTOOL" >&6; }
859789af 8479else
81ecdfbb
RW
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8481$as_echo "no" >&6; }
859789af 8482fi
c6b750e1 8483
81ecdfbb 8484
05cbd757
PB
8485 fi
8486 test -n "$ac_cv_prog_DLLTOOL" && break
8487done
8488
8489if test -z "$ac_cv_prog_DLLTOOL" ; then
8490 set dummy dlltool
8491 if test $build = $host ; then
8492 DLLTOOL="$2"
859789af 8493 else
05cbd757 8494 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8495 fi
859789af
AC
8496fi
8497
9a819804
AO
8498
8499
8500if test -n "$LD"; then
8501 ac_cv_prog_LD=$LD
8502elif test -n "$ac_cv_prog_LD"; then
8503 LD=$ac_cv_prog_LD
8504fi
8505
8506if test -n "$ac_cv_prog_LD"; then
8507 for ncn_progname in ld; do
8508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8509set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511$as_echo_n "checking for $ac_word... " >&6; }
8512if test "${ac_cv_prog_LD+set}" = set; then :
8513 $as_echo_n "(cached) " >&6
9a819804
AO
8514else
8515 if test -n "$LD"; then
8516 ac_cv_prog_LD="$LD" # Let the user override the test.
8517else
8518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519for as_dir in $PATH
8520do
8521 IFS=$as_save_IFS
8522 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8523 for ac_exec_ext in '' $ac_executable_extensions; do
8524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8525 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8527 break 2
8528 fi
8529done
81ecdfbb
RW
8530 done
8531IFS=$as_save_IFS
9a819804
AO
8532
8533fi
8534fi
8535LD=$ac_cv_prog_LD
8536if test -n "$LD"; then
81ecdfbb
RW
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8538$as_echo "$LD" >&6; }
9a819804 8539else
81ecdfbb
RW
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541$as_echo "no" >&6; }
9a819804
AO
8542fi
8543
81ecdfbb 8544
9a819804
AO
8545 done
8546fi
8547
8548for ncn_progname in ld; do
05cbd757
PB
8549 if test -n "$ncn_tool_prefix"; then
8550 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8551set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553$as_echo_n "checking for $ac_word... " >&6; }
8554if test "${ac_cv_prog_LD+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
859789af
AC
8556else
8557 if test -n "$LD"; then
8558 ac_cv_prog_LD="$LD" # Let the user override the test.
8559else
c6b750e1
DJ
8560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8561for as_dir in $PATH
8562do
8563 IFS=$as_save_IFS
8564 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8565 for ac_exec_ext in '' $ac_executable_extensions; do
8566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8567 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8569 break 2
8570 fi
8571done
81ecdfbb
RW
8572 done
8573IFS=$as_save_IFS
c6b750e1 8574
859789af
AC
8575fi
8576fi
c6b750e1 8577LD=$ac_cv_prog_LD
859789af 8578if test -n "$LD"; then
81ecdfbb
RW
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8580$as_echo "$LD" >&6; }
859789af 8581else
81ecdfbb
RW
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583$as_echo "no" >&6; }
859789af
AC
8584fi
8585
81ecdfbb 8586
05cbd757
PB
8587 fi
8588 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8589 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8590set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592$as_echo_n "checking for $ac_word... " >&6; }
8593if test "${ac_cv_prog_LD+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
859789af 8595else
05cbd757
PB
8596 if test -n "$LD"; then
8597 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8598else
c6b750e1
DJ
8599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600for as_dir in $PATH
8601do
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8606 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8608 break 2
8609 fi
8610done
81ecdfbb
RW
8611 done
8612IFS=$as_save_IFS
c6b750e1 8613
859789af
AC
8614fi
8615fi
c6b750e1 8616LD=$ac_cv_prog_LD
05cbd757 8617if test -n "$LD"; then
81ecdfbb
RW
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8619$as_echo "$LD" >&6; }
859789af 8620else
81ecdfbb
RW
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622$as_echo "no" >&6; }
859789af 8623fi
c6b750e1 8624
81ecdfbb 8625
05cbd757
PB
8626 fi
8627 test -n "$ac_cv_prog_LD" && break
8628done
8629
8630if test -z "$ac_cv_prog_LD" ; then
8631 set dummy ld
8632 if test $build = $host ; then
8633 LD="$2"
859789af 8634 else
05cbd757 8635 LD="${ncn_tool_prefix}$2"
859789af 8636 fi
859789af
AC
8637fi
8638
9a819804
AO
8639
8640
8641if test -n "$LIPO"; then
8642 ac_cv_prog_LIPO=$LIPO
8643elif test -n "$ac_cv_prog_LIPO"; then
8644 LIPO=$ac_cv_prog_LIPO
8645fi
8646
8647if test -n "$ac_cv_prog_LIPO"; then
8648 for ncn_progname in lipo; do
8649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8650set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652$as_echo_n "checking for $ac_word... " >&6; }
8653if test "${ac_cv_prog_LIPO+set}" = set; then :
8654 $as_echo_n "(cached) " >&6
9a819804
AO
8655else
8656 if test -n "$LIPO"; then
8657 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8658else
8659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660for as_dir in $PATH
8661do
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8666 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8668 break 2
8669 fi
8670done
81ecdfbb
RW
8671 done
8672IFS=$as_save_IFS
9a819804
AO
8673
8674fi
8675fi
8676LIPO=$ac_cv_prog_LIPO
8677if test -n "$LIPO"; then
81ecdfbb
RW
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8679$as_echo "$LIPO" >&6; }
9a819804 8680else
81ecdfbb
RW
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682$as_echo "no" >&6; }
9a819804
AO
8683fi
8684
81ecdfbb 8685
9a819804
AO
8686 done
8687fi
8688
8689for ncn_progname in lipo; do
be01d343
PB
8690 if test -n "$ncn_tool_prefix"; then
8691 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8692set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694$as_echo_n "checking for $ac_word... " >&6; }
8695if test "${ac_cv_prog_LIPO+set}" = set; then :
8696 $as_echo_n "(cached) " >&6
be01d343
PB
8697else
8698 if test -n "$LIPO"; then
8699 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8700else
c6b750e1
DJ
8701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702for as_dir in $PATH
8703do
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8708 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8710 break 2
8711 fi
8712done
81ecdfbb
RW
8713 done
8714IFS=$as_save_IFS
c6b750e1 8715
be01d343
PB
8716fi
8717fi
c6b750e1 8718LIPO=$ac_cv_prog_LIPO
be01d343 8719if test -n "$LIPO"; then
81ecdfbb
RW
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8721$as_echo "$LIPO" >&6; }
be01d343 8722else
81ecdfbb
RW
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724$as_echo "no" >&6; }
be01d343
PB
8725fi
8726
81ecdfbb 8727
be01d343
PB
8728 fi
8729 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8731set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733$as_echo_n "checking for $ac_word... " >&6; }
8734if test "${ac_cv_prog_LIPO+set}" = set; then :
8735 $as_echo_n "(cached) " >&6
be01d343
PB
8736else
8737 if test -n "$LIPO"; then
8738 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8739else
c6b750e1
DJ
8740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741for as_dir in $PATH
8742do
8743 IFS=$as_save_IFS
8744 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8747 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8749 break 2
8750 fi
8751done
81ecdfbb
RW
8752 done
8753IFS=$as_save_IFS
c6b750e1 8754
be01d343
PB
8755fi
8756fi
c6b750e1 8757LIPO=$ac_cv_prog_LIPO
be01d343 8758if test -n "$LIPO"; then
81ecdfbb
RW
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8760$as_echo "$LIPO" >&6; }
be01d343 8761else
81ecdfbb
RW
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763$as_echo "no" >&6; }
be01d343 8764fi
c6b750e1 8765
81ecdfbb 8766
be01d343
PB
8767 fi
8768 test -n "$ac_cv_prog_LIPO" && break
8769done
8770
8771if test -z "$ac_cv_prog_LIPO" ; then
8772 set dummy lipo
8773 if test $build = $host ; then
8774 LIPO="$2"
8775 else
8776 LIPO="${ncn_tool_prefix}$2"
8777 fi
8778fi
8779
9a819804
AO
8780
8781
8782if test -n "$NM"; then
8783 ac_cv_prog_NM=$NM
8784elif test -n "$ac_cv_prog_NM"; then
8785 NM=$ac_cv_prog_NM
8786fi
8787
8788if test -n "$ac_cv_prog_NM"; then
8789 for ncn_progname in nm; do
8790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8791set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8793$as_echo_n "checking for $ac_word... " >&6; }
8794if test "${ac_cv_prog_NM+set}" = set; then :
8795 $as_echo_n "(cached) " >&6
859789af
AC
8796else
8797 if test -n "$NM"; then
8798 ac_cv_prog_NM="$NM" # Let the user override the test.
8799else
c6b750e1
DJ
8800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801for as_dir in $PATH
8802do
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8807 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8809 break 2
8810 fi
8811done
81ecdfbb
RW
8812 done
8813IFS=$as_save_IFS
c6b750e1 8814
859789af
AC
8815fi
8816fi
c6b750e1 8817NM=$ac_cv_prog_NM
859789af 8818if test -n "$NM"; then
81ecdfbb
RW
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8820$as_echo "$NM" >&6; }
859789af 8821else
81ecdfbb
RW
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8823$as_echo "no" >&6; }
859789af
AC
8824fi
8825
81ecdfbb 8826
9a819804
AO
8827 done
8828fi
8829
8830for ncn_progname in nm; do
8831 if test -n "$ncn_tool_prefix"; then
8832 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8833set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835$as_echo_n "checking for $ac_word... " >&6; }
8836if test "${ac_cv_prog_NM+set}" = set; then :
8837 $as_echo_n "(cached) " >&6
859789af 8838else
05cbd757
PB
8839 if test -n "$NM"; then
8840 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8841else
c6b750e1
DJ
8842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843for as_dir in $PATH
8844do
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8849 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8851 break 2
8852 fi
8853done
81ecdfbb
RW
8854 done
8855IFS=$as_save_IFS
c6b750e1 8856
859789af
AC
8857fi
8858fi
c6b750e1 8859NM=$ac_cv_prog_NM
05cbd757 8860if test -n "$NM"; then
81ecdfbb
RW
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8862$as_echo "$NM" >&6; }
859789af 8863else
81ecdfbb
RW
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8865$as_echo "no" >&6; }
859789af 8866fi
c6b750e1 8867
81ecdfbb 8868
05cbd757 8869 fi
9a819804
AO
8870 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8871 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8872set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874$as_echo_n "checking for $ac_word... " >&6; }
8875if test "${ac_cv_prog_NM+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
9a819804
AO
8877else
8878 if test -n "$NM"; then
8879 ac_cv_prog_NM="$NM" # Let the user override the test.
8880else
8881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882for as_dir in $PATH
8883do
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8888 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8890 break 2
8891 fi
8892done
81ecdfbb
RW
8893 done
8894IFS=$as_save_IFS
9a819804
AO
8895
8896fi
8897fi
8898NM=$ac_cv_prog_NM
8899if test -n "$NM"; then
81ecdfbb
RW
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8901$as_echo "$NM" >&6; }
9a819804 8902else
81ecdfbb
RW
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904$as_echo "no" >&6; }
9a819804
AO
8905fi
8906
81ecdfbb 8907
9a819804
AO
8908 fi
8909 test -n "$ac_cv_prog_NM" && break
8910done
8911
8912if test -z "$ac_cv_prog_NM" ; then
8913 set dummy nm
8914 if test $build = $host ; then
8915 NM="$2"
8916 else
8917 NM="${ncn_tool_prefix}$2"
8918 fi
8919fi
8920
8921
8922
8923if test -n "$RANLIB"; then
8924 ac_cv_prog_RANLIB=$RANLIB
8925elif test -n "$ac_cv_prog_RANLIB"; then
8926 RANLIB=$ac_cv_prog_RANLIB
8927fi
8928
8929if test -n "$ac_cv_prog_RANLIB"; then
8930 for ncn_progname in ranlib; do
8931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8932set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934$as_echo_n "checking for $ac_word... " >&6; }
8935if test "${ac_cv_prog_RANLIB+set}" = set; then :
8936 $as_echo_n "(cached) " >&6
9a819804
AO
8937else
8938 if test -n "$RANLIB"; then
8939 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8940else
8941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942for as_dir in $PATH
8943do
8944 IFS=$as_save_IFS
8945 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8946 for ac_exec_ext in '' $ac_executable_extensions; do
8947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8948 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8950 break 2
8951 fi
8952done
81ecdfbb
RW
8953 done
8954IFS=$as_save_IFS
9a819804
AO
8955
8956fi
8957fi
8958RANLIB=$ac_cv_prog_RANLIB
8959if test -n "$RANLIB"; then
81ecdfbb
RW
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8961$as_echo "$RANLIB" >&6; }
9a819804 8962else
81ecdfbb
RW
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964$as_echo "no" >&6; }
9a819804
AO
8965fi
8966
81ecdfbb 8967
9a819804
AO
8968 done
8969fi
859789af 8970
9a819804 8971for ncn_progname in ranlib; do
05cbd757
PB
8972 if test -n "$ncn_tool_prefix"; then
8973 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8974set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8976$as_echo_n "checking for $ac_word... " >&6; }
8977if test "${ac_cv_prog_RANLIB+set}" = set; then :
8978 $as_echo_n "(cached) " >&6
859789af
AC
8979else
8980 if test -n "$RANLIB"; then
8981 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8982else
c6b750e1
DJ
8983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984for as_dir in $PATH
8985do
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8990 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8992 break 2
8993 fi
8994done
81ecdfbb
RW
8995 done
8996IFS=$as_save_IFS
c6b750e1 8997
859789af
AC
8998fi
8999fi
c6b750e1 9000RANLIB=$ac_cv_prog_RANLIB
859789af 9001if test -n "$RANLIB"; then
81ecdfbb
RW
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9003$as_echo "$RANLIB" >&6; }
859789af 9004else
81ecdfbb
RW
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006$as_echo "no" >&6; }
859789af
AC
9007fi
9008
81ecdfbb 9009
05cbd757
PB
9010 fi
9011 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9012 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9013set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9015$as_echo_n "checking for $ac_word... " >&6; }
9016if test "${ac_cv_prog_RANLIB+set}" = set; then :
9017 $as_echo_n "(cached) " >&6
859789af 9018else
05cbd757
PB
9019 if test -n "$RANLIB"; then
9020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9021else
c6b750e1
DJ
9022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023for as_dir in $PATH
9024do
9025 IFS=$as_save_IFS
9026 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9027 for ac_exec_ext in '' $ac_executable_extensions; do
9028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9029 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9031 break 2
9032 fi
9033done
81ecdfbb
RW
9034 done
9035IFS=$as_save_IFS
c6b750e1 9036
859789af
AC
9037fi
9038fi
c6b750e1 9039RANLIB=$ac_cv_prog_RANLIB
05cbd757 9040if test -n "$RANLIB"; then
81ecdfbb
RW
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9042$as_echo "$RANLIB" >&6; }
859789af 9043else
81ecdfbb
RW
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045$as_echo "no" >&6; }
859789af 9046fi
c6b750e1 9047
81ecdfbb 9048
859789af 9049 fi
05cbd757
PB
9050 test -n "$ac_cv_prog_RANLIB" && break
9051done
9052
9053if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9054 RANLIB="true"
859789af
AC
9055fi
9056
9a819804
AO
9057
9058
9059if test -n "$STRIP"; then
9060 ac_cv_prog_STRIP=$STRIP
9061elif test -n "$ac_cv_prog_STRIP"; then
9062 STRIP=$ac_cv_prog_STRIP
9063fi
9064
9065if test -n "$ac_cv_prog_STRIP"; then
9066 for ncn_progname in strip; do
9067 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9068set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070$as_echo_n "checking for $ac_word... " >&6; }
9071if test "${ac_cv_prog_STRIP+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9a819804
AO
9073else
9074 if test -n "$STRIP"; then
9075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9076else
9077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9078for as_dir in $PATH
9079do
9080 IFS=$as_save_IFS
9081 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9084 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9086 break 2
9087 fi
9088done
81ecdfbb
RW
9089 done
9090IFS=$as_save_IFS
9a819804
AO
9091
9092fi
9093fi
9094STRIP=$ac_cv_prog_STRIP
9095if test -n "$STRIP"; then
81ecdfbb
RW
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9097$as_echo "$STRIP" >&6; }
9a819804 9098else
81ecdfbb
RW
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100$as_echo "no" >&6; }
9a819804
AO
9101fi
9102
81ecdfbb 9103
9a819804
AO
9104 done
9105fi
9106
9107for ncn_progname in strip; do
be01d343
PB
9108 if test -n "$ncn_tool_prefix"; then
9109 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9110set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9112$as_echo_n "checking for $ac_word... " >&6; }
9113if test "${ac_cv_prog_STRIP+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
be01d343
PB
9115else
9116 if test -n "$STRIP"; then
9117 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9118else
c6b750e1
DJ
9119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120for as_dir in $PATH
9121do
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9126 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9128 break 2
9129 fi
9130done
81ecdfbb
RW
9131 done
9132IFS=$as_save_IFS
c6b750e1 9133
be01d343
PB
9134fi
9135fi
c6b750e1 9136STRIP=$ac_cv_prog_STRIP
be01d343 9137if test -n "$STRIP"; then
81ecdfbb
RW
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9139$as_echo "$STRIP" >&6; }
be01d343 9140else
81ecdfbb
RW
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9142$as_echo "no" >&6; }
be01d343
PB
9143fi
9144
81ecdfbb 9145
be01d343
PB
9146 fi
9147 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9148 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9149set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9151$as_echo_n "checking for $ac_word... " >&6; }
9152if test "${ac_cv_prog_STRIP+set}" = set; then :
9153 $as_echo_n "(cached) " >&6
be01d343
PB
9154else
9155 if test -n "$STRIP"; then
9156 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9157else
c6b750e1
DJ
9158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159for as_dir in $PATH
9160do
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9165 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9167 break 2
9168 fi
9169done
81ecdfbb
RW
9170 done
9171IFS=$as_save_IFS
c6b750e1 9172
be01d343
PB
9173fi
9174fi
c6b750e1 9175STRIP=$ac_cv_prog_STRIP
be01d343 9176if test -n "$STRIP"; then
81ecdfbb
RW
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9178$as_echo "$STRIP" >&6; }
be01d343 9179else
81ecdfbb
RW
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181$as_echo "no" >&6; }
be01d343 9182fi
c6b750e1 9183
81ecdfbb 9184
be01d343
PB
9185 fi
9186 test -n "$ac_cv_prog_STRIP" && break
9187done
9188
9189if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9190 STRIP="true"
be01d343
PB
9191fi
9192
9a819804
AO
9193
9194
9195if test -n "$WINDRES"; then
9196 ac_cv_prog_WINDRES=$WINDRES
9197elif test -n "$ac_cv_prog_WINDRES"; then
9198 WINDRES=$ac_cv_prog_WINDRES
9199fi
9200
9201if test -n "$ac_cv_prog_WINDRES"; then
9202 for ncn_progname in windres; do
9203 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9204set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9206$as_echo_n "checking for $ac_word... " >&6; }
9207if test "${ac_cv_prog_WINDRES+set}" = set; then :
9208 $as_echo_n "(cached) " >&6
9a819804
AO
9209else
9210 if test -n "$WINDRES"; then
9211 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9212else
9213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214for as_dir in $PATH
9215do
9216 IFS=$as_save_IFS
9217 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9218 for ac_exec_ext in '' $ac_executable_extensions; do
9219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9220 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9222 break 2
9223 fi
9224done
81ecdfbb
RW
9225 done
9226IFS=$as_save_IFS
9a819804
AO
9227
9228fi
9229fi
9230WINDRES=$ac_cv_prog_WINDRES
9231if test -n "$WINDRES"; then
81ecdfbb
RW
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9233$as_echo "$WINDRES" >&6; }
9a819804 9234else
81ecdfbb
RW
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9236$as_echo "no" >&6; }
9a819804
AO
9237fi
9238
81ecdfbb 9239
9a819804
AO
9240 done
9241fi
9242
9243for ncn_progname in windres; do
05cbd757
PB
9244 if test -n "$ncn_tool_prefix"; then
9245 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9246set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248$as_echo_n "checking for $ac_word... " >&6; }
9249if test "${ac_cv_prog_WINDRES+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
859789af
AC
9251else
9252 if test -n "$WINDRES"; then
9253 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9254else
c6b750e1
DJ
9255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9256for as_dir in $PATH
9257do
9258 IFS=$as_save_IFS
9259 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9262 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9264 break 2
9265 fi
9266done
81ecdfbb
RW
9267 done
9268IFS=$as_save_IFS
c6b750e1 9269
859789af
AC
9270fi
9271fi
c6b750e1 9272WINDRES=$ac_cv_prog_WINDRES
859789af 9273if test -n "$WINDRES"; then
81ecdfbb
RW
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9275$as_echo "$WINDRES" >&6; }
859789af 9276else
81ecdfbb
RW
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278$as_echo "no" >&6; }
859789af
AC
9279fi
9280
81ecdfbb 9281
05cbd757
PB
9282 fi
9283 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9284 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9285set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287$as_echo_n "checking for $ac_word... " >&6; }
9288if test "${ac_cv_prog_WINDRES+set}" = set; then :
9289 $as_echo_n "(cached) " >&6
859789af 9290else
05cbd757
PB
9291 if test -n "$WINDRES"; then
9292 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9293else
c6b750e1
DJ
9294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295for as_dir in $PATH
9296do
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9299 for ac_exec_ext in '' $ac_executable_extensions; do
9300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9301 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9303 break 2
9304 fi
9305done
81ecdfbb
RW
9306 done
9307IFS=$as_save_IFS
c6b750e1 9308
859789af
AC
9309fi
9310fi
c6b750e1 9311WINDRES=$ac_cv_prog_WINDRES
05cbd757 9312if test -n "$WINDRES"; then
81ecdfbb
RW
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9314$as_echo "$WINDRES" >&6; }
859789af 9315else
81ecdfbb
RW
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317$as_echo "no" >&6; }
859789af 9318fi
c6b750e1 9319
81ecdfbb 9320
05cbd757
PB
9321 fi
9322 test -n "$ac_cv_prog_WINDRES" && break
9323done
9324
9325if test -z "$ac_cv_prog_WINDRES" ; then
9326 set dummy windres
9327 if test $build = $host ; then
9328 WINDRES="$2"
859789af 9329 else
05cbd757 9330 WINDRES="${ncn_tool_prefix}$2"
859789af 9331 fi
859789af
AC
9332fi
9333
9a819804
AO
9334
9335
0c24b341
NC
9336if test -n "$WINDMC"; then
9337 ac_cv_prog_WINDMC=$WINDMC
9338elif test -n "$ac_cv_prog_WINDMC"; then
9339 WINDMC=$ac_cv_prog_WINDMC
9340fi
9341
9342if test -n "$ac_cv_prog_WINDMC"; then
9343 for ncn_progname in windmc; do
9344 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9345set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347$as_echo_n "checking for $ac_word... " >&6; }
9348if test "${ac_cv_prog_WINDMC+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
0c24b341
NC
9350else
9351 if test -n "$WINDMC"; then
9352 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9353else
9354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355for as_dir in $PATH
9356do
9357 IFS=$as_save_IFS
9358 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9359 for ac_exec_ext in '' $ac_executable_extensions; do
9360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9361 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9363 break 2
9364 fi
9365done
81ecdfbb
RW
9366 done
9367IFS=$as_save_IFS
0c24b341
NC
9368
9369fi
9370fi
9371WINDMC=$ac_cv_prog_WINDMC
9372if test -n "$WINDMC"; then
81ecdfbb
RW
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9374$as_echo "$WINDMC" >&6; }
0c24b341 9375else
81ecdfbb
RW
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377$as_echo "no" >&6; }
0c24b341
NC
9378fi
9379
81ecdfbb 9380
0c24b341
NC
9381 done
9382fi
9383
9384for ncn_progname in windmc; do
9385 if test -n "$ncn_tool_prefix"; then
9386 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9387set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9389$as_echo_n "checking for $ac_word... " >&6; }
9390if test "${ac_cv_prog_WINDMC+set}" = set; then :
9391 $as_echo_n "(cached) " >&6
0c24b341
NC
9392else
9393 if test -n "$WINDMC"; then
9394 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9395else
9396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9397for as_dir in $PATH
9398do
9399 IFS=$as_save_IFS
9400 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9401 for ac_exec_ext in '' $ac_executable_extensions; do
9402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9403 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9405 break 2
9406 fi
9407done
81ecdfbb
RW
9408 done
9409IFS=$as_save_IFS
0c24b341
NC
9410
9411fi
9412fi
9413WINDMC=$ac_cv_prog_WINDMC
9414if test -n "$WINDMC"; then
81ecdfbb
RW
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9416$as_echo "$WINDMC" >&6; }
0c24b341 9417else
81ecdfbb
RW
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9419$as_echo "no" >&6; }
0c24b341
NC
9420fi
9421
81ecdfbb 9422
0c24b341
NC
9423 fi
9424 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9425 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9426set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9428$as_echo_n "checking for $ac_word... " >&6; }
9429if test "${ac_cv_prog_WINDMC+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
0c24b341
NC
9431else
9432 if test -n "$WINDMC"; then
9433 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9434else
9435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9436for as_dir in $PATH
9437do
9438 IFS=$as_save_IFS
9439 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9440 for ac_exec_ext in '' $ac_executable_extensions; do
9441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9442 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9444 break 2
9445 fi
9446done
81ecdfbb
RW
9447 done
9448IFS=$as_save_IFS
0c24b341
NC
9449
9450fi
9451fi
9452WINDMC=$ac_cv_prog_WINDMC
9453if test -n "$WINDMC"; then
81ecdfbb
RW
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9455$as_echo "$WINDMC" >&6; }
0c24b341 9456else
81ecdfbb
RW
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9458$as_echo "no" >&6; }
0c24b341
NC
9459fi
9460
81ecdfbb 9461
0c24b341
NC
9462 fi
9463 test -n "$ac_cv_prog_WINDMC" && break
9464done
9465
9466if test -z "$ac_cv_prog_WINDMC" ; then
9467 set dummy windmc
9468 if test $build = $host ; then
9469 WINDMC="$2"
9470 else
9471 WINDMC="${ncn_tool_prefix}$2"
9472 fi
9473fi
9474
9475
9476
9a819804
AO
9477if test -n "$OBJCOPY"; then
9478 ac_cv_prog_OBJCOPY=$OBJCOPY
9479elif test -n "$ac_cv_prog_OBJCOPY"; then
9480 OBJCOPY=$ac_cv_prog_OBJCOPY
9481fi
9482
9483if test -n "$ac_cv_prog_OBJCOPY"; then
9484 for ncn_progname in objcopy; do
9485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9486set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9488$as_echo_n "checking for $ac_word... " >&6; }
9489if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9490 $as_echo_n "(cached) " >&6
9a819804
AO
9491else
9492 if test -n "$OBJCOPY"; then
9493 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9494else
9495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496for as_dir in $PATH
9497do
9498 IFS=$as_save_IFS
9499 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9500 for ac_exec_ext in '' $ac_executable_extensions; do
9501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9502 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9504 break 2
9505 fi
9506done
81ecdfbb
RW
9507 done
9508IFS=$as_save_IFS
9a819804
AO
9509
9510fi
9511fi
9512OBJCOPY=$ac_cv_prog_OBJCOPY
9513if test -n "$OBJCOPY"; then
81ecdfbb
RW
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9515$as_echo "$OBJCOPY" >&6; }
9a819804 9516else
81ecdfbb
RW
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518$as_echo "no" >&6; }
9a819804
AO
9519fi
9520
81ecdfbb 9521
9a819804
AO
9522 done
9523fi
9524
9525for ncn_progname in objcopy; do
05cbd757
PB
9526 if test -n "$ncn_tool_prefix"; then
9527 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9528set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9530$as_echo_n "checking for $ac_word... " >&6; }
9531if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9532 $as_echo_n "(cached) " >&6
859789af
AC
9533else
9534 if test -n "$OBJCOPY"; then
9535 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9536else
c6b750e1
DJ
9537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9538for as_dir in $PATH
9539do
9540 IFS=$as_save_IFS
9541 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9542 for ac_exec_ext in '' $ac_executable_extensions; do
9543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9544 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9546 break 2
9547 fi
9548done
81ecdfbb
RW
9549 done
9550IFS=$as_save_IFS
c6b750e1 9551
859789af
AC
9552fi
9553fi
c6b750e1 9554OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9555if test -n "$OBJCOPY"; then
81ecdfbb
RW
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9557$as_echo "$OBJCOPY" >&6; }
859789af 9558else
81ecdfbb
RW
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9560$as_echo "no" >&6; }
859789af
AC
9561fi
9562
81ecdfbb 9563
05cbd757
PB
9564 fi
9565 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9567set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569$as_echo_n "checking for $ac_word... " >&6; }
9570if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
859789af 9572else
05cbd757
PB
9573 if test -n "$OBJCOPY"; then
9574 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9575else
c6b750e1
DJ
9576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9577for as_dir in $PATH
9578do
9579 IFS=$as_save_IFS
9580 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9581 for ac_exec_ext in '' $ac_executable_extensions; do
9582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9583 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9585 break 2
9586 fi
9587done
81ecdfbb
RW
9588 done
9589IFS=$as_save_IFS
c6b750e1 9590
859789af
AC
9591fi
9592fi
c6b750e1 9593OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9594if test -n "$OBJCOPY"; then
81ecdfbb
RW
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9596$as_echo "$OBJCOPY" >&6; }
859789af 9597else
81ecdfbb
RW
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599$as_echo "no" >&6; }
859789af 9600fi
c6b750e1 9601
81ecdfbb 9602
05cbd757
PB
9603 fi
9604 test -n "$ac_cv_prog_OBJCOPY" && break
9605done
9606
9607if test -z "$ac_cv_prog_OBJCOPY" ; then
9608 set dummy objcopy
9609 if test $build = $host ; then
9610 OBJCOPY="$2"
859789af 9611 else
05cbd757 9612 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9613 fi
859789af
AC
9614fi
9615
9a819804
AO
9616
9617
9618if test -n "$OBJDUMP"; then
9619 ac_cv_prog_OBJDUMP=$OBJDUMP
9620elif test -n "$ac_cv_prog_OBJDUMP"; then
9621 OBJDUMP=$ac_cv_prog_OBJDUMP
9622fi
9623
9624if test -n "$ac_cv_prog_OBJDUMP"; then
9625 for ncn_progname in objdump; do
9626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9627set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9629$as_echo_n "checking for $ac_word... " >&6; }
9630if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9a819804
AO
9632else
9633 if test -n "$OBJDUMP"; then
9634 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9635else
9636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9637for as_dir in $PATH
9638do
9639 IFS=$as_save_IFS
9640 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9643 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9645 break 2
9646 fi
9647done
81ecdfbb
RW
9648 done
9649IFS=$as_save_IFS
9a819804
AO
9650
9651fi
9652fi
9653OBJDUMP=$ac_cv_prog_OBJDUMP
9654if test -n "$OBJDUMP"; then
81ecdfbb
RW
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9656$as_echo "$OBJDUMP" >&6; }
9a819804 9657else
81ecdfbb
RW
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659$as_echo "no" >&6; }
9a819804
AO
9660fi
9661
81ecdfbb 9662
9a819804
AO
9663 done
9664fi
9665
9666for ncn_progname in objdump; do
05cbd757
PB
9667 if test -n "$ncn_tool_prefix"; then
9668 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9669set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9671$as_echo_n "checking for $ac_word... " >&6; }
9672if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9673 $as_echo_n "(cached) " >&6
859789af
AC
9674else
9675 if test -n "$OBJDUMP"; then
9676 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9677else
c6b750e1
DJ
9678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9679for as_dir in $PATH
9680do
9681 IFS=$as_save_IFS
9682 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9683 for ac_exec_ext in '' $ac_executable_extensions; do
9684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9685 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9687 break 2
9688 fi
9689done
81ecdfbb
RW
9690 done
9691IFS=$as_save_IFS
c6b750e1 9692
859789af
AC
9693fi
9694fi
c6b750e1 9695OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9696if test -n "$OBJDUMP"; then
81ecdfbb
RW
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9698$as_echo "$OBJDUMP" >&6; }
859789af 9699else
81ecdfbb
RW
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701$as_echo "no" >&6; }
859789af
AC
9702fi
9703
81ecdfbb 9704
05cbd757
PB
9705 fi
9706 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9707 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9708set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9710$as_echo_n "checking for $ac_word... " >&6; }
9711if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9712 $as_echo_n "(cached) " >&6
859789af 9713else
05cbd757
PB
9714 if test -n "$OBJDUMP"; then
9715 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9716else
c6b750e1
DJ
9717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9718for as_dir in $PATH
9719do
9720 IFS=$as_save_IFS
9721 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9722 for ac_exec_ext in '' $ac_executable_extensions; do
9723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9724 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9726 break 2
9727 fi
9728done
81ecdfbb
RW
9729 done
9730IFS=$as_save_IFS
c6b750e1 9731
859789af
AC
9732fi
9733fi
c6b750e1 9734OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9735if test -n "$OBJDUMP"; then
81ecdfbb
RW
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9737$as_echo "$OBJDUMP" >&6; }
859789af 9738else
81ecdfbb
RW
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740$as_echo "no" >&6; }
859789af 9741fi
c6b750e1 9742
81ecdfbb 9743
05cbd757
PB
9744 fi
9745 test -n "$ac_cv_prog_OBJDUMP" && break
9746done
9747
9748if test -z "$ac_cv_prog_OBJDUMP" ; then
9749 set dummy objdump
9750 if test $build = $host ; then
9751 OBJDUMP="$2"
859789af 9752 else
05cbd757 9753 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9754 fi
859789af
AC
9755fi
9756
a0da8069
NN
9757
9758
b121d7d4
DD
9759if test -n "$READELF"; then
9760 ac_cv_prog_READELF=$READELF
9761elif test -n "$ac_cv_prog_READELF"; then
9762 READELF=$ac_cv_prog_READELF
9763fi
9764
9765if test -n "$ac_cv_prog_READELF"; then
9766 for ncn_progname in readelf; do
9767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9768set dummy ${ncn_progname}; ac_word=$2
9769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9770$as_echo_n "checking for $ac_word... " >&6; }
9771if test "${ac_cv_prog_READELF+set}" = set; then :
9772 $as_echo_n "(cached) " >&6
9773else
9774 if test -n "$READELF"; then
9775 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9776else
9777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9778for as_dir in $PATH
9779do
9780 IFS=$as_save_IFS
9781 test -z "$as_dir" && as_dir=.
9782 for ac_exec_ext in '' $ac_executable_extensions; do
9783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9784 ac_cv_prog_READELF="${ncn_progname}"
9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9786 break 2
9787 fi
9788done
9789 done
9790IFS=$as_save_IFS
9791
9792fi
9793fi
9794READELF=$ac_cv_prog_READELF
9795if test -n "$READELF"; then
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9797$as_echo "$READELF" >&6; }
9798else
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9800$as_echo "no" >&6; }
9801fi
9802
9803
9804 done
9805fi
9806
9807for ncn_progname in readelf; do
9808 if test -n "$ncn_tool_prefix"; then
9809 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9810set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
9811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812$as_echo_n "checking for $ac_word... " >&6; }
9813if test "${ac_cv_prog_READELF+set}" = set; then :
9814 $as_echo_n "(cached) " >&6
9815else
9816 if test -n "$READELF"; then
9817 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9818else
9819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820for as_dir in $PATH
9821do
9822 IFS=$as_save_IFS
9823 test -z "$as_dir" && as_dir=.
9824 for ac_exec_ext in '' $ac_executable_extensions; do
9825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9826 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
9827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9828 break 2
9829 fi
9830done
9831 done
9832IFS=$as_save_IFS
9833
9834fi
9835fi
9836READELF=$ac_cv_prog_READELF
9837if test -n "$READELF"; then
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9839$as_echo "$READELF" >&6; }
9840else
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842$as_echo "no" >&6; }
9843fi
9844
9845
9846 fi
9847 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
9848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9849set dummy ${ncn_progname}; ac_word=$2
9850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9851$as_echo_n "checking for $ac_word... " >&6; }
9852if test "${ac_cv_prog_READELF+set}" = set; then :
9853 $as_echo_n "(cached) " >&6
9854else
9855 if test -n "$READELF"; then
9856 ac_cv_prog_READELF="$READELF" # Let the user override the test.
9857else
9858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9859for as_dir in $PATH
9860do
9861 IFS=$as_save_IFS
9862 test -z "$as_dir" && as_dir=.
9863 for ac_exec_ext in '' $ac_executable_extensions; do
9864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9865 ac_cv_prog_READELF="${ncn_progname}"
9866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9867 break 2
9868 fi
9869done
9870 done
9871IFS=$as_save_IFS
9872
9873fi
9874fi
9875READELF=$ac_cv_prog_READELF
9876if test -n "$READELF"; then
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
9878$as_echo "$READELF" >&6; }
9879else
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9881$as_echo "no" >&6; }
9882fi
9883
9884
9885 fi
9886 test -n "$ac_cv_prog_READELF" && break
9887done
9888
9889if test -z "$ac_cv_prog_READELF" ; then
9890 set dummy readelf
9891 if test $build = $host ; then
9892 READELF="$2"
9893 else
9894 READELF="${ncn_tool_prefix}$2"
9895 fi
9896fi
9897
9898
9899
a0da8069
NN
9900
9901
9902
be01d343 9903# Target tools.
c6b750e1 9904
81ecdfbb
RW
9905# Check whether --with-build-time-tools was given.
9906if test "${with_build_time_tools+set}" = set; then :
9907 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9908 x/*) ;;
9909 *)
9910 with_build_time_tools=
81ecdfbb
RW
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9912$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9913 ;;
9914 esac
859789af 9915else
2429c060 9916 with_build_time_tools=
81ecdfbb
RW
9917fi
9918
859789af 9919
9a819804
AO
9920
9921
9922if test -n "$CC_FOR_TARGET"; then
9923 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9924elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9925 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9926fi
9927
9928if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9929 for ncn_progname in cc gcc; do
9930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9931set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9933$as_echo_n "checking for $ac_word... " >&6; }
9934if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9935 $as_echo_n "(cached) " >&6
9a819804
AO
9936else
9937 if test -n "$CC_FOR_TARGET"; then
9938 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9939else
9940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9941for as_dir in $PATH
9942do
9943 IFS=$as_save_IFS
9944 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9945 for ac_exec_ext in '' $ac_executable_extensions; do
9946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9947 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9949 break 2
9950 fi
9951done
81ecdfbb
RW
9952 done
9953IFS=$as_save_IFS
9a819804
AO
9954
9955fi
9956fi
9957CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9958if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9960$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9961else
81ecdfbb
RW
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9963$as_echo "no" >&6; }
9a819804
AO
9964fi
9965
81ecdfbb 9966
9a819804
AO
9967 done
9968fi
9969
9970if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9971 for ncn_progname in cc gcc; do
81ecdfbb
RW
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9973$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9974 if test -x $with_build_time_tools/${ncn_progname}; then
9975 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9977$as_echo "yes" >&6; }
cac3d6c4 9978 break
2429c060 9979 else
81ecdfbb
RW
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9981$as_echo "no" >&6; }
cac3d6c4
CM
9982 fi
9983 done
55db4b87
PB
9984fi
9985
2429c060
PB
9986if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9987 for ncn_progname in cc gcc; do
9988 if test -n "$ncn_target_tool_prefix"; then
9989 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9990set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992$as_echo_n "checking for $ac_word... " >&6; }
9993if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9994 $as_echo_n "(cached) " >&6
55db4b87
PB
9995else
9996 if test -n "$CC_FOR_TARGET"; then
9997 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9998else
c6b750e1
DJ
9999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10000for as_dir in $PATH
10001do
10002 IFS=$as_save_IFS
10003 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10004 for ac_exec_ext in '' $ac_executable_extensions; do
10005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10006 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10008 break 2
10009 fi
10010done
81ecdfbb
RW
10011 done
10012IFS=$as_save_IFS
c6b750e1 10013
55db4b87
PB
10014fi
10015fi
c6b750e1 10016CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 10017if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10019$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10020else
81ecdfbb
RW
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10022$as_echo "no" >&6; }
55db4b87
PB
10023fi
10024
81ecdfbb 10025
2429c060
PB
10026 fi
10027 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
10028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10029set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10031$as_echo_n "checking for $ac_word... " >&6; }
10032if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
10033 $as_echo_n "(cached) " >&6
55db4b87 10034else
05cbd757
PB
10035 if test -n "$CC_FOR_TARGET"; then
10036 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 10037else
c6b750e1
DJ
10038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039for as_dir in $PATH
10040do
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10045 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10047 break 2
10048 fi
10049done
81ecdfbb
RW
10050 done
10051IFS=$as_save_IFS
c6b750e1 10052
55db4b87
PB
10053fi
10054fi
c6b750e1 10055CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 10056if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
10058$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 10059else
81ecdfbb
RW
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061$as_echo "no" >&6; }
55db4b87 10062fi
c6b750e1 10063
81ecdfbb 10064
2429c060
PB
10065 fi
10066 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
10067 done
10068fi
c6b750e1 10069
05cbd757
PB
10070if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
10071 set dummy cc gcc
10072 if test $build = $target ; then
10073 CC_FOR_TARGET="$2"
55db4b87 10074 else
05cbd757 10075 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10076 fi
d3f5afc4
MS
10077else
10078 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
10079fi
10080
9a819804
AO
10081
10082
10083if test -n "$CXX_FOR_TARGET"; then
10084 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
10085elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10086 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10087fi
10088
10089if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
10090 for ncn_progname in c++ g++ cxx gxx; do
10091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10092set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10094$as_echo_n "checking for $ac_word... " >&6; }
10095if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
9a819804
AO
10097else
10098 if test -n "$CXX_FOR_TARGET"; then
10099 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10100else
10101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102for as_dir in $PATH
10103do
10104 IFS=$as_save_IFS
10105 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10106 for ac_exec_ext in '' $ac_executable_extensions; do
10107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10108 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10110 break 2
10111 fi
10112done
81ecdfbb
RW
10113 done
10114IFS=$as_save_IFS
9a819804
AO
10115
10116fi
10117fi
10118CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10119if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10121$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10122else
81ecdfbb
RW
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10124$as_echo "no" >&6; }
9a819804
AO
10125fi
10126
81ecdfbb 10127
9a819804
AO
10128 done
10129fi
10130
10131if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10132 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10134$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10135 if test -x $with_build_time_tools/${ncn_progname}; then
10136 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10138$as_echo "yes" >&6; }
2429c060
PB
10139 break
10140 else
81ecdfbb
RW
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10142$as_echo "no" >&6; }
2429c060
PB
10143 fi
10144 done
10145fi
10146
10147if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10148 for ncn_progname in c++ g++ cxx gxx; do
10149 if test -n "$ncn_target_tool_prefix"; then
10150 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10151set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10153$as_echo_n "checking for $ac_word... " >&6; }
10154if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10155 $as_echo_n "(cached) " >&6
55db4b87
PB
10156else
10157 if test -n "$CXX_FOR_TARGET"; then
10158 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10159else
c6b750e1
DJ
10160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161for as_dir in $PATH
10162do
10163 IFS=$as_save_IFS
10164 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10167 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10169 break 2
10170 fi
10171done
81ecdfbb
RW
10172 done
10173IFS=$as_save_IFS
c6b750e1 10174
55db4b87
PB
10175fi
10176fi
c6b750e1 10177CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10178if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10180$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10181else
81ecdfbb
RW
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183$as_echo "no" >&6; }
55db4b87
PB
10184fi
10185
81ecdfbb 10186
2429c060
PB
10187 fi
10188 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10190set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10192$as_echo_n "checking for $ac_word... " >&6; }
10193if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10194 $as_echo_n "(cached) " >&6
55db4b87 10195else
05cbd757
PB
10196 if test -n "$CXX_FOR_TARGET"; then
10197 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10198else
c6b750e1
DJ
10199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200for as_dir in $PATH
10201do
10202 IFS=$as_save_IFS
10203 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10204 for ac_exec_ext in '' $ac_executable_extensions; do
10205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10206 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10208 break 2
10209 fi
10210done
81ecdfbb
RW
10211 done
10212IFS=$as_save_IFS
c6b750e1 10213
55db4b87
PB
10214fi
10215fi
c6b750e1 10216CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10217if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10219$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10220else
81ecdfbb
RW
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222$as_echo "no" >&6; }
55db4b87 10223fi
c6b750e1 10224
81ecdfbb 10225
2429c060
PB
10226 fi
10227 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10228 done
10229fi
c6b750e1 10230
05cbd757
PB
10231if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10232 set dummy c++ g++ cxx gxx
10233 if test $build = $target ; then
10234 CXX_FOR_TARGET="$2"
55db4b87 10235 else
05cbd757 10236 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10237 fi
d3f5afc4
MS
10238else
10239 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10240fi
10241
9a819804
AO
10242
10243
10244if test -n "$GCC_FOR_TARGET"; then
10245 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10246elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10247 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10248fi
10249
10250if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10251 for ncn_progname in gcc; do
10252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10253set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10255$as_echo_n "checking for $ac_word... " >&6; }
10256if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10257 $as_echo_n "(cached) " >&6
9a819804
AO
10258else
10259 if test -n "$GCC_FOR_TARGET"; then
10260 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10261else
10262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10263for as_dir in $PATH
10264do
10265 IFS=$as_save_IFS
10266 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10267 for ac_exec_ext in '' $ac_executable_extensions; do
10268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10269 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10271 break 2
10272 fi
10273done
81ecdfbb
RW
10274 done
10275IFS=$as_save_IFS
9a819804
AO
10276
10277fi
10278fi
10279GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10280if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10282$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10283else
81ecdfbb
RW
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10285$as_echo "no" >&6; }
9a819804
AO
10286fi
10287
81ecdfbb 10288
9a819804
AO
10289 done
10290fi
10291
10292if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10293 for ncn_progname in gcc; do
81ecdfbb
RW
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10295$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10296 if test -x $with_build_time_tools/${ncn_progname}; then
10297 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10299$as_echo "yes" >&6; }
2429c060
PB
10300 break
10301 else
81ecdfbb
RW
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10303$as_echo "no" >&6; }
2429c060
PB
10304 fi
10305 done
10306fi
10307
10308if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10309 for ncn_progname in gcc; do
10310 if test -n "$ncn_target_tool_prefix"; then
10311 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10312set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10314$as_echo_n "checking for $ac_word... " >&6; }
10315if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10316 $as_echo_n "(cached) " >&6
859789af 10317else
2429c060
PB
10318 if test -n "$GCC_FOR_TARGET"; then
10319 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10320else
c6b750e1
DJ
10321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10322for as_dir in $PATH
10323do
10324 IFS=$as_save_IFS
10325 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10326 for ac_exec_ext in '' $ac_executable_extensions; do
10327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10328 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10330 break 2
10331 fi
10332done
81ecdfbb
RW
10333 done
10334IFS=$as_save_IFS
c6b750e1 10335
55db4b87
PB
10336fi
10337fi
c6b750e1 10338GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10339if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10341$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10342else
81ecdfbb
RW
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344$as_echo "no" >&6; }
55db4b87
PB
10345fi
10346
81ecdfbb 10347
2429c060
PB
10348 fi
10349 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10351set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10353$as_echo_n "checking for $ac_word... " >&6; }
10354if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10355 $as_echo_n "(cached) " >&6
55db4b87 10356else
05cbd757
PB
10357 if test -n "$GCC_FOR_TARGET"; then
10358 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10359else
c6b750e1
DJ
10360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10361for as_dir in $PATH
10362do
10363 IFS=$as_save_IFS
10364 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10365 for ac_exec_ext in '' $ac_executable_extensions; do
10366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10367 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10369 break 2
10370 fi
10371done
81ecdfbb
RW
10372 done
10373IFS=$as_save_IFS
c6b750e1 10374
55db4b87
PB
10375fi
10376fi
c6b750e1 10377GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10378if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10380$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10381else
81ecdfbb
RW
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10383$as_echo "no" >&6; }
55db4b87 10384fi
c6b750e1 10385
81ecdfbb 10386
2429c060
PB
10387 fi
10388 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10389 done
10390fi
c6b750e1 10391
05cbd757
PB
10392if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10393 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10394else
10395 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10396fi
10397
9a819804
AO
10398
10399
10400if test -n "$GCJ_FOR_TARGET"; then
10401 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10402elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10403 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10404fi
10405
10406if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10407 for ncn_progname in gcj; do
10408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10409set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10411$as_echo_n "checking for $ac_word... " >&6; }
10412if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10413 $as_echo_n "(cached) " >&6
9a819804
AO
10414else
10415 if test -n "$GCJ_FOR_TARGET"; then
10416 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10417else
10418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10419for as_dir in $PATH
10420do
10421 IFS=$as_save_IFS
10422 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10423 for ac_exec_ext in '' $ac_executable_extensions; do
10424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10425 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10427 break 2
10428 fi
10429done
81ecdfbb
RW
10430 done
10431IFS=$as_save_IFS
9a819804
AO
10432
10433fi
10434fi
10435GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10436if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10438$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10439else
81ecdfbb
RW
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441$as_echo "no" >&6; }
9a819804
AO
10442fi
10443
81ecdfbb 10444
9a819804
AO
10445 done
10446fi
10447
10448if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10449 for ncn_progname in gcj; do
81ecdfbb
RW
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10451$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10452 if test -x $with_build_time_tools/${ncn_progname}; then
10453 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10455$as_echo "yes" >&6; }
2429c060
PB
10456 break
10457 else
81ecdfbb
RW
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10459$as_echo "no" >&6; }
2429c060
PB
10460 fi
10461 done
10462fi
10463
10464if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10465 for ncn_progname in gcj; do
10466 if test -n "$ncn_target_tool_prefix"; then
10467 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10468set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470$as_echo_n "checking for $ac_word... " >&6; }
10471if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10472 $as_echo_n "(cached) " >&6
55db4b87
PB
10473else
10474 if test -n "$GCJ_FOR_TARGET"; then
10475 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10476else
c6b750e1
DJ
10477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478for as_dir in $PATH
10479do
10480 IFS=$as_save_IFS
10481 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10484 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10486 break 2
10487 fi
10488done
81ecdfbb
RW
10489 done
10490IFS=$as_save_IFS
c6b750e1 10491
55db4b87
PB
10492fi
10493fi
9a819804
AO
10494GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10495if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10497$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10498else
81ecdfbb
RW
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500$as_echo "no" >&6; }
9a819804
AO
10501fi
10502
81ecdfbb 10503
9a819804
AO
10504 fi
10505 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10506 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10507set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10509$as_echo_n "checking for $ac_word... " >&6; }
10510if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10511 $as_echo_n "(cached) " >&6
9a819804
AO
10512else
10513 if test -n "$GCJ_FOR_TARGET"; then
10514 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10515else
10516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10517for as_dir in $PATH
10518do
10519 IFS=$as_save_IFS
10520 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10521 for ac_exec_ext in '' $ac_executable_extensions; do
10522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10523 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10525 break 2
10526 fi
10527done
81ecdfbb
RW
10528 done
10529IFS=$as_save_IFS
9a819804
AO
10530
10531fi
10532fi
10533GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10534if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10536$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10537else
81ecdfbb
RW
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539$as_echo "no" >&6; }
9a819804
AO
10540fi
10541
81ecdfbb 10542
9a819804
AO
10543 fi
10544 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10545 done
10546fi
10547
10548if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10549 set dummy gcj
10550 if test $build = $target ; then
10551 GCJ_FOR_TARGET="$2"
10552 else
10553 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10554 fi
d3f5afc4
MS
10555else
10556 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10557fi
10558
10559
10560
10561if test -n "$GFORTRAN_FOR_TARGET"; then
10562 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10563elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10564 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10565fi
10566
9a819804
AO
10567if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10568 for ncn_progname in gfortran; do
10569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10570set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572$as_echo_n "checking for $ac_word... " >&6; }
10573if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10574 $as_echo_n "(cached) " >&6
55db4b87 10575else
9a819804
AO
10576 if test -n "$GFORTRAN_FOR_TARGET"; then
10577 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10578else
c6b750e1
DJ
10579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580for as_dir in $PATH
10581do
10582 IFS=$as_save_IFS
10583 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10584 for ac_exec_ext in '' $ac_executable_extensions; do
10585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10586 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10588 break 2
10589 fi
10590done
81ecdfbb
RW
10591 done
10592IFS=$as_save_IFS
c6b750e1 10593
55db4b87
PB
10594fi
10595fi
9a819804
AO
10596GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10597if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10599$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10600else
81ecdfbb
RW
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602$as_echo "no" >&6; }
55db4b87 10603fi
c6b750e1 10604
81ecdfbb 10605
2429c060
PB
10606 done
10607fi
c6b750e1 10608
9a819804 10609if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10610 for ncn_progname in gfortran; do
81ecdfbb
RW
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10612$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10613 if test -x $with_build_time_tools/${ncn_progname}; then
10614 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10616$as_echo "yes" >&6; }
2429c060
PB
10617 break
10618 else
81ecdfbb
RW
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10620$as_echo "no" >&6; }
2429c060
PB
10621 fi
10622 done
10623fi
10624
10625if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10626 for ncn_progname in gfortran; do
10627 if test -n "$ncn_target_tool_prefix"; then
10628 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10629set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631$as_echo_n "checking for $ac_word... " >&6; }
10632if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10633 $as_echo_n "(cached) " >&6
55db4b87
PB
10634else
10635 if test -n "$GFORTRAN_FOR_TARGET"; then
10636 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10637else
c6b750e1
DJ
10638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639for as_dir in $PATH
10640do
10641 IFS=$as_save_IFS
10642 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10645 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10647 break 2
10648 fi
10649done
81ecdfbb
RW
10650 done
10651IFS=$as_save_IFS
c6b750e1 10652
55db4b87
PB
10653fi
10654fi
c6b750e1 10655GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10656if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10658$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10659else
81ecdfbb
RW
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661$as_echo "no" >&6; }
55db4b87
PB
10662fi
10663
81ecdfbb 10664
2429c060
PB
10665 fi
10666 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10668set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10670$as_echo_n "checking for $ac_word... " >&6; }
10671if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10672 $as_echo_n "(cached) " >&6
55db4b87 10673else
05cbd757 10674 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10675 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10676else
10677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10678for as_dir in $PATH
10679do
10680 IFS=$as_save_IFS
10681 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10682 for ac_exec_ext in '' $ac_executable_extensions; do
10683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10684 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10686 break 2
10687 fi
10688done
81ecdfbb
RW
10689 done
10690IFS=$as_save_IFS
c6b750e1 10691
55db4b87
PB
10692fi
10693fi
c6b750e1 10694GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10695if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10697$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10698else
81ecdfbb
RW
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10700$as_echo "no" >&6; }
55db4b87 10701fi
c6b750e1 10702
81ecdfbb 10703
2429c060
PB
10704 fi
10705 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10706 done
10707fi
c6b750e1 10708
05cbd757
PB
10709if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10710 set dummy gfortran
10711 if test $build = $target ; then
10712 GFORTRAN_FOR_TARGET="$2"
55db4b87 10713 else
05cbd757 10714 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10715 fi
d3f5afc4
MS
10716else
10717 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10718fi
10719
2429c060
PB
10720
10721
e552509b
ILT
10722if test -n "$GOC_FOR_TARGET"; then
10723 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10724elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10725 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10726fi
10727
10728if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10729 for ncn_progname in gccgo; do
10730 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10731set dummy ${ncn_progname}; ac_word=$2
10732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733$as_echo_n "checking for $ac_word... " >&6; }
10734if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10736else
10737 if test -n "$GOC_FOR_TARGET"; then
10738 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10739else
10740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741for as_dir in $PATH
10742do
10743 IFS=$as_save_IFS
10744 test -z "$as_dir" && as_dir=.
10745 for ac_exec_ext in '' $ac_executable_extensions; do
10746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10747 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10749 break 2
10750 fi
10751done
10752 done
10753IFS=$as_save_IFS
10754
10755fi
10756fi
10757GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10758if test -n "$GOC_FOR_TARGET"; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10760$as_echo "$GOC_FOR_TARGET" >&6; }
10761else
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763$as_echo "no" >&6; }
10764fi
10765
10766
10767 done
10768fi
10769
10770if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10771 for ncn_progname in gccgo; do
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10773$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10774 if test -x $with_build_time_tools/${ncn_progname}; then
10775 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10777$as_echo "yes" >&6; }
10778 break
10779 else
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10781$as_echo "no" >&6; }
10782 fi
10783 done
10784fi
10785
10786if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10787 for ncn_progname in gccgo; do
10788 if test -n "$ncn_target_tool_prefix"; then
10789 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10790set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792$as_echo_n "checking for $ac_word... " >&6; }
10793if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10795else
10796 if test -n "$GOC_FOR_TARGET"; then
10797 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10798else
10799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800for as_dir in $PATH
10801do
10802 IFS=$as_save_IFS
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10806 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10808 break 2
10809 fi
10810done
10811 done
10812IFS=$as_save_IFS
10813
10814fi
10815fi
10816GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10817if test -n "$GOC_FOR_TARGET"; then
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10819$as_echo "$GOC_FOR_TARGET" >&6; }
10820else
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822$as_echo "no" >&6; }
10823fi
10824
10825
10826 fi
10827 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10828 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10829set dummy ${ncn_progname}; ac_word=$2
10830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10831$as_echo_n "checking for $ac_word... " >&6; }
10832if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10833 $as_echo_n "(cached) " >&6
10834else
10835 if test -n "$GOC_FOR_TARGET"; then
10836 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10837else
10838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10839for as_dir in $PATH
10840do
10841 IFS=$as_save_IFS
10842 test -z "$as_dir" && as_dir=.
10843 for ac_exec_ext in '' $ac_executable_extensions; do
10844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10845 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10847 break 2
10848 fi
10849done
10850 done
10851IFS=$as_save_IFS
10852
10853fi
10854fi
10855GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10856if test -n "$GOC_FOR_TARGET"; then
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10858$as_echo "$GOC_FOR_TARGET" >&6; }
10859else
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861$as_echo "no" >&6; }
10862fi
10863
10864
10865 fi
10866 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10867 done
10868fi
10869
10870if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10871 set dummy gccgo
10872 if test $build = $target ; then
10873 GOC_FOR_TARGET="$2"
10874 else
10875 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10876 fi
10877else
10878 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10879fi
10880
10881
10882
2429c060
PB
10883cat > conftest.c << \EOF
10884#ifdef __GNUC__
10885 gcc_yay;
10886#endif
10887EOF
10888if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10889 have_gcc_for_target=yes
859789af 10890else
2429c060
PB
10891 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10892 have_gcc_for_target=no
859789af 10893fi
2429c060
PB
10894rm conftest.c
10895
10896
10897
859789af 10898
2429c060
PB
10899if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10900 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10902$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10903 if test -x $with_build_time_tools/ar; then
10904 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10905 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10907$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10908 else
81ecdfbb
RW
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10910$as_echo "no" >&6; }
3a35eeb3 10911 fi
2429c060
PB
10912 elif test $build != $host && test $have_gcc_for_target = yes; then
10913 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10914 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10915 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10916 fi
2429c060 10917fi
c6b750e1 10918if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10919 # Extract the first word of "ar", so it can be a program name with args.
10920set dummy ar; ac_word=$2
81ecdfbb
RW
10921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10922$as_echo_n "checking for $ac_word... " >&6; }
10923if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10924 $as_echo_n "(cached) " >&6
859789af 10925else
c6b750e1
DJ
10926 case $AR_FOR_TARGET in
10927 [\\/]* | ?:[\\/]*)
2429c060
PB
10928 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10929 ;;
2429c060 10930 *)
c6b750e1
DJ
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932for as_dir in $gcc_cv_tool_dirs
10933do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10938 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10940 break 2
10941 fi
10942done
81ecdfbb
RW
10943 done
10944IFS=$as_save_IFS
c6b750e1 10945
2429c060
PB
10946 ;;
10947esac
859789af 10948fi
c6b750e1 10949AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10950if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10952$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10953else
81ecdfbb
RW
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955$as_echo "no" >&6; }
859789af 10956fi
05cbd757 10957
81ecdfbb 10958
2429c060
PB
10959fi
10960if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10961
10962
10963if test -n "$AR_FOR_TARGET"; then
10964 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10965elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10966 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10967fi
10968
10969if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10970 for ncn_progname in ar; do
10971 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10972set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974$as_echo_n "checking for $ac_word... " >&6; }
10975if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
9a819804
AO
10977else
10978 if test -n "$AR_FOR_TARGET"; then
10979 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10980else
10981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982for as_dir in $PATH
10983do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10988 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10990 break 2
10991 fi
10992done
81ecdfbb
RW
10993 done
10994IFS=$as_save_IFS
9a819804
AO
10995
10996fi
10997fi
10998AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10999if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11001$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 11002else
81ecdfbb
RW
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004$as_echo "no" >&6; }
9a819804
AO
11005fi
11006
81ecdfbb 11007
9a819804
AO
11008 done
11009fi
11010
11011if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11012 for ncn_progname in ar; do
81ecdfbb
RW
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11014$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11015 if test -x $with_build_time_tools/${ncn_progname}; then
11016 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11018$as_echo "yes" >&6; }
2429c060
PB
11019 break
11020 else
81ecdfbb
RW
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11022$as_echo "no" >&6; }
2429c060
PB
11023 fi
11024 done
859789af
AC
11025fi
11026
2429c060
PB
11027if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
11028 for ncn_progname in ar; do
11029 if test -n "$ncn_target_tool_prefix"; then
11030 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11031set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11033$as_echo_n "checking for $ac_word... " >&6; }
11034if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11035 $as_echo_n "(cached) " >&6
7e0f7140 11036else
2429c060
PB
11037 if test -n "$AR_FOR_TARGET"; then
11038 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 11039else
c6b750e1
DJ
11040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041for as_dir in $PATH
11042do
11043 IFS=$as_save_IFS
11044 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11045 for ac_exec_ext in '' $ac_executable_extensions; do
11046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11047 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11049 break 2
11050 fi
11051done
81ecdfbb
RW
11052 done
11053IFS=$as_save_IFS
c6b750e1 11054
7e0f7140
GK
11055fi
11056fi
c6b750e1 11057AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11058if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11060$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11061else
81ecdfbb
RW
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063$as_echo "no" >&6; }
7e0f7140
GK
11064fi
11065
81ecdfbb 11066
2429c060
PB
11067 fi
11068 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
11069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11070set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072$as_echo_n "checking for $ac_word... " >&6; }
11073if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
11074 $as_echo_n "(cached) " >&6
7e0f7140 11075else
2429c060
PB
11076 if test -n "$AR_FOR_TARGET"; then
11077 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 11078else
c6b750e1
DJ
11079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080for as_dir in $PATH
11081do
11082 IFS=$as_save_IFS
11083 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11086 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11088 break 2
11089 fi
11090done
81ecdfbb
RW
11091 done
11092IFS=$as_save_IFS
c6b750e1 11093
7e0f7140
GK
11094fi
11095fi
c6b750e1 11096AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11097if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11099$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11100else
81ecdfbb
RW
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102$as_echo "no" >&6; }
7e0f7140 11103fi
c6b750e1 11104
81ecdfbb 11105
2429c060
PB
11106 fi
11107 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11108 done
11109fi
c6b750e1 11110
2429c060
PB
11111if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11112 set dummy ar
7e0f7140 11113 if test $build = $target ; then
2429c060 11114 AR_FOR_TARGET="$2"
7e0f7140 11115 else
2429c060 11116 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11117 fi
d3f5afc4
MS
11118else
11119 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11120fi
11121
3a35eeb3
PB
11122else
11123 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11124fi
11125
11126
11127
11128
11129if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11130 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11132$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11133 if test -x $with_build_time_tools/as; then
11134 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11135 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11137$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11138 else
81ecdfbb
RW
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140$as_echo "no" >&6; }
3a35eeb3 11141 fi
2429c060
PB
11142 elif test $build != $host && test $have_gcc_for_target = yes; then
11143 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11144 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11145 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11146 fi
11147fi
c6b750e1 11148if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11149 # Extract the first word of "as", so it can be a program name with args.
11150set dummy as; ac_word=$2
81ecdfbb
RW
11151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11152$as_echo_n "checking for $ac_word... " >&6; }
11153if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11154 $as_echo_n "(cached) " >&6
2429c060 11155else
c6b750e1
DJ
11156 case $AS_FOR_TARGET in
11157 [\\/]* | ?:[\\/]*)
2429c060
PB
11158 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11159 ;;
2429c060 11160 *)
c6b750e1
DJ
11161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162for as_dir in $gcc_cv_tool_dirs
11163do
11164 IFS=$as_save_IFS
11165 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11168 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11170 break 2
11171 fi
11172done
81ecdfbb
RW
11173 done
11174IFS=$as_save_IFS
c6b750e1 11175
2429c060
PB
11176 ;;
11177esac
11178fi
c6b750e1 11179AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11180if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11182$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11183else
81ecdfbb
RW
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185$as_echo "no" >&6; }
2429c060
PB
11186fi
11187
81ecdfbb 11188
2429c060
PB
11189fi
11190if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11191
11192
11193if test -n "$AS_FOR_TARGET"; then
11194 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11195elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11196 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11197fi
11198
11199if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11200 for ncn_progname in as; do
11201 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11202set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204$as_echo_n "checking for $ac_word... " >&6; }
11205if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
9a819804
AO
11207else
11208 if test -n "$AS_FOR_TARGET"; then
11209 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11210else
11211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212for as_dir in $PATH
11213do
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11218 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11220 break 2
11221 fi
11222done
81ecdfbb
RW
11223 done
11224IFS=$as_save_IFS
9a819804
AO
11225
11226fi
11227fi
11228AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11229if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11231$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11232else
81ecdfbb
RW
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234$as_echo "no" >&6; }
9a819804
AO
11235fi
11236
81ecdfbb 11237
9a819804
AO
11238 done
11239fi
11240
11241if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11242 for ncn_progname in as; do
81ecdfbb
RW
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11244$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11245 if test -x $with_build_time_tools/${ncn_progname}; then
11246 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11248$as_echo "yes" >&6; }
2429c060
PB
11249 break
11250 else
81ecdfbb
RW
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252$as_echo "no" >&6; }
2429c060
PB
11253 fi
11254 done
11255fi
11256
11257if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11258 for ncn_progname in as; do
11259 if test -n "$ncn_target_tool_prefix"; then
11260 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11261set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11263$as_echo_n "checking for $ac_word... " >&6; }
11264if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11265 $as_echo_n "(cached) " >&6
2429c060
PB
11266else
11267 if test -n "$AS_FOR_TARGET"; then
11268 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11269else
c6b750e1
DJ
11270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271for as_dir in $PATH
11272do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11275 for ac_exec_ext in '' $ac_executable_extensions; do
11276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11277 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11279 break 2
11280 fi
11281done
81ecdfbb
RW
11282 done
11283IFS=$as_save_IFS
c6b750e1 11284
2429c060
PB
11285fi
11286fi
c6b750e1 11287AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11288if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11290$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11291else
81ecdfbb
RW
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293$as_echo "no" >&6; }
2429c060
PB
11294fi
11295
81ecdfbb 11296
2429c060
PB
11297 fi
11298 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11299 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11300set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302$as_echo_n "checking for $ac_word... " >&6; }
11303if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11304 $as_echo_n "(cached) " >&6
2429c060
PB
11305else
11306 if test -n "$AS_FOR_TARGET"; then
11307 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11308else
c6b750e1
DJ
11309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310for as_dir in $PATH
11311do
11312 IFS=$as_save_IFS
11313 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11314 for ac_exec_ext in '' $ac_executable_extensions; do
11315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11316 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11318 break 2
11319 fi
11320done
81ecdfbb
RW
11321 done
11322IFS=$as_save_IFS
c6b750e1 11323
2429c060
PB
11324fi
11325fi
c6b750e1 11326AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11327if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11329$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11330else
81ecdfbb
RW
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332$as_echo "no" >&6; }
2429c060 11333fi
c6b750e1 11334
81ecdfbb 11335
2429c060
PB
11336 fi
11337 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11338 done
11339fi
c6b750e1 11340
2429c060
PB
11341if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11342 set dummy as
11343 if test $build = $target ; then
11344 AS_FOR_TARGET="$2"
11345 else
11346 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11347 fi
d3f5afc4
MS
11348else
11349 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11350fi
11351
3a35eeb3
PB
11352else
11353 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11354fi
11355
11356
11357
11358
11359if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11360 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11362$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11363 if test -x $with_build_time_tools/dlltool; then
11364 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11365 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11367$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11368 else
81ecdfbb
RW
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370$as_echo "no" >&6; }
3a35eeb3 11371 fi
2429c060
PB
11372 elif test $build != $host && test $have_gcc_for_target = yes; then
11373 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11374 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11375 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11376 fi
11377fi
c6b750e1 11378if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11379 # Extract the first word of "dlltool", so it can be a program name with args.
11380set dummy dlltool; ac_word=$2
81ecdfbb
RW
11381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11382$as_echo_n "checking for $ac_word... " >&6; }
11383if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11384 $as_echo_n "(cached) " >&6
2429c060 11385else
c6b750e1
DJ
11386 case $DLLTOOL_FOR_TARGET in
11387 [\\/]* | ?:[\\/]*)
2429c060
PB
11388 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11389 ;;
2429c060 11390 *)
c6b750e1
DJ
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $gcc_cv_tool_dirs
11393do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11398 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11400 break 2
11401 fi
11402done
81ecdfbb
RW
11403 done
11404IFS=$as_save_IFS
c6b750e1 11405
2429c060
PB
11406 ;;
11407esac
11408fi
c6b750e1 11409DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11410if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11412$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11413else
81ecdfbb
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11415$as_echo "no" >&6; }
2429c060
PB
11416fi
11417
81ecdfbb 11418
2429c060
PB
11419fi
11420if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11421
11422
11423if test -n "$DLLTOOL_FOR_TARGET"; then
11424 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11425elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11426 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11427fi
11428
11429if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11430 for ncn_progname in dlltool; do
11431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11432set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434$as_echo_n "checking for $ac_word... " >&6; }
11435if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11436 $as_echo_n "(cached) " >&6
9a819804
AO
11437else
11438 if test -n "$DLLTOOL_FOR_TARGET"; then
11439 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11440else
11441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442for as_dir in $PATH
11443do
11444 IFS=$as_save_IFS
11445 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11446 for ac_exec_ext in '' $ac_executable_extensions; do
11447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11448 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11450 break 2
11451 fi
11452done
81ecdfbb
RW
11453 done
11454IFS=$as_save_IFS
9a819804
AO
11455
11456fi
11457fi
11458DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11459if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11461$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11462else
81ecdfbb
RW
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464$as_echo "no" >&6; }
9a819804
AO
11465fi
11466
81ecdfbb 11467
9a819804
AO
11468 done
11469fi
11470
11471if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11472 for ncn_progname in dlltool; do
81ecdfbb
RW
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11474$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11475 if test -x $with_build_time_tools/${ncn_progname}; then
11476 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11478$as_echo "yes" >&6; }
2429c060
PB
11479 break
11480 else
81ecdfbb
RW
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11482$as_echo "no" >&6; }
2429c060
PB
11483 fi
11484 done
11485fi
11486
11487if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11488 for ncn_progname in dlltool; do
11489 if test -n "$ncn_target_tool_prefix"; then
11490 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11491set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11493$as_echo_n "checking for $ac_word... " >&6; }
11494if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11495 $as_echo_n "(cached) " >&6
2429c060
PB
11496else
11497 if test -n "$DLLTOOL_FOR_TARGET"; then
11498 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11499else
c6b750e1
DJ
11500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11501for as_dir in $PATH
11502do
11503 IFS=$as_save_IFS
11504 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11505 for ac_exec_ext in '' $ac_executable_extensions; do
11506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11507 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11509 break 2
11510 fi
11511done
81ecdfbb
RW
11512 done
11513IFS=$as_save_IFS
c6b750e1 11514
2429c060
PB
11515fi
11516fi
c6b750e1 11517DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11518if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11520$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11521else
81ecdfbb
RW
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11523$as_echo "no" >&6; }
2429c060
PB
11524fi
11525
81ecdfbb 11526
2429c060
PB
11527 fi
11528 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11530set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532$as_echo_n "checking for $ac_word... " >&6; }
11533if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11534 $as_echo_n "(cached) " >&6
2429c060
PB
11535else
11536 if test -n "$DLLTOOL_FOR_TARGET"; then
11537 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11538else
c6b750e1
DJ
11539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540for as_dir in $PATH
11541do
11542 IFS=$as_save_IFS
11543 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11544 for ac_exec_ext in '' $ac_executable_extensions; do
11545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11546 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11548 break 2
11549 fi
11550done
81ecdfbb
RW
11551 done
11552IFS=$as_save_IFS
c6b750e1 11553
2429c060
PB
11554fi
11555fi
c6b750e1 11556DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11557if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11559$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11560else
81ecdfbb
RW
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562$as_echo "no" >&6; }
2429c060 11563fi
c6b750e1 11564
81ecdfbb 11565
2429c060
PB
11566 fi
11567 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11568 done
11569fi
c6b750e1 11570
2429c060
PB
11571if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11572 set dummy dlltool
11573 if test $build = $target ; then
11574 DLLTOOL_FOR_TARGET="$2"
11575 else
11576 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11577 fi
d3f5afc4
MS
11578else
11579 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11580fi
11581
3a35eeb3
PB
11582else
11583 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11584fi
11585
11586
11587
11588
11589if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11590 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11592$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11593 if test -x $with_build_time_tools/ld; then
11594 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11595 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11597$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11598 else
81ecdfbb
RW
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600$as_echo "no" >&6; }
3a35eeb3 11601 fi
2429c060
PB
11602 elif test $build != $host && test $have_gcc_for_target = yes; then
11603 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11604 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11605 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11606 fi
11607fi
c6b750e1 11608if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11609 # Extract the first word of "ld", so it can be a program name with args.
11610set dummy ld; ac_word=$2
81ecdfbb
RW
11611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11612$as_echo_n "checking for $ac_word... " >&6; }
11613if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
2429c060 11615else
c6b750e1
DJ
11616 case $LD_FOR_TARGET in
11617 [\\/]* | ?:[\\/]*)
2429c060
PB
11618 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11619 ;;
2429c060 11620 *)
c6b750e1
DJ
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $gcc_cv_tool_dirs
11623do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11628 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11630 break 2
11631 fi
11632done
81ecdfbb
RW
11633 done
11634IFS=$as_save_IFS
c6b750e1 11635
2429c060
PB
11636 ;;
11637esac
11638fi
c6b750e1 11639LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11640if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11642$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11643else
81ecdfbb
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645$as_echo "no" >&6; }
2429c060
PB
11646fi
11647
81ecdfbb 11648
2429c060
PB
11649fi
11650if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11651
11652
11653if test -n "$LD_FOR_TARGET"; then
11654 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11655elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11656 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11657fi
11658
11659if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11660 for ncn_progname in ld; do
11661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11662set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664$as_echo_n "checking for $ac_word... " >&6; }
11665if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
9a819804
AO
11667else
11668 if test -n "$LD_FOR_TARGET"; then
11669 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11670else
11671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672for as_dir in $PATH
11673do
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11678 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11680 break 2
11681 fi
11682done
81ecdfbb
RW
11683 done
11684IFS=$as_save_IFS
9a819804
AO
11685
11686fi
11687fi
11688LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11689if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11691$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11692else
81ecdfbb
RW
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694$as_echo "no" >&6; }
9a819804
AO
11695fi
11696
81ecdfbb 11697
9a819804
AO
11698 done
11699fi
11700
11701if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11702 for ncn_progname in ld; do
81ecdfbb
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11704$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11705 if test -x $with_build_time_tools/${ncn_progname}; then
11706 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11708$as_echo "yes" >&6; }
2429c060
PB
11709 break
11710 else
81ecdfbb
RW
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11712$as_echo "no" >&6; }
2429c060
PB
11713 fi
11714 done
11715fi
11716
11717if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11718 for ncn_progname in ld; do
11719 if test -n "$ncn_target_tool_prefix"; then
11720 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11721set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723$as_echo_n "checking for $ac_word... " >&6; }
11724if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11725 $as_echo_n "(cached) " >&6
2429c060
PB
11726else
11727 if test -n "$LD_FOR_TARGET"; then
11728 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11729else
c6b750e1
DJ
11730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731for as_dir in $PATH
11732do
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11737 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11739 break 2
11740 fi
11741done
81ecdfbb
RW
11742 done
11743IFS=$as_save_IFS
c6b750e1 11744
2429c060
PB
11745fi
11746fi
c6b750e1 11747LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11748if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11750$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11751else
81ecdfbb
RW
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753$as_echo "no" >&6; }
2429c060
PB
11754fi
11755
81ecdfbb 11756
2429c060
PB
11757 fi
11758 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11759 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11760set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11762$as_echo_n "checking for $ac_word... " >&6; }
11763if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11764 $as_echo_n "(cached) " >&6
2429c060
PB
11765else
11766 if test -n "$LD_FOR_TARGET"; then
11767 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11768else
c6b750e1
DJ
11769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770for as_dir in $PATH
11771do
11772 IFS=$as_save_IFS
11773 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11774 for ac_exec_ext in '' $ac_executable_extensions; do
11775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11776 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11778 break 2
11779 fi
11780done
81ecdfbb
RW
11781 done
11782IFS=$as_save_IFS
c6b750e1 11783
2429c060
PB
11784fi
11785fi
c6b750e1 11786LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11787if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11789$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11790else
81ecdfbb
RW
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792$as_echo "no" >&6; }
2429c060 11793fi
c6b750e1 11794
81ecdfbb 11795
2429c060
PB
11796 fi
11797 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11798 done
11799fi
c6b750e1 11800
2429c060
PB
11801if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11802 set dummy ld
11803 if test $build = $target ; then
11804 LD_FOR_TARGET="$2"
11805 else
11806 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11807 fi
d3f5afc4
MS
11808else
11809 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11810fi
11811
3a35eeb3
PB
11812else
11813 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11814fi
11815
11816
11817
11818
11819if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11820 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11822$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11823 if test -x $with_build_time_tools/lipo; then
11824 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11825 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11827$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11828 else
81ecdfbb
RW
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11830$as_echo "no" >&6; }
3a35eeb3 11831 fi
2429c060
PB
11832 elif test $build != $host && test $have_gcc_for_target = yes; then
11833 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11834 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11835 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11836 fi
11837fi
9a819804
AO
11838if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11839 # Extract the first word of "lipo", so it can be a program name with args.
11840set dummy lipo; ac_word=$2
81ecdfbb
RW
11841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11842$as_echo_n "checking for $ac_word... " >&6; }
11843if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
9a819804
AO
11845else
11846 case $LIPO_FOR_TARGET in
11847 [\\/]* | ?:[\\/]*)
11848 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11849 ;;
11850 *)
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852for as_dir in $gcc_cv_tool_dirs
11853do
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11858 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11860 break 2
11861 fi
11862done
81ecdfbb
RW
11863 done
11864IFS=$as_save_IFS
9a819804
AO
11865
11866 ;;
11867esac
11868fi
11869LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11870if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11872$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11873else
81ecdfbb
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875$as_echo "no" >&6; }
9a819804
AO
11876fi
11877
81ecdfbb 11878
9a819804
AO
11879fi
11880if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11881
11882
11883if test -n "$LIPO_FOR_TARGET"; then
11884 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11885elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11886 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11887fi
11888
11889if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11890 for ncn_progname in lipo; do
11891 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11892set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11894$as_echo_n "checking for $ac_word... " >&6; }
11895if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
2429c060 11897else
9a819804
AO
11898 if test -n "$LIPO_FOR_TARGET"; then
11899 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11900else
11901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902for as_dir in $PATH
c6b750e1
DJ
11903do
11904 IFS=$as_save_IFS
11905 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11908 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11910 break 2
11911 fi
11912done
81ecdfbb
RW
11913 done
11914IFS=$as_save_IFS
c6b750e1 11915
2429c060 11916fi
9a819804
AO
11917fi
11918LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11919if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11921$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11922else
81ecdfbb
RW
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924$as_echo "no" >&6; }
2429c060
PB
11925fi
11926
81ecdfbb 11927
9a819804 11928 done
2429c060 11929fi
9a819804
AO
11930
11931if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11932 for ncn_progname in lipo; do
81ecdfbb
RW
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11934$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11935 if test -x $with_build_time_tools/${ncn_progname}; then
11936 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11938$as_echo "yes" >&6; }
2429c060
PB
11939 break
11940 else
81ecdfbb
RW
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11942$as_echo "no" >&6; }
2429c060
PB
11943 fi
11944 done
11945fi
11946
11947if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11948 for ncn_progname in lipo; do
11949 if test -n "$ncn_target_tool_prefix"; then
11950 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11951set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11953$as_echo_n "checking for $ac_word... " >&6; }
11954if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
2429c060
PB
11956else
11957 if test -n "$LIPO_FOR_TARGET"; then
11958 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11959else
c6b750e1
DJ
11960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11961for as_dir in $PATH
11962do
11963 IFS=$as_save_IFS
11964 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11965 for ac_exec_ext in '' $ac_executable_extensions; do
11966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11967 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11969 break 2
11970 fi
11971done
81ecdfbb
RW
11972 done
11973IFS=$as_save_IFS
c6b750e1 11974
2429c060
PB
11975fi
11976fi
c6b750e1 11977LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11978if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11980$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11981else
81ecdfbb
RW
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983$as_echo "no" >&6; }
2429c060
PB
11984fi
11985
81ecdfbb 11986
2429c060
PB
11987 fi
11988 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11989 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11990set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11992$as_echo_n "checking for $ac_word... " >&6; }
11993if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11994 $as_echo_n "(cached) " >&6
2429c060
PB
11995else
11996 if test -n "$LIPO_FOR_TARGET"; then
11997 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11998else
c6b750e1
DJ
11999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000for as_dir in $PATH
12001do
12002 IFS=$as_save_IFS
12003 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12006 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12008 break 2
12009 fi
12010done
81ecdfbb
RW
12011 done
12012IFS=$as_save_IFS
c6b750e1 12013
2429c060
PB
12014fi
12015fi
c6b750e1 12016LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 12017if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
12019$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 12020else
81ecdfbb
RW
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12022$as_echo "no" >&6; }
2429c060 12023fi
c6b750e1 12024
81ecdfbb 12025
2429c060
PB
12026 fi
12027 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
12028 done
12029fi
c6b750e1 12030
2429c060
PB
12031if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
12032 set dummy lipo
12033 if test $build = $target ; then
12034 LIPO_FOR_TARGET="$2"
12035 else
12036 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
12037 fi
d3f5afc4
MS
12038else
12039 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
12040fi
12041
3a35eeb3
PB
12042else
12043 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
12044fi
12045
12046
12047
12048
12049if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
12050 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
12052$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12053 if test -x $with_build_time_tools/nm; then
12054 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
12055 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
12057$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 12058 else
81ecdfbb
RW
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12060$as_echo "no" >&6; }
3a35eeb3 12061 fi
2429c060
PB
12062 elif test $build != $host && test $have_gcc_for_target = yes; then
12063 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
12064 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
12065 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
12066 fi
12067fi
c6b750e1 12068if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12069 # Extract the first word of "nm", so it can be a program name with args.
12070set dummy nm; ac_word=$2
81ecdfbb
RW
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072$as_echo_n "checking for $ac_word... " >&6; }
12073if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
12074 $as_echo_n "(cached) " >&6
2429c060 12075else
c6b750e1
DJ
12076 case $NM_FOR_TARGET in
12077 [\\/]* | ?:[\\/]*)
2429c060
PB
12078 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
12079 ;;
2429c060 12080 *)
c6b750e1
DJ
12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $gcc_cv_tool_dirs
12083do
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12088 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12090 break 2
12091 fi
12092done
81ecdfbb
RW
12093 done
12094IFS=$as_save_IFS
c6b750e1 12095
2429c060
PB
12096 ;;
12097esac
12098fi
c6b750e1 12099NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12100if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12102$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12103else
81ecdfbb
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12105$as_echo "no" >&6; }
2429c060
PB
12106fi
12107
81ecdfbb 12108
2429c060
PB
12109fi
12110if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12111
12112
12113if test -n "$NM_FOR_TARGET"; then
12114 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12115elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12116 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12117fi
12118
12119if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12120 for ncn_progname in nm; do
12121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12122set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124$as_echo_n "checking for $ac_word... " >&6; }
12125if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
9a819804
AO
12127else
12128 if test -n "$NM_FOR_TARGET"; then
12129 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12130else
12131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132for as_dir in $PATH
12133do
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12138 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12140 break 2
12141 fi
12142done
81ecdfbb
RW
12143 done
12144IFS=$as_save_IFS
9a819804
AO
12145
12146fi
12147fi
12148NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12149if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12151$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12152else
81ecdfbb
RW
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154$as_echo "no" >&6; }
9a819804
AO
12155fi
12156
81ecdfbb 12157
9a819804
AO
12158 done
12159fi
12160
12161if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12162 for ncn_progname in nm; do
81ecdfbb
RW
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12164$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12165 if test -x $with_build_time_tools/${ncn_progname}; then
12166 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12168$as_echo "yes" >&6; }
2429c060
PB
12169 break
12170 else
81ecdfbb
RW
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12172$as_echo "no" >&6; }
2429c060
PB
12173 fi
12174 done
12175fi
12176
12177if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12178 for ncn_progname in nm; do
12179 if test -n "$ncn_target_tool_prefix"; then
12180 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12181set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183$as_echo_n "checking for $ac_word... " >&6; }
12184if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
859789af 12186else
55db4b87
PB
12187 if test -n "$NM_FOR_TARGET"; then
12188 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12189else
c6b750e1
DJ
12190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191for as_dir in $PATH
12192do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12197 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12199 break 2
12200 fi
12201done
81ecdfbb
RW
12202 done
12203IFS=$as_save_IFS
c6b750e1 12204
859789af
AC
12205fi
12206fi
c6b750e1 12207NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12208if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12210$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12211else
81ecdfbb
RW
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213$as_echo "no" >&6; }
859789af
AC
12214fi
12215
81ecdfbb 12216
2429c060
PB
12217 fi
12218 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12220set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222$as_echo_n "checking for $ac_word... " >&6; }
12223if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
859789af 12225else
05cbd757
PB
12226 if test -n "$NM_FOR_TARGET"; then
12227 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12228else
c6b750e1
DJ
12229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230for as_dir in $PATH
12231do
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12236 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12238 break 2
12239 fi
12240done
81ecdfbb
RW
12241 done
12242IFS=$as_save_IFS
c6b750e1 12243
859789af
AC
12244fi
12245fi
c6b750e1 12246NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12247if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12249$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12250else
81ecdfbb
RW
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252$as_echo "no" >&6; }
859789af 12253fi
c6b750e1 12254
81ecdfbb 12255
2429c060
PB
12256 fi
12257 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12258 done
12259fi
c6b750e1 12260
05cbd757
PB
12261if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12262 set dummy nm
12263 if test $build = $target ; then
12264 NM_FOR_TARGET="$2"
859789af 12265 else
05cbd757 12266 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12267 fi
d3f5afc4
MS
12268else
12269 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12270fi
12271
3a35eeb3
PB
12272else
12273 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12274fi
12275
12276
12277
12278
12279if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12280 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12282$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12283 if test -x $with_build_time_tools/objdump; then
12284 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12285 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12287$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12288 else
81ecdfbb
RW
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290$as_echo "no" >&6; }
3a35eeb3 12291 fi
2429c060
PB
12292 elif test $build != $host && test $have_gcc_for_target = yes; then
12293 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12294 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12295 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12296 fi
12297fi
c6b750e1 12298if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12299 # Extract the first word of "objdump", so it can be a program name with args.
12300set dummy objdump; ac_word=$2
81ecdfbb
RW
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12302$as_echo_n "checking for $ac_word... " >&6; }
12303if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12304 $as_echo_n "(cached) " >&6
2429c060 12305else
c6b750e1
DJ
12306 case $OBJDUMP_FOR_TARGET in
12307 [\\/]* | ?:[\\/]*)
2429c060
PB
12308 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12309 ;;
2429c060 12310 *)
c6b750e1
DJ
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312for as_dir in $gcc_cv_tool_dirs
12313do
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12318 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12320 break 2
12321 fi
12322done
81ecdfbb
RW
12323 done
12324IFS=$as_save_IFS
c6b750e1 12325
2429c060
PB
12326 ;;
12327esac
12328fi
c6b750e1 12329OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12330if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12332$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12333else
81ecdfbb
RW
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12335$as_echo "no" >&6; }
2429c060
PB
12336fi
12337
81ecdfbb 12338
2429c060
PB
12339fi
12340if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12341
12342
12343if test -n "$OBJDUMP_FOR_TARGET"; then
12344 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12345elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12346 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12347fi
12348
12349if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12350 for ncn_progname in objdump; do
12351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12352set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354$as_echo_n "checking for $ac_word... " >&6; }
12355if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
9a819804
AO
12357else
12358 if test -n "$OBJDUMP_FOR_TARGET"; then
12359 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12360else
12361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362for as_dir in $PATH
12363do
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12368 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12370 break 2
12371 fi
12372done
81ecdfbb
RW
12373 done
12374IFS=$as_save_IFS
9a819804
AO
12375
12376fi
12377fi
12378OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12379if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12381$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12382else
81ecdfbb
RW
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384$as_echo "no" >&6; }
9a819804
AO
12385fi
12386
81ecdfbb 12387
9a819804
AO
12388 done
12389fi
12390
12391if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12392 for ncn_progname in objdump; do
81ecdfbb
RW
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12394$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12395 if test -x $with_build_time_tools/${ncn_progname}; then
12396 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12398$as_echo "yes" >&6; }
2429c060
PB
12399 break
12400 else
81ecdfbb
RW
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402$as_echo "no" >&6; }
2429c060
PB
12403 fi
12404 done
12405fi
12406
12407if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12408 for ncn_progname in objdump; do
12409 if test -n "$ncn_target_tool_prefix"; then
12410 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12411set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413$as_echo_n "checking for $ac_word... " >&6; }
12414if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12415 $as_echo_n "(cached) " >&6
5ae72758
DJ
12416else
12417 if test -n "$OBJDUMP_FOR_TARGET"; then
12418 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12419else
c6b750e1
DJ
12420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421for as_dir in $PATH
12422do
12423 IFS=$as_save_IFS
12424 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12427 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12429 break 2
12430 fi
12431done
81ecdfbb
RW
12432 done
12433IFS=$as_save_IFS
c6b750e1 12434
5ae72758
DJ
12435fi
12436fi
c6b750e1 12437OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12438if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12440$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12441else
81ecdfbb
RW
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443$as_echo "no" >&6; }
5ae72758
DJ
12444fi
12445
81ecdfbb 12446
2429c060
PB
12447 fi
12448 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12449 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12450set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12452$as_echo_n "checking for $ac_word... " >&6; }
12453if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12454 $as_echo_n "(cached) " >&6
5ae72758
DJ
12455else
12456 if test -n "$OBJDUMP_FOR_TARGET"; then
12457 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12458else
c6b750e1
DJ
12459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460for as_dir in $PATH
12461do
12462 IFS=$as_save_IFS
12463 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12466 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12468 break 2
12469 fi
12470done
81ecdfbb
RW
12471 done
12472IFS=$as_save_IFS
c6b750e1 12473
5ae72758
DJ
12474fi
12475fi
c6b750e1 12476OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12477if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12479$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12480else
81ecdfbb
RW
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12482$as_echo "no" >&6; }
5ae72758 12483fi
c6b750e1 12484
81ecdfbb 12485
2429c060
PB
12486 fi
12487 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12488 done
12489fi
c6b750e1 12490
5ae72758
DJ
12491if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12492 set dummy objdump
12493 if test $build = $target ; then
12494 OBJDUMP_FOR_TARGET="$2"
12495 else
12496 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12497 fi
d3f5afc4
MS
12498else
12499 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12500fi
12501
3a35eeb3
PB
12502else
12503 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12504fi
12505
12506
12507
12508
12509if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12510 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12512$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12513 if test -x $with_build_time_tools/ranlib; then
12514 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12515 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12517$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12518 else
81ecdfbb
RW
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12520$as_echo "no" >&6; }
3a35eeb3 12521 fi
2429c060
PB
12522 elif test $build != $host && test $have_gcc_for_target = yes; then
12523 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12524 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12525 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12526 fi
12527fi
c6b750e1 12528if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12529 # Extract the first word of "ranlib", so it can be a program name with args.
12530set dummy ranlib; ac_word=$2
81ecdfbb
RW
12531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12532$as_echo_n "checking for $ac_word... " >&6; }
12533if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12534 $as_echo_n "(cached) " >&6
2429c060 12535else
c6b750e1
DJ
12536 case $RANLIB_FOR_TARGET in
12537 [\\/]* | ?:[\\/]*)
2429c060
PB
12538 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12539 ;;
2429c060 12540 *)
c6b750e1
DJ
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542for as_dir in $gcc_cv_tool_dirs
12543do
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12548 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12550 break 2
12551 fi
12552done
81ecdfbb
RW
12553 done
12554IFS=$as_save_IFS
c6b750e1 12555
2429c060
PB
12556 ;;
12557esac
12558fi
c6b750e1 12559RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12560if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12562$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12563else
81ecdfbb
RW
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12565$as_echo "no" >&6; }
2429c060
PB
12566fi
12567
81ecdfbb 12568
2429c060
PB
12569fi
12570if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12571
12572
12573if test -n "$RANLIB_FOR_TARGET"; then
12574 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12575elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12576 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12577fi
12578
12579if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12580 for ncn_progname in ranlib; do
12581 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12582set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584$as_echo_n "checking for $ac_word... " >&6; }
12585if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
9a819804
AO
12587else
12588 if test -n "$RANLIB_FOR_TARGET"; then
12589 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12590else
12591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592for as_dir in $PATH
12593do
12594 IFS=$as_save_IFS
12595 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12598 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12600 break 2
12601 fi
12602done
81ecdfbb
RW
12603 done
12604IFS=$as_save_IFS
9a819804
AO
12605
12606fi
12607fi
12608RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12609if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12611$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12612else
81ecdfbb
RW
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614$as_echo "no" >&6; }
9a819804
AO
12615fi
12616
81ecdfbb 12617
9a819804
AO
12618 done
12619fi
12620
12621if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12622 for ncn_progname in ranlib; do
81ecdfbb
RW
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12624$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12625 if test -x $with_build_time_tools/${ncn_progname}; then
12626 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12628$as_echo "yes" >&6; }
2429c060
PB
12629 break
12630 else
81ecdfbb
RW
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12632$as_echo "no" >&6; }
2429c060
PB
12633 fi
12634 done
12635fi
12636
12637if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12638 for ncn_progname in ranlib; do
12639 if test -n "$ncn_target_tool_prefix"; then
12640 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12641set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643$as_echo_n "checking for $ac_word... " >&6; }
12644if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
859789af 12646else
55db4b87
PB
12647 if test -n "$RANLIB_FOR_TARGET"; then
12648 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12649else
c6b750e1
DJ
12650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12651for as_dir in $PATH
12652do
12653 IFS=$as_save_IFS
12654 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12655 for ac_exec_ext in '' $ac_executable_extensions; do
12656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12657 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12659 break 2
12660 fi
12661done
81ecdfbb
RW
12662 done
12663IFS=$as_save_IFS
c6b750e1 12664
859789af
AC
12665fi
12666fi
c6b750e1 12667RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12668if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12670$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12671else
81ecdfbb
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12673$as_echo "no" >&6; }
859789af
AC
12674fi
12675
81ecdfbb 12676
2429c060
PB
12677 fi
12678 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12680set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682$as_echo_n "checking for $ac_word... " >&6; }
12683if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12684 $as_echo_n "(cached) " >&6
859789af 12685else
05cbd757
PB
12686 if test -n "$RANLIB_FOR_TARGET"; then
12687 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12688else
c6b750e1
DJ
12689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690for as_dir in $PATH
12691do
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12694 for ac_exec_ext in '' $ac_executable_extensions; do
12695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12696 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12698 break 2
12699 fi
12700done
81ecdfbb
RW
12701 done
12702IFS=$as_save_IFS
c6b750e1 12703
859789af
AC
12704fi
12705fi
c6b750e1 12706RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12707if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12709$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12710else
81ecdfbb
RW
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712$as_echo "no" >&6; }
859789af 12713fi
c6b750e1 12714
81ecdfbb 12715
2429c060
PB
12716 fi
12717 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12718 done
12719fi
c6b750e1 12720
2429c060
PB
12721if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12722 set dummy ranlib
12723 if test $build = $target ; then
12724 RANLIB_FOR_TARGET="$2"
12725 else
12726 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12727 fi
d3f5afc4
MS
12728else
12729 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12730fi
05cbd757 12731
3a35eeb3
PB
12732else
12733 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12734fi
12735
2429c060
PB
12736
12737
12738
b121d7d4
DD
12739if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12740 if test -n "$with_build_time_tools"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
12742$as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
12743 if test -x $with_build_time_tools/readelf; then
12744 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
12745 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
12747$as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
12748 else
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12750$as_echo "no" >&6; }
12751 fi
12752 elif test $build != $host && test $have_gcc_for_target = yes; then
12753 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
12754 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
12755 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
12756 fi
12757fi
12758if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12759 # Extract the first word of "readelf", so it can be a program name with args.
12760set dummy readelf; ac_word=$2
12761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12762$as_echo_n "checking for $ac_word... " >&6; }
12763if test "${ac_cv_path_READELF_FOR_TARGET+set}" = set; then :
12764 $as_echo_n "(cached) " >&6
12765else
12766 case $READELF_FOR_TARGET in
12767 [\\/]* | ?:[\\/]*)
12768 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
12769 ;;
12770 *)
12771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772for as_dir in $gcc_cv_tool_dirs
12773do
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12778 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12780 break 2
12781 fi
12782done
12783 done
12784IFS=$as_save_IFS
12785
12786 ;;
12787esac
12788fi
12789READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12790if test -n "$READELF_FOR_TARGET"; then
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12792$as_echo "$READELF_FOR_TARGET" >&6; }
12793else
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12795$as_echo "no" >&6; }
12796fi
12797
12798
12799fi
12800if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
12801
12802
12803if test -n "$READELF_FOR_TARGET"; then
12804 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
12805elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12806 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12807fi
12808
12809if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
12810 for ncn_progname in readelf; do
12811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12812set dummy ${ncn_progname}; ac_word=$2
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814$as_echo_n "checking for $ac_word... " >&6; }
12815if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
12817else
12818 if test -n "$READELF_FOR_TARGET"; then
12819 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12820else
12821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822for as_dir in $PATH
12823do
12824 IFS=$as_save_IFS
12825 test -z "$as_dir" && as_dir=.
12826 for ac_exec_ext in '' $ac_executable_extensions; do
12827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12828 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830 break 2
12831 fi
12832done
12833 done
12834IFS=$as_save_IFS
12835
12836fi
12837fi
12838READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12839if test -n "$READELF_FOR_TARGET"; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12841$as_echo "$READELF_FOR_TARGET" >&6; }
12842else
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844$as_echo "no" >&6; }
12845fi
12846
12847
12848 done
12849fi
12850
12851if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
12852 for ncn_progname in readelf; do
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12854$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12855 if test -x $with_build_time_tools/${ncn_progname}; then
12856 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12858$as_echo "yes" >&6; }
12859 break
12860 else
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12862$as_echo "no" >&6; }
12863 fi
12864 done
12865fi
12866
12867if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
12868 for ncn_progname in readelf; do
12869 if test -n "$ncn_target_tool_prefix"; then
12870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12871set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12873$as_echo_n "checking for $ac_word... " >&6; }
12874if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12875 $as_echo_n "(cached) " >&6
12876else
12877 if test -n "$READELF_FOR_TARGET"; then
12878 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12879else
12880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12881for as_dir in $PATH
12882do
12883 IFS=$as_save_IFS
12884 test -z "$as_dir" && as_dir=.
12885 for ac_exec_ext in '' $ac_executable_extensions; do
12886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12887 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12889 break 2
12890 fi
12891done
12892 done
12893IFS=$as_save_IFS
12894
12895fi
12896fi
12897READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12898if test -n "$READELF_FOR_TARGET"; then
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12900$as_echo "$READELF_FOR_TARGET" >&6; }
12901else
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903$as_echo "no" >&6; }
12904fi
12905
12906
12907 fi
12908 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
12909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12910set dummy ${ncn_progname}; ac_word=$2
12911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12912$as_echo_n "checking for $ac_word... " >&6; }
12913if test "${ac_cv_prog_READELF_FOR_TARGET+set}" = set; then :
12914 $as_echo_n "(cached) " >&6
12915else
12916 if test -n "$READELF_FOR_TARGET"; then
12917 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
12918else
12919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920for as_dir in $PATH
12921do
12922 IFS=$as_save_IFS
12923 test -z "$as_dir" && as_dir=.
12924 for ac_exec_ext in '' $ac_executable_extensions; do
12925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12926 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
12927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12928 break 2
12929 fi
12930done
12931 done
12932IFS=$as_save_IFS
12933
12934fi
12935fi
12936READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
12937if test -n "$READELF_FOR_TARGET"; then
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
12939$as_echo "$READELF_FOR_TARGET" >&6; }
12940else
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12942$as_echo "no" >&6; }
12943fi
12944
12945
12946 fi
12947 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
12948 done
12949fi
12950
12951if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
12952 set dummy readelf
12953 if test $build = $target ; then
12954 READELF_FOR_TARGET="$2"
12955 else
12956 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
12957 fi
12958else
12959 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
12960fi
12961
12962else
12963 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
12964fi
12965
12966
12967
12968
2429c060
PB
12969if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12970 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12972$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12973 if test -x $with_build_time_tools/strip; then
12974 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12975 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12977$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12978 else
81ecdfbb
RW
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980$as_echo "no" >&6; }
3a35eeb3 12981 fi
2429c060
PB
12982 elif test $build != $host && test $have_gcc_for_target = yes; then
12983 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12984 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12985 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12986 fi
12987fi
c6b750e1 12988if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12989 # Extract the first word of "strip", so it can be a program name with args.
12990set dummy strip; ac_word=$2
81ecdfbb
RW
12991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12992$as_echo_n "checking for $ac_word... " >&6; }
12993if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
2429c060 12995else
c6b750e1
DJ
12996 case $STRIP_FOR_TARGET in
12997 [\\/]* | ?:[\\/]*)
2429c060
PB
12998 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12999 ;;
2429c060 13000 *)
c6b750e1
DJ
13001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002for as_dir in $gcc_cv_tool_dirs
13003do
13004 IFS=$as_save_IFS
13005 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13008 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13010 break 2
13011 fi
13012done
81ecdfbb
RW
13013 done
13014IFS=$as_save_IFS
c6b750e1 13015
2429c060
PB
13016 ;;
13017esac
13018fi
c6b750e1 13019STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 13020if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13022$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 13023else
81ecdfbb
RW
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13025$as_echo "no" >&6; }
2429c060
PB
13026fi
13027
81ecdfbb 13028
2429c060
PB
13029fi
13030if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
13031
13032
13033if test -n "$STRIP_FOR_TARGET"; then
13034 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
13035elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13036 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13037fi
13038
13039if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
13040 for ncn_progname in strip; do
13041 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13042set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044$as_echo_n "checking for $ac_word... " >&6; }
13045if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
9a819804
AO
13047else
13048 if test -n "$STRIP_FOR_TARGET"; then
13049 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13050else
13051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052for as_dir in $PATH
13053do
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13058 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13060 break 2
13061 fi
13062done
81ecdfbb
RW
13063 done
13064IFS=$as_save_IFS
9a819804
AO
13065
13066fi
13067fi
13068STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
13069if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13071$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 13072else
81ecdfbb
RW
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074$as_echo "no" >&6; }
9a819804
AO
13075fi
13076
81ecdfbb 13077
9a819804
AO
13078 done
13079fi
13080
13081if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13082 for ncn_progname in strip; do
81ecdfbb
RW
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13084$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13085 if test -x $with_build_time_tools/${ncn_progname}; then
13086 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13088$as_echo "yes" >&6; }
2429c060
PB
13089 break
13090 else
81ecdfbb
RW
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13092$as_echo "no" >&6; }
2429c060
PB
13093 fi
13094 done
13095fi
13096
13097if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
13098 for ncn_progname in strip; do
13099 if test -n "$ncn_target_tool_prefix"; then
13100 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 13101set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13103$as_echo_n "checking for $ac_word... " >&6; }
13104if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13105 $as_echo_n "(cached) " >&6
7e0f7140
GK
13106else
13107 if test -n "$STRIP_FOR_TARGET"; then
13108 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
13109else
13110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13111for as_dir in $PATH
13112do
13113 IFS=$as_save_IFS
13114 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13115 for ac_exec_ext in '' $ac_executable_extensions; do
13116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13117 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13119 break 2
13120 fi
13121done
81ecdfbb
RW
13122 done
13123IFS=$as_save_IFS
c6b750e1 13124
7e0f7140
GK
13125fi
13126fi
c6b750e1 13127STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13128if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13130$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13131else
81ecdfbb
RW
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13133$as_echo "no" >&6; }
7e0f7140
GK
13134fi
13135
81ecdfbb 13136
2429c060
PB
13137 fi
13138 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
13139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 13140set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13142$as_echo_n "checking for $ac_word... " >&6; }
13143if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
13144 $as_echo_n "(cached) " >&6
7e0f7140
GK
13145else
13146 if test -n "$STRIP_FOR_TARGET"; then
13147 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
13148else
c6b750e1
DJ
13149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150for as_dir in $PATH
13151do
13152 IFS=$as_save_IFS
13153 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13156 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 13157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13158 break 2
13159 fi
13160done
81ecdfbb
RW
13161 done
13162IFS=$as_save_IFS
c6b750e1 13163
7e0f7140
GK
13164fi
13165fi
c6b750e1 13166STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 13167if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
13169$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 13170else
81ecdfbb
RW
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13172$as_echo "no" >&6; }
7e0f7140 13173fi
c6b750e1 13174
81ecdfbb 13175
2429c060
PB
13176 fi
13177 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
13178 done
13179fi
c6b750e1 13180
7e0f7140
GK
13181if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
13182 set dummy strip
13183 if test $build = $target ; then
13184 STRIP_FOR_TARGET="$2"
13185 else
13186 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
13187 fi
d3f5afc4
MS
13188else
13189 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
13190fi
13191
3a35eeb3
PB
13192else
13193 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
13194fi
13195
13196
13197
13198
13199if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
13200 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
13202$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13203 if test -x $with_build_time_tools/windres; then
13204 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
13205 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
13207$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 13208 else
81ecdfbb
RW
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210$as_echo "no" >&6; }
3a35eeb3 13211 fi
2429c060
PB
13212 elif test $build != $host && test $have_gcc_for_target = yes; then
13213 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
13214 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
13215 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
13216 fi
13217fi
c6b750e1 13218if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
13219 # Extract the first word of "windres", so it can be a program name with args.
13220set dummy windres; ac_word=$2
81ecdfbb
RW
13221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13222$as_echo_n "checking for $ac_word... " >&6; }
13223if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
13224 $as_echo_n "(cached) " >&6
2429c060 13225else
c6b750e1
DJ
13226 case $WINDRES_FOR_TARGET in
13227 [\\/]* | ?:[\\/]*)
2429c060
PB
13228 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
13229 ;;
2429c060 13230 *)
c6b750e1
DJ
13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232for as_dir in $gcc_cv_tool_dirs
13233do
13234 IFS=$as_save_IFS
13235 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13236 for ac_exec_ext in '' $ac_executable_extensions; do
13237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13238 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13240 break 2
13241 fi
13242done
81ecdfbb
RW
13243 done
13244IFS=$as_save_IFS
c6b750e1 13245
2429c060
PB
13246 ;;
13247esac
13248fi
c6b750e1 13249WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 13250if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13252$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 13253else
81ecdfbb
RW
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13255$as_echo "no" >&6; }
2429c060
PB
13256fi
13257
81ecdfbb 13258
2429c060
PB
13259fi
13260if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
13261
13262
13263if test -n "$WINDRES_FOR_TARGET"; then
13264 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
13265elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13266 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13267fi
13268
13269if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13270 for ncn_progname in windres; do
13271 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13272set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13274$as_echo_n "checking for $ac_word... " >&6; }
13275if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13276 $as_echo_n "(cached) " >&6
9a819804
AO
13277else
13278 if test -n "$WINDRES_FOR_TARGET"; then
13279 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
13280else
13281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13282for as_dir in $PATH
13283do
13284 IFS=$as_save_IFS
13285 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13286 for ac_exec_ext in '' $ac_executable_extensions; do
13287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 13288 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
13290 break 2
13291 fi
13292done
81ecdfbb
RW
13293 done
13294IFS=$as_save_IFS
9a819804
AO
13295
13296fi
13297fi
13298WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
13299if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13301$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 13302else
81ecdfbb
RW
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13304$as_echo "no" >&6; }
9a819804
AO
13305fi
13306
81ecdfbb 13307
9a819804
AO
13308 done
13309fi
13310
13311if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 13312 for ncn_progname in windres; do
81ecdfbb
RW
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13314$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
13315 if test -x $with_build_time_tools/${ncn_progname}; then
13316 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13318$as_echo "yes" >&6; }
2429c060
PB
13319 break
13320 else
81ecdfbb
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322$as_echo "no" >&6; }
2429c060
PB
13323 fi
13324 done
13325fi
13326
13327if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13328 for ncn_progname in windres; do
13329 if test -n "$ncn_target_tool_prefix"; then
13330 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13331set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13333$as_echo_n "checking for $ac_word... " >&6; }
13334if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13335 $as_echo_n "(cached) " >&6
859789af 13336else
55db4b87
PB
13337 if test -n "$WINDRES_FOR_TARGET"; then
13338 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13339else
c6b750e1
DJ
13340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13341for as_dir in $PATH
13342do
13343 IFS=$as_save_IFS
13344 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13345 for ac_exec_ext in '' $ac_executable_extensions; do
13346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13347 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13349 break 2
13350 fi
13351done
81ecdfbb
RW
13352 done
13353IFS=$as_save_IFS
c6b750e1 13354
859789af
AC
13355fi
13356fi
c6b750e1 13357WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13358if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13360$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13361else
81ecdfbb
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13363$as_echo "no" >&6; }
859789af
AC
13364fi
13365
81ecdfbb 13366
2429c060
PB
13367 fi
13368 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13370set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13372$as_echo_n "checking for $ac_word... " >&6; }
13373if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
859789af 13375else
05cbd757
PB
13376 if test -n "$WINDRES_FOR_TARGET"; then
13377 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13378else
c6b750e1
DJ
13379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13380for as_dir in $PATH
13381do
13382 IFS=$as_save_IFS
13383 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13384 for ac_exec_ext in '' $ac_executable_extensions; do
13385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13386 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13388 break 2
13389 fi
13390done
81ecdfbb
RW
13391 done
13392IFS=$as_save_IFS
c6b750e1 13393
859789af
AC
13394fi
13395fi
c6b750e1 13396WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13397if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13399$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13400else
81ecdfbb
RW
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13402$as_echo "no" >&6; }
859789af 13403fi
c6b750e1 13404
81ecdfbb 13405
2429c060
PB
13406 fi
13407 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13408 done
13409fi
c6b750e1 13410
05cbd757
PB
13411if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13412 set dummy windres
13413 if test $build = $target ; then
13414 WINDRES_FOR_TARGET="$2"
859789af 13415 else
05cbd757 13416 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13417 fi
d3f5afc4
MS
13418else
13419 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13420fi
13421
3a35eeb3
PB
13422else
13423 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13424fi
13425
852e5f18 13426
0c24b341
NC
13427
13428
13429if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13430 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13432$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13433 if test -x $with_build_time_tools/windmc; then
13434 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13435 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13437$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13438 else
81ecdfbb
RW
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13440$as_echo "no" >&6; }
0c24b341
NC
13441 fi
13442 elif test $build != $host && test $have_gcc_for_target = yes; then
13443 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13444 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13445 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13446 fi
13447fi
13448if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13449 # Extract the first word of "windmc", so it can be a program name with args.
13450set dummy windmc; ac_word=$2
81ecdfbb
RW
13451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13452$as_echo_n "checking for $ac_word... " >&6; }
13453if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13454 $as_echo_n "(cached) " >&6
0c24b341
NC
13455else
13456 case $WINDMC_FOR_TARGET in
13457 [\\/]* | ?:[\\/]*)
13458 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13459 ;;
13460 *)
13461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13462for as_dir in $gcc_cv_tool_dirs
13463do
13464 IFS=$as_save_IFS
13465 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13466 for ac_exec_ext in '' $ac_executable_extensions; do
13467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13468 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13470 break 2
13471 fi
13472done
81ecdfbb
RW
13473 done
13474IFS=$as_save_IFS
0c24b341
NC
13475
13476 ;;
13477esac
13478fi
13479WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13480if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13482$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13483else
81ecdfbb
RW
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13485$as_echo "no" >&6; }
0c24b341
NC
13486fi
13487
81ecdfbb 13488
0c24b341
NC
13489fi
13490if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13491
13492
13493if test -n "$WINDMC_FOR_TARGET"; then
13494 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13495elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13496 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13497fi
13498
13499if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13500 for ncn_progname in windmc; do
13501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13502set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504$as_echo_n "checking for $ac_word... " >&6; }
13505if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
0c24b341
NC
13507else
13508 if test -n "$WINDMC_FOR_TARGET"; then
13509 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13510else
13511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512for as_dir in $PATH
13513do
13514 IFS=$as_save_IFS
13515 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13516 for ac_exec_ext in '' $ac_executable_extensions; do
13517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13518 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13520 break 2
13521 fi
13522done
81ecdfbb
RW
13523 done
13524IFS=$as_save_IFS
0c24b341
NC
13525
13526fi
13527fi
13528WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13529if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13531$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13532else
81ecdfbb
RW
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534$as_echo "no" >&6; }
0c24b341
NC
13535fi
13536
81ecdfbb 13537
0c24b341
NC
13538 done
13539fi
13540
13541if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13542 for ncn_progname in windmc; do
81ecdfbb
RW
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13544$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13545 if test -x $with_build_time_tools/${ncn_progname}; then
13546 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13548$as_echo "yes" >&6; }
0c24b341
NC
13549 break
13550 else
81ecdfbb
RW
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13552$as_echo "no" >&6; }
0c24b341
NC
13553 fi
13554 done
13555fi
13556
13557if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13558 for ncn_progname in windmc; do
13559 if test -n "$ncn_target_tool_prefix"; then
13560 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13561set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563$as_echo_n "checking for $ac_word... " >&6; }
13564if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13565 $as_echo_n "(cached) " >&6
0c24b341
NC
13566else
13567 if test -n "$WINDMC_FOR_TARGET"; then
13568 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13569else
13570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571for as_dir in $PATH
13572do
13573 IFS=$as_save_IFS
13574 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13577 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13579 break 2
13580 fi
13581done
81ecdfbb
RW
13582 done
13583IFS=$as_save_IFS
0c24b341
NC
13584
13585fi
13586fi
13587WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13588if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13590$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13591else
81ecdfbb
RW
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593$as_echo "no" >&6; }
0c24b341
NC
13594fi
13595
81ecdfbb 13596
0c24b341
NC
13597 fi
13598 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13599 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13600set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13602$as_echo_n "checking for $ac_word... " >&6; }
13603if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13604 $as_echo_n "(cached) " >&6
0c24b341
NC
13605else
13606 if test -n "$WINDMC_FOR_TARGET"; then
13607 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13608else
13609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13610for as_dir in $PATH
13611do
13612 IFS=$as_save_IFS
13613 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13614 for ac_exec_ext in '' $ac_executable_extensions; do
13615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13616 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13618 break 2
13619 fi
13620done
81ecdfbb
RW
13621 done
13622IFS=$as_save_IFS
0c24b341
NC
13623
13624fi
13625fi
13626WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13627if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13629$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13630else
81ecdfbb
RW
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13632$as_echo "no" >&6; }
0c24b341
NC
13633fi
13634
81ecdfbb 13635
0c24b341
NC
13636 fi
13637 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13638 done
13639fi
13640
13641if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13642 set dummy windmc
13643 if test $build = $target ; then
13644 WINDMC_FOR_TARGET="$2"
13645 else
13646 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13647 fi
13648else
13649 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13650fi
13651
13652else
13653 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13654fi
13655
13656
be01d343
PB
13657RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13658
81ecdfbb
RW
13659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13660$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13661if test "x${build}" != "x${host}" ; then
2429c060
PB
13662 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13663 # We already found the complete path
b8025f34 13664 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13666$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13667 else
13668 # Canadian cross, just use what we found
81ecdfbb
RW
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13670$as_echo "pre-installed" >&6; }
2429c060 13671 fi
be01d343
PB
13672else
13673 ok=yes
13674 case " ${configdirs} " in
13675 *" binutils "*) ;;
13676 *) ok=no ;;
13677 esac
c6b750e1 13678
be01d343
PB
13679 if test $ok = yes; then
13680 # An in-tree tool is available and we can use it
13681 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13683$as_echo "just compiled" >&6; }
2429c060
PB
13684 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13685 # We already found the complete path
b8025f34 13686 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13688$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13689 elif test "x$target" = "x$host"; then
13690 # We can use an host tool
13691 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13693$as_echo "host tool" >&6; }
be01d343
PB
13694 else
13695 # We need a cross tool
81ecdfbb
RW
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13697$as_echo "pre-installed" >&6; }
be01d343
PB
13698 fi
13699fi
4b900473 13700
81ecdfbb
RW
13701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13702$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13703if test "x${build}" != "x${host}" ; then
2429c060
PB
13704 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13705 # We already found the complete path
b8025f34 13706 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13708$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13709 else
13710 # Canadian cross, just use what we found
81ecdfbb
RW
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13712$as_echo "pre-installed" >&6; }
2429c060 13713 fi
be01d343
PB
13714else
13715 ok=yes
13716 case " ${configdirs} " in
13717 *" gas "*) ;;
13718 *) ok=no ;;
13719 esac
c6b750e1 13720
be01d343
PB
13721 if test $ok = yes; then
13722 # An in-tree tool is available and we can use it
13723 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13725$as_echo "just compiled" >&6; }
2429c060
PB
13726 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13727 # We already found the complete path
b8025f34 13728 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13730$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13731 elif test "x$target" = "x$host"; then
13732 # We can use an host tool
13733 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13735$as_echo "host tool" >&6; }
be01d343
PB
13736 else
13737 # We need a cross tool
81ecdfbb
RW
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13739$as_echo "pre-installed" >&6; }
be01d343
PB
13740 fi
13741fi
4b900473 13742
81ecdfbb
RW
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13744$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13745if test "x${build}" != "x${host}" ; then
2429c060
PB
13746 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13747 # We already found the complete path
b8025f34 13748 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13750$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13751 else
13752 # Canadian cross, just use what we found
81ecdfbb
RW
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13754$as_echo "pre-installed" >&6; }
2429c060 13755 fi
be01d343
PB
13756else
13757 ok=yes
13758 case " ${configdirs} " in
13759 *" gcc "*) ;;
13760 *) ok=no ;;
13761 esac
c6b750e1 13762
be01d343
PB
13763 if test $ok = yes; then
13764 # An in-tree tool is available and we can use it
13765 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13767$as_echo "just compiled" >&6; }
2429c060
PB
13768 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13769 # We already found the complete path
b8025f34 13770 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13772$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13773 elif test "x$target" = "x$host"; then
13774 # We can use an host tool
13775 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13777$as_echo "host tool" >&6; }
be01d343
PB
13778 else
13779 # We need a cross tool
81ecdfbb
RW
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13781$as_echo "pre-installed" >&6; }
be01d343
PB
13782 fi
13783fi
4b900473 13784
81ecdfbb
RW
13785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13786$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13787if test "x${build}" != "x${host}" ; then
2429c060
PB
13788 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13789 # We already found the complete path
b8025f34 13790 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13792$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13793 else
13794 # Canadian cross, just use what we found
81ecdfbb
RW
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13796$as_echo "pre-installed" >&6; }
2429c060 13797 fi
be01d343
PB
13798else
13799 ok=yes
13800 case " ${configdirs} " in
13801 *" gcc "*) ;;
13802 *) ok=no ;;
13803 esac
13804 case ,${enable_languages}, in
13805 *,c++,*) ;;
13806 *) ok=no ;;
13807 esac
13808 if test $ok = yes; then
13809 # An in-tree tool is available and we can use it
95e43135 13810 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xg++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13812$as_echo "just compiled" >&6; }
2429c060
PB
13813 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13814 # We already found the complete path
b8025f34 13815 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13817$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13818 elif test "x$target" = "x$host"; then
13819 # We can use an host tool
13820 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13822$as_echo "host tool" >&6; }
be01d343
PB
13823 else
13824 # We need a cross tool
81ecdfbb
RW
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13826$as_echo "pre-installed" >&6; }
be01d343
PB
13827 fi
13828fi
4b900473 13829
81ecdfbb
RW
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13831$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13832if test "x${build}" != "x${host}" ; then
2429c060
PB
13833 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13834 # We already found the complete path
b8025f34 13835 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13837$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13838 else
13839 # Canadian cross, just use what we found
81ecdfbb
RW
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13841$as_echo "pre-installed" >&6; }
2429c060 13842 fi
be01d343
PB
13843else
13844 ok=yes
13845 case " ${configdirs} " in
13846 *" gcc "*) ;;
13847 *) ok=no ;;
13848 esac
13849 case ,${enable_languages}, in
13850 *,c++,*) ;;
13851 *) ok=no ;;
13852 esac
13853 if test $ok = yes; then
13854 # An in-tree tool is available and we can use it
95e43135 13855 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs'
81ecdfbb
RW
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13857$as_echo "just compiled" >&6; }
2429c060
PB
13858 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13859 # We already found the complete path
b8025f34 13860 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13862$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13863 elif test "x$target" = "x$host"; then
13864 # We can use an host tool
13865 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13867$as_echo "host tool" >&6; }
be01d343
PB
13868 else
13869 # We need a cross tool
81ecdfbb
RW
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13871$as_echo "pre-installed" >&6; }
be01d343
PB
13872 fi
13873fi
4b900473 13874
81ecdfbb
RW
13875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13876$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13877if test "x${build}" != "x${host}" ; then
2429c060
PB
13878 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13879 # We already found the complete path
b8025f34 13880 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13882$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13883 else
13884 # Canadian cross, just use what we found
81ecdfbb
RW
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13886$as_echo "pre-installed" >&6; }
2429c060 13887 fi
be01d343
PB
13888else
13889 ok=yes
13890 case " ${configdirs} " in
13891 *" binutils "*) ;;
13892 *) ok=no ;;
13893 esac
c6b750e1 13894
be01d343
PB
13895 if test $ok = yes; then
13896 # An in-tree tool is available and we can use it
13897 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13899$as_echo "just compiled" >&6; }
2429c060
PB
13900 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13901 # We already found the complete path
b8025f34 13902 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13904$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13905 elif test "x$target" = "x$host"; then
13906 # We can use an host tool
13907 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13909$as_echo "host tool" >&6; }
be01d343
PB
13910 else
13911 # We need a cross tool
81ecdfbb
RW
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13913$as_echo "pre-installed" >&6; }
be01d343
PB
13914 fi
13915fi
4b900473 13916
81ecdfbb
RW
13917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13918$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13919if test "x${build}" != "x${host}" ; then
2429c060
PB
13920 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13921 # We already found the complete path
b8025f34 13922 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13924$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13925 else
13926 # Canadian cross, just use what we found
81ecdfbb
RW
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13928$as_echo "pre-installed" >&6; }
2429c060 13929 fi
be01d343
PB
13930else
13931 ok=yes
13932 case " ${configdirs} " in
13933 *" gcc "*) ;;
13934 *) ok=no ;;
13935 esac
c6b750e1 13936
be01d343
PB
13937 if test $ok = yes; then
13938 # An in-tree tool is available and we can use it
13939 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13941$as_echo "just compiled" >&6; }
2429c060
PB
13942 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13943 # We already found the complete path
b8025f34 13944 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13946$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13947 elif test "x$target" = "x$host"; then
13948 # We can use an host tool
13949 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13951$as_echo "host tool" >&6; }
be01d343
PB
13952 else
13953 # We need a cross tool
81ecdfbb
RW
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13955$as_echo "pre-installed" >&6; }
be01d343
PB
13956 fi
13957fi
4b900473 13958
81ecdfbb
RW
13959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13960$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13961if test "x${build}" != "x${host}" ; then
2429c060
PB
13962 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13963 # We already found the complete path
b8025f34 13964 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13966$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13967 else
13968 # Canadian cross, just use what we found
81ecdfbb
RW
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13970$as_echo "pre-installed" >&6; }
2429c060 13971 fi
be01d343
PB
13972else
13973 ok=yes
13974 case " ${configdirs} " in
13975 *" gcc "*) ;;
13976 *) ok=no ;;
13977 esac
13978 case ,${enable_languages}, in
13979 *,java,*) ;;
13980 *) ok=no ;;
13981 esac
13982 if test $ok = yes; then
13983 # An in-tree tool is available and we can use it
13984 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13986$as_echo "just compiled" >&6; }
2429c060
PB
13987 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13988 # We already found the complete path
b8025f34 13989 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13991$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13992 elif test "x$target" = "x$host"; then
13993 # We can use an host tool
13994 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13996$as_echo "host tool" >&6; }
be01d343
PB
13997 else
13998 # We need a cross tool
81ecdfbb
RW
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14000$as_echo "pre-installed" >&6; }
be01d343
PB
14001 fi
14002fi
4b900473 14003
81ecdfbb
RW
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
14005$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 14006if test "x${build}" != "x${host}" ; then
2429c060
PB
14007 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14008 # We already found the complete path
b8025f34 14009 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14011$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14012 else
14013 # Canadian cross, just use what we found
81ecdfbb
RW
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14015$as_echo "pre-installed" >&6; }
2429c060 14016 fi
be01d343
PB
14017else
14018 ok=yes
14019 case " ${configdirs} " in
14020 *" gcc "*) ;;
14021 *) ok=no ;;
14022 esac
14023 case ,${enable_languages}, in
14024 *,fortran,*) ;;
14025 *) ok=no ;;
14026 esac
14027 if test $ok = yes; then
14028 # An in-tree tool is available and we can use it
14029 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14031$as_echo "just compiled" >&6; }
2429c060
PB
14032 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
14033 # We already found the complete path
b8025f34 14034 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14036$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14037 elif test "x$target" = "x$host"; then
14038 # We can use an host tool
14039 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14041$as_echo "host tool" >&6; }
be01d343
PB
14042 else
14043 # We need a cross tool
81ecdfbb
RW
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14045$as_echo "pre-installed" >&6; }
be01d343
PB
14046 fi
14047fi
4b900473 14048
e552509b
ILT
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
14050$as_echo_n "checking where to find the target gccgo... " >&6; }
14051if test "x${build}" != "x${host}" ; then
14052 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14053 # We already found the complete path
14054 ac_dir=`dirname $GOC_FOR_TARGET`
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14056$as_echo "pre-installed in $ac_dir" >&6; }
14057 else
14058 # Canadian cross, just use what we found
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14060$as_echo "pre-installed" >&6; }
14061 fi
14062else
14063 ok=yes
14064 case " ${configdirs} " in
14065 *" gcc "*) ;;
14066 *) ok=no ;;
14067 esac
14068 case ,${enable_languages}, in
14069 *,go,*) ;;
14070 *) ok=no ;;
14071 esac
14072 if test $ok = yes; then
14073 # An in-tree tool is available and we can use it
14074 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14076$as_echo "just compiled" >&6; }
14077 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
14078 # We already found the complete path
14079 ac_dir=`dirname $GOC_FOR_TARGET`
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081$as_echo "pre-installed in $ac_dir" >&6; }
14082 elif test "x$target" = "x$host"; then
14083 # We can use an host tool
14084 GOC_FOR_TARGET='$(GOC)'
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14086$as_echo "host tool" >&6; }
14087 else
14088 # We need a cross tool
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14090$as_echo "pre-installed" >&6; }
14091 fi
14092fi
14093
81ecdfbb
RW
14094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
14095$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 14096if test "x${build}" != "x${host}" ; then
2429c060
PB
14097 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14098 # We already found the complete path
b8025f34 14099 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14101$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14102 else
14103 # Canadian cross, just use what we found
81ecdfbb
RW
14104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14105$as_echo "pre-installed" >&6; }
2429c060 14106 fi
be01d343
PB
14107else
14108 ok=yes
14109 case " ${configdirs} " in
14110 *" ld "*) ;;
14111 *) ok=no ;;
14112 esac
c6b750e1 14113
be01d343
PB
14114 if test $ok = yes; then
14115 # An in-tree tool is available and we can use it
14116 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14118$as_echo "just compiled" >&6; }
2429c060
PB
14119 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
14120 # We already found the complete path
b8025f34 14121 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14123$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14124 elif test "x$target" = "x$host"; then
14125 # We can use an host tool
14126 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14128$as_echo "host tool" >&6; }
be01d343
PB
14129 else
14130 # We need a cross tool
81ecdfbb
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14132$as_echo "pre-installed" >&6; }
be01d343
PB
14133 fi
14134fi
4b900473 14135
81ecdfbb
RW
14136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
14137$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 14138if test "x${build}" != "x${host}" ; then
2429c060
PB
14139 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14140 # We already found the complete path
b8025f34 14141 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14143$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14144 else
14145 # Canadian cross, just use what we found
81ecdfbb
RW
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14147$as_echo "pre-installed" >&6; }
2429c060 14148 fi
be01d343 14149else
2429c060
PB
14150 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
14151 # We already found the complete path
b8025f34 14152 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14154$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 14155 elif test "x$target" = "x$host"; then
be01d343
PB
14156 # We can use an host tool
14157 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14159$as_echo "host tool" >&6; }
be01d343
PB
14160 else
14161 # We need a cross tool
81ecdfbb
RW
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14163$as_echo "pre-installed" >&6; }
be01d343
PB
14164 fi
14165fi
4b900473 14166
81ecdfbb
RW
14167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
14168$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 14169if test "x${build}" != "x${host}" ; then
2429c060
PB
14170 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14171 # We already found the complete path
b8025f34 14172 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14174$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14175 else
14176 # Canadian cross, just use what we found
81ecdfbb
RW
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14178$as_echo "pre-installed" >&6; }
2429c060 14179 fi
be01d343
PB
14180else
14181 ok=yes
14182 case " ${configdirs} " in
14183 *" binutils "*) ;;
14184 *) ok=no ;;
14185 esac
c6b750e1 14186
be01d343
PB
14187 if test $ok = yes; then
14188 # An in-tree tool is available and we can use it
14189 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14191$as_echo "just compiled" >&6; }
2429c060
PB
14192 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
14193 # We already found the complete path
b8025f34 14194 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14196$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14197 elif test "x$target" = "x$host"; then
14198 # We can use an host tool
14199 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14201$as_echo "host tool" >&6; }
be01d343
PB
14202 else
14203 # We need a cross tool
81ecdfbb
RW
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14205$as_echo "pre-installed" >&6; }
be01d343
PB
14206 fi
14207fi
4b900473 14208
81ecdfbb
RW
14209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
14210$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 14211if test "x${build}" != "x${host}" ; then
2429c060
PB
14212 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14213 # We already found the complete path
b8025f34 14214 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14216$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14217 else
14218 # Canadian cross, just use what we found
81ecdfbb
RW
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14220$as_echo "pre-installed" >&6; }
2429c060 14221 fi
be01d343
PB
14222else
14223 ok=yes
14224 case " ${configdirs} " in
14225 *" binutils "*) ;;
14226 *) ok=no ;;
14227 esac
c6b750e1 14228
be01d343
PB
14229 if test $ok = yes; then
14230 # An in-tree tool is available and we can use it
14231 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14233$as_echo "just compiled" >&6; }
2429c060
PB
14234 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
14235 # We already found the complete path
b8025f34 14236 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14238$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14239 elif test "x$target" = "x$host"; then
14240 # We can use an host tool
14241 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
14242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14243$as_echo "host tool" >&6; }
be01d343
PB
14244 else
14245 # We need a cross tool
81ecdfbb
RW
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14247$as_echo "pre-installed" >&6; }
be01d343
PB
14248 fi
14249fi
4b900473 14250
81ecdfbb
RW
14251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
14252$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 14253if test "x${build}" != "x${host}" ; then
2429c060
PB
14254 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14255 # We already found the complete path
b8025f34 14256 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14258$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14259 else
14260 # Canadian cross, just use what we found
81ecdfbb
RW
14261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14262$as_echo "pre-installed" >&6; }
2429c060 14263 fi
be01d343
PB
14264else
14265 ok=yes
14266 case " ${configdirs} " in
14267 *" binutils "*) ;;
14268 *) ok=no ;;
14269 esac
c6b750e1 14270
be01d343
PB
14271 if test $ok = yes; then
14272 # An in-tree tool is available and we can use it
14273 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14275$as_echo "just compiled" >&6; }
2429c060
PB
14276 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
14277 # We already found the complete path
b8025f34 14278 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14280$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14281 elif test "x$target" = "x$host"; then
14282 # We can use an host tool
14283 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14285$as_echo "host tool" >&6; }
be01d343
PB
14286 else
14287 # We need a cross tool
81ecdfbb
RW
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14289$as_echo "pre-installed" >&6; }
be01d343
PB
14290 fi
14291fi
4b900473 14292
b121d7d4
DD
14293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
14294$as_echo_n "checking where to find the target readelf... " >&6; }
14295if test "x${build}" != "x${host}" ; then
14296 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14297 # We already found the complete path
14298 ac_dir=`dirname $READELF_FOR_TARGET`
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14300$as_echo "pre-installed in $ac_dir" >&6; }
14301 else
14302 # Canadian cross, just use what we found
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14304$as_echo "pre-installed" >&6; }
14305 fi
14306else
14307 ok=yes
14308 case " ${configdirs} " in
14309 *" binutils "*) ;;
14310 *) ok=no ;;
14311 esac
14312
14313 if test $ok = yes; then
14314 # An in-tree tool is available and we can use it
14315 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14317$as_echo "just compiled" >&6; }
14318 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
14319 # We already found the complete path
14320 ac_dir=`dirname $READELF_FOR_TARGET`
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14322$as_echo "pre-installed in $ac_dir" >&6; }
14323 elif test "x$target" = "x$host"; then
14324 # We can use an host tool
14325 READELF_FOR_TARGET='$(READELF)'
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14327$as_echo "host tool" >&6; }
14328 else
14329 # We need a cross tool
14330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14331$as_echo "pre-installed" >&6; }
14332 fi
14333fi
14334
81ecdfbb
RW
14335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
14336$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 14337if test "x${build}" != "x${host}" ; then
2429c060
PB
14338 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14339 # We already found the complete path
b8025f34 14340 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14342$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14343 else
14344 # Canadian cross, just use what we found
81ecdfbb
RW
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14346$as_echo "pre-installed" >&6; }
2429c060 14347 fi
be01d343
PB
14348else
14349 ok=yes
14350 case " ${configdirs} " in
14351 *" binutils "*) ;;
14352 *) ok=no ;;
14353 esac
c6b750e1 14354
be01d343
PB
14355 if test $ok = yes; then
14356 # An in-tree tool is available and we can use it
9b980aa1 14357 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14359$as_echo "just compiled" >&6; }
2429c060
PB
14360 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
14361 # We already found the complete path
b8025f34 14362 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
14363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14364$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14365 elif test "x$target" = "x$host"; then
14366 # We can use an host tool
14367 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14369$as_echo "host tool" >&6; }
be01d343
PB
14370 else
14371 # We need a cross tool
81ecdfbb
RW
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14373$as_echo "pre-installed" >&6; }
be01d343
PB
14374 fi
14375fi
4b900473 14376
81ecdfbb
RW
14377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14378$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14379if test "x${build}" != "x${host}" ; then
2429c060
PB
14380 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14381 # We already found the complete path
b8025f34 14382 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14384$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14385 else
14386 # Canadian cross, just use what we found
81ecdfbb
RW
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14388$as_echo "pre-installed" >&6; }
2429c060 14389 fi
be01d343
PB
14390else
14391 ok=yes
14392 case " ${configdirs} " in
14393 *" binutils "*) ;;
14394 *) ok=no ;;
14395 esac
c6b750e1 14396
be01d343
PB
14397 if test $ok = yes; then
14398 # An in-tree tool is available and we can use it
14399 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14401$as_echo "just compiled" >&6; }
2429c060
PB
14402 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14403 # We already found the complete path
b8025f34 14404 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14406$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14407 elif test "x$target" = "x$host"; then
14408 # We can use an host tool
14409 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14411$as_echo "host tool" >&6; }
be01d343
PB
14412 else
14413 # We need a cross tool
81ecdfbb
RW
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14415$as_echo "pre-installed" >&6; }
be01d343 14416 fi
a0da8069 14417fi
54752a6b 14418
81ecdfbb
RW
14419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14420$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14421if test "x${build}" != "x${host}" ; then
14422 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14423 # We already found the complete path
14424 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14426$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14427 else
14428 # Canadian cross, just use what we found
81ecdfbb
RW
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14430$as_echo "pre-installed" >&6; }
0c24b341
NC
14431 fi
14432else
14433 ok=yes
14434 case " ${configdirs} " in
14435 *" binutils "*) ;;
14436 *) ok=no ;;
14437 esac
14438
14439 if test $ok = yes; then
14440 # An in-tree tool is available and we can use it
14441 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14443$as_echo "just compiled" >&6; }
0c24b341
NC
14444 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14445 # We already found the complete path
14446 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14448$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14449 elif test "x$target" = "x$host"; then
14450 # We can use an host tool
14451 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14453$as_echo "host tool" >&6; }
0c24b341
NC
14454 else
14455 # We need a cross tool
81ecdfbb
RW
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14457$as_echo "pre-installed" >&6; }
0c24b341
NC
14458 fi
14459fi
14460
54752a6b
NN
14461
14462
be01d343 14463
4b900473 14464
a0da8069
NN
14465# Certain tools may need extra flags.
14466AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14467RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14468NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14469
be01d343
PB
14470# When building target libraries, except in a Canadian cross, we use
14471# the same toolchain as the compiler we just built.
14472COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14473COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14474COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14475if test $host = $build; then
14476 case " $configdirs " in
14477 *" gcc "*)
14478 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14479 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14480 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14481 ;;
14482 esac
14483fi
14484
14485
14486
14487
14488
81ecdfbb
RW
14489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14490$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14491# Check whether --enable-maintainer-mode was given.
14492if test "${enable_maintainer_mode+set}" = set; then :
14493 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14494else
14495 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14496fi
14497
14498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14499$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14500
14501
14502if test "$USE_MAINTAINER_MODE" = yes; then
14503 MAINTAINER_MODE_TRUE=
14504 MAINTAINER_MODE_FALSE='#'
14505else
14506 MAINTAINER_MODE_TRUE='#'
14507 MAINTAINER_MODE_FALSE=
c6b750e1 14508fi
3d5e36ae
AO
14509MAINT=$MAINTAINER_MODE_TRUE
14510
1d39f329
NN
14511# ---------------------
14512# GCC bootstrap support
14513# ---------------------
14514
14515# Stage specific cflags for build.
14516stage1_cflags="-g"
14517case $build in
14518 vax-*-*)
14519 case ${GCC} in
14520 yes) stage1_cflags="-g -Wa,-J" ;;
14521 *) stage1_cflags="-g -J" ;;
14522 esac ;;
1d39f329
NN
14523esac
14524
1d89b610 14525
1d39f329 14526
8a0d8a5c 14527# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14528# Check whether --enable-stage1-checking was given.
14529if test "${enable_stage1_checking+set}" = set; then :
14530 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14531else
5566c1fa 14532 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14533 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14534else
5566c1fa 14535 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14536fi
81ecdfbb 14537fi
8a0d8a5c
PB
14538
14539
c6b750e1 14540
81ecdfbb
RW
14541# Enable -Werror in bootstrap stage2 and later.
14542# Check whether --enable-werror was given.
14543if test "${enable_werror+set}" = set; then :
14544 enableval=$enable_werror;
1d39f329 14545else
a0323144 14546 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14547 enable_werror=yes
79fcd0ec
PB
14548else
14549 enable_werror=no
14550fi
81ecdfbb
RW
14551fi
14552
1a6f2dc7
NN
14553case ${enable_werror} in
14554 yes) stage2_werror_flag="--enable-werror-always" ;;
14555 *) stage2_werror_flag="" ;;
1d39f329
NN
14556esac
14557
14558
82033c9b
JBG
14559# Enable --enable-host-shared.
14560# Check whether --enable-host-shared was given.
14561if test "${enable_host_shared+set}" = set; then :
14562 enableval=$enable_host_shared; host_shared=$enableval
14563else
14564 host_shared=no
14565fi
14566
14567
14568
e8a5fa9c
RW
14569# Specify what files to not compare during bootstrap.
14570
14571compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14572case "$target" in
14573 hppa*64*-*-hpux*) ;;
14574 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
1488e230 14575 powerpc*-ibm-aix*) compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/* | *libgomp*\$(objext)" ;;
e8a5fa9c
RW
14576esac
14577
14578
81ecdfbb
RW
14579ac_config_files="$ac_config_files Makefile"
14580
c6b750e1 14581cat >confcache <<\_ACEOF
a0da8069
NN
14582# This file is a shell script that caches the results of configure
14583# tests run on this system so they can be shared between configure
c6b750e1
DJ
14584# scripts and configure runs, see configure's option --config-cache.
14585# It is not useful on other systems. If it contains results you don't
14586# want to keep, you may remove or edit it.
a0da8069 14587#
c6b750e1
DJ
14588# config.status only pays attention to the cache file if you give it
14589# the --recheck option to rerun configure.
a0da8069 14590#
c6b750e1
DJ
14591# `ac_cv_env_foo' variables (set or unset) will be overridden when
14592# loading this file, other *unset* `ac_cv_foo' will be assigned the
14593# following values.
14594
14595_ACEOF
14596
a0da8069
NN
14597# The following way of writing the cache mishandles newlines in values,
14598# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14599# So, we kill variables containing newlines.
a0da8069
NN
14600# Ultrix sh set writes to stderr and can't be redirected directly,
14601# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14602(
14603 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14604 eval ac_val=\$$ac_var
14605 case $ac_val in #(
14606 *${as_nl}*)
14607 case $ac_var in #(
14608 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14609$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14610 esac
14611 case $ac_var in #(
14612 _ | IFS | as_nl) ;; #(
14613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14614 *) { eval $ac_var=; unset $ac_var;} ;;
14615 esac ;;
14616 esac
14617 done
14618
c6b750e1 14619 (set) 2>&1 |
81ecdfbb
RW
14620 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14621 *${as_nl}ac_space=\ *)
14622 # `set' does not quote correctly, so add quotes: double-quote
14623 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14624 sed -n \
14625 "s/'/'\\\\''/g;
14626 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14627 ;; #(
c6b750e1
DJ
14628 *)
14629 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14630 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14631 ;;
81ecdfbb
RW
14632 esac |
14633 sort
14634) |
c6b750e1 14635 sed '
81ecdfbb 14636 /^ac_cv_env_/b end
c6b750e1 14637 t clear
81ecdfbb 14638 :clear
c6b750e1
DJ
14639 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14640 t end
81ecdfbb
RW
14641 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14642 :end' >>confcache
14643if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14644 if test -w "$cache_file"; then
14645 test "x$cache_file" != "x/dev/null" &&
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14647$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14648 cat confcache >$cache_file
a0da8069 14649 else
81ecdfbb
RW
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14651$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14652 fi
852e5f18 14653fi
a0da8069 14654rm -f confcache
852e5f18 14655
a0da8069
NN
14656test "x$prefix" = xNONE && prefix=$ac_default_prefix
14657# Let make expand exec_prefix.
14658test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14659
a0da8069
NN
14660# Transform confdefs.h into DEFS.
14661# Protect against shell expansion while executing Makefile rules.
14662# Protect against Makefile macro expansion.
c6b750e1
DJ
14663#
14664# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14665# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14666# look for a macro that doesn't take arguments.
81ecdfbb
RW
14667ac_script='
14668:mline
14669/\\$/{
14670 N
14671 s,\\\n,,
14672 b mline
14673}
c6b750e1 14674t clear
81ecdfbb
RW
14675:clear
14676s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14677t quote
81ecdfbb 14678s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14679t quote
81ecdfbb
RW
14680b any
14681:quote
14682s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14683s/\[/\\&/g
14684s/\]/\\&/g
14685s/\$/$$/g
14686H
14687:any
14688${
14689 g
14690 s/^\n//
14691 s/\n/ /g
14692 p
14693}
14694'
14695DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14696
14697
14698ac_libobjs=
14699ac_ltlibobjs=
14700for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14701 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14702 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14703 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14704 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14705 # will be set to the directory where LIBOBJS objects are built.
14706 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14707 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14708done
14709LIBOBJS=$ac_libobjs
852e5f18 14710
c6b750e1 14711LTLIBOBJS=$ac_ltlibobjs
376a0e54 14712
cac3d6c4 14713
c6b750e1
DJ
14714
14715: ${CONFIG_STATUS=./config.status}
81ecdfbb 14716ac_write_fail=0
c6b750e1
DJ
14717ac_clean_files_save=$ac_clean_files
14718ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14719{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14720$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14721as_write_fail=0
14722cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14723#! $SHELL
14724# Generated by $as_me.
a0da8069 14725# Run this file to recreate the current configuration.
a0da8069 14726# Compiler output produced by configure, useful for debugging
c6b750e1 14727# configure, is in config.log if it exists.
376a0e54 14728
c6b750e1
DJ
14729debug=false
14730ac_cs_recheck=false
14731ac_cs_silent=false
c6b750e1 14732
81ecdfbb
RW
14733SHELL=\${CONFIG_SHELL-$SHELL}
14734export SHELL
14735_ASEOF
14736cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14737## -------------------- ##
14738## M4sh Initialization. ##
14739## -------------------- ##
14740
14741# Be more Bourne compatible
14742DUALCASE=1; export DUALCASE # for MKS sh
14743if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14744 emulate sh
14745 NULLCMD=:
81ecdfbb 14746 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14747 # is contrary to our usage. Disable this feature.
14748 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14749 setopt NO_GLOB_SUBST
14750else
14751 case `(set -o) 2>/dev/null` in #(
14752 *posix*) :
14753 set -o posix ;; #(
14754 *) :
14755 ;;
14756esac
c6b750e1 14757fi
c6b750e1 14758
81ecdfbb
RW
14759
14760as_nl='
14761'
14762export as_nl
14763# Printing a long string crashes Solaris 7 /usr/bin/printf.
14764as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14765as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14766as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14767# Prefer a ksh shell builtin over an external printf program on Solaris,
14768# but without wasting forks for bash or zsh.
14769if test -z "$BASH_VERSION$ZSH_VERSION" \
14770 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14771 as_echo='print -r --'
14772 as_echo_n='print -rn --'
14773elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14774 as_echo='printf %s\n'
14775 as_echo_n='printf %s'
14776else
14777 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14778 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14779 as_echo_n='/usr/ucb/echo -n'
14780 else
14781 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14782 as_echo_n_body='eval
14783 arg=$1;
14784 case $arg in #(
14785 *"$as_nl"*)
14786 expr "X$arg" : "X\\(.*\\)$as_nl";
14787 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14788 esac;
14789 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14790 '
14791 export as_echo_n_body
14792 as_echo_n='sh -c $as_echo_n_body as_echo'
14793 fi
14794 export as_echo_body
14795 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14796fi
14797
81ecdfbb
RW
14798# The user is always right.
14799if test "${PATH_SEPARATOR+set}" != set; then
14800 PATH_SEPARATOR=:
14801 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14802 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14803 PATH_SEPARATOR=';'
14804 }
14805fi
14806
14807
14808# IFS
14809# We need space, tab and new line, in precisely that order. Quoting is
14810# there to prevent editors from complaining about space-tab.
14811# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14812# splitting by setting IFS to empty value.)
14813IFS=" "" $as_nl"
14814
14815# Find who we are. Look in the path if we contain no directory separator.
14816case $0 in #((
14817 *[\\/]* ) as_myself=$0 ;;
14818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14819for as_dir in $PATH
14820do
14821 IFS=$as_save_IFS
14822 test -z "$as_dir" && as_dir=.
14823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14824 done
14825IFS=$as_save_IFS
14826
14827 ;;
14828esac
14829# We did not find ourselves, most probably we were run as `sh COMMAND'
14830# in which case we are not to be found in the path.
14831if test "x$as_myself" = x; then
14832 as_myself=$0
14833fi
14834if test ! -f "$as_myself"; then
14835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14836 exit 1
14837fi
c6b750e1 14838
81ecdfbb
RW
14839# Unset variables that we do not need and which cause bugs (e.g. in
14840# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14841# suppresses any "Segmentation fault" message there. '((' could
14842# trigger a bug in pdksh 5.2.14.
14843for as_var in BASH_ENV ENV MAIL MAILPATH
14844do eval test x\${$as_var+set} = xset \
14845 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14846done
c6b750e1
DJ
14847PS1='$ '
14848PS2='> '
14849PS4='+ '
14850
14851# NLS nuisances.
81ecdfbb
RW
14852LC_ALL=C
14853export LC_ALL
14854LANGUAGE=C
14855export LANGUAGE
14856
14857# CDPATH.
14858(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14859
14860
14861# as_fn_error ERROR [LINENO LOG_FD]
14862# ---------------------------------
14863# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14864# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14865# script with status $?, using 1 if that was 0.
14866as_fn_error ()
14867{
14868 as_status=$?; test $as_status -eq 0 && as_status=1
14869 if test "$3"; then
14870 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14871 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14872 fi
81ecdfbb
RW
14873 $as_echo "$as_me: error: $1" >&2
14874 as_fn_exit $as_status
14875} # as_fn_error
14876
14877
14878# as_fn_set_status STATUS
14879# -----------------------
14880# Set $? to STATUS, without forking.
14881as_fn_set_status ()
14882{
14883 return $1
14884} # as_fn_set_status
14885
14886# as_fn_exit STATUS
14887# -----------------
14888# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14889as_fn_exit ()
14890{
14891 set +e
14892 as_fn_set_status $1
14893 exit $1
14894} # as_fn_exit
14895
14896# as_fn_unset VAR
14897# ---------------
14898# Portably unset VAR.
14899as_fn_unset ()
14900{
14901 { eval $1=; unset $1;}
14902}
14903as_unset=as_fn_unset
14904# as_fn_append VAR VALUE
14905# ----------------------
14906# Append the text in VALUE to the end of the definition contained in VAR. Take
14907# advantage of any shell optimizations that allow amortized linear growth over
14908# repeated appends, instead of the typical quadratic growth present in naive
14909# implementations.
14910if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14911 eval 'as_fn_append ()
14912 {
14913 eval $1+=\$2
14914 }'
14915else
14916 as_fn_append ()
14917 {
14918 eval $1=\$$1\$2
14919 }
14920fi # as_fn_append
14921
14922# as_fn_arith ARG...
14923# ------------------
14924# Perform arithmetic evaluation on the ARGs, and store the result in the
14925# global $as_val. Take advantage of shells that can avoid forks. The arguments
14926# must be portable across $(()) and expr.
14927if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14928 eval 'as_fn_arith ()
14929 {
14930 as_val=$(( $* ))
14931 }'
14932else
14933 as_fn_arith ()
14934 {
14935 as_val=`expr "$@" || test $? -eq 1`
14936 }
14937fi # as_fn_arith
14938
c6b750e1 14939
81ecdfbb
RW
14940if expr a : '\(a\)' >/dev/null 2>&1 &&
14941 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14942 as_expr=expr
14943else
14944 as_expr=false
14945fi
14946
81ecdfbb 14947if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14948 as_basename=basename
14949else
14950 as_basename=false
14951fi
14952
81ecdfbb
RW
14953if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14954 as_dirname=dirname
14955else
14956 as_dirname=false
14957fi
c6b750e1 14958
81ecdfbb 14959as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14960$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14961 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14962 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14963$as_echo X/"$0" |
14964 sed '/^.*\/\([^/][^/]*\)\/*$/{
14965 s//\1/
14966 q
14967 }
14968 /^X\/\(\/\/\)$/{
14969 s//\1/
14970 q
14971 }
14972 /^X\/\(\/\).*/{
14973 s//\1/
14974 q
14975 }
14976 s/.*/./; q'`
c6b750e1 14977
c6b750e1
DJ
14978# Avoid depending upon Character Ranges.
14979as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14980as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14981as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14982as_cr_digits='0123456789'
14983as_cr_alnum=$as_cr_Letters$as_cr_digits
14984
81ecdfbb
RW
14985ECHO_C= ECHO_N= ECHO_T=
14986case `echo -n x` in #(((((
14987-n*)
14988 case `echo 'xy\c'` in
14989 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14990 xy) ECHO_C='\c';;
14991 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14992 ECHO_T=' ';;
14993 esac;;
14994*)
14995 ECHO_N='-n';;
c6b750e1
DJ
14996esac
14997
81ecdfbb
RW
14998rm -f conf$$ conf$$.exe conf$$.file
14999if test -d conf$$.dir; then
15000 rm -f conf$$.dir/conf$$.file
c6b750e1 15001else
81ecdfbb
RW
15002 rm -f conf$$.dir
15003 mkdir conf$$.dir 2>/dev/null
c6b750e1 15004fi
81ecdfbb
RW
15005if (echo >conf$$.file) 2>/dev/null; then
15006 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 15007 as_ln_s='ln -s'
81ecdfbb
RW
15008 # ... but there are two gotchas:
15009 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15010 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15011 # In both cases, we have to default to `cp -p'.
15012 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15013 as_ln_s='cp -p'
15014 elif ln conf$$.file conf$$ 2>/dev/null; then
15015 as_ln_s=ln
15016 else
15017 as_ln_s='cp -p'
c6b750e1 15018 fi
c6b750e1
DJ
15019else
15020 as_ln_s='cp -p'
15021fi
81ecdfbb
RW
15022rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15023rmdir conf$$.dir 2>/dev/null
15024
15025
15026# as_fn_mkdir_p
15027# -------------
15028# Create "$as_dir" as a directory, including parents if necessary.
15029as_fn_mkdir_p ()
15030{
15031
15032 case $as_dir in #(
15033 -*) as_dir=./$as_dir;;
15034 esac
15035 test -d "$as_dir" || eval $as_mkdir_p || {
15036 as_dirs=
15037 while :; do
15038 case $as_dir in #(
15039 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15040 *) as_qdir=$as_dir;;
15041 esac
15042 as_dirs="'$as_qdir' $as_dirs"
15043 as_dir=`$as_dirname -- "$as_dir" ||
15044$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15045 X"$as_dir" : 'X\(//\)[^/]' \| \
15046 X"$as_dir" : 'X\(//\)$' \| \
15047 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15048$as_echo X"$as_dir" |
15049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15050 s//\1/
15051 q
15052 }
15053 /^X\(\/\/\)[^/].*/{
15054 s//\1/
15055 q
15056 }
15057 /^X\(\/\/\)$/{
15058 s//\1/
15059 q
15060 }
15061 /^X\(\/\).*/{
15062 s//\1/
15063 q
15064 }
15065 s/.*/./; q'`
15066 test -d "$as_dir" && break
15067 done
15068 test -z "$as_dirs" || eval "mkdir $as_dirs"
15069 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15070
c6b750e1 15071
81ecdfbb 15072} # as_fn_mkdir_p
c6b750e1 15073if mkdir -p . 2>/dev/null; then
81ecdfbb 15074 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
15075else
15076 test -d ./-p && rmdir ./-p
15077 as_mkdir_p=false
15078fi
15079
81ecdfbb
RW
15080if test -x / >/dev/null 2>&1; then
15081 as_test_x='test -x'
15082else
15083 if ls -dL / >/dev/null 2>&1; then
15084 as_ls_L_option=L
15085 else
15086 as_ls_L_option=
15087 fi
15088 as_test_x='
15089 eval sh -c '\''
15090 if test -d "$1"; then
15091 test -d "$1/.";
15092 else
15093 case $1 in #(
15094 -*)set "./$1";;
15095 esac;
15096 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15097 ???[sx]*):;;*)false;;esac;fi
15098 '\'' sh
15099 '
15100fi
15101as_executable_p=$as_test_x
c6b750e1
DJ
15102
15103# Sed expression to map a string onto a valid CPP name.
15104as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15105
15106# Sed expression to map a string onto a valid variable name.
15107as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15108
15109
c6b750e1 15110exec 6>&1
81ecdfbb
RW
15111## ----------------------------------- ##
15112## Main body of $CONFIG_STATUS script. ##
15113## ----------------------------------- ##
15114_ASEOF
15115test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15116
15117cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15118# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 15119# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15120# values after options handling.
15121ac_log="
c6b750e1 15122This file was extended by $as_me, which was
81ecdfbb 15123generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
15124
15125 CONFIG_FILES = $CONFIG_FILES
15126 CONFIG_HEADERS = $CONFIG_HEADERS
15127 CONFIG_LINKS = $CONFIG_LINKS
15128 CONFIG_COMMANDS = $CONFIG_COMMANDS
15129 $ $0 $@
15130
81ecdfbb
RW
15131on `(hostname || uname -n) 2>/dev/null | sed 1q`
15132"
15133
c6b750e1
DJ
15134_ACEOF
15135
81ecdfbb
RW
15136case $ac_config_files in *"
15137"*) set x $ac_config_files; shift; ac_config_files=$*;;
15138esac
c6b750e1 15139
c6b750e1 15140
c6b750e1 15141
81ecdfbb
RW
15142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15143# Files that config.status was made for.
15144config_files="$ac_config_files"
c6b750e1 15145
81ecdfbb 15146_ACEOF
c6b750e1 15147
81ecdfbb 15148cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15149ac_cs_usage="\
81ecdfbb
RW
15150\`$as_me' instantiates files and other configuration actions
15151from templates according to the current configuration. Unless the files
15152and actions are specified as TAGs, all are instantiated by default.
c6b750e1 15153
81ecdfbb 15154Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
15155
15156 -h, --help print this help, then exit
81ecdfbb
RW
15157 -V, --version print version number and configuration settings, then exit
15158 -q, --quiet, --silent
15159 do not print progress messages
c6b750e1
DJ
15160 -d, --debug don't remove temporary files
15161 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15162 --file=FILE[:TEMPLATE]
15163 instantiate the configuration file FILE
c6b750e1
DJ
15164
15165Configuration files:
15166$config_files
15167
81ecdfbb 15168Report bugs to the package provider."
c6b750e1 15169
81ecdfbb
RW
15170_ACEOF
15171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
15172ac_cs_version="\\
15173config.status
81ecdfbb
RW
15174configured by $0, generated by GNU Autoconf 2.64,
15175 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 15176
81ecdfbb 15177Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
15178This config.status script is free software; the Free Software Foundation
15179gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15180
15181ac_pwd='$ac_pwd'
15182srcdir='$srcdir'
15183INSTALL='$INSTALL'
8e957354 15184AWK='$AWK'
81ecdfbb 15185test -n "\$AWK" || AWK=awk
c6b750e1
DJ
15186_ACEOF
15187
81ecdfbb
RW
15188cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15189# The default lists apply if the user does not specify any file.
c6b750e1
DJ
15190ac_need_defaults=:
15191while test $# != 0
a0da8069 15192do
c6b750e1
DJ
15193 case $1 in
15194 --*=*)
81ecdfbb
RW
15195 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15196 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
15197 ac_shift=:
15198 ;;
81ecdfbb 15199 *)
c6b750e1
DJ
15200 ac_option=$1
15201 ac_optarg=$2
15202 ac_shift=shift
15203 ;;
c6b750e1
DJ
15204 esac
15205
15206 case $ac_option in
15207 # Handling of the options.
a0da8069 15208 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 15209 ac_cs_recheck=: ;;
81ecdfbb
RW
15210 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15211 $as_echo "$ac_cs_version"; exit ;;
15212 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
15213 debug=: ;;
15214 --file | --fil | --fi | --f )
15215 $ac_shift
81ecdfbb
RW
15216 case $ac_optarg in
15217 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15218 esac
15219 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 15220 ac_need_defaults=false;;
81ecdfbb
RW
15221 --he | --h | --help | --hel | -h )
15222 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
15223 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15224 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15225 ac_cs_silent=: ;;
15226
15227 # This is an error.
81ecdfbb
RW
15228 -*) as_fn_error "unrecognized option: \`$1'
15229Try \`$0 --help' for more information." ;;
c6b750e1 15230
81ecdfbb
RW
15231 *) as_fn_append ac_config_targets " $1"
15232 ac_need_defaults=false ;;
c6b750e1 15233
376a0e54 15234 esac
c6b750e1 15235 shift
376a0e54
CM
15236done
15237
c6b750e1 15238ac_configure_extra_args=
376a0e54 15239
c6b750e1
DJ
15240if $ac_cs_silent; then
15241 exec 6>/dev/null
15242 ac_configure_extra_args="$ac_configure_extra_args --silent"
15243fi
376a0e54 15244
c6b750e1 15245_ACEOF
81ecdfbb 15246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 15247if \$ac_cs_recheck; then
81ecdfbb
RW
15248 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15249 shift
15250 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15251 CONFIG_SHELL='$SHELL'
15252 export CONFIG_SHELL
15253 exec "\$@"
c6b750e1
DJ
15254fi
15255
15256_ACEOF
81ecdfbb
RW
15257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15258exec 5>>config.log
15259{
15260 echo
15261 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15262## Running $as_me. ##
15263_ASBOX
15264 $as_echo "$ac_log"
15265} >&5
c6b750e1 15266
81ecdfbb
RW
15267_ACEOF
15268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
15269#
15270# INIT-COMMANDS
15271#
15272extrasub_build="$extrasub_build"
15273 extrasub_host="$extrasub_host"
15274 extrasub_target="$extrasub_target"
15275
81ecdfbb 15276_ACEOF
c6b750e1 15277
81ecdfbb 15278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 15279
81ecdfbb 15280# Handling of arguments.
c6b750e1
DJ
15281for ac_config_target in $ac_config_targets
15282do
81ecdfbb
RW
15283 case $ac_config_target in
15284 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15285
15286 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
15287 esac
15288done
15289
81ecdfbb 15290
c6b750e1
DJ
15291# If the user did not use the arguments to specify the items to instantiate,
15292# then the envvar interface is used. Set only those that are not.
15293# We use the long form for the default assignment because of an extremely
15294# bizarre bug on SunOS 4.1.3.
15295if $ac_need_defaults; then
15296 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15297fi
15298
15299# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 15300# simply because there is no reason against having it here, and in addition,
c6b750e1 15301# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
15302# Hook for its removal unless debugging.
15303# Note that there is a small window in which the directory will not be cleaned:
15304# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
15305$debug ||
15306{
81ecdfbb
RW
15307 tmp=
15308 trap 'exit_status=$?
15309 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15310' 0
15311 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 15312}
c6b750e1
DJ
15313# Create a (secure) tmp directory for tmp files.
15314
15315{
81ecdfbb 15316 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
15317 test -n "$tmp" && test -d "$tmp"
15318} ||
15319{
81ecdfbb
RW
15320 tmp=./conf$$-$RANDOM
15321 (umask 077 && mkdir "$tmp")
15322} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15323
15324# Set up the scripts for CONFIG_FILES section.
15325# No need to generate them if there are no CONFIG_FILES.
15326# This happens for instance with `./config.status config.h'.
15327if test -n "$CONFIG_FILES"; then
15328
15329if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15330 ac_cs_awk_getline=:
15331 ac_cs_awk_pipe_init=
15332 ac_cs_awk_read_file='
15333 while ((getline aline < (F[key])) > 0)
15334 print(aline)
15335 close(F[key])'
15336 ac_cs_awk_pipe_fini=
15337else
15338 ac_cs_awk_getline=false
15339 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15340 ac_cs_awk_read_file='
15341 print "|#_!!_#|"
15342 print "cat " F[key] " &&"
15343 '$ac_cs_awk_pipe_init
15344 # The final `:' finishes the AND list.
15345 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15346fi
15347ac_cr=`echo X | tr X '\015'`
15348# On cygwin, bash can eat \r inside `` if the user requested igncr.
15349# But we know of no other shell where ac_cr would be empty at this
15350# point, so we can use a bashism as a fallback.
15351if test "x$ac_cr" = x; then
15352 eval ac_cr=\$\'\\r\'
15353fi
15354ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15355if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15356 ac_cs_awk_cr='\r'
15357else
15358 ac_cs_awk_cr=$ac_cr
15359fi
15360
15361echo 'BEGIN {' >"$tmp/subs1.awk" &&
15362_ACEOF
15363
15364# Create commands to substitute file output variables.
c6b750e1 15365{
81ecdfbb
RW
15366 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15367 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15368 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15369 echo "_ACAWK" &&
15370 echo "_ACEOF"
15371} >conf$$files.sh &&
15372. ./conf$$files.sh ||
15373 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15374rm -f conf$$files.sh
c6b750e1 15375
81ecdfbb
RW
15376{
15377 echo "cat >conf$$subs.awk <<_ACEOF" &&
15378 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15379 echo "_ACEOF"
15380} >conf$$subs.sh ||
15381 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15382ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15383ac_delim='%!_!# '
15384for ac_last_try in false false false false false :; do
15385 . ./conf$$subs.sh ||
15386 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15387
15388 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15389 if test $ac_delim_n = $ac_delim_num; then
15390 break
15391 elif $ac_last_try; then
15392 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15393 else
15394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15395 fi
15396done
15397rm -f conf$$subs.sh
15398
15399cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15400cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15401_ACEOF
81ecdfbb
RW
15402sed -n '
15403h
15404s/^/S["/; s/!.*/"]=/
15405p
15406g
15407s/^[^!]*!//
15408:repl
15409t repl
15410s/'"$ac_delim"'$//
15411t delim
15412:nl
15413h
15414s/\(.\{148\}\).*/\1/
15415t more1
15416s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15417p
15418n
15419b repl
15420:more1
15421s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15422p
15423g
15424s/.\{148\}//
15425t nl
15426:delim
15427h
15428s/\(.\{148\}\).*/\1/
15429t more2
15430s/["\\]/\\&/g; s/^/"/; s/$/"/
15431p
15432b
15433:more2
15434s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15435p
15436g
15437s/.\{148\}//
15438t delim
15439' <conf$$subs.awk | sed '
15440/^[^""]/{
15441 N
15442 s/\n//
15443}
15444' >>$CONFIG_STATUS || ac_write_fail=1
15445rm -f conf$$subs.awk
15446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15447_ACAWK
15448cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15449 for (key in S) S_is_set[key] = 1
15450 FS = "\a"
15451 \$ac_cs_awk_pipe_init
15452}
15453{
15454 line = $ 0
15455 nfields = split(line, field, "@")
15456 substed = 0
15457 len = length(field[1])
15458 for (i = 2; i < nfields; i++) {
15459 key = field[i]
15460 keylen = length(key)
15461 if (S_is_set[key]) {
15462 value = S[key]
15463 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15464 len += length(value) + length(field[++i])
15465 substed = 1
15466 } else
15467 len += 1 + keylen
15468 }
15469 if (nfields == 3 && !substed) {
15470 key = field[2]
15471 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15472 \$ac_cs_awk_read_file
15473 next
15474 }
15475 }
15476 print line
15477}
15478\$ac_cs_awk_pipe_fini
15479_ACAWK
15480_ACEOF
15481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15482if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15483 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15484else
15485 cat
15486fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15487 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15488_ACEOF
15489
15490# VPATH may cause trouble with some makes, so we remove $(srcdir),
15491# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15492# trailing colons and then remove the whole line if VPATH becomes empty
15493# (actually we leave an empty line to preserve line numbers).
15494if test "x$srcdir" = x.; then
15495 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15496s/:*\$(srcdir):*/:/
15497s/:*\${srcdir}:*/:/
15498s/:*@srcdir@:*/:/
15499s/^\([^=]*=[ ]*\):*/\1/
15500s/:*$//
15501s/^[^=]*=[ ]*$//
15502}'
15503fi
c6b750e1 15504
81ecdfbb
RW
15505cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15506fi # test -n "$CONFIG_FILES"
c6b750e1 15507
c6b750e1 15508
81ecdfbb
RW
15509eval set X " :F $CONFIG_FILES "
15510shift
15511for ac_tag
15512do
15513 case $ac_tag in
15514 :[FHLC]) ac_mode=$ac_tag; continue;;
15515 esac
15516 case $ac_mode$ac_tag in
15517 :[FHL]*:*);;
15518 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15519 :[FH]-) ac_tag=-:-;;
15520 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15521 esac
15522 ac_save_IFS=$IFS
15523 IFS=:
15524 set x $ac_tag
15525 IFS=$ac_save_IFS
15526 shift
15527 ac_file=$1
15528 shift
252b5132 15529
81ecdfbb
RW
15530 case $ac_mode in
15531 :L) ac_source=$1;;
15532 :[FH])
15533 ac_file_inputs=
15534 for ac_f
15535 do
15536 case $ac_f in
15537 -) ac_f="$tmp/stdin";;
15538 *) # Look for the file first in the build tree, then in the source tree
15539 # (if the path is not absolute). The absolute path cannot be DOS-style,
15540 # because $ac_f cannot contain `:'.
15541 test -f "$ac_f" ||
15542 case $ac_f in
15543 [\\/$]*) false;;
15544 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15545 esac ||
15546 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15547 esac
15548 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15549 as_fn_append ac_file_inputs " '$ac_f'"
15550 done
c6b750e1 15551
81ecdfbb
RW
15552 # Let's still pretend it is `configure' which instantiates (i.e., don't
15553 # use $as_me), people would be surprised to read:
15554 # /* config.h. Generated by config.status. */
15555 configure_input='Generated from '`
15556 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15557 `' by configure.'
15558 if test x"$ac_file" != x-; then
15559 configure_input="$ac_file. $configure_input"
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15561$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15562 fi
81ecdfbb
RW
15563 # Neutralize special characters interpreted by sed in replacement strings.
15564 case $configure_input in #(
15565 *\&* | *\|* | *\\* )
15566 ac_sed_conf_input=`$as_echo "$configure_input" |
15567 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15568 *) ac_sed_conf_input=$configure_input;;
15569 esac
cac3d6c4 15570
81ecdfbb
RW
15571 case $ac_tag in
15572 *:-:* | *:-) cat >"$tmp/stdin" \
15573 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15574 esac
15575 ;;
a0da8069 15576 esac
252b5132 15577
81ecdfbb 15578 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15579$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15580 X"$ac_file" : 'X\(//\)[^/]' \| \
15581 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15582 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15583$as_echo X"$ac_file" |
15584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15585 s//\1/
15586 q
15587 }
15588 /^X\(\/\/\)[^/].*/{
15589 s//\1/
15590 q
15591 }
15592 /^X\(\/\/\)$/{
15593 s//\1/
15594 q
15595 }
15596 /^X\(\/\).*/{
15597 s//\1/
15598 q
15599 }
15600 s/.*/./; q'`
15601 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15602 ac_builddir=.
252b5132 15603
81ecdfbb
RW
15604case "$ac_dir" in
15605.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15606*)
15607 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15608 # A ".." for each directory in $ac_dir_suffix.
15609 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15610 case $ac_top_builddir_sub in
15611 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15612 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15613 esac ;;
15614esac
15615ac_abs_top_builddir=$ac_pwd
15616ac_abs_builddir=$ac_pwd$ac_dir_suffix
15617# for backward compatibility:
15618ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15619
15620case $srcdir in
81ecdfbb 15621 .) # We are building in place.
c6b750e1 15622 ac_srcdir=.
81ecdfbb
RW
15623 ac_top_srcdir=$ac_top_builddir_sub
15624 ac_abs_top_srcdir=$ac_pwd ;;
15625 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15626 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15627 ac_top_srcdir=$srcdir
15628 ac_abs_top_srcdir=$srcdir ;;
15629 *) # Relative name.
15630 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15631 ac_top_srcdir=$ac_top_build_prefix$srcdir
15632 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15633esac
81ecdfbb 15634ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15635
252b5132 15636
81ecdfbb
RW
15637 case $ac_mode in
15638 :F)
15639 #
15640 # CONFIG_FILE
15641 #
c6b750e1
DJ
15642
15643 case $INSTALL in
15644 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15645 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15646 esac
81ecdfbb 15647_ACEOF
252b5132 15648
81ecdfbb
RW
15649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15650# If the template does not know about datarootdir, expand it.
15651# FIXME: This hack should be removed a few years after 2.60.
15652ac_datarootdir_hack=; ac_datarootdir_seen=
15653ac_sed_dataroot='
15654/datarootdir/ {
15655 p
15656 q
15657}
15658/@datadir@/p
15659/@docdir@/p
15660/@infodir@/p
15661/@localedir@/p
15662/@mandir@/p'
15663case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15664*datarootdir*) ac_datarootdir_seen=yes;;
15665*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15667$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15668_ACEOF
81ecdfbb
RW
15669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15670 ac_datarootdir_hack='
15671 s&@datadir@&$datadir&g
15672 s&@docdir@&$docdir&g
15673 s&@infodir@&$infodir&g
15674 s&@localedir@&$localedir&g
15675 s&@mandir@&$mandir&g
15676 s&\\\${datarootdir}&$datarootdir&g' ;;
15677esac
15678_ACEOF
15679
15680# Neutralize VPATH when `$srcdir' = `.'.
15681# Shell code in configure.ac might set extrasub.
15682# FIXME: do we really want to maintain this feature?
15683cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15684ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15685$extrasub
15686_ACEOF
81ecdfbb 15687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15688:t
15689/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15690s|@configure_input@|$ac_sed_conf_input|;t t
15691s&@top_builddir@&$ac_top_builddir_sub&;t t
15692s&@top_build_prefix@&$ac_top_build_prefix&;t t
15693s&@srcdir@&$ac_srcdir&;t t
15694s&@abs_srcdir@&$ac_abs_srcdir&;t t
15695s&@top_srcdir@&$ac_top_srcdir&;t t
15696s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15697s&@builddir@&$ac_builddir&;t t
15698s&@abs_builddir@&$ac_abs_builddir&;t t
15699s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15700s&@INSTALL@&$ac_INSTALL&;t t
15701$ac_datarootdir_hack
15702"
15703eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15704if $ac_cs_awk_getline; then
15705 $AWK -f "$tmp/subs.awk"
15706else
15707 $AWK -f "$tmp/subs.awk" | $SHELL
15708fi >$tmp/out \
15709 || as_fn_error "could not create $ac_file" "$LINENO" 5
15710
15711test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15712 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15713 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15715which seems to be undefined. Please make sure it is defined." >&5
15716$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15717which seems to be undefined. Please make sure it is defined." >&2;}
15718
15719 rm -f "$tmp/stdin"
15720 case $ac_file in
15721 -) cat "$tmp/out" && rm -f "$tmp/out";;
15722 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15723 esac \
15724 || as_fn_error "could not create $ac_file" "$LINENO" 5
15725 ;;
c148b4cb 15726
c148b4cb 15727
c148b4cb 15728
81ecdfbb
RW
15729 esac
15730
06a51eac
RW
15731
15732 case $ac_file$ac_mode in
15733 "Makefile":F) sed "$extrasub_build" Makefile |
15734 sed "$extrasub_host" |
15735 sed "$extrasub_target" > mf$$
15736 mv -f mf$$ Makefile ;;
15737
15738 esac
81ecdfbb
RW
15739done # for ac_tag
15740
15741
15742as_fn_exit 0
c6b750e1 15743_ACEOF
c6b750e1
DJ
15744ac_clean_files=$ac_clean_files_save
15745
81ecdfbb
RW
15746test $ac_write_fail = 0 ||
15747 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15748
c6b750e1
DJ
15749
15750# configure is writing to config.log, and then calls config.status.
15751# config.status does its own redirection, appending to config.log.
15752# Unfortunately, on DOS this fails, as config.log is still kept open
15753# by configure, so config.status won't be able to write to it; its
15754# output is simply discarded. So we exec the FD to /dev/null,
15755# effectively closing config.log, so it can be properly (re)opened and
15756# appended to by config.status. When coming back to configure, we
15757# need to make the FD available again.
15758if test "$no_create" != yes; then
15759 ac_cs_success=:
15760 ac_config_status_args=
15761 test "$silent" = yes &&
15762 ac_config_status_args="$ac_config_status_args --quiet"
15763 exec 5>/dev/null
15764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15765 exec 5>>config.log
15766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15767 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15768 $ac_cs_success || as_fn_exit $?
15769fi
15770if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15772$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15773fi
c148b4cb 15774
This page took 1.978169 seconds and 4 git commands to generate.