Regenerate tree using Autoconf 2.64 and Automake 1.11.
[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'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
172 if (eval "$as_required") 2>/dev/null; then :
173 as_have_required=yes
174else
175 as_have_required=no
176fi
177 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
178
179else
180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
181as_found=false
182for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
c6b750e1 183do
81ecdfbb
RW
184 IFS=$as_save_IFS
185 test -z "$as_dir" && as_dir=.
186 as_found=:
187 case $as_dir in #(
188 /*)
189 for as_base in sh bash ksh sh5; do
190 # Try only shells that exist, to save several forks.
191 as_shell=$as_dir/$as_base
192 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
193 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
194 CONFIG_SHELL=$as_shell as_have_required=yes
195 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 break 2
197fi
198fi
199 done;;
200 esac
201 as_found=false
202done
203$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
205 CONFIG_SHELL=$SHELL as_have_required=yes
206fi; }
207IFS=$as_save_IFS
208
209
210 if test "x$CONFIG_SHELL" != x; then :
211 # We cannot yet assume a decent shell, so we have to provide a
212 # neutralization value for shells without unset; and this also
213 # works around shells that cannot unset nonexistent variables.
214 BASH_ENV=/dev/null
215 ENV=/dev/null
216 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
217 export CONFIG_SHELL
218 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
219fi
220
221 if test x$as_have_required = xno; then :
222 $as_echo "$0: This script requires a shell more modern than all"
223 $as_echo "$0: the shells that I found on your system."
224 if test x${ZSH_VERSION+set} = xset ; then
225 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
226 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
c6b750e1 227 else
81ecdfbb
RW
228 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
229$0: including any error possibly output before this
230$0: message. Then install a modern shell, or manually run
231$0: the script under such a shell if you do have one."
c6b750e1 232 fi
81ecdfbb
RW
233 exit 1
234fi
235fi
236fi
237SHELL=${CONFIG_SHELL-/bin/sh}
238export SHELL
239# Unset more variables known to interfere with behavior of common tools.
240CLICOLOR_FORCE= GREP_OPTIONS=
241unset CLICOLOR_FORCE GREP_OPTIONS
242
243## --------------------- ##
244## M4sh Shell Functions. ##
245## --------------------- ##
246# as_fn_unset VAR
247# ---------------
248# Portably unset VAR.
249as_fn_unset ()
250{
251 { eval $1=; unset $1;}
252}
253as_unset=as_fn_unset
254
255# as_fn_set_status STATUS
256# -----------------------
257# Set $? to STATUS, without forking.
258as_fn_set_status ()
259{
260 return $1
261} # as_fn_set_status
c6b750e1 262
81ecdfbb
RW
263# as_fn_exit STATUS
264# -----------------
265# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
266as_fn_exit ()
267{
268 set +e
269 as_fn_set_status $1
270 exit $1
271} # as_fn_exit
272
273# as_fn_mkdir_p
274# -------------
275# Create "$as_dir" as a directory, including parents if necessary.
276as_fn_mkdir_p ()
277{
278
279 case $as_dir in #(
280 -*) as_dir=./$as_dir;;
281 esac
282 test -d "$as_dir" || eval $as_mkdir_p || {
283 as_dirs=
284 while :; do
285 case $as_dir in #(
286 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
287 *) as_qdir=$as_dir;;
288 esac
289 as_dirs="'$as_qdir' $as_dirs"
290 as_dir=`$as_dirname -- "$as_dir" ||
291$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
292 X"$as_dir" : 'X\(//\)[^/]' \| \
293 X"$as_dir" : 'X\(//\)$' \| \
294 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
295$as_echo X"$as_dir" |
296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
297 s//\1/
298 q
299 }
300 /^X\(\/\/\)[^/].*/{
301 s//\1/
302 q
303 }
304 /^X\(\/\/\)$/{
305 s//\1/
306 q
307 }
308 /^X\(\/\).*/{
309 s//\1/
310 q
311 }
312 s/.*/./; q'`
313 test -d "$as_dir" && break
314 done
315 test -z "$as_dirs" || eval "mkdir $as_dirs"
316 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
317
318
319} # as_fn_mkdir_p
320# as_fn_append VAR VALUE
321# ----------------------
322# Append the text in VALUE to the end of the definition contained in VAR. Take
323# advantage of any shell optimizations that allow amortized linear growth over
324# repeated appends, instead of the typical quadratic growth present in naive
325# implementations.
326if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
327 eval 'as_fn_append ()
328 {
329 eval $1+=\$2
330 }'
331else
332 as_fn_append ()
333 {
334 eval $1=\$$1\$2
335 }
336fi # as_fn_append
337
338# as_fn_arith ARG...
339# ------------------
340# Perform arithmetic evaluation on the ARGs, and store the result in the
341# global $as_val. Take advantage of shells that can avoid forks. The arguments
342# must be portable across $(()) and expr.
343if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
344 eval 'as_fn_arith ()
345 {
346 as_val=$(( $* ))
347 }'
348else
349 as_fn_arith ()
350 {
351 as_val=`expr "$@" || test $? -eq 1`
352 }
353fi # as_fn_arith
354
355
356# as_fn_error ERROR [LINENO LOG_FD]
357# ---------------------------------
358# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
359# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
360# script with status $?, using 1 if that was 0.
361as_fn_error ()
362{
363 as_status=$?; test $as_status -eq 0 && as_status=1
364 if test "$3"; then
365 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
366 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
367 fi
368 $as_echo "$as_me: error: $1" >&2
369 as_fn_exit $as_status
370} # as_fn_error
371
372if expr a : '\(a\)' >/dev/null 2>&1 &&
373 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
374 as_expr=expr
375else
376 as_expr=false
377fi
378
81ecdfbb 379if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
380 as_basename=basename
381else
382 as_basename=false
383fi
384
81ecdfbb
RW
385if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
386 as_dirname=dirname
387else
388 as_dirname=false
389fi
c6b750e1 390
81ecdfbb 391as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
392$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
393 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
394 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
395$as_echo X/"$0" |
396 sed '/^.*\/\([^/][^/]*\)\/*$/{
397 s//\1/
398 q
399 }
400 /^X\/\(\/\/\)$/{
401 s//\1/
402 q
403 }
404 /^X\/\(\/\).*/{
405 s//\1/
406 q
407 }
408 s/.*/./; q'`
c6b750e1 409
c6b750e1
DJ
410# Avoid depending upon Character Ranges.
411as_cr_letters='abcdefghijklmnopqrstuvwxyz'
412as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
413as_cr_Letters=$as_cr_letters$as_cr_LETTERS
414as_cr_digits='0123456789'
415as_cr_alnum=$as_cr_Letters$as_cr_digits
416
c6b750e1 417
81ecdfbb
RW
418 as_lineno_1=$LINENO as_lineno_1a=$LINENO
419 as_lineno_2=$LINENO as_lineno_2a=$LINENO
420 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
421 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
422 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
423 sed -n '
424 p
425 /[$]LINENO/=
426 ' <$as_myself |
c6b750e1 427 sed '
81ecdfbb
RW
428 s/[$]LINENO.*/&-/
429 t lineno
430 b
431 :lineno
c6b750e1 432 N
81ecdfbb
RW
433 :loop
434 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 435 t loop
81ecdfbb 436 s/-\n.*//
c6b750e1 437 ' >$as_me.lineno &&
81ecdfbb
RW
438 chmod +x "$as_me.lineno" ||
439 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
c6b750e1
DJ
440
441 # Don't try to exec as it changes $[0], causing all sort of problems
442 # (the dirname of $[0] is not the place where we might find the
81ecdfbb
RW
443 # original and so on. Autoconf is especially sensitive to this).
444 . "./$as_me.lineno"
c6b750e1
DJ
445 # Exit status is that of the last command.
446 exit
447}
448
81ecdfbb
RW
449ECHO_C= ECHO_N= ECHO_T=
450case `echo -n x` in #(((((
451-n*)
452 case `echo 'xy\c'` in
453 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
454 xy) ECHO_C='\c';;
455 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
456 ECHO_T=' ';;
457 esac;;
458*)
459 ECHO_N='-n';;
c6b750e1
DJ
460esac
461
81ecdfbb
RW
462rm -f conf$$ conf$$.exe conf$$.file
463if test -d conf$$.dir; then
464 rm -f conf$$.dir/conf$$.file
c6b750e1 465else
81ecdfbb
RW
466 rm -f conf$$.dir
467 mkdir conf$$.dir 2>/dev/null
c6b750e1 468fi
81ecdfbb
RW
469if (echo >conf$$.file) 2>/dev/null; then
470 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 471 as_ln_s='ln -s'
81ecdfbb
RW
472 # ... but there are two gotchas:
473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
475 # In both cases, we have to default to `cp -p'.
476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
477 as_ln_s='cp -p'
478 elif ln conf$$.file conf$$ 2>/dev/null; then
479 as_ln_s=ln
480 else
481 as_ln_s='cp -p'
c6b750e1 482 fi
c6b750e1
DJ
483else
484 as_ln_s='cp -p'
485fi
81ecdfbb
RW
486rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
487rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
488
489if mkdir -p . 2>/dev/null; then
81ecdfbb 490 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
491else
492 test -d ./-p && rmdir ./-p
493 as_mkdir_p=false
494fi
495
81ecdfbb
RW
496if test -x / >/dev/null 2>&1; then
497 as_test_x='test -x'
498else
499 if ls -dL / >/dev/null 2>&1; then
500 as_ls_L_option=L
501 else
502 as_ls_L_option=
503 fi
504 as_test_x='
505 eval sh -c '\''
506 if test -d "$1"; then
507 test -d "$1/.";
508 else
509 case $1 in #(
510 -*)set "./$1";;
511 esac;
512 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
513 ???[sx]*):;;*)false;;esac;fi
514 '\'' sh
515 '
516fi
517as_executable_p=$as_test_x
c6b750e1
DJ
518
519# Sed expression to map a string onto a valid CPP name.
520as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
521
522# Sed expression to map a string onto a valid variable name.
523as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
524
525
81ecdfbb 526exec 7<&0 </dev/null 6>&1
a0da8069 527
c6b750e1
DJ
528# Name of the host.
529# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
530# so uname gets run too.
531ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
532
c6b750e1
DJ
533#
534# Initializations.
535#
a0da8069 536ac_default_prefix=/usr/local
81ecdfbb 537ac_clean_files=
c6b750e1 538ac_config_libobj_dir=.
81ecdfbb 539LIBOBJS=
c6b750e1
DJ
540cross_compiling=no
541subdirs=
542MFLAGS=
543MAKEFLAGS=
c6b750e1
DJ
544
545# Identity of this package.
546PACKAGE_NAME=
547PACKAGE_TARNAME=
548PACKAGE_VERSION=
549PACKAGE_STRING=
550PACKAGE_BUGREPORT=
81ecdfbb 551PACKAGE_URL=
c6b750e1
DJ
552
553ac_unique_file="move-if-change"
81ecdfbb
RW
554enable_option_checking=no
555ac_subst_vars='LTLIBOBJS
556LIBOBJS
557compare_exclusions
558stage2_werror_flag
559stage1_checking
560stage1_cflags
561MAINT
562MAINTAINER_MODE_FALSE
563MAINTAINER_MODE_TRUE
564COMPILER_NM_FOR_TARGET
565COMPILER_LD_FOR_TARGET
566COMPILER_AS_FOR_TARGET
567FLAGS_FOR_TARGET
568RAW_CXX_FOR_TARGET
569WINDMC_FOR_TARGET
570WINDRES_FOR_TARGET
571STRIP_FOR_TARGET
572RANLIB_FOR_TARGET
573OBJDUMP_FOR_TARGET
574NM_FOR_TARGET
575LIPO_FOR_TARGET
576LD_FOR_TARGET
577DLLTOOL_FOR_TARGET
578AS_FOR_TARGET
579AR_FOR_TARGET
580GFORTRAN_FOR_TARGET
581GCJ_FOR_TARGET
582GCC_FOR_TARGET
583CXX_FOR_TARGET
584CC_FOR_TARGET
585OBJDUMP
586OBJCOPY
587WINDMC
588WINDRES
589STRIP
590RANLIB
591NM
592LIPO
593LD
594DLLTOOL
595AS
596AR
597RUNTEST
598EXPECT
599MAKEINFO
600FLEX
601LEX
602M4
603BISON
604YACC
605config_shell
606WINDRES_FOR_BUILD
607WINDMC_FOR_BUILD
608RANLIB_FOR_BUILD
609NM_FOR_BUILD
610LD_FOR_BUILD
611LDFLAGS_FOR_BUILD
612GFORTRAN_FOR_BUILD
613GCJ_FOR_BUILD
614DLLTOOL_FOR_BUILD
615CXX_FOR_BUILD
616CXXFLAGS_FOR_BUILD
617CFLAGS_FOR_BUILD
618CC_FOR_BUILD
619AS_FOR_BUILD
620AR_FOR_BUILD
621target_configargs
622configdirs
623host_configargs
624build_configdirs
625build_configargs
626INSTALL_GDB_TK
627GDB_TK
628CONFIGURE_GDB_TK
629build_tooldir
630tooldir
631GCC_SHLIB_SUBDIR
632RPATH_ENVVAR
633CXXFLAGS_FOR_TARGET
634CFLAGS_FOR_TARGET
635DEBUG_PREFIX_CFLAGS_FOR_TARGET
636SYSROOT_CFLAGS_FOR_TARGET
637stage1_languages
638clooginc
639clooglibs
640pplinc
641ppllibs
642poststage1_libs
643poststage1_ldflags
644stage1_libs
645stage1_ldflags
646extra_mpc_mpfr_configure_flags
647extra_mpc_gmp_configure_flags
648extra_mpfr_configure_flags
649gmpinc
650gmplibs
651do_compare
652GNATMAKE
653GNATBIND
654ac_ct_CXX
655CXXFLAGS
656CXX
657OBJEXT
658EXEEXT
659ac_ct_CC
660CPPFLAGS
661LDFLAGS
662CFLAGS
663CC
664target_subdir
665host_subdir
666build_subdir
667build_libsubdir
668LN_S
669LN
670INSTALL_DATA
671INSTALL_SCRIPT
672INSTALL_PROGRAM
673target_os
674target_vendor
675target_cpu
676target
677host_os
678host_vendor
679host_cpu
680host
681target_noncanonical
682host_noncanonical
683build_noncanonical
684build_os
685build_vendor
686build_cpu
687build
688TOPLEVEL_CONFIGURE_ARGUMENTS
689target_alias
690host_alias
691build_alias
692LIBS
693ECHO_T
694ECHO_N
695ECHO_C
696DEFS
697mandir
698localedir
699libdir
700psdir
701pdfdir
702dvidir
703htmldir
704infodir
705docdir
706oldincludedir
707includedir
708localstatedir
709sharedstatedir
710sysconfdir
711datadir
712datarootdir
713libexecdir
714sbindir
715bindir
716program_transform_name
717prefix
718exec_prefix
719PACKAGE_URL
720PACKAGE_BUGREPORT
721PACKAGE_STRING
722PACKAGE_VERSION
723PACKAGE_TARNAME
724PACKAGE_NAME
725PATH_SEPARATOR
726SHELL'
727ac_subst_files='serialization_dependencies
728host_makefile_frag
729target_makefile_frag
730alphaieee_frag
731ospace_frag'
732ac_user_opts='
733enable_option_checking
734with_build_libsubdir
735enable_gold
736enable_libada
737enable_libssp
738enable_build_with_cxx
739with_mpc
740with_mpc_include
741with_mpc_lib
742with_mpfr_dir
743with_mpfr
744with_mpfr_include
745with_mpfr_lib
746with_gmp_dir
747with_gmp
748with_gmp_include
749with_gmp_lib
750with_host_libstdcxx
751with_stage1_ldflags
752with_stage1_libs
753with_boot_ldflags
754with_boot_libs
755with_ppl
756with_ppl_include
757with_ppl_lib
758enable_ppl_version_check
759with_cloog
760with_cloog_include
761with_cloog_lib
762enable_cloog_version_check
763enable_stage1_languages
764enable_objc_gc
765with_build_sysroot
766with_debug_prefix_map
767enable_bootstrap
768enable_serial_configure
769with_build_time_tools
770enable_maintainer_mode
771enable_stage1_checking
772enable_werror
773with_datarootdir
774with_docdir
775with_pdfdir
776with_htmldir
777'
778 ac_precious_vars='build_alias
779host_alias
780target_alias
781CC
782CFLAGS
783LDFLAGS
784LIBS
785CPPFLAGS
786CXX
787CXXFLAGS
788CCC
789AR
790AS
791DLLTOOL
792LD
793LIPO
794NM
795RANLIB
796STRIP
797WINDRES
798WINDMC
799OBJCOPY
800OBJDUMP
801CC_FOR_TARGET
802CXX_FOR_TARGET
803GCC_FOR_TARGET
804GCJ_FOR_TARGET
805GFORTRAN_FOR_TARGET
806AR_FOR_TARGET
807AS_FOR_TARGET
808DLLTOOL_FOR_TARGET
809LD_FOR_TARGET
810LIPO_FOR_TARGET
811NM_FOR_TARGET
812OBJDUMP_FOR_TARGET
813RANLIB_FOR_TARGET
814STRIP_FOR_TARGET
815WINDRES_FOR_TARGET
816WINDMC_FOR_TARGET'
817
a0da8069
NN
818
819# Initialize some variables set by options.
c6b750e1
DJ
820ac_init_help=
821ac_init_version=false
81ecdfbb
RW
822ac_unrecognized_opts=
823ac_unrecognized_sep=
a0da8069
NN
824# The variables have the same names as the options, with
825# dashes changed to underlines.
c6b750e1 826cache_file=/dev/null
a0da8069 827exec_prefix=NONE
a0da8069 828no_create=
a0da8069
NN
829no_recursion=
830prefix=NONE
831program_prefix=NONE
832program_suffix=NONE
833program_transform_name=s,x,x,
834silent=
835site=
836srcdir=
a0da8069
NN
837verbose=
838x_includes=NONE
839x_libraries=NONE
c6b750e1
DJ
840
841# Installation directory options.
842# These are left unexpanded so users can "make install exec_prefix=/foo"
843# and all the variables that are supposed to be based on exec_prefix
844# by default will actually change.
845# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 846# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
847bindir='${exec_prefix}/bin'
848sbindir='${exec_prefix}/sbin'
849libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
850datarootdir='${prefix}/share'
851datadir='${datarootdir}'
a0da8069
NN
852sysconfdir='${prefix}/etc'
853sharedstatedir='${prefix}/com'
854localstatedir='${prefix}/var'
a0da8069
NN
855includedir='${prefix}/include'
856oldincludedir='/usr/include'
81ecdfbb
RW
857docdir='${datarootdir}/doc/${PACKAGE}'
858infodir='${datarootdir}/info'
859htmldir='${docdir}'
860dvidir='${docdir}'
861pdfdir='${docdir}'
862psdir='${docdir}'
863libdir='${exec_prefix}/lib'
864localedir='${datarootdir}/locale'
865mandir='${datarootdir}/man'
252b5132 866
a0da8069 867ac_prev=
81ecdfbb 868ac_dashdash=
a0da8069
NN
869for ac_option
870do
a0da8069
NN
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
81ecdfbb 873 eval $ac_prev=\$ac_option
a0da8069
NN
874 ac_prev=
875 continue
876 fi
252b5132 877
81ecdfbb
RW
878 case $ac_option in
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
880 *) ac_optarg=yes ;;
881 esac
a0da8069
NN
882
883 # Accept the important Cygnus configure options, so we can diagnose typos.
884
81ecdfbb
RW
885 case $ac_dashdash$ac_option in
886 --)
887 ac_dashdash=yes ;;
a0da8069
NN
888
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
890 ac_prev=bindir ;;
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 892 bindir=$ac_optarg ;;
a0da8069
NN
893
894 -build | --build | --buil | --bui | --bu)
c6b750e1 895 ac_prev=build_alias ;;
a0da8069 896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 897 build_alias=$ac_optarg ;;
a0da8069
NN
898
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
904 cache_file=$ac_optarg ;;
905
906 --config-cache | -C)
907 cache_file=config.cache ;;
a0da8069 908
81ecdfbb 909 -datadir | --datadir | --datadi | --datad)
a0da8069 910 ac_prev=datadir ;;
81ecdfbb 911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 912 datadir=$ac_optarg ;;
a0da8069 913
81ecdfbb
RW
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
920
a0da8069 921 -disable-* | --disable-*)
81ecdfbb 922 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 923 # Reject names that are not valid shell variable names.
81ecdfbb
RW
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930"enable_$ac_useropt"
931"*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=no ;;
936
937 -docdir | --docdir | --docdi | --doc | --do)
938 ac_prev=docdir ;;
939 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 docdir=$ac_optarg ;;
941
942 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
943 ac_prev=dvidir ;;
944 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 dvidir=$ac_optarg ;;
a0da8069
NN
946
947 -enable-* | --enable-*)
81ecdfbb 948 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 949 # Reject names that are not valid shell variable names.
81ecdfbb
RW
950 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951 as_fn_error "invalid feature name: $ac_useropt"
952 ac_useropt_orig=$ac_useropt
953 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954 case $ac_user_opts in
955 *"
956"enable_$ac_useropt"
957"*) ;;
958 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
959 ac_unrecognized_sep=', ';;
a0da8069 960 esac
81ecdfbb 961 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
962
963 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
964 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
965 | --exec | --exe | --ex)
966 ac_prev=exec_prefix ;;
967 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
968 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
969 | --exec=* | --exe=* | --ex=*)
c6b750e1 970 exec_prefix=$ac_optarg ;;
a0da8069
NN
971
972 -gas | --gas | --ga | --g)
973 # Obsolete; use --with-gas.
974 with_gas=yes ;;
975
c6b750e1
DJ
976 -help | --help | --hel | --he | -h)
977 ac_init_help=long ;;
978 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
979 ac_init_help=recursive ;;
980 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
981 ac_init_help=short ;;
a0da8069
NN
982
983 -host | --host | --hos | --ho)
c6b750e1 984 ac_prev=host_alias ;;
a0da8069 985 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 986 host_alias=$ac_optarg ;;
a0da8069 987
81ecdfbb
RW
988 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
989 ac_prev=htmldir ;;
990 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
991 | --ht=*)
992 htmldir=$ac_optarg ;;
993
a0da8069
NN
994 -includedir | --includedir | --includedi | --included | --include \
995 | --includ | --inclu | --incl | --inc)
996 ac_prev=includedir ;;
997 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
998 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 999 includedir=$ac_optarg ;;
a0da8069
NN
1000
1001 -infodir | --infodir | --infodi | --infod | --info | --inf)
1002 ac_prev=infodir ;;
1003 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1004 infodir=$ac_optarg ;;
a0da8069
NN
1005
1006 -libdir | --libdir | --libdi | --libd)
1007 ac_prev=libdir ;;
1008 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1009 libdir=$ac_optarg ;;
a0da8069
NN
1010
1011 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1012 | --libexe | --libex | --libe)
1013 ac_prev=libexecdir ;;
1014 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1015 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1016 libexecdir=$ac_optarg ;;
a0da8069 1017
81ecdfbb
RW
1018 -localedir | --localedir | --localedi | --localed | --locale)
1019 ac_prev=localedir ;;
1020 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1021 localedir=$ac_optarg ;;
1022
a0da8069 1023 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1024 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1025 ac_prev=localstatedir ;;
1026 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1027 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1028 localstatedir=$ac_optarg ;;
a0da8069
NN
1029
1030 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1031 ac_prev=mandir ;;
1032 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1033 mandir=$ac_optarg ;;
a0da8069
NN
1034
1035 -nfp | --nfp | --nf)
1036 # Obsolete; use --without-fp.
1037 with_fp=no ;;
1038
1039 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1040 | --no-cr | --no-c | -n)
a0da8069
NN
1041 no_create=yes ;;
1042
1043 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1044 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1045 no_recursion=yes ;;
1046
1047 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1048 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1049 | --oldin | --oldi | --old | --ol | --o)
1050 ac_prev=oldincludedir ;;
1051 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1052 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1053 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1054 oldincludedir=$ac_optarg ;;
a0da8069
NN
1055
1056 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1057 ac_prev=prefix ;;
1058 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1059 prefix=$ac_optarg ;;
a0da8069
NN
1060
1061 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1062 | --program-pre | --program-pr | --program-p)
1063 ac_prev=program_prefix ;;
1064 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1065 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1066 program_prefix=$ac_optarg ;;
a0da8069
NN
1067
1068 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1069 | --program-suf | --program-su | --program-s)
1070 ac_prev=program_suffix ;;
1071 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1072 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1073 program_suffix=$ac_optarg ;;
a0da8069
NN
1074
1075 -program-transform-name | --program-transform-name \
1076 | --program-transform-nam | --program-transform-na \
1077 | --program-transform-n | --program-transform- \
1078 | --program-transform | --program-transfor \
1079 | --program-transfo | --program-transf \
1080 | --program-trans | --program-tran \
1081 | --progr-tra | --program-tr | --program-t)
1082 ac_prev=program_transform_name ;;
1083 -program-transform-name=* | --program-transform-name=* \
1084 | --program-transform-nam=* | --program-transform-na=* \
1085 | --program-transform-n=* | --program-transform-=* \
1086 | --program-transform=* | --program-transfor=* \
1087 | --program-transfo=* | --program-transf=* \
1088 | --program-trans=* | --program-tran=* \
1089 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1090 program_transform_name=$ac_optarg ;;
a0da8069 1091
81ecdfbb
RW
1092 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1093 ac_prev=pdfdir ;;
1094 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1095 pdfdir=$ac_optarg ;;
1096
1097 -psdir | --psdir | --psdi | --psd | --ps)
1098 ac_prev=psdir ;;
1099 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1100 psdir=$ac_optarg ;;
1101
a0da8069
NN
1102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1103 | -silent | --silent | --silen | --sile | --sil)
1104 silent=yes ;;
1105
1106 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1107 ac_prev=sbindir ;;
1108 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1109 | --sbi=* | --sb=*)
c6b750e1 1110 sbindir=$ac_optarg ;;
a0da8069
NN
1111
1112 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1113 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1114 | --sharedst | --shareds | --shared | --share | --shar \
1115 | --sha | --sh)
1116 ac_prev=sharedstatedir ;;
1117 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1118 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1119 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1120 | --sha=* | --sh=*)
c6b750e1 1121 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1122
1123 -site | --site | --sit)
1124 ac_prev=site ;;
1125 -site=* | --site=* | --sit=*)
c6b750e1 1126 site=$ac_optarg ;;
a0da8069
NN
1127
1128 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1129 ac_prev=srcdir ;;
1130 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1131 srcdir=$ac_optarg ;;
a0da8069
NN
1132
1133 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1134 | --syscon | --sysco | --sysc | --sys | --sy)
1135 ac_prev=sysconfdir ;;
1136 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1137 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1138 sysconfdir=$ac_optarg ;;
a0da8069
NN
1139
1140 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1141 ac_prev=target_alias ;;
a0da8069 1142 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1143 target_alias=$ac_optarg ;;
a0da8069
NN
1144
1145 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1146 verbose=yes ;;
1147
c6b750e1
DJ
1148 -version | --version | --versio | --versi | --vers | -V)
1149 ac_init_version=: ;;
a0da8069
NN
1150
1151 -with-* | --with-*)
81ecdfbb 1152 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1153 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160"with_$ac_useropt"
1161"*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
a0da8069 1164 esac
81ecdfbb 1165 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1166
1167 -without-* | --without-*)
81ecdfbb 1168 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1169 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error "invalid package name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176"with_$ac_useropt"
1177"*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval with_$ac_useropt=no ;;
a0da8069
NN
1182
1183 --x)
1184 # Obsolete; use --with-x.
1185 with_x=yes ;;
1186
1187 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1188 | --x-incl | --x-inc | --x-in | --x-i)
1189 ac_prev=x_includes ;;
1190 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1191 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1192 x_includes=$ac_optarg ;;
a0da8069
NN
1193
1194 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1195 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1196 ac_prev=x_libraries ;;
1197 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1198 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1199 x_libraries=$ac_optarg ;;
a0da8069 1200
81ecdfbb
RW
1201 -*) as_fn_error "unrecognized option: \`$ac_option'
1202Try \`$0 --help' for more information."
a0da8069
NN
1203 ;;
1204
c6b750e1
DJ
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1208 case $ac_envvar in #(
1209 '' | [0-9]* | *[!_$as_cr_alnum]* )
1210 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1211 esac
1212 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1213 export $ac_envvar ;;
1214
a0da8069 1215 *)
c6b750e1 1216 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1217 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1218 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1219 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1220 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1221 ;;
1222
1223 esac
1224done
1225
1226if test -n "$ac_prev"; then
c6b750e1 1227 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1228 as_fn_error "missing argument to $ac_option"
a0da8069 1229fi
a0da8069 1230
81ecdfbb
RW
1231if test -n "$ac_unrecognized_opts"; then
1232 case $enable_option_checking in
1233 no) ;;
1234 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1235 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1236 esac
81ecdfbb 1237fi
a0da8069 1238
81ecdfbb
RW
1239# Check all directory arguments for consistency.
1240for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1241 datadir sysconfdir sharedstatedir localstatedir includedir \
1242 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1243 libdir localedir mandir
a0da8069 1244do
81ecdfbb
RW
1245 eval ac_val=\$$ac_var
1246 # Remove trailing slashes.
1247 case $ac_val in
1248 */ )
1249 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1250 eval $ac_var=\$ac_val;;
1251 esac
1252 # Be sure to have absolute directory names.
c6b750e1 1253 case $ac_val in
81ecdfbb
RW
1254 [\\/$]* | ?:[\\/]* ) continue;;
1255 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1256 esac
81ecdfbb 1257 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1258done
1259
c6b750e1
DJ
1260# There might be people who depend on the old broken behavior: `$host'
1261# used to hold the argument of --host etc.
1262# FIXME: To remove some day.
1263build=$build_alias
1264host=$host_alias
1265target=$target_alias
376a0e54 1266
c6b750e1
DJ
1267# FIXME: To remove some day.
1268if test "x$host_alias" != x; then
1269 if test "x$build_alias" = x; then
1270 cross_compiling=maybe
81ecdfbb 1271 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1272 If a cross compiler is detected then cross compile mode will be used." >&2
1273 elif test "x$build_alias" != "x$host_alias"; then
1274 cross_compiling=yes
1275 fi
1276fi
1277
1278ac_tool_prefix=
1279test -n "$host_alias" && ac_tool_prefix=$host_alias-
1280
1281test "$silent" = yes && exec 6>/dev/null
a0da8069 1282
a0da8069 1283
81ecdfbb
RW
1284ac_pwd=`pwd` && test -n "$ac_pwd" &&
1285ac_ls_di=`ls -di .` &&
1286ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1287 as_fn_error "working directory cannot be determined"
1288test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1289 as_fn_error "pwd does not report name of working directory"
1290
1291
a0da8069
NN
1292# Find the source files, if location was not specified.
1293if test -z "$srcdir"; then
1294 ac_srcdir_defaulted=yes
81ecdfbb
RW
1295 # Try the directory containing this script, then the parent directory.
1296 ac_confdir=`$as_dirname -- "$as_myself" ||
1297$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1298 X"$as_myself" : 'X\(//\)[^/]' \| \
1299 X"$as_myself" : 'X\(//\)$' \| \
1300 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1301$as_echo X"$as_myself" |
1302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)[^/].*/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\/\)$/{
1311 s//\1/
1312 q
1313 }
1314 /^X\(\/\).*/{
1315 s//\1/
1316 q
1317 }
1318 s/.*/./; q'`
a0da8069 1319 srcdir=$ac_confdir
81ecdfbb 1320 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1321 srcdir=..
1322 fi
1323else
1324 ac_srcdir_defaulted=no
1325fi
81ecdfbb
RW
1326if test ! -r "$srcdir/$ac_unique_file"; then
1327 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1328 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1329fi
1330ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331ac_abs_confdir=`(
1332 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1333 pwd)`
1334# When building in place, set srcdir=.
1335if test "$ac_abs_confdir" = "$ac_pwd"; then
1336 srcdir=.
1337fi
1338# Remove unnecessary trailing slashes from srcdir.
1339# Double slashes in file names in object file debugging info
1340# mess up M-x gdb in Emacs.
1341case $srcdir in
1342*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1343esac
9cc8ae67
PB
1344ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1345
81ecdfbb
RW
1346for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351done
c6b750e1
DJ
1352
1353#
1354# Report the --help message.
1355#
1356if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360\`configure' configures this package to adapt to many kinds of systems.
1361
1362Usage: $0 [OPTION]... [VAR=VALUE]...
1363
1364To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365VAR=VALUE. See below for descriptions of some of the useful variables.
1366
1367Defaults for the options are specified in brackets.
1368
1369Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1379
c6b750e1
DJ
1380Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1382 [$ac_default_prefix]
c6b750e1 1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1384 [PREFIX]
c6b750e1
DJ
1385
1386By default, \`make install' will install all the files in
1387\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389for instance \`--prefix=\$HOME'.
1390
1391For better control, use the options below.
1392
1393Fine tuning of the installation directories:
81ecdfbb
RW
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1413_ACEOF
1414
1415 cat <<\_ACEOF
1416
1417Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1421
1422System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 --target=TARGET configure for building compilers for TARGET [HOST]
1426_ACEOF
a0da8069 1427fi
a0da8069 1428
c6b750e1
DJ
1429if test -n "$ac_init_help"; then
1430
1431 cat <<\_ACEOF
1432
1433Optional Features:
81ecdfbb 1434 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1435 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1436 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
93f9b408 1437 --enable-gold use gold instead of ld
521ec477
DD
1438 --enable-libada build libada directory
1439 --enable-libssp build libssp directory
e8a5fa9c 1440 --enable-build-with-cxx build with C++ compiler instead of C compiler
e28c595f
JM
1441 --disable-ppl-version-check disable check for PPL version
1442 --disable-cloog-version-check disable check for CLooG version
521ec477 1443 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 1444 stage1. Mostly useful for compiler development.
521ec477
DD
1445 --enable-objc-gc enable use of Boehm's garbage collector with the
1446 GNU Objective-C runtime
1447 --enable-bootstrap enable bootstrapping [yes if native build]
1448 --enable-serial-[{host,target,build}-]configure
1449 force sequential configuration of
c6b750e1 1450 sub-packages for the host, target or build
521ec477 1451 machine, or all sub-packages
c6b750e1
DJ
1452 --enable-maintainer-mode enable make rules and dependencies not useful
1453 (and sometimes confusing) to the casual installer
521ec477
DD
1454 --enable-stage1-checking[=all] choose additional checking for stage1
1455 of the compiler
c6b750e1
DJ
1456 --enable-werror enable -Werror in bootstrap stage2 and later
1457
1458Optional Packages:
1459 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1460 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1461 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8a5fa9c
RW
1462 --with-mpc=PATH specify prefix directory for installed MPC package.
1463 Equivalent to --with-mpc-include=PATH/include
1464 plus --with-mpc-lib=PATH/lib
1465 --with-mpc-include=PATH
1466 specify directory for installed MPC include files
1467 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1468 --with-mpfr-dir=PATH this option has been REMOVED
1469 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
1470 Equivalent to --with-mpfr-include=PATH/include
1471 plus --with-mpfr-lib=PATH/lib
1472 --with-mpfr-include=PATH
521ec477
DD
1473 specify directory for installed MPFR include files
1474 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1475 --with-gmp-dir=PATH this option has been REMOVED
1476 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
1477 Equivalent to --with-gmp-include=PATH/include
1478 plus --with-gmp-lib=PATH/lib
521ec477
DD
1479 --with-gmp-include=PATH specify directory for installed GMP include files
1480 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
1481 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1482 when linking with PPL
e8a5fa9c
RW
1483 --with-stage1-ldflags=FLAGS Linker flags for stage1
1484 -with-stage1-libs=LIBS Libraries for stage1
1485 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1486 --with-boot-libs=LIBS Libraries for stage2 and later
e28c595f
JM
1487 --with-ppl=PATH Specify prefix directory for the installed PPL package
1488 Equivalent to --with-ppl-include=PATH/include
1489 plus --with-ppl-lib=PATH/lib
1490 --with-ppl-include=PATH Specify directory for installed PPL include files
1491 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1492 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1493 Equivalent to --with-cloog-include=PATH/include
1494 plus --with-cloog-lib=PATH/lib
1495 --with-cloog-include=PATH Specify directory for installed CLooG include files
1496 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
521ec477 1497 --with-build-sysroot=SYSROOT
c6b750e1 1498 use sysroot as the system root during the build
8a6ee3ab
JM
1499 --with-debug-prefix-map='A=B C=D ...'
1500 map A to B, C to D ... in debug information
521ec477 1501 --with-build-time-tools=PATH
c6b750e1 1502 use given path to find target tools during the build
521ec477
DD
1503 --with-datarootdir use datarootdir as the data root directory.
1504 --with-docdir install documentation in this directory.
1505 --with-pdfdir install pdf in this directory.
1506 --with-htmldir install html in this directory.
c6b750e1
DJ
1507
1508Some influential environment variables:
1509 CC C compiler command
1510 CFLAGS C compiler flags
1511 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1512 nonstandard directory <lib dir>
81ecdfbb
RW
1513 LIBS libraries to pass to the linker, e.g. -l<library>
1514 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1516 CXX C++ compiler command
1517 CXXFLAGS C++ compiler flags
9a819804
AO
1518 AR AR for the host
1519 AS AS for the host
1520 DLLTOOL DLLTOOL for the host
1521 LD LD for the host
1522 LIPO LIPO for the host
1523 NM NM for the host
1524 RANLIB RANLIB for the host
1525 STRIP STRIP for the host
1526 WINDRES WINDRES for the host
0c24b341 1527 WINDMC WINDMC for the host
9a819804
AO
1528 OBJCOPY OBJCOPY for the host
1529 OBJDUMP OBJDUMP for the host
1530 CC_FOR_TARGET
1531 CC for the target
1532 CXX_FOR_TARGET
1533 CXX for the target
1534 GCC_FOR_TARGET
1535 GCC for the target
1536 GCJ_FOR_TARGET
1537 GCJ for the target
1538 GFORTRAN_FOR_TARGET
1539 GFORTRAN for the target
1540 AR_FOR_TARGET
1541 AR for the target
1542 AS_FOR_TARGET
1543 AS for the target
1544 DLLTOOL_FOR_TARGET
1545 DLLTOOL for the target
1546 LD_FOR_TARGET
1547 LD for the target
1548 LIPO_FOR_TARGET
1549 LIPO for the target
1550 NM_FOR_TARGET
1551 NM for the target
1552 OBJDUMP_FOR_TARGET
1553 OBJDUMP for the target
1554 RANLIB_FOR_TARGET
1555 RANLIB for the target
1556 STRIP_FOR_TARGET
1557 STRIP for the target
1558 WINDRES_FOR_TARGET
1559 WINDRES for the target
0c24b341
NC
1560 WINDMC_FOR_TARGET
1561 WINDMC for the target
c6b750e1
DJ
1562
1563Use these variables to override the choices made by `configure' or to help
1564it to find libraries and programs with nonstandard names/locations.
1565
81ecdfbb 1566Report bugs to the package provider.
c6b750e1 1567_ACEOF
81ecdfbb 1568ac_status=$?
c6b750e1
DJ
1569fi
1570
1571if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
c6b750e1 1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 continue
c6b750e1
DJ
1577 ac_builddir=.
1578
81ecdfbb
RW
1579case "$ac_dir" in
1580.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581*)
1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 esac ;;
1589esac
1590ac_abs_top_builddir=$ac_pwd
1591ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592# for backward compatibility:
1593ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1594
1595case $srcdir in
81ecdfbb 1596 .) # We are building in place.
c6b750e1 1597 ac_srcdir=.
81ecdfbb
RW
1598 ac_top_srcdir=$ac_top_builddir_sub
1599 ac_abs_top_srcdir=$ac_pwd ;;
1600 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1601 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1602 ac_top_srcdir=$srcdir
1603 ac_abs_top_srcdir=$srcdir ;;
1604 *) # Relative name.
1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1608esac
81ecdfbb
RW
1609ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1610
1611 cd "$ac_dir" || { ac_status=$?; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1619 else
81ecdfbb
RW
1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621 fi || ac_status=$?
1622 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1623 done
1624fi
1625
81ecdfbb 1626test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1627if $ac_init_version; then
1628 cat <<\_ACEOF
81ecdfbb
RW
1629configure
1630generated by GNU Autoconf 2.64
c6b750e1 1631
81ecdfbb 1632Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1633This configure script is free software; the Free Software Foundation
1634gives unlimited permission to copy, distribute and modify it.
1635_ACEOF
81ecdfbb 1636 exit
c6b750e1 1637fi
81ecdfbb
RW
1638
1639## ------------------------ ##
1640## Autoconf initialization. ##
1641## ------------------------ ##
1642
1643# ac_fn_c_try_compile LINENO
1644# --------------------------
1645# Try to compile conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_c_try_compile ()
1647{
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670else
1671 $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1
1675fi
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 return $ac_retval
1678
1679} # ac_fn_c_try_compile
1680
1681# ac_fn_cxx_try_compile LINENO
1682# ----------------------------
1683# Try to compile conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_cxx_try_compile ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext
1688 if { { ac_try="$ac_compile"
1689case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_compile") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_cxx_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest.$ac_objext; then :
1707 ac_retval=0
1708else
1709 $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713fi
1714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1715 return $ac_retval
1716
1717} # ac_fn_cxx_try_compile
1718
1719# ac_fn_c_try_link LINENO
1720# -----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded.
1722ac_fn_c_try_link ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext conftest$ac_exeext
1726 if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1739 fi
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest$ac_exeext && {
1745 test "$cross_compiling" = yes ||
1746 $as_test_x conftest$ac_exeext
1747 }; then :
1748 ac_retval=0
1749else
1750 $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=1
1754fi
1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757 # interfere with the next link command; also delete a directory that is
1758 # left behind by Apple's compiler. We do this before executing the actions.
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 return $ac_retval
1762
1763} # ac_fn_c_try_link
1764cat >config.log <<_ACEOF
c6b750e1
DJ
1765This file contains any messages produced by compilers while
1766running configure, to aid debugging if configure makes a mistake.
1767
1768It was created by $as_me, which was
81ecdfbb 1769generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1770
1771 $ $0 $@
1772
1773_ACEOF
81ecdfbb 1774exec 5>>config.log
c6b750e1
DJ
1775{
1776cat <<_ASUNAME
1777## --------- ##
1778## Platform. ##
1779## --------- ##
1780
1781hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1782uname -m = `(uname -m) 2>/dev/null || echo unknown`
1783uname -r = `(uname -r) 2>/dev/null || echo unknown`
1784uname -s = `(uname -s) 2>/dev/null || echo unknown`
1785uname -v = `(uname -v) 2>/dev/null || echo unknown`
1786
1787/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1788/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1789
1790/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1791/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1792/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1793/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1794/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1795/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1796/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1797
1798_ASUNAME
1799
1800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801for as_dir in $PATH
1802do
1803 IFS=$as_save_IFS
1804 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1805 $as_echo "PATH: $as_dir"
1806 done
1807IFS=$as_save_IFS
c6b750e1
DJ
1808
1809} >&5
1810
1811cat >&5 <<_ACEOF
1812
1813
1814## ----------- ##
1815## Core tests. ##
1816## ----------- ##
1817
1818_ACEOF
1819
1820
1821# Keep a trace of the command line.
1822# Strip out --no-create and --no-recursion so they do not pile up.
1823# Strip out --silent because we don't want to record it for future runs.
1824# Also quote any args containing shell meta-characters.
1825# Make two passes to allow for proper duplicate-argument suppression.
1826ac_configure_args=
1827ac_configure_args0=
1828ac_configure_args1=
c6b750e1
DJ
1829ac_must_keep_next=false
1830for ac_pass in 1 2
1831do
1832 for ac_arg
1833 do
1834 case $ac_arg in
1835 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1836 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1837 | -silent | --silent | --silen | --sile | --sil)
1838 continue ;;
81ecdfbb
RW
1839 *\'*)
1840 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1841 esac
1842 case $ac_pass in
81ecdfbb 1843 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1844 2)
81ecdfbb 1845 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1846 if test $ac_must_keep_next = true; then
1847 ac_must_keep_next=false # Got value, back to normal.
1848 else
1849 case $ac_arg in
1850 *=* | --config-cache | -C | -disable-* | --disable-* \
1851 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1852 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1853 | -with-* | --with-* | -without-* | --without-* | --x)
1854 case "$ac_configure_args0 " in
1855 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1856 esac
1857 ;;
1858 -* ) ac_must_keep_next=true ;;
1859 esac
1860 fi
81ecdfbb 1861 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1862 ;;
1863 esac
1864 done
1865done
81ecdfbb
RW
1866{ ac_configure_args0=; unset ac_configure_args0;}
1867{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1868
1869# When interrupted or exit'd, cleanup temporary files, and complete
1870# config.log. We remove comments because anyway the quotes in there
1871# would cause problems or look ugly.
81ecdfbb
RW
1872# WARNING: Use '\'' to represent an apostrophe within the trap.
1873# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1874trap 'exit_status=$?
1875 # Save into config.log some information that might help in debugging.
1876 {
1877 echo
1878
1879 cat <<\_ASBOX
1880## ---------------- ##
1881## Cache variables. ##
1882## ---------------- ##
1883_ASBOX
1884 echo
1885 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1886(
1887 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1888 eval ac_val=\$$ac_var
1889 case $ac_val in #(
1890 *${as_nl}*)
1891 case $ac_var in #(
1892 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1893$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1894 esac
1895 case $ac_var in #(
1896 _ | IFS | as_nl) ;; #(
1897 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1898 *) { eval $ac_var=; unset $ac_var;} ;;
1899 esac ;;
1900 esac
1901 done
c6b750e1 1902 (set) 2>&1 |
81ecdfbb
RW
1903 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1904 *${as_nl}ac_space=\ *)
c6b750e1 1905 sed -n \
81ecdfbb
RW
1906 "s/'\''/'\''\\\\'\'''\''/g;
1907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1908 ;; #(
c6b750e1 1909 *)
81ecdfbb 1910 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1911 ;;
81ecdfbb
RW
1912 esac |
1913 sort
1914)
c6b750e1
DJ
1915 echo
1916
1917 cat <<\_ASBOX
1918## ----------------- ##
1919## Output variables. ##
1920## ----------------- ##
1921_ASBOX
1922 echo
1923 for ac_var in $ac_subst_vars
1924 do
81ecdfbb
RW
1925 eval ac_val=\$$ac_var
1926 case $ac_val in
1927 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1928 esac
1929 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1930 done | sort
1931 echo
1932
1933 if test -n "$ac_subst_files"; then
1934 cat <<\_ASBOX
81ecdfbb
RW
1935## ------------------- ##
1936## File substitutions. ##
1937## ------------------- ##
c6b750e1
DJ
1938_ASBOX
1939 echo
1940 for ac_var in $ac_subst_files
1941 do
81ecdfbb
RW
1942 eval ac_val=\$$ac_var
1943 case $ac_val in
1944 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945 esac
1946 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1947 done | sort
1948 echo
1949 fi
1950
1951 if test -s confdefs.h; then
1952 cat <<\_ASBOX
1953## ----------- ##
1954## confdefs.h. ##
1955## ----------- ##
1956_ASBOX
1957 echo
81ecdfbb 1958 cat confdefs.h
c6b750e1
DJ
1959 echo
1960 fi
1961 test "$ac_signal" != 0 &&
81ecdfbb
RW
1962 $as_echo "$as_me: caught signal $ac_signal"
1963 $as_echo "$as_me: exit $exit_status"
c6b750e1 1964 } >&5
81ecdfbb
RW
1965 rm -f core *.core core.conftest.* &&
1966 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 1967 exit $exit_status
81ecdfbb 1968' 0
c6b750e1 1969for ac_signal in 1 2 13 15; do
81ecdfbb 1970 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
1971done
1972ac_signal=0
1973
1974# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1975rm -f -r conftest* confdefs.h
1976
1977$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
1978
1979# Predefined preprocessor variables.
1980
1981cat >>confdefs.h <<_ACEOF
1982#define PACKAGE_NAME "$PACKAGE_NAME"
1983_ACEOF
1984
c6b750e1
DJ
1985cat >>confdefs.h <<_ACEOF
1986#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1987_ACEOF
1988
c6b750e1
DJ
1989cat >>confdefs.h <<_ACEOF
1990#define PACKAGE_VERSION "$PACKAGE_VERSION"
1991_ACEOF
1992
c6b750e1
DJ
1993cat >>confdefs.h <<_ACEOF
1994#define PACKAGE_STRING "$PACKAGE_STRING"
1995_ACEOF
1996
c6b750e1
DJ
1997cat >>confdefs.h <<_ACEOF
1998#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1999_ACEOF
2000
81ecdfbb
RW
2001cat >>confdefs.h <<_ACEOF
2002#define PACKAGE_URL "$PACKAGE_URL"
2003_ACEOF
2004
c6b750e1
DJ
2005
2006# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2007# Prefer an explicitly selected file to automatically selected ones.
2008ac_site_file1=NONE
2009ac_site_file2=NONE
2010if test -n "$CONFIG_SITE"; then
2011 ac_site_file1=$CONFIG_SITE
2012elif test "x$prefix" != xNONE; then
2013 ac_site_file1=$prefix/share/config.site
2014 ac_site_file2=$prefix/etc/config.site
2015else
2016 ac_site_file1=$ac_default_prefix/share/config.site
2017 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2018fi
81ecdfbb
RW
2019for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2020do
2021 test "x$ac_site_file" = xNONE && continue
a0da8069 2022 if test -r "$ac_site_file"; then
81ecdfbb
RW
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2024$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2025 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2026 . "$ac_site_file"
2027 fi
2028done
2029
2030if test -r "$cache_file"; then
c6b750e1
DJ
2031 # Some versions of bash will fail to source /dev/null (special
2032 # files actually), so we avoid doing that.
2033 if test -f "$cache_file"; then
81ecdfbb
RW
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2035$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2036 case $cache_file in
81ecdfbb
RW
2037 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2038 *) . "./$cache_file";;
c6b750e1
DJ
2039 esac
2040 fi
a0da8069 2041else
81ecdfbb
RW
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2043$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2044 >$cache_file
2045fi
2046
2047# Check that the precious variables saved in the cache have kept the same
2048# value.
2049ac_cache_corrupted=false
81ecdfbb 2050for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2051 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2052 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2053 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2054 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2055 case $ac_old_set,$ac_new_set in
2056 set,)
81ecdfbb
RW
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2058$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2059 ac_cache_corrupted=: ;;
2060 ,set)
81ecdfbb
RW
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2062$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2063 ac_cache_corrupted=: ;;
2064 ,);;
2065 *)
2066 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2067 # differences in whitespace do not lead to failure.
2068 ac_old_val_w=`echo x $ac_old_val`
2069 ac_new_val_w=`echo x $ac_new_val`
2070 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2072$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2073 ac_cache_corrupted=:
2074 else
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2076$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2077 eval $ac_var=\$ac_old_val
2078 fi
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2080$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2082$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2083 fi;;
2084 esac
2085 # Pass precious variables to config.status.
2086 if test "$ac_new_set" = set; then
2087 case $ac_new_val in
81ecdfbb 2088 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2089 *) ac_arg=$ac_var=$ac_new_val ;;
2090 esac
2091 case " $ac_configure_args " in
2092 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2093 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2094 esac
2095 fi
2096done
2097if $ac_cache_corrupted; then
81ecdfbb
RW
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2101$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2102 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2103fi
81ecdfbb
RW
2104## -------------------- ##
2105## Main body of script. ##
2106## -------------------- ##
a0da8069
NN
2107
2108ac_ext=c
a0da8069 2109ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113
2114
2115
2116
c6b750e1
DJ
2117
2118
34a0f3cf 2119
c6b750e1 2120
5b553f7e
RW
2121
2122progname=$0
2123# if PWD already has a value, it is probably wrong.
2124if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2125
2126# Export original configure arguments for use by sub-configures.
2127# Quote arguments with shell meta charatcers.
2128TOPLEVEL_CONFIGURE_ARGUMENTS=
2129set -- "$progname" "$@"
2130for ac_arg
2131do
2132 case "$ac_arg" in
2133 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2134 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2135 # if the argument is of the form -foo=baz, quote the baz part only
2136 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2137 *) ;;
2138 esac
2139 # Add the quoted argument to the list.
2140 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2141done
2142if test "$silent" = yes; then
2143 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2144fi
2145# Remove the initial space we just introduced and, as these will be
2146# expanded by make, quote '$'.
2147TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2148
c6b750e1
DJ
2149
2150# Find the build, host, and target systems.
a0da8069 2151ac_aux_dir=
81ecdfbb
RW
2152for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2153 for ac_t in install-sh install.sh shtool; do
2154 if test -f "$ac_dir/$ac_t"; then
2155 ac_aux_dir=$ac_dir
2156 ac_install_sh="$ac_aux_dir/$ac_t -c"
2157 break 2
2158 fi
2159 done
a0da8069
NN
2160done
2161if test -z "$ac_aux_dir"; then
81ecdfbb 2162 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2163fi
81ecdfbb
RW
2164
2165# These three variables are undocumented and unsupported,
2166# and are intended to be withdrawn in a future Autoconf release.
2167# They can cause serious problems if a builder's source tree is in a directory
2168# whose full name contains unusual characters.
2169ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2170ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2171ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2172
a0da8069 2173
c6b750e1 2174# Make sure we can run config.sub.
81ecdfbb
RW
2175$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2176 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2177
2178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2179$as_echo_n "checking build system type... " >&6; }
2180if test "${ac_cv_build+set}" = set; then :
2181 $as_echo_n "(cached) " >&6
2182else
2183 ac_build_alias=$build_alias
2184test "x$ac_build_alias" = x &&
2185 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2186test "x$ac_build_alias" = x &&
2187 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2188ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2189 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2190
2191fi
2192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2193$as_echo "$ac_cv_build" >&6; }
2194case $ac_cv_build in
2195*-*-*) ;;
2196*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2197esac
c6b750e1 2198build=$ac_cv_build
81ecdfbb
RW
2199ac_save_IFS=$IFS; IFS='-'
2200set x $ac_cv_build
2201shift
2202build_cpu=$1
2203build_vendor=$2
2204shift; shift
2205# Remember, the first character of IFS is used to create $*,
2206# except with old shells:
2207build_os=$*
2208IFS=$ac_save_IFS
2209case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2210
a0da8069 2211
c6b750e1
DJ
2212 case ${build_alias} in
2213 "") build_noncanonical=${build} ;;
2214 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2215esac
2216
2217
cac3d6c4 2218
c6b750e1
DJ
2219 case ${host_alias} in
2220 "") host_noncanonical=${build_noncanonical} ;;
2221 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2222esac
2223
cac3d6c4 2224
c6b750e1
DJ
2225
2226 case ${target_alias} in
2227 "") target_noncanonical=${host_noncanonical} ;;
2228 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2229esac
2230
cac3d6c4 2231
c6b750e1
DJ
2232
2233
2234test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2235 test "$program_prefix$program_suffix$program_transform_name" = \
2236 NONENONEs,x,x, &&
c6b750e1 2237 program_transform_name=s,y,y,
cac3d6c4 2238
81ecdfbb
RW
2239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2240$as_echo_n "checking host system type... " >&6; }
2241if test "${ac_cv_host+set}" = set; then :
2242 $as_echo_n "(cached) " >&6
cac3d6c4 2243else
81ecdfbb
RW
2244 if test "x$host_alias" = x; then
2245 ac_cv_host=$ac_cv_build
2246else
2247 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2248 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2249fi
c6b750e1
DJ
2250
2251fi
81ecdfbb
RW
2252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2253$as_echo "$ac_cv_host" >&6; }
2254case $ac_cv_host in
2255*-*-*) ;;
2256*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2257esac
c6b750e1 2258host=$ac_cv_host
81ecdfbb
RW
2259ac_save_IFS=$IFS; IFS='-'
2260set x $ac_cv_host
2261shift
2262host_cpu=$1
2263host_vendor=$2
2264shift; shift
2265# Remember, the first character of IFS is used to create $*,
2266# except with old shells:
2267host_os=$*
2268IFS=$ac_save_IFS
2269case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2270
2271
81ecdfbb
RW
2272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2273$as_echo_n "checking target system type... " >&6; }
2274if test "${ac_cv_target+set}" = set; then :
2275 $as_echo_n "(cached) " >&6
c6b750e1 2276else
81ecdfbb
RW
2277 if test "x$target_alias" = x; then
2278 ac_cv_target=$ac_cv_host
2279else
2280 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2281 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2282fi
c6b750e1 2283
cac3d6c4 2284fi
81ecdfbb
RW
2285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2286$as_echo "$ac_cv_target" >&6; }
2287case $ac_cv_target in
2288*-*-*) ;;
2289*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2290esac
c6b750e1 2291target=$ac_cv_target
81ecdfbb
RW
2292ac_save_IFS=$IFS; IFS='-'
2293set x $ac_cv_target
2294shift
2295target_cpu=$1
2296target_vendor=$2
2297shift; shift
2298# Remember, the first character of IFS is used to create $*,
2299# except with old shells:
2300target_os=$*
2301IFS=$ac_save_IFS
2302case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2303
2304
2305# The aliases save the names the user supplied, while $host etc.
2306# will get canonicalized.
2307test -n "$target_alias" &&
2308 test "$program_prefix$program_suffix$program_transform_name" = \
2309 NONENONEs,x,x, &&
2310 program_prefix=${target_alias}-
81ecdfbb 2311
a0da8069 2312test "$program_prefix" != NONE &&
81ecdfbb 2313 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2314# Use a double $ so make ignores it.
2315test "$program_suffix" != NONE &&
81ecdfbb
RW
2316 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2317# Double any \ or $.
c6b750e1 2318# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2319ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2320program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2321
a0da8069
NN
2322
2323
e5c3f801
NN
2324# Get 'install' or 'install-sh' and its variants.
2325# Find a good install program. We prefer a C program (faster),
2326# so one script is as good as another. But avoid the broken or
2327# incompatible versions:
2328# SysV /etc/install, /usr/sbin/install
2329# SunOS /usr/etc/install
2330# IRIX /sbin/install
2331# AIX /bin/install
c6b750e1 2332# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2333# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2336# OS/2's system install, which has a completely different semantic
e5c3f801 2337# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2338# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2340$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2341if test -z "$INSTALL"; then
81ecdfbb
RW
2342if test "${ac_cv_path_install+set}" = set; then :
2343 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2344else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346for as_dir in $PATH
2347do
2348 IFS=$as_save_IFS
2349 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2350 # Account for people who put trailing slashes in PATH elements.
2351case $as_dir/ in #((
2352 ./ | .// | /[cC]/* | \
c6b750e1 2353 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2354 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2355 /usr/ucb/* ) ;;
2356 *)
2357 # OSF1 and SCO ODT 3.0 have their own names for install.
2358 # Don't use installbsd from OSF since it installs stuff as root
2359 # by default.
2360 for ac_prog in ginstall scoinst install; do
2361 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2362 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2363 if test $ac_prog = install &&
c6b750e1 2364 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2365 # AIX install. It has an incompatible calling convention.
2366 :
c6b750e1
DJ
2367 elif test $ac_prog = install &&
2368 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369 # program-specific install script used by HP pwplus--don't use.
2370 :
e5c3f801 2371 else
58c85be7
RW
2372 rm -rf conftest.one conftest.two conftest.dir
2373 echo one > conftest.one
2374 echo two > conftest.two
2375 mkdir conftest.dir
2376 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2377 test -s conftest.one && test -s conftest.two &&
2378 test -s conftest.dir/conftest.one &&
2379 test -s conftest.dir/conftest.two
2380 then
2381 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2382 break 3
2383 fi
e5c3f801
NN
2384 fi
2385 fi
2386 done
c6b750e1
DJ
2387 done
2388 ;;
2389esac
81ecdfbb
RW
2390
2391 done
2392IFS=$as_save_IFS
c6b750e1 2393
58c85be7 2394rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2395
2396fi
2397 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2398 INSTALL=$ac_cv_path_install
e5c3f801 2399 else
58c85be7
RW
2400 # As a last resort, use the slow shell script. Don't cache a
2401 # value for INSTALL within a source directory, because that will
e5c3f801 2402 # break other packages using the cache if that directory is
58c85be7 2403 # removed, or if the value is a relative name.
c6b750e1 2404 INSTALL=$ac_install_sh
e5c3f801
NN
2405 fi
2406fi
81ecdfbb
RW
2407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2408$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2409
2410# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411# It thinks the first close brace ends the variable substitution.
2412test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2413
c6b750e1 2414test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2415
2416test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2417
81ecdfbb
RW
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2419$as_echo_n "checking whether ln works... " >&6; }
2420if test "${acx_cv_prog_LN+set}" = set; then :
2421 $as_echo_n "(cached) " >&6
656fdd47
PB
2422else
2423 rm -f conftestdata_t
2424echo >conftestdata_f
2425if ln conftestdata_f conftestdata_t 2>/dev/null
2426then
2427 acx_cv_prog_LN=ln
2428else
2429 acx_cv_prog_LN=no
2430fi
2431rm -f conftestdata_f conftestdata_t
2432
2433fi
2434if test $acx_cv_prog_LN = no; then
2435 LN="cp"
81ecdfbb
RW
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2437$as_echo "no, using $LN" >&6; }
656fdd47
PB
2438else
2439 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2441$as_echo "yes" >&6; }
656fdd47
PB
2442fi
2443
81ecdfbb
RW
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2445$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2446LN_S=$as_ln_s
2447if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2449$as_echo "yes" >&6; }
cac3d6c4 2450else
81ecdfbb
RW
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2452$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2453fi
2454
e5c3f801 2455
252b5132 2456### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2457### If we are on Windows, search for the shell. This will permit people
2458### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2459### without also having to set CONFIG_SHELL. This code will work when
2460### using bash, which sets OSTYPE.
2461case "${OSTYPE}" in
2462*win32*)
a0da8069
NN
2463 if test x${CONFIG_SHELL} = x ; then
2464 if test ! -f /bin/sh ; then
2465 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2466 CONFIG_SHELL=${SHELL}
2467 export CONFIG_SHELL
2468 else
2469 for prog in sh sh.exe bash bash.exe; do
2470 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2471 for dir in $PATH; do
2472 test -z "$dir" && dir=.
2473 if test -f $dir/$prog; then
2474 CONFIG_SHELL=$dir/$prog
2475 export CONFIG_SHELL
2476 break
2477 fi
2478 done
2479 IFS="$save_ifs"
2480 test -n "${CONFIG_SHELL}" && break
2481 done
2482 fi
2483 fi
2484 fi
2485 ;;
2486esac
2487
2488config_shell=${CONFIG_SHELL-/bin/sh}
2489
a0da8069 2490moveifchange=${srcdir}/move-if-change
252b5132 2491
0fdbe983
DJ
2492srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2493
2494# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2495# a relative path.
2496if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2497 INSTALL="${srcpwd}/install-sh -c"
2498fi
2499
a0da8069
NN
2500# Set srcdir to "." if that's what it is.
2501# This is important for multilib support.
2502pwd=`${PWDCMD-pwd}`
a0da8069
NN
2503if test "${pwd}" = "${srcpwd}" ; then
2504 srcdir=.
252b5132
RH
2505fi
2506
a0da8069 2507topsrcdir=$srcpwd
252b5132 2508
a0da8069 2509extra_host_args=
afefada0 2510
a0da8069
NN
2511### To add a new directory to the tree, first choose whether it is a target
2512### or a host dependent tool. Then put it into the appropriate list
2513### (library or tools, host or target), doing a dependency sort.
252b5132 2514
c6b750e1 2515# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2516# configdirs, or target_configdirs; see the serialization section below.
252b5132 2517
c6b750e1
DJ
2518# Dependency sorting is only needed when *configuration* must be done in
2519# a particular order. In all cases a dependency should be specified in
a0da8069 2520# the Makefile, whether or not it's implicitly specified here.
252b5132 2521
a0da8069
NN
2522# Double entries in build_configdirs, configdirs, or target_configdirs may
2523# cause circular dependencies and break everything horribly.
252b5132 2524
6a9cf61e
PB
2525# these library is used by various programs built for the build
2526# environment
2527#
2528build_libs="build-libiberty"
2529
2530# these tools are built for the build environment
ee025550 2531build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2532
a0da8069
NN
2533# these libraries are used by various programs built for the host environment
2534#
e8a5fa9c 2535host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
a0da8069 2536
a0da8069
NN
2537# these tools are built for the host environment
2538# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2539# know that we are building the simulator.
2540# binutils, gas and ld appear in that order because it makes sense to run
2541# "make check" in that particular order.
93f9b408 2542# If --enable-gold is used, "gold" will replace "ld".
f9806fa5 2543host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
2544
2545# libgcj represents the runtime libraries only used by gcj.
2546libgcj="target-libffi \
a0da8069
NN
2547 target-zlib \
2548 target-qthreads \
2549 target-libjava"
2550
2551# these libraries are built for the target environment, and are built after
2552# the host libraries and the host tools (which may be a cross compiler)
2553#
b1299c4e
DJ
2554target_libraries="target-libgcc \
2555 target-libiberty \
a0da8069
NN
2556 target-libgloss \
2557 target-newlib \
cff87f51 2558 target-libgomp \
b9459e83 2559 target-libstdc++-v3 \
4b1cb4fe 2560 target-libmudflap \
bb780410 2561 target-libssp \
4b1cb4fe 2562 target-libgfortran \
4f0ef2d8 2563 target-boehm-gc \
83326456 2564 ${libgcj} \
a2592b1b 2565 target-libobjc \
cff87f51 2566 target-libada"
a0da8069 2567
9c14acb8
NN
2568# these tools are built using the target libraries, and are intended to
2569# run only in the target environment
a0da8069 2570#
9c14acb8 2571# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
2572# list belongs in this list. those programs are also very likely
2573# candidates for the "native_only" list which follows
2574#
a3dd767d 2575target_tools="target-examples target-groff target-gperf target-rda"
252b5132 2576
a0da8069 2577################################################################################
252b5132 2578
a0da8069
NN
2579## All tools belong in one of the four categories, and are assigned above
2580## We assign ${configdirs} this way to remove all embedded newlines. This
2581## is important because configure will choke if they ever get through.
2582## ${configdirs} is directories we build using the host tools.
2583## ${target_configdirs} is directories we build using the target tools.
a0da8069 2584configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2585target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2586build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2587
9cc8ae67
PB
2588
2589
a0da8069 2590################################################################################
252b5132 2591
a0da8069 2592srcname="gnu development package"
252b5132 2593
a0da8069
NN
2594# This gets set non-empty for some net releases of packages.
2595appdirs=""
252b5132 2596
a0da8069
NN
2597# Define is_cross_compiler to save on calls to 'test'.
2598is_cross_compiler=
2599if test x"${host}" = x"${target}" ; then
2600 is_cross_compiler=no
252b5132 2601else
a0da8069 2602 is_cross_compiler=yes
c6b750e1 2603fi
252b5132 2604
9175bfc0 2605# Find the build and target subdir names.
dd12c3a8 2606
66a79c16
DJ
2607# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2608# have matching libraries, they should use host libraries: Makefile.tpl
2609# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2610# However, they still use the build modules, because the corresponding
2611# host modules (e.g. bison) are only built for the host when bootstrap
2612# finishes. So:
2613# - build_subdir is where we find build modules, and never changes.
2614# - build_libsubdir is where we find build libraries, and can be overridden.
2615
2616# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2617build_subdir="build-${build_noncanonical}"
c6b750e1 2618
81ecdfbb
RW
2619# Check whether --with-build-libsubdir was given.
2620if test "${with_build_libsubdir+set}" = set; then :
2621 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2622else
2623 build_libsubdir="$build_subdir"
81ecdfbb
RW
2624fi
2625
b00612cc
PB
2626# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2627if ( test $srcdir = . && test -d gcc ) \
2628 || test -d $srcdir/../host-${host_noncanonical}; then
2629 host_subdir="host-${host_noncanonical}"
2630else
2631 host_subdir=.
2632fi
dd12c3a8
NN
2633# No prefix.
2634target_subdir=${target_noncanonical}
c6b750e1 2635
252b5132 2636
a0da8069
NN
2637# Skipdirs are removed silently.
2638skipdirs=
2639# Noconfigdirs are removed loudly.
2640noconfigdirs=""
252b5132 2641
a0da8069
NN
2642use_gnu_ld=
2643# Make sure we don't let GNU ld be added if we didn't want it.
2644if test x$with_gnu_ld = xno ; then
2645 use_gnu_ld=no
93f9b408 2646 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2647fi
2648
a0da8069
NN
2649use_gnu_as=
2650# Make sure we don't let GNU as be added if we didn't want it.
2651if test x$with_gnu_as = xno ; then
2652 use_gnu_as=no
2653 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2654fi
2655
c6b750e1 2656# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2657# it's not even worth trying to configure, much less build, that tool.
252b5132 2658
a0da8069
NN
2659case ${with_x} in
2660 yes | "") ;; # the default value for this tree is that X11 is available
2661 no)
675c6968 2662 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2663 # We won't be able to build gdbtk without X.
c6b750e1 2664 enable_gdbtk=no
a0da8069
NN
2665 ;;
2666 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2667esac
252b5132 2668
a0da8069 2669# Some tools are only suitable for building in a "native" situation.
c6b750e1 2670# Remove these if host!=target.
701628f5 2671native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 2672
a0da8069
NN
2673# Similarly, some are only suitable for cross toolchains.
2674# Remove these if host=target.
2675cross_only="target-libgloss target-newlib target-opcodes"
2676
2677case $is_cross_compiler in
2678 no) skipdirs="${skipdirs} ${cross_only}" ;;
2679 yes) skipdirs="${skipdirs} ${native_only}" ;;
2680esac
252b5132 2681
a0da8069
NN
2682# If both --with-headers and --with-libs are specified, default to
2683# --without-newlib.
32be62b5
RS
2684if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2685 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2686 if test x"${with_newlib}" = x ; then
2687 with_newlib=no
2688 fi
252b5132
RH
2689fi
2690
a0da8069
NN
2691# Recognize --with-newlib/--without-newlib.
2692case ${with_newlib} in
2693 no) skipdirs="${skipdirs} target-newlib" ;;
2694 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2695esac
252b5132 2696
93f9b408
ILT
2697# Handle --enable-gold.
2698
81ecdfbb
RW
2699# Check whether --enable-gold was given.
2700if test "${enable_gold+set}" = set; then :
2701 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2702else
2703 ENABLE_GOLD=no
81ecdfbb
RW
2704fi
2705
93f9b408
ILT
2706if test "${ENABLE_GOLD}" = "yes"; then
2707 # Check for ELF target.
2708 is_elf=no
2709 case "${target}" in
2710 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2711 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8bcf2718 2712 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
93f9b408
ILT
2713 case "${target}" in
2714 *-*-linux*aout* | *-*-linux*oldld*)
2715 ;;
2716 *)
2717 is_elf=yes
2718 ;;
2719 esac
2720 esac
2721
2722 if test "$is_elf" = "yes"; then
2723 # Check for target supported by gold.
2724 case "${target}" in
4a657b0d 2725 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
93f9b408
ILT
2726 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2727 ;;
2728 esac
2729 fi
2730fi
2731
a0da8069 2732# Configure extra directories which are host specific
252b5132 2733
a0da8069
NN
2734case "${host}" in
2735 *-cygwin*)
2736 configdirs="$configdirs libtermcap" ;;
2737esac
252b5132 2738
59f7ec45
HPN
2739# A target can indicate whether a language isn't supported for some reason.
2740# Only spaces may be used in this macro; not newlines or tabs.
2741unsupported_languages=
2742
c6b750e1 2743# Remove more programs from consideration, based on the host or
a0da8069
NN
2744# target this usually means that a port of the program doesn't
2745# exist yet.
252b5132 2746
a0da8069
NN
2747case "${host}" in
2748 hppa*64*-*-*)
2749 noconfigdirs="$noconfigdirs byacc"
2750 ;;
ec11bdc6 2751 i[3456789]86-*-vsta)
675c6968 2752 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2753 ;;
ec11bdc6 2754 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2755 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2756 ;;
2d1e8239
NC
2757 x86_64-*-mingw*)
2758 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2759 ;;
ec11bdc6 2760 i[3456789]86-*-mingw32*)
675c6968 2761 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2762 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2763 ;;
ec11bdc6 2764 i[3456789]86-*-beos*)
675c6968 2765 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2766 ;;
a0da8069 2767 *-*-cygwin*)
a92834c8 2768 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2769 ;;
2770 *-*-netbsd*)
a92834c8 2771 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2772 ;;
2773 ppc*-*-pe)
675c6968 2774 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2775 ;;
2776 powerpc-*-beos*)
675c6968 2777 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2778 ;;
a0da8069 2779esac
252b5132 2780
4b1cb4fe 2781
81ecdfbb
RW
2782# Check whether --enable-libada was given.
2783if test "${enable_libada+set}" = set; then :
2784 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2785else
2786 ENABLE_LIBADA=yes
81ecdfbb
RW
2787fi
2788
a2592b1b 2789if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2790 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2791fi
2792
81ecdfbb
RW
2793# Check whether --enable-libssp was given.
2794if test "${enable_libssp+set}" = set; then :
2795 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
2796else
2797 ENABLE_LIBSSP=yes
81ecdfbb
RW
2798fi
2799
5f128533 2800
a0da8069
NN
2801# Save it here so that, even in case of --enable-libgcj, if the Java
2802# front-end isn't enabled, we still get libgcj disabled.
2803libgcj_saved=$libgcj
2804case $enable_libgcj in
2805yes)
2806 # If we reset it here, it won't get added to noconfigdirs in the
2807 # target-specific build rules, so it will be forcibly enabled
2808 # (unless the Java language itself isn't enabled).
2809 libgcj=
2810 ;;
2811no)
2812 # Make sure we get it printed in the list of not supported target libs.
2813 noconfigdirs="$noconfigdirs ${libgcj}"
2814 ;;
2815esac
252b5132 2816
4b1cb4fe 2817
a6df5a19
PB
2818# Disable libmudflap on some systems.
2819if test x$enable_libmudflap = x ; then
3e707e94 2820 case "${target}" in
29383458 2821 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 2822 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2823 ;;
2824 *-*-freebsd*)
2825 # Enable libmudflap by default in FreeBSD.
2826 ;;
2827 *)
2828 # Disable it by default everywhere else.
2829 noconfigdirs="$noconfigdirs target-libmudflap"
2830 ;;
2831 esac
a6df5a19 2832fi
4b1cb4fe 2833
a6df5a19
PB
2834# Disable libgomp on non POSIX hosted systems.
2835if test x$enable_libgomp = x ; then
b3ded179
PB
2836 # Enable libgomp by default on hosted POSIX systems.
2837 case "${target}" in
29383458 2838 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
2839 ;;
2840 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2841 ;;
64ce424c 2842 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2843 ;;
2844 *-*-darwin* | *-*-aix*)
2845 ;;
2846 *)
2847 noconfigdirs="$noconfigdirs target-libgomp"
2848 ;;
2849 esac
a6df5a19 2850fi
b3ded179 2851
691bb5a1
DD
2852# Default libgloss CPU subdirectory.
2853libgloss_dir="$target_cpu"
4b1cb4fe 2854
a0da8069
NN
2855case "${target}" in
2856 *-*-chorusos)
54d1c879 2857 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2858 ;;
24741ab2 2859 powerpc-*-darwin*)
9d39db92 2860 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2861 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 2862 ;;
85bd1942
TG
2863 i[3456789]86-*-darwin*)
2864 noconfigdirs="$noconfigdirs ld gprof"
2865 noconfigdirs="$noconfigdirs sim target-rda"
2866 ;;
e8a5fa9c 2867 x86_64-*-darwin[912]*)
652dec25
TG
2868 noconfigdirs="$noconfigdirs ld gas gprof"
2869 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2870 ;;
04d1ab34 2871 *-*-darwin*)
d320aacb 2872 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2873 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2874 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2875 ;;
a0da8069 2876 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2877 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2878 ;;
de0b4a87 2879 *-*-freebsd*)
4b1cb4fe
DD
2880 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2881 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2882 && test -f /usr/local/include/gmp.h; then
2883 with_gmp=/usr/local
2884 fi
2885
2886 # Skip some stuff that's unsupported on some FreeBSD configurations.
2887 case "${target}" in
2888 i*86-*-*) ;;
2889 alpha*-*-*) ;;
2890 *)
54d1c879 2891 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2892 ;;
2893 esac
2894 ;;
f8a495c8
NC
2895 *-*-kaos*)
2896 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2897 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2898 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2899 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2900 noconfigdirs="$noconfigdirs target-libgloss"
2901 ;;
a0da8069
NN
2902 *-*-netbsd*)
2903 # Skip some stuff on all NetBSD configurations.
2904 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2905
2906 # Skip some stuff that's unsupported on some NetBSD configurations.
2907 case "${target}" in
2908 i*86-*-netbsdelf*) ;;
5b474aa8 2909 arm*-*-netbsdelf*) ;;
a0da8069 2910 *)
54d1c879 2911 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2912 ;;
2913 esac
2914 ;;
2a3124ca 2915 *-*-netware*)
54d1c879 2916 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2917 ;;
2918 *-*-rtems*)
54d1c879 2919 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2920 ;;
1587117a
EC
2921 # The tpf target doesn't support gdb yet.
2922 *-*-tpf*)
54d1c879 2923 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2924 ;;
c1968181 2925 *-*-uclinux*)
54d1c879 2926 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2927 ;;
a0da8069 2928 *-*-vxworks*)
54d1c879 2929 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2930 ;;
2931 alpha*-dec-osf*)
2932 # ld works, but does not support shared libraries.
2933 # newlib is not 64 bit ready. I'm not sure about fileutils.
2934 # gas doesn't generate exception information.
2935 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2936 ;;
2937 alpha*-*-*vms*)
54d1c879 2938 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2939 ;;
2940 alpha*-*-linux*)
2941 # newlib is not 64 bit ready
2942 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2943 ;;
a0da8069
NN
2944 alpha*-*-*)
2945 # newlib is not 64 bit ready
54d1c879 2946 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2947 ;;
4a18bd6b 2948 am33_2.0-*-linux*)
54d1c879 2949 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2950 ;;
a0da8069 2951 sh-*-linux*)
54d1c879 2952 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2953 ;;
a0da8069 2954 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2955 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2956 noconfigdirs="$noconfigdirs target-examples"
2957 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2958 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2959 noconfigdirs="$noconfigdirs expect dejagnu"
2960 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2961 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2962 noconfigdirs="$noconfigdirs target-newlib"
2963 case "${host}" in
2964 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2965 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2966 ;;
2967 esac
691bb5a1 2968 libgloss_dir=wince
a0da8069
NN
2969 ;;
2970 arc-*-*)
54d1c879 2971 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2972 ;;
caeba88f 2973 arm-semi-aof )
caeba88f 2974 ;;
a0da8069 2975 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2976 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2977 libgloss_dir=arm
a0da8069 2978 ;;
11b04d1f 2979 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2980 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2981 libgloss_dir=arm
a0da8069 2982 ;;
bd70a46f 2983 arm*-*-linux-gnueabi)
6d18b86b 2984 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
2985 case ${with_newlib} in
2986 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2987 esac
691bb5a1 2988 libgloss_dir=arm
bd70a46f 2989 ;;
df4a6958 2990 arm*-*-symbianelf*)
54d1c879 2991 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2992 libgloss_dir=arm
df4a6958 2993 ;;
a0da8069 2994 arm-*-pe*)
54d1c879 2995 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2996 ;;
a0da8069 2997 thumb-*-coff)
54d1c879 2998 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2999 ;;
3000 thumb-*-elf)
54d1c879 3001 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3002 ;;
a0da8069 3003 thumb-*-pe)
54d1c879 3004 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3005 ;;
3006 arm-*-riscix*)
54d1c879 3007 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3008 ;;
3009 avr-*-*)
266df637 3010 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3011 ;;
376a0e54 3012 bfin-*-*)
00d89675 3013 noconfigdirs="$noconfigdirs gdb"
3cf3372e 3014 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3015 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3016 fi
3017 ;;
a0da8069 3018 c4x-*-* | tic4x-*-*)
54d1c879 3019 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3020 ;;
3021 c54x*-*-* | tic54x-*-*)
54d1c879 3022 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3023 ;;
52310858
NC
3024 cr16-*-*)
3025 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3026 ;;
c7e66c6d 3027 cris-*-* | crisv32-*-*)
59f7ec45 3028 unsupported_languages="$unsupported_languages java"
c7e66c6d 3029 case "${target}" in
2faa2958 3030 *-*-aout)
096f7d00 3031 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3032 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3033 *-*-elf)
5e818318 3034 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 3035 *-*-linux*)
5e818318 3036 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3037 *)
096f7d00 3038 unsupported_languages="$unsupported_languages fortran"
54d1c879 3039 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3040 esac
691bb5a1 3041 libgloss_dir=cris
a0da8069 3042 ;;
3e707e94 3043 crx-*-*)
54d1c879 3044 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 3045 ;;
a0da8069 3046 d10v-*-*)
54d1c879 3047 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3048 ;;
3049 d30v-*-*)
54d1c879 3050 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 3051 ;;
691bb5a1
DD
3052 ep9312-*-elf | ep9312-*-coff)
3053 libgloss_dir=arm
3054 ;;
a0da8069 3055 fr30-*-elf*)
54d1c879 3056 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3057 ;;
3058 frv-*-*)
54d1c879 3059 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3060 ;;
20135e4c
NC
3061 moxie-*-*)
3062 noconfigdirs="$noconfigdirs ${libgcj}"
3063 noconfigdirs="$noconfigdirs gprof"
3064 ;;
a0da8069 3065 h8300*-*-*)
54d1c879 3066 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3067 ;;
3068 h8500-*-*)
54d1c879 3069 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3070 ;;
caeba88f 3071 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3072 ;;
a0da8069
NN
3073 hppa*64*-*-linux* | parisc*64*-*-linux*)
3074 # In this case, it's because the hppa64-linux target is for
3075 # the kernel only at this point and has no libc, and thus no
3076 # headers, crt*.o, etc., all of which are needed by these.
3077 noconfigdirs="$noconfigdirs target-zlib"
3078 ;;
5dcac624
DA
3079 parisc*-*-linux* | hppa*-*-linux*)
3080 ;;
a0da8069 3081 hppa*-*-*elf* | \
a0da8069
NN
3082 hppa*-*-lites* | \
3083 hppa*-*-openbsd* | \
3084 hppa*64*-*-*)
54d1c879 3085 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3086 ;;
3087 hppa*-hp-hpux11*)
3088 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3089 ;;
691bb5a1
DD
3090 hppa*-*-pro*)
3091 libgloss_dir=pa
3092 ;;
a0da8069
NN
3093 hppa*-*-*)
3094 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3095 # build on HP-UX 10.20.
54d1c879 3096 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3097 ;;
b07c2aad 3098 i960-*-*)
54d1c879 3099 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3100 ;;
a0da8069
NN
3101 ia64*-*-elf*)
3102 # No gdb support yet.
675c6968 3103 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3104 ;;
3105 ia64*-**-hpux*)
3106 # No gdb or ld support yet.
54d1c879 3107 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 3108 ;;
19e99079
NC
3109 ia64*-*-*vms*)
3110 # No gdb or ld support yet.
3111 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3112 ;;
caeba88f 3113 i370-*-opened*)
caeba88f 3114 ;;
ec11bdc6 3115 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3116 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3117 libgloss_dir=i386
a0da8069 3118 ;;
ec11bdc6 3119 i[3456789]86-*-linux*)
a0da8069
NN
3120 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3121 # not build java stuff by default.
3122 case "${target}" in
3123 *-*-*libc1*)
54d1c879 3124 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3125 esac
3126
3127 # This section makes it possible to build newlib natively on linux.
3128 # If we are using a cross compiler then don't configure newlib.
3129 if test x${is_cross_compiler} != xno ; then
bba45b8b 3130 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3131 fi
3132 noconfigdirs="$noconfigdirs target-libgloss"
3133 # If we are not using a cross compiler, do configure newlib.
3134 # Note however, that newlib will only be configured in this situation
3135 # if the --with-newlib option has been given, because otherwise
3136 # 'target-newlib' will appear in skipdirs.
3137 ;;
ec11bdc6 3138 i[3456789]86-*-mingw32*)
45055374
CV
3139 target_configdirs="$target_configdirs target-winsup"
3140 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3141 ;;
2d1e8239
NC
3142 x86_64-*-mingw*)
3143 target_configdirs="$target_configdirs target-winsup"
3144 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3145 ;;
a0da8069
NN
3146 *-*-cygwin*)
3147 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3148 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3149 # always build newlib if winsup directory is present.
45055374 3150 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3151 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3152 elif test -d "$srcdir/newlib"; then
45055374 3153 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3154 fi
c6b750e1 3155 ;;
caeba88f
AL
3156 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3157 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 3158 ;;
ec11bdc6 3159 i[3456789]86-*-pe)
54d1c879 3160 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3161 ;;
ec11bdc6 3162 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3163 # The linker does not yet know about weak symbols in COFF,
3164 # and is not configured to handle mixed ELF and COFF.
54d1c879 3165 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3166 ;;
ec11bdc6 3167 i[3456789]86-*-sco*)
54d1c879 3168 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3169 ;;
ec11bdc6 3170 i[3456789]86-*-solaris2*)
a0da8069
NN
3171 noconfigdirs="$noconfigdirs target-libgloss"
3172 ;;
ec11bdc6 3173 i[3456789]86-*-sysv4*)
54d1c879 3174 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3175 ;;
ec11bdc6 3176 i[3456789]86-*-beos*)
54d1c879 3177 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3178 ;;
b59bea8a 3179 i[3456789]86-*-rdos*)
2429c060
PB
3180 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3181 ;;
b07c2aad 3182 m32r-*-*)
54d1c879 3183 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3184 ;;
a0da8069 3185 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 3186 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 3187 libgloss_dir=m68hc11
a0da8069
NN
3188 ;;
3189 m68k-*-elf*)
54d1c879 3190 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3191 ;;
3192 m68k-*-coff*)
54d1c879 3193 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3194 ;;
691bb5a1
DD
3195 m68*-*-* | fido-*-*)
3196 libgloss_dir=m68k
3197 ;;
a0da8069
NN
3198 mcore-*-pe*)
3199 # The EPOC C++ environment does not support exceptions or rtti,
3200 # and so building libstdc++-v3 tends not to always work.
3201 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3202 ;;
3203 mmix-*-*)
59f7ec45 3204 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3205 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3206 ;;
3207 mn10200-*-*)
54d1c879 3208 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3209 ;;
3210 mn10300-*-*)
54d1c879 3211 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3212 ;;
4970f871 3213 mt-*-*)
cdb9b172
AH
3214 noconfigdirs="$noconfigdirs sim"
3215 ;;
a0da8069
NN
3216 powerpc-*-aix*)
3217 # copied from rs6000-*-* entry
e8a5fa9c 3218 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3219 ;;
3220 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3221 target_configdirs="$target_configdirs target-winsup"
54d1c879 3222 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3223 # always build newlib.
3224 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3225 ;;
3226 # This is temporary until we can link against shared libraries
3227 powerpcle-*-solaris*)
54d1c879 3228 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3229 libgloss_dir=rs6000
a0da8069
NN
3230 ;;
3231 powerpc-*-beos*)
54d1c879 3232 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3233 ;;
a0da8069 3234 powerpc-*-eabi)
54d1c879 3235 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3236 libgloss_dir=rs6000
caeba88f
AL
3237 ;;
3238 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3239 libgloss_dir=rs6000
a0da8069 3240 ;;
a0da8069 3241 rs6000-*-lynxos*)
54d1c879 3242 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3243 ;;
3244 rs6000-*-aix*)
e8a5fa9c 3245 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3246 ;;
3247 rs6000-*-*)
54d1c879 3248 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3249 ;;
3250 m68k-apollo-*)
54d1c879 3251 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3252 ;;
25a07265
NC
3253 microblaze*)
3254 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3255 ;;
5bd8be13
RS
3256 mips*-sde-elf*)
3257 skipdirs="$skipdirs target-libiberty"
3258 noconfigdirs="$noconfigdirs ${libgcj}"
3259 if test x$with_newlib = xyes; then
3260 noconfigdirs="$noconfigdirs gprof"
3261 fi
3262 libgloss_dir=mips
3263 ;;
a0da8069 3264 mips*-*-irix5*)
54d1c879 3265 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3266 ;;
3267 mips*-*-irix6*)
a0da8069
NN
3268 # Linking libjava exceeds command-line length limits on at least
3269 # IRIX 6.2, but not on IRIX 6.5.
3270 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3271 # <oldham@codesourcery.com>
54d1c879 3272 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3273 ;;
a0da8069 3274 mips*-*-bsd*)
54d1c879 3275 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3276 ;;
a0da8069
NN
3277 mips*-*-linux*)
3278 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3279 ;;
3280 mips*-*-*)
54d1c879 3281 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3282 libgloss_dir=mips
a0da8069
NN
3283 ;;
3284 romp-*-*)
54d1c879 3285 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3286 ;;
dbf85af7 3287 sh-*-* | sh64-*-*)
a0da8069 3288 case "${host}" in
ec11bdc6
DD
3289 i[3456789]86-*-vsta) ;; # don't add gprof back in
3290 i[3456789]86-*-go32*) ;; # don't add gprof back in
3291 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3292 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3293 esac
e8a5fa9c
RW
3294 case "${target}" in
3295 sh*-*-elf)
3296 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3297 *)
3298 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3299 esac
a0da8069 3300 ;;
691bb5a1
DD
3301 sparclet-*-aout* | sparc86x-*-*)
3302 libgloss_dir=sparc
3303 ;;
a0da8069 3304 sparc-*-elf*)
54d1c879 3305 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3306 ;;
3307 sparc64-*-elf*)
54d1c879 3308 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3309 libgloss_dir=sparc
a0da8069
NN
3310 ;;
3311 sparclite-*-*)
54d1c879 3312 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3313 libgloss_dir=sparc
a0da8069
NN
3314 ;;
3315 sparc-*-sunos4*)
54d1c879 3316 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3317 if test x${is_cross_compiler} != xno ; then
3318 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3319 else
3320 use_gnu_ld=no
3321 fi
3322 ;;
e3c770b1 3323 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3324 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3325 ;;
a0da8069
NN
3326 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3327 ;;
3328 v810-*-*)
54d1c879 3329 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
3330 ;;
3331 v850-*-*)
54d1c879 3332 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3333 ;;
3334 v850e-*-*)
54d1c879 3335 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3336 ;;
3337 v850ea-*-*)
54d1c879 3338 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3339 ;;
3340 vax-*-vms)
54d1c879 3341 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3342 ;;
3343 vax-*-*)
54d1c879 3344 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3345 ;;
8b66833e 3346 xtensa*-*-*)
54d1c879 3347 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3348 ;;
a0da8069 3349 ip2k-*-*)
54d1c879 3350 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3351 ;;
29383458 3352 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3353 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3354 ;;
3355 *-*-lynxos*)
54d1c879 3356 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3357 ;;
a0da8069 3358 *-*-*)
54d1c879 3359 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3360 ;;
3361esac
252b5132 3362
a0da8069
NN
3363# If we aren't building newlib, then don't build libgloss, since libgloss
3364# depends upon some newlib header files.
3365case "${noconfigdirs}" in
3366 *target-libgloss*) ;;
3367 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3368esac
3369
a0da8069
NN
3370# Work in distributions that contain no compiler tools, like Autoconf.
3371tentative_cc=""
3372host_makefile_frag=/dev/null
3373if test -d ${srcdir}/config ; then
3374case "${host}" in
3375 m68k-hp-hpux*)
3376 # Avoid "too much defining" errors from HPUX compiler.
3377 tentative_cc="cc -Wp,-H256000"
3378 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3379 # If it's HP/UX ar, this should be harmless.
3380 RANLIB="ar ts"
3381 ;;
3382 m68k-apollo-sysv*)
3383 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3384 ;;
3385 m68k-apollo-bsd*)
3386 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3387 # chokes on bfd, the compiler won't let you assign integers to enums, and
3388 # other problems. Defining CC to gcc is a questionable way to say "don't use
3389 # the apollo compiler" (the preferred version of GCC could be called cc,
3390 # or whatever), but I'm not sure leaving CC as cc is any better...
3391 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3392 # Used to have BISON=yacc.
3393 tentative_cc=gcc
3394 ;;
3395 m88k-dg-dgux*)
3396 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3397 ;;
3398 m88k-harris-cxux*)
3399 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3400 tentative_cc="cc -Xa"
3401 host_makefile_frag="config/mh-cxux"
3402 ;;
3403 m88k-motorola-sysv*)
3404 ;;
3405 mips*-dec-ultrix*)
3406 tentative_cc="cc -Wf,-XNg1000"
3407 host_makefile_frag="config/mh-decstation"
3408 ;;
3409 mips*-nec-sysv4*)
3410 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3411 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3412 host_makefile_frag="config/mh-necv4"
3413 ;;
3414 mips*-sgi-irix4*)
3415 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3416 # environment. Also bump switch table size so that cp-parse will
3417 # compile. Bump string length limit so linker builds.
3418 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3419 ;;
3420 mips*-*-sysv4*)
3421 host_makefile_frag="config/mh-sysv4"
3422 ;;
3423 mips*-*-sysv*)
3424 # This is for a MIPS running RISC/os 4.52C.
3425
3426 # This is needed for GDB, but needs to be in the top-level make because
3427 # if a library is compiled with the bsd headers and gets linked with the
3428 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3429 # a different size).
3430 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3431 # known except to select the sysv environment. Could we use /proc instead?
3432 # These "sysv environments" and "bsd environments" often end up being a pain.
3433 #
3434 # This is not part of CFLAGS because perhaps not all C compilers have this
3435 # option.
3436 tentative_cc="cc -systype sysv"
3437 ;;
3438 i370-ibm-opened*)
3439 tentative_cc="c89"
3440 ;;
ec11bdc6 3441 i[3456789]86-*-sysv5*)
a0da8069
NN
3442 host_makefile_frag="config/mh-sysv5"
3443 ;;
ec11bdc6 3444 i[3456789]86-*-dgux*)
a0da8069
NN
3445 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3446 host_makefile_frag="config/mh-dgux386"
3447 ;;
ec11bdc6 3448 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3449 # The MetaWare compiler will generate a copyright message unless you
3450 # turn it off by adding the -Hnocopyr flag.
3451 tentative_cc="cc -Hnocopyr"
3452 ;;
ec11bdc6 3453 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3454 # for an NCR 3000 (i486/SVR4) system.
3455 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3456 # This compiler not only emits obnoxious copyright messages every time
3457 # you run it, but it chokes and dies on a whole bunch of GNU source
3458 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3459 tentative_cc="/usr/ccs/ATT/cc"
3460 host_makefile_frag="config/mh-ncr3000"
3461 ;;
ec11bdc6 3462 i[3456789]86-*-sco3.2v5*)
a0da8069 3463 ;;
ec11bdc6 3464 i[3456789]86-*-sco*)
a0da8069
NN
3465 # The native C compiler botches some simple uses of const. Unfortunately,
3466 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3467 tentative_cc="cc -Dconst="
3468 host_makefile_frag="config/mh-sco"
3469 ;;
ec11bdc6 3470 i[3456789]86-*-udk*)
a0da8069
NN
3471 host_makefile_frag="config/mh-sysv5"
3472 ;;
ec11bdc6 3473 i[3456789]86-*-solaris2*)
a0da8069
NN
3474 host_makefile_frag="config/mh-sysv4"
3475 ;;
ec11bdc6 3476 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3477 host_makefile_frag="config/mh-djgpp"
3478 ;;
3479 *-cygwin*)
e33b51a6 3480
81ecdfbb
RW
3481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3482$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6
NC
3483echo a >cygwin-cat-check
3484if test `cat cygwin-cat-check` == a ; then
8ade07e9 3485 rm cygwin-cat-check
81ecdfbb
RW
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487$as_echo "yes" >&6; }
e33b51a6 3488else
8ade07e9 3489 rm cygwin-cat-check
81ecdfbb
RW
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3491$as_echo "no" >&6; }
3492 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3493 Please either mount the build directory in binary mode or run the following
3494 commands before running any configure script:
3495set -o igncr
3496export SHELLOPTS
81ecdfbb 3497 " "$LINENO" 5
e33b51a6 3498fi
e33b51a6 3499
a0da8069
NN
3500 host_makefile_frag="config/mh-cygwin"
3501 ;;
8a1599ab 3502 *-mingw*)
84e7906e 3503 host_makefile_frag="config/mh-mingw"
2d1e8239 3504 ;;
a0da8069
NN
3505 *-interix*)
3506 host_makefile_frag="config/mh-interix"
3507 ;;
3508 vax-*-ultrix2*)
3509 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3510 tentative_cc=gcc
3511 ;;
3512 *-*-solaris2*)
3513 host_makefile_frag="config/mh-solaris"
3514 ;;
3515 m68k-sun-sunos*)
3516 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3517 # without overflowing the jump tables (-J says to use a 32 bit table)
3518 tentative_cc="cc -J"
3519 ;;
da888c87 3520 hppa*-hp-hpux10*)
a0da8069 3521 tentative_cc="cc -Wp,-H256000"
da888c87 3522 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3523 ;;
da888c87
PB
3524 hppa*-hp-hpux* | hppa*-*-hiux*)
3525 tentative_cc="cc -Wp,-H256000"
3526 host_makefile_frag="config/mh-pa"
3527 ;;
3528 hppa*-*)
3529 host_makefile_frag="config/mh-pa"
3530 ;;
3531 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3532 tentative_cc="cc -Wp,-H256000"
3533 ;;
3534 rs6000-*-lynxos*)
3535 # /bin/cc is less than useful for our purposes. Always use GCC
3536 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3537 host_makefile_frag="config/mh-lynxrs6k"
3538 ;;
0df3d27f
PB
3539 powerpc-*-darwin*)
3540 host_makefile_frag="config/mh-ppc-darwin"
3541 ;;
f6d183c0
PB
3542 powerpc-*-aix*)
3543 host_makefile_frag="config/mh-ppc-aix"
3544 ;;
3545 rs6000-*-aix*)
3546 host_makefile_frag="config/mh-ppc-aix"
3547 ;;
a0da8069
NN
3548 *-*-lynxos*)
3549 # /bin/cc is less than useful for our purposes. Always use GCC
3550 tentative_cc="/bin/gcc"
3551 ;;
3552 *-*-sysv4*)
3553 host_makefile_frag="config/mh-sysv4"
3554 ;;
fe69863c
DD
3555 # This is placed last to prevent interfering with the cases above.
3556 i[3456789]86-*-*)
3557 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3558 host_makefile_frag="config/mh-x86omitfp"
3559 ;;
a0da8069
NN
3560esac
3561fi
3562
9e07f89d
NN
3563# If we aren't going to be using gcc, see if we can extract a definition
3564# of CC from the fragment.
3565# Actually, use the 'pre-extracted' version above.
3566if test -z "${CC}" && test "${build}" = "${host}" ; then
3567 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3568 found=
3569 for dir in $PATH; do
3570 test -z "$dir" && dir=.
3571 if test -f $dir/gcc; then
3572 found=yes
3573 break
3574 fi
3575 done
3576 IFS="$save_ifs"
3577 if test -z "${found}" && test -n "${tentative_cc}" ; then
3578 CC=$tentative_cc
3579 fi
3580fi
3581
3582if test "${build}" != "${host}" ; then
1576798e
PB
3583 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3584 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3585 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3586 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3587 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3588 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3589 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3590 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3591 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3592 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3593 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3594 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3595else
3596 AR_FOR_BUILD="\$(AR)"
3597 AS_FOR_BUILD="\$(AS)"
512b7dfb 3598 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3599 CXX_FOR_BUILD="\$(CXX)"
3600 GCJ_FOR_BUILD="\$(GCJ)"
3601 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3602 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3603 LD_FOR_BUILD="\$(LD)"
3604 NM_FOR_BUILD="\$(NM)"
3605 RANLIB_FOR_BUILD="\$(RANLIB)"
3606 WINDRES_FOR_BUILD="\$(WINDRES)"
3607 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3608fi
3609
3610ac_ext=c
c6b750e1
DJ
3611ac_cpp='$CPP $CPPFLAGS'
3612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3614ac_compiler_gnu=$ac_cv_c_compiler_gnu
3615if test -n "$ac_tool_prefix"; then
3616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3617set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619$as_echo_n "checking for $ac_word... " >&6; }
3620if test "${ac_cv_prog_CC+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3622else
3623 if test -n "$CC"; then
3624 ac_cv_prog_CC="$CC" # Let the user override the test.
3625else
3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627for as_dir in $PATH
3628do
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3635 break 2
3636 fi
3637done
81ecdfbb
RW
3638 done
3639IFS=$as_save_IFS
c6b750e1
DJ
3640
3641fi
3642fi
3643CC=$ac_cv_prog_CC
3644if test -n "$CC"; then
81ecdfbb
RW
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3646$as_echo "$CC" >&6; }
c6b750e1 3647else
81ecdfbb
RW
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649$as_echo "no" >&6; }
c6b750e1
DJ
3650fi
3651
81ecdfbb 3652
c6b750e1
DJ
3653fi
3654if test -z "$ac_cv_prog_CC"; then
3655 ac_ct_CC=$CC
6a9cf61e 3656 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3657set dummy gcc; ac_word=$2
81ecdfbb
RW
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659$as_echo_n "checking for $ac_word... " >&6; }
3660if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3662else
3663 if test -n "$ac_ct_CC"; then
3664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3665else
3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3673 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3675 break 2
3676 fi
3677done
81ecdfbb
RW
3678 done
3679IFS=$as_save_IFS
c6b750e1
DJ
3680
3681fi
3682fi
3683ac_ct_CC=$ac_cv_prog_ac_ct_CC
3684if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3686$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3687else
81ecdfbb
RW
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689$as_echo "no" >&6; }
c6b750e1
DJ
3690fi
3691
81ecdfbb
RW
3692 if test "x$ac_ct_CC" = x; then
3693 CC=""
3694 else
3695 case $cross_compiling:$ac_tool_warned in
3696yes:)
3697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3699ac_tool_warned=yes ;;
3700esac
3701 CC=$ac_ct_CC
3702 fi
c6b750e1
DJ
3703else
3704 CC="$ac_cv_prog_CC"
3705fi
3706
3707if test -z "$CC"; then
81ecdfbb
RW
3708 if test -n "$ac_tool_prefix"; then
3709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3710set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712$as_echo_n "checking for $ac_word... " >&6; }
3713if test "${ac_cv_prog_CC+set}" = set; then :
3714 $as_echo_n "(cached) " >&6
9e07f89d
NN
3715else
3716 if test -n "$CC"; then
3717 ac_cv_prog_CC="$CC" # Let the user override the test.
3718else
c6b750e1
DJ
3719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720for as_dir in $PATH
3721do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3726 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3728 break 2
3729 fi
3730done
81ecdfbb
RW
3731 done
3732IFS=$as_save_IFS
c6b750e1 3733
9e07f89d
NN
3734fi
3735fi
c6b750e1 3736CC=$ac_cv_prog_CC
9e07f89d 3737if test -n "$CC"; then
81ecdfbb
RW
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3739$as_echo "$CC" >&6; }
c6b750e1 3740else
81ecdfbb
RW
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3742$as_echo "no" >&6; }
c6b750e1
DJ
3743fi
3744
c6b750e1 3745
81ecdfbb 3746 fi
c6b750e1 3747fi
9e07f89d
NN
3748if test -z "$CC"; then
3749 # Extract the first word of "cc", so it can be a program name with args.
3750set dummy cc; ac_word=$2
81ecdfbb
RW
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752$as_echo_n "checking for $ac_word... " >&6; }
3753if test "${ac_cv_prog_CC+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
9e07f89d
NN
3755else
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758else
9e07f89d 3759 ac_prog_rejected=no
c6b750e1
DJ
3760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761for as_dir in $PATH
3762do
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3768 ac_prog_rejected=yes
3769 continue
3770 fi
3771 ac_cv_prog_CC="cc"
81ecdfbb 3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3773 break 2
3774 fi
3775done
81ecdfbb
RW
3776 done
3777IFS=$as_save_IFS
c6b750e1 3778
9e07f89d
NN
3779if test $ac_prog_rejected = yes; then
3780 # We found a bogon in the path, so make sure we never use it.
3781 set dummy $ac_cv_prog_CC
3782 shift
c6b750e1 3783 if test $# != 0; then
9e07f89d
NN
3784 # We chose a different compiler from the bogus one.
3785 # However, it has the same basename, so the bogon will be chosen
3786 # first if we set CC to just the basename; use the full file name.
3787 shift
c6b750e1 3788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3789 fi
3790fi
3791fi
3792fi
c6b750e1 3793CC=$ac_cv_prog_CC
9e07f89d 3794if test -n "$CC"; then
81ecdfbb
RW
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796$as_echo "$CC" >&6; }
9e07f89d 3797else
81ecdfbb
RW
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799$as_echo "no" >&6; }
9e07f89d
NN
3800fi
3801
81ecdfbb 3802
c6b750e1
DJ
3803fi
3804if test -z "$CC"; then
3805 if test -n "$ac_tool_prefix"; then
81ecdfbb 3806 for ac_prog in cl.exe
c6b750e1
DJ
3807 do
3808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3809set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811$as_echo_n "checking for $ac_word... " >&6; }
3812if test "${ac_cv_prog_CC+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
9e07f89d
NN
3814else
3815 if test -n "$CC"; then
3816 ac_cv_prog_CC="$CC" # Let the user override the test.
3817else
c6b750e1
DJ
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3827 break 2
376a0e54 3828 fi
c6b750e1 3829done
81ecdfbb
RW
3830 done
3831IFS=$as_save_IFS
cac3d6c4 3832
c6b750e1
DJ
3833fi
3834fi
3835CC=$ac_cv_prog_CC
3836if test -n "$CC"; then
81ecdfbb
RW
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3838$as_echo "$CC" >&6; }
cac3d6c4 3839else
81ecdfbb
RW
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841$as_echo "no" >&6; }
9e07f89d 3842fi
cac3d6c4 3843
81ecdfbb 3844
c6b750e1
DJ
3845 test -n "$CC" && break
3846 done
cac3d6c4 3847fi
c6b750e1
DJ
3848if test -z "$CC"; then
3849 ac_ct_CC=$CC
81ecdfbb 3850 for ac_prog in cl.exe
c6b750e1
DJ
3851do
3852 # Extract the first word of "$ac_prog", so it can be a program name with args.
3853set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855$as_echo_n "checking for $ac_word... " >&6; }
3856if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
cac3d6c4 3858else
c6b750e1
DJ
3859 if test -n "$ac_ct_CC"; then
3860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3861else
c6b750e1
DJ
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3869 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3871 break 2
3872 fi
3873done
81ecdfbb
RW
3874 done
3875IFS=$as_save_IFS
c6b750e1 3876
cac3d6c4
CM
3877fi
3878fi
c6b750e1
DJ
3879ac_ct_CC=$ac_cv_prog_ac_ct_CC
3880if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3882$as_echo "$ac_ct_CC" >&6; }
9e07f89d 3883else
81ecdfbb
RW
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
cac3d6c4 3886fi
376a0e54 3887
81ecdfbb 3888
c6b750e1
DJ
3889 test -n "$ac_ct_CC" && break
3890done
3891
81ecdfbb
RW
3892 if test "x$ac_ct_CC" = x; then
3893 CC=""
3894 else
3895 case $cross_compiling:$ac_tool_warned in
3896yes:)
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3898$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3899ac_tool_warned=yes ;;
3900esac
3901 CC=$ac_ct_CC
3902 fi
c6b750e1
DJ
3903fi
3904
3905fi
3906
3907
81ecdfbb
RW
3908test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910as_fn_error "no acceptable C compiler found in \$PATH
3911See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
3912
3913# Provide some information about the compiler.
81ecdfbb
RW
3914$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3915set X $ac_compile
3916ac_compiler=$2
3917for ac_option in --version -v -V -qversion; do
3918 { { ac_try="$ac_compiler $ac_option >&5"
3919case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922esac
3923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3924$as_echo "$ac_try_echo"; } >&5
3925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 3926 ac_status=$?
81ecdfbb
RW
3927 if test -s conftest.err; then
3928 sed '10a\
3929... rest of stderr output deleted ...
3930 10q' conftest.err >conftest.er1
3931 cat conftest.er1 >&5
3932 rm -f conftest.er1 conftest.err
3933 fi
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }
3936done
c6b750e1 3937
81ecdfbb 3938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
3939/* end confdefs.h. */
3940
3941int
3942main ()
3943{
3944
3945 ;
3946 return 0;
3947}
3948_ACEOF
3949ac_clean_files_save=$ac_clean_files
81ecdfbb 3950ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
3951# Try to create an executable without -o first, disregard a.out.
3952# It will help us diagnose broken compilers, and finding out an intuition
3953# of exeext.
81ecdfbb
RW
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3955$as_echo_n "checking for C compiler default output file name... " >&6; }
3956ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3957
3958# The possible output files:
3959ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3960
3961ac_rmfiles=
3962for ac_file in $ac_files
3963do
3964 case $ac_file in
3965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3967 esac
3968done
3969rm -f $ac_rmfiles
3970
3971if { { ac_try="$ac_link_default"
3972case "(($ac_try" in
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3975esac
3976eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3977$as_echo "$ac_try_echo"; } >&5
3978 (eval "$ac_link_default") 2>&5
c6b750e1 3979 ac_status=$?
81ecdfbb
RW
3980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3981 test $ac_status = 0; }; then :
3982 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3983# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3984# in a Makefile. We should not override ac_cv_exeext if it was cached,
3985# so that the user can short-circuit this test for compilers unknown to
3986# Autoconf.
3987for ac_file in $ac_files ''
c6b750e1
DJ
3988do
3989 test -f "$ac_file" || continue
3990 case $ac_file in
81ecdfbb 3991 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
3992 ;;
3993 [ab].out )
3994 # We found the default executable, but exeext='' is most
3995 # certainly right.
3996 break;;
3997 *.* )
81ecdfbb
RW
3998 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3999 then :; else
4000 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4001 fi
4002 # We set ac_cv_exeext here because the later test for it is not
4003 # safe: cross compilers may not add the suffix if given an `-o'
4004 # argument, so we may need to know it at that point already.
4005 # Even if this section looks crufty: it has the advantage of
4006 # actually working.
c6b750e1
DJ
4007 break;;
4008 * )
4009 break;;
4010 esac
4011done
81ecdfbb
RW
4012test "$ac_cv_exeext" = no && ac_cv_exeext=
4013
c6b750e1 4014else
81ecdfbb
RW
4015 ac_file=''
4016fi
4017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4018$as_echo "$ac_file" >&6; }
4019if test -z "$ac_file"; then :
4020 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
81ecdfbb
RW
4023{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4025{ as_fn_set_status 77
4026as_fn_error "C compiler cannot create executables
4027See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4028fi
c6b750e1 4029ac_exeext=$ac_cv_exeext
c6b750e1 4030
81ecdfbb 4031# Check that the compiler produces executables we can run. If not, either
c6b750e1 4032# the compiler is broken, or we cross compile.
81ecdfbb
RW
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4034$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4035# If not cross compiling, check that we can run a simple program.
4036if test "$cross_compiling" != yes; then
4037 if { ac_try='./$ac_file'
81ecdfbb
RW
4038 { { case "(($ac_try" in
4039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040 *) ac_try_echo=$ac_try;;
4041esac
4042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4043$as_echo "$ac_try_echo"; } >&5
4044 (eval "$ac_try") 2>&5
c6b750e1 4045 ac_status=$?
81ecdfbb
RW
4046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4047 test $ac_status = 0; }; }; then
c6b750e1
DJ
4048 cross_compiling=no
4049 else
4050 if test "$cross_compiling" = maybe; then
4051 cross_compiling=yes
4052 else
81ecdfbb
RW
4053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4055as_fn_error "cannot run C compiled programs.
c6b750e1 4056If you meant to cross compile, use \`--host'.
81ecdfbb 4057See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4058 fi
4059 fi
4060fi
81ecdfbb
RW
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4062$as_echo "yes" >&6; }
c6b750e1 4063
81ecdfbb 4064rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4065ac_clean_files=$ac_clean_files_save
81ecdfbb 4066# Check that the compiler produces executables we can run. If not, either
c6b750e1 4067# the compiler is broken, or we cross compile.
81ecdfbb
RW
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4069$as_echo_n "checking whether we are cross compiling... " >&6; }
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4071$as_echo "$cross_compiling" >&6; }
4072
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4074$as_echo_n "checking for suffix of executables... " >&6; }
4075if { { ac_try="$ac_link"
4076case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081$as_echo "$ac_try_echo"; } >&5
4082 (eval "$ac_link") 2>&5
c6b750e1 4083 ac_status=$?
81ecdfbb
RW
4084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085 test $ac_status = 0; }; then :
c6b750e1
DJ
4086 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4087# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4088# work properly (i.e., refer to `conftest.exe'), while it won't with
4089# `rm'.
4090for ac_file in conftest.exe conftest conftest.*; do
4091 test -f "$ac_file" || continue
4092 case $ac_file in
81ecdfbb 4093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4094 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4095 break;;
4096 * ) break;;
4097 esac
4098done
4099else
81ecdfbb
RW
4100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102as_fn_error "cannot compute suffix of executables: cannot compile and link
4103See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4104fi
c6b750e1 4105rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4107$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4108
4109rm -f conftest.$ac_ext
4110EXEEXT=$ac_cv_exeext
4111ac_exeext=$EXEEXT
81ecdfbb
RW
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4113$as_echo_n "checking for suffix of object files... " >&6; }
4114if test "${ac_cv_objext+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
c6b750e1 4116else
81ecdfbb 4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4118/* end confdefs.h. */
4119
4120int
4121main ()
4122{
4123
4124 ;
4125 return 0;
4126}
4127_ACEOF
4128rm -f conftest.o conftest.obj
81ecdfbb
RW
4129if { { ac_try="$ac_compile"
4130case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133esac
4134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135$as_echo "$ac_try_echo"; } >&5
4136 (eval "$ac_compile") 2>&5
c6b750e1 4137 ac_status=$?
81ecdfbb
RW
4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }; then :
4140 for ac_file in conftest.o conftest.obj conftest.*; do
4141 test -f "$ac_file" || continue;
c6b750e1 4142 case $ac_file in
81ecdfbb 4143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4145 break;;
4146 esac
4147done
cac3d6c4 4148else
81ecdfbb 4149 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4150sed 's/^/| /' conftest.$ac_ext >&5
4151
81ecdfbb
RW
4152{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4154as_fn_error "cannot compute suffix of object files: cannot compile
4155See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4156fi
c6b750e1
DJ
4157rm -f conftest.$ac_cv_objext conftest.$ac_ext
4158fi
81ecdfbb
RW
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4160$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4161OBJEXT=$ac_cv_objext
4162ac_objext=$OBJEXT
81ecdfbb
RW
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4164$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4165if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4166 $as_echo_n "(cached) " >&6
c6b750e1 4167else
81ecdfbb 4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4169/* end confdefs.h. */
4170
4171int
4172main ()
4173{
4174#ifndef __GNUC__
4175 choke me
4176#endif
4177
4178 ;
4179 return 0;
4180}
4181_ACEOF
81ecdfbb 4182if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4183 ac_compiler_gnu=yes
4184else
81ecdfbb 4185 ac_compiler_gnu=no
c6b750e1 4186fi
81ecdfbb 4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4188ac_cv_c_compiler_gnu=$ac_compiler_gnu
4189
4190fi
81ecdfbb
RW
4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4192$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4193if test $ac_compiler_gnu = yes; then
4194 GCC=yes
4195else
4196 GCC=
4197fi
c6b750e1
DJ
4198ac_test_CFLAGS=${CFLAGS+set}
4199ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4201$as_echo_n "checking whether $CC accepts -g... " >&6; }
4202if test "${ac_cv_prog_cc_g+set}" = set; then :
4203 $as_echo_n "(cached) " >&6
4204else
4205 ac_save_c_werror_flag=$ac_c_werror_flag
4206 ac_c_werror_flag=yes
4207 ac_cv_prog_cc_g=no
4208 CFLAGS="-g"
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4210/* end confdefs.h. */
4211
4212int
4213main ()
4214{
4215
4216 ;
4217 return 0;
4218}
4219_ACEOF
81ecdfbb 4220if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4221 ac_cv_prog_cc_g=yes
4222else
81ecdfbb
RW
4223 CFLAGS=""
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225/* end confdefs.h. */
4226
4227int
4228main ()
4229{
4230
4231 ;
4232 return 0;
4233}
4234_ACEOF
4235if ac_fn_c_try_compile "$LINENO"; then :
4236
4237else
4238 ac_c_werror_flag=$ac_save_c_werror_flag
4239 CFLAGS="-g"
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h. */
cac3d6c4 4242
81ecdfbb
RW
4243int
4244main ()
4245{
4246
4247 ;
4248 return 0;
4249}
4250_ACEOF
4251if ac_fn_c_try_compile "$LINENO"; then :
4252 ac_cv_prog_cc_g=yes
4253fi
4254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4255fi
81ecdfbb 4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4257fi
81ecdfbb
RW
4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 ac_c_werror_flag=$ac_save_c_werror_flag
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4262$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4263if test "$ac_test_CFLAGS" = set; then
c6b750e1 4264 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4265elif test $ac_cv_prog_cc_g = yes; then
4266 if test "$GCC" = yes; then
4267 CFLAGS="-g -O2"
4268 else
4269 CFLAGS="-g"
4270 fi
4271else
4272 if test "$GCC" = yes; then
4273 CFLAGS="-O2"
4274 else
4275 CFLAGS=
4276 fi
4277fi
81ecdfbb
RW
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4279$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4280if test "${ac_cv_prog_cc_c89+set}" = set; then :
4281 $as_echo_n "(cached) " >&6
c6b750e1 4282else
81ecdfbb 4283 ac_cv_prog_cc_c89=no
c6b750e1 4284ac_save_CC=$CC
81ecdfbb 4285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4286/* end confdefs.h. */
4287#include <stdarg.h>
4288#include <stdio.h>
4289#include <sys/types.h>
4290#include <sys/stat.h>
4291/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4292struct buf { int x; };
4293FILE * (*rcsopen) (struct buf *, struct stat *, int);
4294static char *e (p, i)
4295 char **p;
4296 int i;
4297{
4298 return p[i];
4299}
4300static char *f (char * (*g) (char **, int), char **p, ...)
4301{
4302 char *s;
4303 va_list v;
4304 va_start (v,p);
4305 s = g (p, va_arg (v,int));
4306 va_end (v);
4307 return s;
4308}
4309
4310/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4311 function prototypes and stuff, but not '\xHH' hex character constants.
4312 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4313 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4314 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4315 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4316 that's true only with -std. */
c6b750e1
DJ
4317int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4318
81ecdfbb
RW
4319/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4320 inside strings and character constants. */
4321#define FOO(x) 'x'
4322int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4323
c6b750e1
DJ
4324int test (int i, double x);
4325struct s1 {int (*f) (int a);};
4326struct s2 {int (*f) (double a);};
4327int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4328int argc;
4329char **argv;
4330int
4331main ()
4332{
4333return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4334 ;
4335 return 0;
4336}
4337_ACEOF
81ecdfbb
RW
4338for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4339 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4340do
4341 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4342 if ac_fn_c_try_compile "$LINENO"; then :
4343 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4344fi
81ecdfbb
RW
4345rm -f core conftest.err conftest.$ac_objext
4346 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4347done
81ecdfbb 4348rm -f conftest.$ac_ext
c6b750e1
DJ
4349CC=$ac_save_CC
4350
4351fi
81ecdfbb
RW
4352# AC_CACHE_VAL
4353case "x$ac_cv_prog_cc_c89" in
4354 x)
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4356$as_echo "none needed" >&6; } ;;
4357 xno)
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4359$as_echo "unsupported" >&6; } ;;
c6b750e1 4360 *)
81ecdfbb
RW
4361 CC="$CC $ac_cv_prog_cc_c89"
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4363$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4364esac
81ecdfbb 4365if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4366
c6b750e1
DJ
4367fi
4368
c6b750e1
DJ
4369ac_ext=c
4370ac_cpp='$CPP $CPPFLAGS'
4371ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4372ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4373ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4374
81ecdfbb 4375ac_ext=cpp
18f6b6ee
PB
4376ac_cpp='$CXXCPP $CPPFLAGS'
4377ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4380if test -z "$CXX"; then
4381 if test -n "$CCC"; then
4382 CXX=$CCC
4383 else
4384 if test -n "$ac_tool_prefix"; then
4385 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4386 do
4387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390$as_echo_n "checking for $ac_word... " >&6; }
4391if test "${ac_cv_prog_CXX+set}" = set; then :
4392 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4393else
4394 if test -n "$CXX"; then
4395 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4396else
4397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398for as_dir in $PATH
4399do
4400 IFS=$as_save_IFS
4401 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4404 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4406 break 2
4407 fi
4408done
81ecdfbb
RW
4409 done
4410IFS=$as_save_IFS
512b7dfb 4411
18f6b6ee
PB
4412fi
4413fi
4414CXX=$ac_cv_prog_CXX
4415if test -n "$CXX"; then
81ecdfbb
RW
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4417$as_echo "$CXX" >&6; }
18f6b6ee 4418else
81ecdfbb
RW
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420$as_echo "no" >&6; }
18f6b6ee
PB
4421fi
4422
81ecdfbb 4423
18f6b6ee
PB
4424 test -n "$CXX" && break
4425 done
4426fi
4427if test -z "$CXX"; then
4428 ac_ct_CXX=$CXX
81ecdfbb 4429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4430do
4431 # Extract the first word of "$ac_prog", so it can be a program name with args.
4432set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434$as_echo_n "checking for $ac_word... " >&6; }
4435if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4437else
4438 if test -n "$ac_ct_CXX"; then
4439 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4440else
4441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH
4443do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4448 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4450 break 2
512b7dfb 4451 fi
18f6b6ee 4452done
81ecdfbb
RW
4453 done
4454IFS=$as_save_IFS
512b7dfb 4455
18f6b6ee
PB
4456fi
4457fi
4458ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4459if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4461$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4462else
81ecdfbb
RW
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464$as_echo "no" >&6; }
18f6b6ee
PB
4465fi
4466
81ecdfbb 4467
18f6b6ee
PB
4468 test -n "$ac_ct_CXX" && break
4469done
18f6b6ee 4470
81ecdfbb
RW
4471 if test "x$ac_ct_CXX" = x; then
4472 CXX="g++"
4473 else
4474 case $cross_compiling:$ac_tool_warned in
4475yes:)
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4478ac_tool_warned=yes ;;
4479esac
4480 CXX=$ac_ct_CXX
4481 fi
18f6b6ee
PB
4482fi
4483
81ecdfbb
RW
4484 fi
4485fi
18f6b6ee 4486# Provide some information about the compiler.
81ecdfbb
RW
4487$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4488set X $ac_compile
4489ac_compiler=$2
4490for ac_option in --version -v -V -qversion; do
4491 { { ac_try="$ac_compiler $ac_option >&5"
4492case "(($ac_try" in
4493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494 *) ac_try_echo=$ac_try;;
4495esac
4496eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4497$as_echo "$ac_try_echo"; } >&5
4498 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4499 ac_status=$?
81ecdfbb
RW
4500 if test -s conftest.err; then
4501 sed '10a\
4502... rest of stderr output deleted ...
4503 10q' conftest.err >conftest.er1
4504 cat conftest.er1 >&5
4505 rm -f conftest.er1 conftest.err
4506 fi
4507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508 test $ac_status = 0; }
4509done
18f6b6ee 4510
81ecdfbb
RW
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4512$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4513if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4514 $as_echo_n "(cached) " >&6
18f6b6ee 4515else
81ecdfbb 4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4517/* end confdefs.h. */
4518
4519int
4520main ()
4521{
4522#ifndef __GNUC__
4523 choke me
4524#endif
4525
4526 ;
4527 return 0;
4528}
4529_ACEOF
81ecdfbb 4530if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4531 ac_compiler_gnu=yes
4532else
81ecdfbb 4533 ac_compiler_gnu=no
18f6b6ee 4534fi
81ecdfbb 4535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4536ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4537
4538fi
81ecdfbb
RW
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4540$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4541if test $ac_compiler_gnu = yes; then
4542 GXX=yes
4543else
4544 GXX=
4545fi
18f6b6ee
PB
4546ac_test_CXXFLAGS=${CXXFLAGS+set}
4547ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4549$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4550if test "${ac_cv_prog_cxx_g+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4552else
4553 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4554 ac_cxx_werror_flag=yes
4555 ac_cv_prog_cxx_g=no
4556 CXXFLAGS="-g"
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4558/* end confdefs.h. */
4559
4560int
4561main ()
4562{
4563
4564 ;
4565 return 0;
4566}
4567_ACEOF
81ecdfbb 4568if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4569 ac_cv_prog_cxx_g=yes
4570else
81ecdfbb
RW
4571 CXXFLAGS=""
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4573/* end confdefs.h. */
81ecdfbb 4574
18f6b6ee
PB
4575int
4576main ()
4577{
81ecdfbb 4578
18f6b6ee
PB
4579 ;
4580 return 0;
4581}
4582_ACEOF
81ecdfbb 4583if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4584
81ecdfbb
RW
4585else
4586 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4587 CXXFLAGS="-g"
4588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4589/* end confdefs.h. */
81ecdfbb 4590
18f6b6ee
PB
4591int
4592main ()
4593{
81ecdfbb 4594
18f6b6ee
PB
4595 ;
4596 return 0;
4597}
4598_ACEOF
81ecdfbb
RW
4599if ac_fn_cxx_try_compile "$LINENO"; then :
4600 ac_cv_prog_cxx_g=yes
18f6b6ee 4601fi
81ecdfbb
RW
4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603fi
4604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605fi
4606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4610$as_echo "$ac_cv_prog_cxx_g" >&6; }
4611if test "$ac_test_CXXFLAGS" = set; then
4612 CXXFLAGS=$ac_save_CXXFLAGS
4613elif test $ac_cv_prog_cxx_g = yes; then
4614 if test "$GXX" = yes; then
4615 CXXFLAGS="-g -O2"
4616 else
4617 CXXFLAGS="-g"
4618 fi
4619else
4620 if test "$GXX" = yes; then
4621 CXXFLAGS="-O2"
4622 else
4623 CXXFLAGS=
4624 fi
18f6b6ee 4625fi
18f6b6ee
PB
4626ac_ext=c
4627ac_cpp='$CPP $CPPFLAGS'
4628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631
4632
4633# We must set the default linker to the linker used by gcc for the correct
4634# operation of libtool. If LD is not defined and we are using gcc, try to
4635# set the LD default to the ld used by gcc.
4636if test -z "$LD"; then
4637 if test "$GCC" = yes; then
4638 case $build in
4639 *-*-mingw*)
4640 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4641 *)
4642 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4643 esac
4644 case $gcc_prog_ld in
4645 # Accept absolute paths.
4646 [\\/]* | [A-Za-z]:[\\/]*)
4647 LD="$gcc_prog_ld" ;;
4648 esac
4649 fi
512b7dfb
PB
4650fi
4651
4652
4653
4654
c6b750e1 4655if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4656 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4657set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659$as_echo_n "checking for $ac_word... " >&6; }
4660if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
9e07f89d 4662else
512b7dfb
PB
4663 if test -n "$GNATBIND"; then
4664 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4665else
c6b750e1
DJ
4666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667for as_dir in $PATH
4668do
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4673 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4675 break 2
4676 fi
4677done
81ecdfbb
RW
4678 done
4679IFS=$as_save_IFS
c6b750e1 4680
9e07f89d
NN
4681fi
4682fi
512b7dfb
PB
4683GNATBIND=$ac_cv_prog_GNATBIND
4684if test -n "$GNATBIND"; then
81ecdfbb
RW
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4686$as_echo "$GNATBIND" >&6; }
9e07f89d 4687else
81ecdfbb
RW
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689$as_echo "no" >&6; }
9e07f89d
NN
4690fi
4691
81ecdfbb 4692
c6b750e1 4693fi
512b7dfb
PB
4694if test -z "$ac_cv_prog_GNATBIND"; then
4695 ac_ct_GNATBIND=$GNATBIND
4696 # Extract the first word of "gnatbind", so it can be a program name with args.
4697set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; }
4700if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
9e07f89d 4702else
512b7dfb
PB
4703 if test -n "$ac_ct_GNATBIND"; then
4704 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4705else
c6b750e1
DJ
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4713 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4715 break 2
4716 fi
4717done
81ecdfbb
RW
4718 done
4719IFS=$as_save_IFS
c6b750e1 4720
9e07f89d
NN
4721fi
4722fi
512b7dfb
PB
4723ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4724if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4726$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4727else
81ecdfbb
RW
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729$as_echo "no" >&6; }
9e07f89d
NN
4730fi
4731
81ecdfbb
RW
4732 if test "x$ac_ct_GNATBIND" = x; then
4733 GNATBIND="no"
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736yes:)
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739ac_tool_warned=yes ;;
4740esac
4741 GNATBIND=$ac_ct_GNATBIND
4742 fi
24ff9987 4743else
512b7dfb 4744 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4745fi
4746
7df2cd5d 4747if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4748 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4749set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4751$as_echo_n "checking for $ac_word... " >&6; }
4752if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4753 $as_echo_n "(cached) " >&6
7df2cd5d 4754else
512b7dfb
PB
4755 if test -n "$GNATMAKE"; then
4756 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4757else
4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759for as_dir in $PATH
4760do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4765 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4767 break 2
4768 fi
4769done
81ecdfbb
RW
4770 done
4771IFS=$as_save_IFS
7df2cd5d
PB
4772
4773fi
4774fi
512b7dfb
PB
4775GNATMAKE=$ac_cv_prog_GNATMAKE
4776if test -n "$GNATMAKE"; then
81ecdfbb
RW
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4778$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4779else
81ecdfbb
RW
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4781$as_echo "no" >&6; }
7df2cd5d
PB
4782fi
4783
81ecdfbb 4784
7df2cd5d 4785fi
512b7dfb
PB
4786if test -z "$ac_cv_prog_GNATMAKE"; then
4787 ac_ct_GNATMAKE=$GNATMAKE
4788 # Extract the first word of "gnatmake", so it can be a program name with args.
4789set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4791$as_echo_n "checking for $ac_word... " >&6; }
4792if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
7df2cd5d 4794else
512b7dfb
PB
4795 if test -n "$ac_ct_GNATMAKE"; then
4796 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4797else
4798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4805 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4807 break 2
4808 fi
4809done
81ecdfbb
RW
4810 done
4811IFS=$as_save_IFS
7df2cd5d 4812
7df2cd5d
PB
4813fi
4814fi
512b7dfb
PB
4815ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4816if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4818$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4819else
81ecdfbb
RW
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821$as_echo "no" >&6; }
7df2cd5d
PB
4822fi
4823
81ecdfbb
RW
4824 if test "x$ac_ct_GNATMAKE" = x; then
4825 GNATMAKE="no"
4826 else
4827 case $cross_compiling:$ac_tool_warned in
4828yes:)
4829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4831ac_tool_warned=yes ;;
4832esac
4833 GNATMAKE=$ac_ct_GNATMAKE
4834 fi
7df2cd5d 4835else
512b7dfb 4836 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4837fi
4838
81ecdfbb
RW
4839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4840$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4841if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4842 $as_echo_n "(cached) " >&6
9e07f89d
NN
4843else
4844 cat >conftest.adb <<EOF
4845procedure conftest is begin null; end conftest;
4846EOF
4847acx_cv_cc_gcc_supports_ada=no
4848# There is a bug in old released versions of GCC which causes the
4849# driver to exit successfully when the appropriate language module
4850# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4851# Therefore we must check for the error message as well as an
4852# unsuccessful exit.
b8908782
DD
4853# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4854# given a .adb file, but produce no object file. So we must check
4855# if an object file was really produced to guard against this.
9e07f89d 4856errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4857if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4858 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4859fi
4860rm -f conftest.*
4861fi
81ecdfbb
RW
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4863$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 4864
512b7dfb 4865if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4866 have_gnat=yes
4867else
4868 have_gnat=no
4869fi
4870
81ecdfbb
RW
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4872$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4873if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4874 $as_echo_n "(cached) " >&6
b8908782
DD
4875else
4876 echo abfoo >t1
4877 echo cdfoo >t2
4878 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4879 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4880 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4881 :
4882 else
4883 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4884 fi
4885 fi
b8908782
DD
4886 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4887 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4888 :
b8908782
DD
4889 else
4890 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4891 fi
4892 fi
4893 rm t1 t2
4894
4895fi
81ecdfbb
RW
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4897$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
4898do_compare="$gcc_cv_prog_cmp_skip"
4899
4900
9e07f89d 4901
e8a5fa9c 4902# See if we are building gcc with C++.
81ecdfbb
RW
4903# Check whether --enable-build-with-cxx was given.
4904if test "${enable_build_with_cxx+set}" = set; then :
4905 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
4906else
4907 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
4908fi
4909
e8a5fa9c
RW
4910
4911# Check for GMP, MPFR and MPC
4b900473 4912gmplibs="-lmpfr -lgmp"
4b1cb4fe 4913gmpinc=
4b900473 4914have_gmp=no
e8a5fa9c
RW
4915mpclibs=-lmpc
4916mpcinc=
4917have_mpc=no
4918
4919# Specify a location for mpc
4920# check for this first so it ends up on the link line before mpfr.
4921
81ecdfbb
RW
4922# Check whether --with-mpc was given.
4923if test "${with_mpc+set}" = set; then :
4924 withval=$with_mpc;
4925fi
e8a5fa9c 4926
e8a5fa9c 4927
81ecdfbb
RW
4928# Check whether --with-mpc_include was given.
4929if test "${with_mpc_include+set}" = set; then :
4930 withval=$with_mpc_include;
4931fi
e8a5fa9c 4932
e8a5fa9c 4933
81ecdfbb
RW
4934# Check whether --with-mpc_lib was given.
4935if test "${with_mpc_lib+set}" = set; then :
4936 withval=$with_mpc_lib;
4937fi
e8a5fa9c 4938
e8a5fa9c
RW
4939
4940if test "x$with_mpc" != x; then
4941 mpclibs="-L$with_mpc/lib -lmpc"
4942 mpcinc="-I$with_mpc/include $mpcinc"
4943fi
4944if test "x$with_mpc_include" != x; then
4945 mpcinc="-I$with_mpc_include $mpcinc"
4946fi
4947if test "x$with_mpc_lib" != x; then
4948 mpclibs="-L$with_mpc_lib -lmpc"
4949fi
4950if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4951 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
4952 mpcinc='-I$$s/mpc/src '"$mpcinc"
4953 # Do not test the mpc version. Assume that it is sufficient, since
4954 # it is in the source tree, and the library has not been built yet
4955 # but it would be included on the link line in the version check below
4956 # hence making the test fail.
4957 have_mpc=yes
4958fi
4b900473 4959
11b04d1f
DD
4960# Specify a location for mpfr
4961# check for this first so it ends up on the link line before gmp.
c6b750e1 4962
81ecdfbb
RW
4963# Check whether --with-mpfr-dir was given.
4964if test "${with_mpfr_dir+set}" = set; then :
4965 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
4966Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
4967fi
4968
11b04d1f
DD
4969
4970
81ecdfbb
RW
4971# Check whether --with-mpfr was given.
4972if test "${with_mpfr+set}" = set; then :
4973 withval=$with_mpfr;
4974fi
c6b750e1 4975
11b04d1f 4976
81ecdfbb
RW
4977# Check whether --with-mpfr_include was given.
4978if test "${with_mpfr_include+set}" = set; then :
4979 withval=$with_mpfr_include;
4980fi
c6b750e1 4981
8a0d8a5c 4982
81ecdfbb
RW
4983# Check whether --with-mpfr_lib was given.
4984if test "${with_mpfr_lib+set}" = set; then :
4985 withval=$with_mpfr_lib;
4986fi
8a0d8a5c 4987
11b04d1f
DD
4988
4989if test "x$with_mpfr" != x; then
4990 gmplibs="-L$with_mpfr/lib $gmplibs"
4991 gmpinc="-I$with_mpfr/include"
4992fi
8a0d8a5c
PB
4993if test "x$with_mpfr_include" != x; then
4994 gmpinc="-I$with_mpfr_include"
4995fi
4996if test "x$with_mpfr_lib" != x; then
4997 gmplibs="-L$with_mpfr_lib $gmplibs"
4998fi
4b900473
PB
4999if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
5000 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
5001 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
e8a5fa9c 5002 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
4b900473
PB
5003 # Do not test the mpfr version. Assume that it is sufficient, since
5004 # it is in the source tree, and the library has not been built yet
5005 # but it would be included on the link line in the version check below
5006 # hence making the test fail.
5007 have_gmp=yes
5008fi
11b04d1f 5009
4b1cb4fe 5010# Specify a location for gmp
c6b750e1 5011
81ecdfbb
RW
5012# Check whether --with-gmp-dir was given.
5013if test "${with_gmp_dir+set}" = set; then :
5014 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5015Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5016fi
5017
4b1cb4fe
DD
5018
5019
81ecdfbb
RW
5020# Check whether --with-gmp was given.
5021if test "${with_gmp+set}" = set; then :
5022 withval=$with_gmp;
5023fi
c6b750e1 5024
4b1cb4fe 5025
81ecdfbb
RW
5026# Check whether --with-gmp_include was given.
5027if test "${with_gmp_include+set}" = set; then :
5028 withval=$with_gmp_include;
5029fi
c6b750e1 5030
8a0d8a5c 5031
81ecdfbb
RW
5032# Check whether --with-gmp_lib was given.
5033if test "${with_gmp_lib+set}" = set; then :
5034 withval=$with_gmp_lib;
5035fi
8a0d8a5c
PB
5036
5037
4b1cb4fe 5038
11b04d1f
DD
5039if test "x$with_gmp" != x; then
5040 gmplibs="-L$with_gmp/lib $gmplibs"
5041 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5042fi
8a0d8a5c
PB
5043if test "x$with_gmp_include" != x; then
5044 gmpinc="-I$with_gmp_include $gmpinc"
5045fi
5046if test "x$with_gmp_lib" != x; then
5047 gmplibs="-L$with_gmp_lib $gmplibs"
5048fi
4b900473
PB
5049if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5050 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
5051 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
e8a5fa9c
RW
5052 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
5053 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5054 # Do not test the gmp version. Assume that it is sufficient, since
5055 # it is in the source tree, and the library has not been built yet
5056 # but it would be included on the link line in the version check below
5057 # hence making the test fail.
5058 have_gmp=yes
5059fi
4b1cb4fe 5060
ceb92e78 5061if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5062 have_gmp=yes
5063 saved_CFLAGS="$CFLAGS"
5064 CFLAGS="$CFLAGS $gmpinc"
5065 # Check GMP actually works
81ecdfbb
RW
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of gmp.h" >&5
5067$as_echo_n "checking for correct version of gmp.h... " >&6; }
c6b750e1 5068
81ecdfbb 5069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5070/* end confdefs.h. */
4b1cb4fe 5071#include "gmp.h"
c6b750e1
DJ
5072int
5073main ()
5074{
4b1cb4fe 5075
ef699244 5076 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4b900473
PB
5077 choke me
5078 #endif
c6b750e1
DJ
5079
5080 ;
5081 return 0;
5082}
5083_ACEOF
81ecdfbb
RW
5084if ac_fn_c_try_compile "$LINENO"; then :
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5086$as_echo "yes" >&6; }
c6b750e1 5087else
81ecdfbb
RW
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5090fi
81ecdfbb 5091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5092
e8a5fa9c 5093 # If we have GMP, check the MPFR version.
4b900473 5094 if test x"$have_gmp" = xyes; then
81ecdfbb
RW
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of mpfr.h" >&5
5096$as_echo_n "checking for correct version of mpfr.h... " >&6; }
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5098/* end confdefs.h. */
9b134994 5099#include <gmp.h>
4b900473 5100 #include <mpfr.h>
c6b750e1
DJ
5101int
5102main ()
5103{
9b134994 5104
ef699244 5105 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5106 choke me
5107 #endif
c6b750e1
DJ
5108
5109 ;
5110 return 0;
5111}
5112_ACEOF
81ecdfbb
RW
5113if ac_fn_c_try_compile "$LINENO"; then :
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5115/* end confdefs.h. */
4b1cb4fe 5116#include <gmp.h>
4b900473 5117 #include <mpfr.h>
c6b750e1
DJ
5118int
5119main ()
5120{
9dbaa842 5121
e28c595f 5122 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4b900473
PB
5123 choke me
5124 #endif
e8a5fa9c
RW
5125
5126 ;
5127 return 0;
5128}
5129_ACEOF
81ecdfbb
RW
5130if ac_fn_c_try_compile "$LINENO"; then :
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5132$as_echo "yes" >&6; }
e8a5fa9c 5133else
81ecdfbb
RW
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5135$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5136fi
81ecdfbb 5137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5138else
81ecdfbb
RW
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5141fi
81ecdfbb 5142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5143 fi
5144
5145 # Check for the MPC header version.
5146 if test x"$have_mpc" != xyes ; then
5147 CFLAGS="$CFLAGS $mpcinc"
81ecdfbb
RW
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5149$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5151/* end confdefs.h. */
5152#include <mpc.h>
5153int
5154main ()
5155{
5156
5157 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
5158 choke me
5159 #endif
5160
5161 ;
5162 return 0;
5163}
5164_ACEOF
81ecdfbb
RW
5165if ac_fn_c_try_compile "$LINENO"; then :
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5167$as_echo "yes" >&6; }; have_mpc=maybe
e8a5fa9c 5168else
81ecdfbb
RW
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
e8a5fa9c 5171fi
81ecdfbb 5172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5173 fi
5174
5175 # Now check the MPFR library.
5176 if test x"$have_gmp" = xyes; then
5177 saved_LIBS="$LIBS"
5178 LIBS="$LIBS $gmplibs"
81ecdfbb
RW
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
5180$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5182/* end confdefs.h. */
5183#include <gmp.h>
5184 #include <mpfr.h>
5185int
5186main ()
5187{
5188
5189 mpfr_t n;
5190 mpfr_t x;
5191 int t;
5192 mpfr_init (n);
5193 mpfr_init (x);
5194 mpfr_atan2 (n, n, x, GMP_RNDN);
5195 mpfr_erfc (n, x, GMP_RNDN);
5196 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
5197
5198 ;
5199 return 0;
5200}
5201_ACEOF
81ecdfbb
RW
5202if ac_fn_c_try_link "$LINENO"; then :
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5204$as_echo "yes" >&6; }
c6b750e1 5205else
81ecdfbb
RW
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5208fi
81ecdfbb
RW
5209rm -f core conftest.err conftest.$ac_objext \
5210 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5211 LIBS="$saved_LIBS"
5212 fi
5213
5214 if test x"$have_mpc" = xmaybe; then
5215 saved_LIBS="$LIBS"
5216 LIBS="$LIBS $mpclibs $gmplibs"
81ecdfbb
RW
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc library" >&5
5218$as_echo_n "checking for the correct version of the mpc library... " >&6; }
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5220/* end confdefs.h. */
5221#include <mpc.h>
5222int
5223main ()
5224{
5225
5226 mpc_t n;
5227 mpc_init2 (n, 53);
5228 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5229 mpc_sin (n, n, MPC_RNDNN);
5230 mpc_cos (n, n, MPC_RNDNN);
5231 mpc_tan (n, n, MPC_RNDNN);
5232 mpc_sinh (n, n, MPC_RNDNN);
5233 mpc_cosh (n, n, MPC_RNDNN);
5234 mpc_tanh (n, n, MPC_RNDNN);
5235 mpc_exp (n, n, MPC_RNDNN);
5236 mpc_log (n, n, MPC_RNDNN);
5237 mpc_sqrt (n, n, MPC_RNDNN);
5238 mpc_proj (n, n, MPC_RNDNN);
5239 mpc_neg (n, n, MPC_RNDNN);
5240 mpc_sqr (n, n, MPC_RNDNN);
5241 mpc_clear (n);
5242
5243 ;
5244 return 0;
5245}
5246_ACEOF
81ecdfbb
RW
5247if ac_fn_c_try_link "$LINENO"; then :
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5249$as_echo "yes" >&6; }; have_mpc=yes
c6b750e1 5250else
81ecdfbb
RW
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
c6b750e1 5253fi
81ecdfbb
RW
5254rm -f core conftest.err conftest.$ac_objext \
5255 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c 5256 LIBS="$saved_LIBS"
4b900473 5257 fi
e8a5fa9c 5258
4b900473 5259 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5260
4b900473 5261 if test x$have_gmp != xyes; then
81ecdfbb 5262 as_fn_error "Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
9dbaa842
DD
5263Try the --with-gmp and/or --with-mpfr options to specify their locations.
5264Copies of these libraries' source code can be found at their respective
5265hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
5266See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5267If you obtained GMP and/or MPFR from a vendor distribution package, make
5268sure that you have installed both the libraries and the header files.
81ecdfbb 5269They may be located in separate packages." "$LINENO" 5
4b900473 5270 fi
9dbaa842
DD
5271fi
5272
e8a5fa9c
RW
5273if test x$have_mpc != xyes ; then
5274 mpcinc=
5275 mpclibs=
5276fi
5277
5278gmpinc="$mpcinc $gmpinc"
5279gmplibs="$mpclibs $gmplibs"
5280
5281# Flags needed for both GMP, MPFR and/or MPC.
5282
5283
5284
4b1cb4fe
DD
5285
5286
5287
29383458
JM
5288# Allow host libstdc++ to be specified for static linking with PPL.
5289
81ecdfbb
RW
5290# Check whether --with-host-libstdcxx was given.
5291if test "${with_host_libstdcxx+set}" = set; then :
5292 withval=$with_host_libstdcxx;
5293fi
29383458 5294
29383458
JM
5295
5296case $with_host_libstdcxx in
5297 no|yes)
81ecdfbb 5298 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5299 ;;
5300esac
e28c595f 5301
e8a5fa9c
RW
5302# Linker flags to use for stage1 or when not boostrapping.
5303
81ecdfbb
RW
5304# Check whether --with-stage1-ldflags was given.
5305if test "${with_stage1_ldflags+set}" = set; then :
5306 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5307 stage1_ldflags=
5308 else
5309 stage1_ldflags=$withval
5310 fi
5311else
5312 stage1_ldflags=
81ecdfbb
RW
5313fi
5314
e8a5fa9c
RW
5315
5316
5317# Libraries to use for stage1 or when not bootstrapping.
5318
81ecdfbb
RW
5319# Check whether --with-stage1-libs was given.
5320if test "${with_stage1_libs+set}" = set; then :
5321 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5322 stage1_libs=
5323 else
5324 stage1_libs=$withval
5325 fi
5326else
5327 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5328fi
5329
e8a5fa9c
RW
5330
5331
5332# Linker flags to use for stage2 and later builds.
5333
81ecdfbb
RW
5334# Check whether --with-boot-ldflags was given.
5335if test "${with_boot_ldflags+set}" = set; then :
5336 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5337 poststage1_ldflags=
5338 else
5339 poststage1_ldflags=$withval
5340 fi
5341else
5342 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5343 poststage1_ldflags=-static-libstdc++
5344 else
5345 poststage1_ldflags=
5346 fi
81ecdfbb
RW
5347fi
5348
e8a5fa9c
RW
5349
5350
5351# Libraries to use for stage2 and later builds. This defaults to the
5352# argument passed to --with-host-libstdcxx.
5353
81ecdfbb
RW
5354# Check whether --with-boot-libs was given.
5355if test "${with_boot_libs+set}" = set; then :
5356 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5357 poststage1_libs=
5358 else
5359 poststage1_libs=$withval
5360 fi
5361else
5362 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5363fi
5364
e8a5fa9c
RW
5365
5366
e28c595f
JM
5367# Check for PPL
5368ppl_major_version=0
5369ppl_minor_version=10
e8a5fa9c 5370ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5371pplinc=
5372
5373
81ecdfbb
RW
5374# Check whether --with-ppl was given.
5375if test "${with_ppl+set}" = set; then :
5376 withval=$with_ppl;
e8a5fa9c
RW
5377else
5378 with_ppl=no
81ecdfbb 5379fi
e28c595f 5380
e28c595f 5381
81ecdfbb
RW
5382# Check whether --with-ppl_include was given.
5383if test "${with_ppl_include+set}" = set; then :
5384 withval=$with_ppl_include;
5385fi
5386
e28c595f 5387
81ecdfbb
RW
5388# Check whether --with-ppl_lib was given.
5389if test "${with_ppl_lib+set}" = set; then :
5390 withval=$with_ppl_lib;
5391fi
e28c595f 5392
e28c595f 5393
29383458
JM
5394case $with_ppl in
5395 no)
5396 ppllibs=
5397 ;;
5398 *)
e8a5fa9c 5399 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458
JM
5400 pplinc="-I$with_ppl/include $pplinc"
5401 LIBS="$ppllibs $LIBS"
5402 ;;
5403esac
e28c595f
JM
5404if test "x$with_ppl_include" != x; then
5405 pplinc="-I$with_ppl_include $pplinc"
5406fi
5407if test "x$with_ppl_lib" != x; then
e8a5fa9c 5408 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5409 LIBS="$ppllibs $LIBS"
5410fi
5411if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
e8a5fa9c 5412 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
e28c595f
JM
5413 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5414 LIBS="$ppllibs $LIBS"
5415fi
5416
81ecdfbb
RW
5417# Check whether --enable-ppl-version-check was given.
5418if test "${enable_ppl_version_check+set}" = set; then :
5419 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
e28c595f
JM
5420else
5421 ENABLE_PPL_CHECK=yes
81ecdfbb
RW
5422fi
5423
e28c595f
JM
5424
5425if test "${ENABLE_PPL_CHECK}" = "yes"; then
5426 saved_CFLAGS="$CFLAGS"
5427 CFLAGS="$CFLAGS $pplinc $gmpinc"
81ecdfbb
RW
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5429$as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5431/* end confdefs.h. */
5432#include "ppl_c.h"
5433int
5434main ()
5435{
5436
5437 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5438 choke me
5439 #endif
5440
5441 ;
5442 return 0;
5443}
5444_ACEOF
81ecdfbb
RW
5445if ac_fn_c_try_compile "$LINENO"; then :
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5447$as_echo "yes" >&6; }
e28c595f 5448else
81ecdfbb
RW
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450$as_echo "no" >&6; }; ppllibs= ; pplinc=
e28c595f 5451fi
81ecdfbb 5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5453 CFLAGS="$saved_CFLAGS"
5454fi
5455
5456# Flags needed for PPL
5457
5458
5459
5460
5461# Check for CLOOG
5462clooglibs=" -lcloog "
5463clooginc=" -DCLOOG_PPL_BACKEND "
5464
5465
81ecdfbb
RW
5466# Check whether --with-cloog was given.
5467if test "${with_cloog+set}" = set; then :
5468 withval=$with_cloog;
e8a5fa9c
RW
5469else
5470 with_cloog=no
81ecdfbb
RW
5471fi
5472
e28c595f 5473
81ecdfbb
RW
5474# Check whether --with-cloog_include was given.
5475if test "${with_cloog_include+set}" = set; then :
5476 withval=$with_cloog_include;
5477fi
e28c595f 5478
e28c595f 5479
81ecdfbb
RW
5480# Check whether --with-cloog_lib was given.
5481if test "${with_cloog_lib+set}" = set; then :
5482 withval=$with_cloog_lib;
5483fi
e28c595f 5484
e28c595f 5485
29383458
JM
5486case $with_cloog in
5487 no)
5488 clooglibs=
5489 clooginc=
5490 ;;
5491 *)
5492 clooglibs="-L$with_cloog/lib -lcloog"
5493 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5494 LIBS="$clooglibs $LIBS"
5495 ;;
5496esac
e28c595f
JM
5497if test "x$with_cloog_include" != x; then
5498 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5499fi
5500if test "x$with_cloog_lib" != x; then
5501 clooglibs="-L$with_cloog_lib -lcloog"
5502 LIBS="$clooglibs $LIBS"
5503fi
5504if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5505 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5506 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5507 LIBS="$clooglibs $LIBS"
5508fi
5509
81ecdfbb
RW
5510# Check whether --enable-cloog-version-check was given.
5511if test "${enable_cloog_version_check+set}" = set; then :
5512 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
e28c595f
JM
5513else
5514 ENABLE_CLOOG_CHECK=yes
81ecdfbb
RW
5515fi
5516
e28c595f
JM
5517
5518if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5519 saved_CFLAGS="$CFLAGS"
5520 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
81ecdfbb
RW
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
5522$as_echo_n "checking for correct version of CLooG... " >&6; }
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5524/* end confdefs.h. */
5525#include "cloog/cloog.h"
5526int
5527main ()
5528{
5529
5530 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5531 choke me
5532 #endif
5533
5534 ;
5535 return 0;
5536}
5537_ACEOF
81ecdfbb
RW
5538if ac_fn_c_try_compile "$LINENO"; then :
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5540$as_echo "yes" >&6; }
e28c595f 5541else
81ecdfbb
RW
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543$as_echo "no" >&6; }; clooglibs= ; clooginc=
e28c595f 5544fi
81ecdfbb 5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5546 CFLAGS="$saved_CFLAGS"
5547fi
5548
5549# Flags needed for CLOOG
5550
5551
5552
5553
947f426e 5554# By default, C is the only stage 1 language.
9b134994 5555stage1_languages=,c,
1d39f329 5556
e8a5fa9c
RW
5557# Target libraries that we bootstrap.
5558bootstrap_target_libs=,target-libgcc,
5559
9e07f89d
NN
5560# Figure out what language subdirectories are present.
5561# Look if the user specified --enable-languages="..."; if not, use
5562# the environment variable $LANGUAGES if defined. $LANGUAGES might
5563# go away some day.
5564# NB: embedded tabs in this IF block -- do not untabify
5565if test -d ${srcdir}/gcc; then
5566 if test x"${enable_languages+set}" != xset; then
5567 if test x"${LANGUAGES+set}" = xset; then
5568 enable_languages="${LANGUAGES}"
5569 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5570 else
5571 enable_languages=all
5572 fi
5573 else
5574 if test x"${enable_languages}" = x ||
5575 test x"${enable_languages}" = xyes;
5576 then
5577 echo configure.in: --enable-languages needs at least one language argument 1>&2
5578 exit 1
5579 fi
5580 fi
5581 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5582
096f7d00
DE
5583 # 'f95' is the old name for the 'fortran' language. We issue a warning
5584 # and make the substitution.
5585 case ,${enable_languages}, in
5586 *,f95,*)
5587 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5588 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5589 ;;
5590 esac
5591
9e07f89d
NN
5592 # First scan to see if an enabled language requires some other language.
5593 # We assume that a given config-lang.in will list all the language
5594 # front ends it requires, even if some are required indirectly.
5595 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5596 case ${lang_frag} in
5597 ..) ;;
5598 # The odd quoting in the next line works around
5599 # an apparent bug in bash 1.12 on linux.
5600 ${srcdir}/gcc/[*]/config-lang.in) ;;
5601 *)
5602 # From the config-lang.in, get $language, $lang_requires
5603 language=
5604 lang_requires=
5605 . ${lang_frag}
5606 for other in ${lang_requires} ; do
5607 case ,${enable_languages}, in
5608 *,$other,*) ;;
5609 *,all,*) ;;
5610 *,$language,*)
5611 echo " \`$other' language required by \`$language'; enabling" 1>&2
5612 enable_languages="${enable_languages},${other}"
5613 ;;
5614 esac
5615 done
5616 ;;
5617 esac
5618 done
5619
9b134994 5620 new_enable_languages=,c,
9e07f89d 5621 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 5622 potential_languages=,c,
9e07f89d
NN
5623
5624 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5625 case ${lang_frag} in
5626 ..) ;;
5627 # The odd quoting in the next line works around
5628 # an apparent bug in bash 1.12 on linux.
5629 ${srcdir}/gcc/[*]/config-lang.in) ;;
5630 *)
c6b750e1 5631 # From the config-lang.in, get $language, $target_libs,
1d39f329 5632 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
5633 language=
5634 target_libs=
5635 lang_dirs=
64ce424c 5636 subdir_requires=
9b134994
PB
5637 boot_language=no
5638 build_by_default=yes
9e07f89d 5639 . ${lang_frag}
9b134994
PB
5640 if test x${language} = x; then
5641 echo "${lang_frag} doesn't set \$language." 1>&2
5642 exit 1
5643 fi
5644
e8a5fa9c
RW
5645 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5646 boot_language=yes
5647 fi
5648
9b134994
PB
5649 case ,${enable_languages}, in
5650 *,${language},*)
9e07f89d
NN
5651 # Language was explicitly selected; include it.
5652 add_this_lang=yes
5653 ;;
9b134994
PB
5654 *,all,*)
5655 # 'all' was selected, select it if it is a default language
5656 add_this_lang=${build_by_default}
9e07f89d
NN
5657 ;;
5658 *)
5659 add_this_lang=no
5660 ;;
5661 esac
4b1cb4fe 5662
64ce424c 5663 # Disable languages that need other directories if these aren't available.
1f3f1bbf 5664 for i in $subdir_requires; do
3d3adb43 5665 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
5666 case ,${enable_languages}, in
5667 *,${language},*)
5668 # Specifically requested language; tell them.
81ecdfbb 5669 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
5670 ;;
5671 *)
5672 # Silently disable.
9b134994 5673 add_this_lang=unsupported
64ce424c
PB
5674 ;;
5675 esac
5676 done
5677
9b134994
PB
5678 # Disable Ada if no preexisting GNAT is available.
5679 case ,${enable_languages},:${language}:${have_gnat} in
5680 *,${language},*:ada:no)
5681 # Specifically requested language; tell them.
81ecdfbb 5682 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
5683 ;;
5684 *:ada:no)
5685 # Silently disable.
5686 add_this_lang=unsupported
5687 ;;
5688 esac
5689
59f7ec45
HPN
5690 # Disable a language that is unsupported by the target.
5691 case " $unsupported_languages " in
5692 *" $language "*)
9b134994 5693 add_this_lang=unsupported
59f7ec45
HPN
5694 ;;
5695 esac
5696
4b1cb4fe 5697 case $add_this_lang in
9b134994 5698 unsupported)
9e07f89d 5699 # Remove language-dependent dirs.
1d39f329
NN
5700 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5701 ;;
9b134994
PB
5702 no)
5703 # Remove language-dependent dirs; still show language as supported.
5704 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5705 potential_languages="${potential_languages}${language},"
5706 ;;
5707 yes)
5708 new_enable_languages="${new_enable_languages}${language},"
5709 potential_languages="${potential_languages}${language},"
1d39f329
NN
5710 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5711 case ${boot_language} in
5712 yes)
4fa63067 5713 # Add to (comma-separated) list of stage 1 languages.
9b134994 5714 stage1_languages="${stage1_languages}${language},"
e8a5fa9c
RW
5715 # We need to bootstrap any supporting libraries.
5716 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
5717 ;;
5718 esac
5719 ;;
9e07f89d
NN
5720 esac
5721 ;;
5722 esac
5723 done
5724
81ecdfbb
RW
5725 # Check whether --enable-stage1-languages was given.
5726if test "${enable_stage1_languages+set}" = set; then :
5727 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
5728 ,no,|,,)
5729 # Set it to something that will have no effect in the loop below
5730 enable_stage1_languages=c ;;
5731 ,yes,)
5732 enable_stage1_languages=`echo $new_enable_languages | \
5733 sed -e "s/^,//" -e "s/,$//" ` ;;
5734 *,all,*)
5735 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5736 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5737 esac
5738
5739 # Add "good" languages from enable_stage1_languages to stage1_languages,
5740 # while "bad" languages go in missing_languages. Leave no duplicates.
5741 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5742 case $potential_languages in
5743 *,$i,*)
5744 case $stage1_languages in
5745 *,$i,*) ;;
5746 *) stage1_languages="$stage1_languages$i," ;;
5747 esac ;;
5748 *)
5749 case $missing_languages in
5750 *,$i,*) ;;
5751 *) missing_languages="$missing_languages$i," ;;
5752 esac ;;
5753 esac
5754 done
81ecdfbb
RW
5755fi
5756
9b134994
PB
5757
5758 # Remove leading/trailing commas that were added for simplicity
5759 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 5760 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
5761 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5762 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5763
9e07f89d 5764 if test "x$missing_languages" != x; then
81ecdfbb 5765 as_fn_error "
27258dd4 5766The following requested languages could not be built: ${missing_languages}
81ecdfbb 5767Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 5768 fi
9e07f89d
NN
5769 if test "x$new_enable_languages" != "x$enable_languages"; then
5770 echo The following languages will be built: ${new_enable_languages}
9b134994 5771 enable_languages="$new_enable_languages"
9e07f89d 5772 fi
9b134994 5773
c6b750e1 5774
81ec575a 5775 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5776fi
5777
a6df5a19
PB
5778# Handle --disable-<component> generically.
5779for dir in $configdirs $build_configdirs $target_configdirs ; do
5780 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5781 varname=`echo $dirname | sed -e s/+/_/g`
5782 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5783 noconfigdirs="$noconfigdirs $dir"
5784 fi
5785done
5786
4f0ef2d8 5787# Check for Boehm's garbage collector
81ecdfbb
RW
5788# Check whether --enable-objc-gc was given.
5789if test "${enable_objc_gc+set}" = set; then :
5790 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 5791 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 5792 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
5793 ;;
5794esac
81ecdfbb
RW
5795fi
5796
4f0ef2d8
CD
5797
5798# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5799case ,${enable_languages},:${enable_objc_gc} in
5800 *,objc,*:yes)
4f0ef2d8
CD
5801 # Keep target-boehm-gc if requested for Objective-C.
5802 ;;
4f0ef2d8 5803 *)
d42c4017
DA
5804 # Otherwise remove target-boehm-gc depending on target-libjava.
5805 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5806 noconfigdirs="$noconfigdirs target-boehm-gc"
5807 fi
4f0ef2d8
CD
5808 ;;
5809esac
5810
caeba88f
AL
5811# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5812# $build_configdirs and $target_configdirs.
9e07f89d
NN
5813# If we have the source for $noconfigdirs entries, add them to $notsupp.
5814
5815notsupp=""
5816for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5817 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5818 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5819 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5820 if test -r $srcdir/$dirname/configure ; then
5821 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5822 true
5823 else
5824 notsupp="$notsupp $dir"
5825 fi
5826 fi
5827 fi
caeba88f
AL
5828 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5829 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5830 if test -r $srcdir/$dirname/configure ; then
5831 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5832 true
5833 else
5834 notsupp="$notsupp $dir"
5835 fi
5836 fi
5837 fi
9e07f89d
NN
5838 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5839 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5840 if test -r $srcdir/$dirname/configure ; then
5841 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5842 true
5843 else
5844 notsupp="$notsupp $dir"
5845 fi
5846 fi
5847 fi
5848done
5849
5850# Sometimes the tools are distributed with libiberty but with no other
5851# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5852# Don't let libgcc imply libiberty either.
9e07f89d 5853if test -n "${target_configdirs}" ; then
f86e35b8 5854 libgcc=
9e07f89d
NN
5855 others=
5856 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5857 if test "$i" = "libgcc"; then
5858 libgcc=target-libgcc
5859 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5860 if test -r $srcdir/$i/configure ; then
5861 others=yes;
5862 break;
5863 fi
5864 fi
5865 done
5866 if test -z "${others}" ; then
f86e35b8 5867 target_configdirs=$libgcc
9e07f89d
NN
5868 fi
5869fi
5870
5871# Quietly strip out all directories which aren't configurable in this tree.
5872# This relies on all configurable subdirectories being autoconfiscated, which
5873# is now the case.
6a9cf61e
PB
5874build_configdirs_all="$build_configdirs"
5875build_configdirs=
5876for i in ${build_configdirs_all} ; do
c6b750e1 5877 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5878 if test -f ${srcdir}/$j/configure ; then
5879 build_configdirs="${build_configdirs} $i"
5880 fi
5881done
5882
9e07f89d
NN
5883configdirs_all="$configdirs"
5884configdirs=
5885for i in ${configdirs_all} ; do
5886 if test -f ${srcdir}/$i/configure ; then
5887 configdirs="${configdirs} $i"
5888 fi
5889done
6a9cf61e 5890
9e07f89d
NN
5891target_configdirs_all="$target_configdirs"
5892target_configdirs=
5893for i in ${target_configdirs_all} ; do
c6b750e1 5894 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5895 if test -f ${srcdir}/$j/configure ; then
5896 target_configdirs="${target_configdirs} $i"
5897 fi
5898done
5899
5900# Produce a warning message for the subdirs we can't configure.
5901# This isn't especially interesting in the Cygnus tree, but in the individual
5902# FSF releases, it's important to let people know when their machine isn't
5903# supported by the one or two programs in a package.
5904
5905if test -n "${notsupp}" && test -z "${norecursion}" ; then
5906 # If $appdirs is non-empty, at least one of those directories must still
5907 # be configured, or we error out. (E.g., if the gas release supports a
5908 # specified target in some subdirs but not the gas subdir, we shouldn't
5909 # pretend that all is well.)
5910 if test -n "$appdirs" ; then
5911 for dir in $appdirs ; do
5912 if test -r $dir/Makefile.in ; then
5913 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5914 appdirs=""
5915 break
5916 fi
6a9cf61e 5917 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5918 appdirs=""
5919 break
5920 fi
5921 fi
5922 done
5923 if test -n "$appdirs" ; then
5924 echo "*** This configuration is not supported by this package." 1>&2
5925 exit 1
5926 fi
5927 fi
5928 # Okay, some application will build, or we don't care to check. Still
5929 # notify of subdirs not getting built.
5930 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5931 echo " ${notsupp}" 1>&2
5932 echo " (Any other directories should still work fine.)" 1>&2
5933fi
5934
5935case "$host" in
5936 *msdosdjgpp*)
5937 enable_gdbtk=no ;;
5938esac
5939
18f6b6ee
PB
5940# To find our prefix, in gcc_cv_tool_prefix.
5941
5942# The user is always right.
5943if test "${PATH_SEPARATOR+set}" != set; then
5944 echo "#! /bin/sh" >conf$$.sh
5945 echo "exit 0" >>conf$$.sh
5946 chmod +x conf$$.sh
5947 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5948 PATH_SEPARATOR=';'
5949 else
5950 PATH_SEPARATOR=:
5951 fi
5952 rm -f conf$$.sh
5953fi
5954
5955
5956
5957if test "x$exec_prefix" = xNONE; then
5958 if test "x$prefix" = xNONE; then
5959 gcc_cv_tool_prefix=$ac_default_prefix
5960 else
5961 gcc_cv_tool_prefix=$prefix
5962 fi
5963else
5964 gcc_cv_tool_prefix=$exec_prefix
5965fi
5966
5967# If there is no compiler in the tree, use the PATH only. In any
5968# case, if there is no compiler in the tree nobody should use
5969# AS_FOR_TARGET and LD_FOR_TARGET.
5970if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5971 gcc_version=`cat $srcdir/gcc/BASE-VER`
5972 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5973 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5974 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5975 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5976 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5977 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5978else
5979 gcc_cv_tool_dirs=
5980fi
5981
5982if test x$build = x$target && test -n "$md_exec_prefix"; then
5983 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5984fi
5985
5986
5987
9e07f89d
NN
5988copy_dirs=
5989
c6b750e1 5990
81ecdfbb
RW
5991# Check whether --with-build-sysroot was given.
5992if test "${with_build_sysroot+set}" = set; then :
5993 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
5994 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5995 fi
5996else
5997 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 5998fi
a19b6204
MM
5999
6000
8a6ee3ab 6001
81ecdfbb
RW
6002
6003# Check whether --with-debug-prefix-map was given.
6004if test "${with_debug_prefix_map+set}" = set; then :
6005 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6006 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6007 for debug_map in $withval; do
6008 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6009 done
6010 fi
6011else
6012 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6013fi
6014
8a6ee3ab
JM
6015
6016
7f6ef0c0
PB
6017# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6018# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6019# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6020# We want to ensure that TARGET libraries (which we know are built with
6021# gcc) are built with "-O2 -g", so include those options when setting
6022# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6023if test "x$CFLAGS_FOR_TARGET" = x; then
6024 CFLAGS_FOR_TARGET=$CFLAGS
6025 case " $CFLAGS " in
6026 *" -O2 "*) ;;
6027 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6028 esac
6029 case " $CFLAGS " in
6030 *" -g "* | *" -g3 "*) ;;
6031 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6032 esac
6033fi
6034
6035
6036if test "x$CXXFLAGS_FOR_TARGET" = x; then
6037 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6038 case " $CXXFLAGS " in
6039 *" -O2 "*) ;;
6040 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6041 esac
6042 case " $CXXFLAGS " in
6043 *" -g "* | *" -g3 "*) ;;
6044 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6045 esac
6046fi
6047
6048
9e07f89d
NN
6049# Handle --with-headers=XXX. If the value is not "yes", the contents of
6050# the named directory are copied to $(tooldir)/sys-include.
6051if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6052 if test x${is_cross_compiler} = xno ; then
6053 echo 1>&2 '***' --with-headers is only supported when cross compiling
6054 exit 1
6055 fi
6056 if test x"${with_headers}" != xyes ; then
18f6b6ee 6057 x=${gcc_cv_tool_prefix}
c6b750e1 6058 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6059 fi
6060fi
6061
6062# Handle --with-libs=XXX. If the value is not "yes", the contents of
6063# the name directories are copied to $(tooldir)/lib. Multiple directories
6064# are permitted.
6065if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6066 if test x${is_cross_compiler} = xno ; then
6067 echo 1>&2 '***' --with-libs is only supported when cross compiling
6068 exit 1
6069 fi
6070 if test x"${with_libs}" != xyes ; then
6071 # Copy the libraries in reverse order, so that files in the first named
6072 # library override files in subsequent libraries.
18f6b6ee 6073 x=${gcc_cv_tool_prefix}
9e07f89d 6074 for l in ${with_libs}; do
c6b750e1 6075 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6076 done
6077 fi
6078fi
6079
2429c060
PB
6080# Set with_gnu_as and with_gnu_ld as appropriate.
6081#
6082# This is done by determining whether or not the appropriate directory
6083# is available, and by checking whether or not specific configurations
6084# have requested that this magic not happen.
c6b750e1
DJ
6085#
6086# The command line options always override the explicit settings in
2429c060
PB
6087# configure.in, and the settings in configure.in override this magic.
6088#
c6b750e1 6089# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
6090# want to do that, then you should use the --without-gnu-as and
6091# --without-gnu-ld options for the configure script.
6092
6093if test x${use_gnu_as} = x &&
6094 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6095 with_gnu_as=yes
6096 extra_host_args="$extra_host_args --with-gnu-as"
6097fi
6098
6099if test x${use_gnu_ld} = x &&
93f9b408 6100 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6101 with_gnu_ld=yes
6102 extra_host_args="$extra_host_args --with-gnu-ld"
6103fi
6104
6105# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6106# can detect this case.
6107
6108if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6109 with_newlib=yes
6110 extra_host_args="$extra_host_args --with-newlib"
6111fi
6112
9e07f89d
NN
6113# Handle ${copy_dirs}
6114set fnord ${copy_dirs}
6115shift
6116while test $# != 0 ; do
6117 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6118 :
6119 else
6120 echo Copying $1 to $2
6121
6122 # Use the install script to create the directory and all required
6123 # parent directories.
6124 if test -d $2 ; then
6125 :
6126 else
6127 echo >config.temp
6128 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6129 fi
6130
6131 # Copy the directory, assuming we have tar.
6132 # FIXME: Should we use B in the second tar? Not all systems support it.
6133 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6134
6135 # It is the responsibility of the user to correctly adjust all
6136 # symlinks. If somebody can figure out how to handle them correctly
6137 # here, feel free to add the code.
6138
6139 echo $1 > $2/COPIED
6140 fi
6141 shift; shift
6142done
6143
2429c060
PB
6144# Determine a target-dependent exec_prefix that the installed
6145# gcc will search in. Keep this list sorted by triplet, with
6146# the *-*-osname triplets last.
6147md_exec_prefix=
6148case "${target}" in
6149 alpha*-*-*vms*)
6150 md_exec_prefix=/gnu/lib/gcc-lib
6151 ;;
521ec477 6152 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6153 md_exec_prefix=/dev/env/DJDIR/bin
6154 ;;
521ec477 6155 i[34567]86-*-sco3.2v5*)
2429c060
PB
6156 if test $with_gnu_as = yes; then
6157 md_exec_prefix=/usr/gnu/bin
6158 else
6159 md_exec_prefix=/usr/ccs/bin/elf
6160 fi
6161 ;;
6162
6163 mn10300-*-* | \
6164 powerpc-*-chorusos* | \
6165 powerpc*-*-eabi* | \
6166 powerpc*-*-sysv* | \
6167 powerpc*-*-kaos* | \
6168 s390x-ibm-tpf*)
6169 md_exec_prefix=/usr/ccs/bin
6170 ;;
6171 sparc64-*-elf*)
6172 ;;
6173 v850*-*-*)
6174 md_exec_prefix=/usr/ccs/bin
6175 ;;
8b66833e 6176 xtensa*-*-elf*)
2429c060
PB
6177 ;;
6178
6179 *-*-beos* | \
6180 *-*-elf* | \
6181 *-*-hpux* | \
6182 *-*-netware* | \
6183 *-*-nto-qnx* | \
6184 *-*-rtems* | \
6185 *-*-solaris2* | \
521ec477 6186 *-*-sysv[45]* | \
2429c060
PB
6187 *-*-vxworks* | \
6188 *-wrs-windiss)
6189 md_exec_prefix=/usr/ccs/bin
6190 ;;
6191esac
6192
a0da8069
NN
6193extra_arflags_for_target=
6194extra_nmflags_for_target=
6195extra_ranlibflags_for_target=
6196target_makefile_frag=/dev/null
6197case "${target}" in
4e206d7e
DB
6198 mep*-*-*)
6199 target_makefile_frag="config/mt-mep"
6200 ;;
77d7106f
AM
6201 spu-*-*)
6202 target_makefile_frag="config/mt-spu"
6203 ;;
429acdec
RS
6204 mips*-sde-elf*)
6205 target_makefile_frag="config/mt-sde"
6206 ;;
f3b1e08e
RS
6207 mipsisa*-*-elfoabi*)
6208 target_makefile_frag="config/mt-mips-elfoabi"
6209 ;;
e7c8859c
RS
6210 mips*-*-*linux* | mips*-*-gnu*)
6211 target_makefile_frag="config/mt-mips-gnu"
6212 ;;
2a3124ca 6213 *-*-netware*)
a0da8069
NN
6214 target_makefile_frag="config/mt-netware"
6215 ;;
29383458 6216 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6217 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6218 ;;
6219 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6220 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6221 # commands to handle both 32-bit and 64-bit objects. These flags are
6222 # harmless if we're using GNU nm or ar.
6223 extra_arflags_for_target=" -X32_64"
6224 extra_nmflags_for_target=" -B -X32_64"
6225 ;;
6226 *-*-darwin*)
6227 # ranlib from Darwin requires the -c flag to look at common symbols.
6228 extra_ranlibflags_for_target=" -c"
6229 ;;
6230 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6231 target_makefile_frag="config/mt-wince"
6232 ;;
6233esac
6234
6235alphaieee_frag=/dev/null
6236case $target in
6237 alpha*-*-*)
6238 # This just makes sure to use the -mieee option to build target libs.
6239 # This should probably be set individually by each library.
6240 alphaieee_frag="config/mt-alphaieee"
6241 ;;
6242esac
6243
6244# If --enable-target-optspace always use -Os instead of -O2 to build
6245# the target libraries, similarly if it is not specified, use -Os
6246# on selected platforms.
6247ospace_frag=/dev/null
6248case "${enable_target_optspace}:${target}" in
6249 yes:*)
6250 ospace_frag="config/mt-ospace"
6251 ;;
6252 :d30v-*)
6253 ospace_frag="config/mt-d30v"
6254 ;;
6255 :m32r-* | :d10v-* | :fr30-*)
6256 ospace_frag="config/mt-ospace"
6257 ;;
6258 no:* | :*)
6259 ;;
6260 *)
6261 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6262 ;;
6263esac
6264
a0da8069
NN
6265# Default to using --with-stabs for certain targets.
6266if test x${with_stabs} = x ; then
6267 case "${target}" in
e31d1ea3 6268 mips*-*-irix[56]*)
a0da8069
NN
6269 ;;
6270 mips*-*-* | alpha*-*-osf*)
6271 with_stabs=yes;
6272 extra_host_args="${extra_host_args} --with-stabs"
6273 ;;
6274 esac
6275fi
6276
6277# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6278# them automatically.
6279case "${host}" in
c6b750e1 6280 hppa*64*-*-hpux11*)
a0da8069
NN
6281 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6282 ;;
6283esac
6284
a0da8069
NN
6285# Some systems (e.g., one of the i386-aix systems the gas testers are
6286# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6287tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6288build_tooldir=${tooldir}
6289
a0da8069
NN
6290# Create a .gdbinit file which runs the one in srcdir
6291# and tells GDB to look there for source files.
6292
6293if test -r ${srcdir}/.gdbinit ; then
6294 case ${srcdir} in
6295 .) ;;
6296 *) cat > ./.gdbinit <<EOF
6297# ${NO_EDIT}
6298dir ${srcdir}
6299dir .
6300source ${srcdir}/.gdbinit
6301EOF
6302 ;;
6303 esac
6304fi
6305
a0da8069
NN
6306# Make sure that the compiler is able to generate an executable. If it
6307# can't, we are probably in trouble. We don't care whether we can run the
6308# executable--we might be using a cross compiler--we only care whether it
6309# can be created. At this point the main configure script has set CC.
6310we_are_ok=no
6311echo "int main () { return 0; }" > conftest.c
6312${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6313if test $? = 0 ; then
6314 if test -s conftest || test -s conftest.exe ; then
6315 we_are_ok=yes
6316 fi
c6b750e1 6317fi
a0da8069
NN
6318case $we_are_ok in
6319 no)
6320 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6321 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6322 rm -f conftest*
6323 exit 1
6324 ;;
6325esac
6326rm -f conftest*
6327
6328# The Solaris /usr/ucb/cc compiler does not appear to work.
6329case "${host}" in
6330 sparc-sun-solaris2*)
6331 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6332 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6333 could_use=
6334 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6335 if test -d /opt/cygnus/bin ; then
6336 if test "$could_use" = "" ; then
6337 could_use="/opt/cygnus/bin"
6338 else
6339 could_use="$could_use or /opt/cygnus/bin"
6340 fi
6341 fi
6342 if test "$could_use" = "" ; then
6343 echo "Warning: compilation may fail because you're using"
6344 echo "/usr/ucb/cc. You should change your PATH or CC "
6345 echo "variable and rerun configure."
6346 else
6347 echo "Warning: compilation may fail because you're using"
6348 echo "/usr/ucb/cc, when you should use the C compiler from"
6349 echo "$could_use. You should change your"
6350 echo "PATH or CC variable and rerun configure."
6351 fi
6352 fi
6353 ;;
6354esac
6355
3bbd2f8f 6356# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6357case "${host}" in
6358 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 6359 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6360 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6361 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6362esac
6363
3bbd2f8f 6364# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6365# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6366# built executables to PATH.
3bbd2f8f
AL
6367if test "$RPATH_ENVVAR" = PATH; then
6368 GCC_SHLIB_SUBDIR=/shlib
6369else
6370 GCC_SHLIB_SUBDIR=
6371fi
6372
a0da8069
NN
6373# Record target_configdirs and the configure arguments for target and
6374# build configuration in Makefile.
6375target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6376build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6377
a0da8069
NN
6378# Determine whether gdb needs tk/tcl or not.
6379# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6380# and in that case we want gdb to be built without tk. Ugh!
6381# In fact I believe gdb is the *only* package directly dependent on tk,
6382# so we should be able to put the 'maybe's in unconditionally and
6383# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6384# 100% sure that that's safe though.
c180f501 6385
675c6968 6386gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6387case "$enable_gdbtk" in
6388 no)
6389 GDB_TK="" ;;
c180f501
AC
6390 yes)
6391 GDB_TK="${gdb_tk}" ;;
a0da8069 6392 *)
c180f501
AC
6393 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6394 # distro. Eventually someone will fix this and move Insight, nee
6395 # gdbtk to a separate directory.
6396 if test -d ${srcdir}/gdb/gdbtk ; then
6397 GDB_TK="${gdb_tk}"
6398 else
6399 GDB_TK=""
6400 fi
6401 ;;
a0da8069 6402esac
907be67c
DJ
6403CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6404INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6405
6bd3dfaa 6406# Strip out unwanted targets.
dd12c3a8
NN
6407
6408# While at that, we remove Makefiles if we were started for recursive
6409# configuration, so that the top-level Makefile reconfigures them,
6410# like we used to do when configure itself was recursive.
dd12c3a8 6411
6bd3dfaa
PB
6412# Loop over modules. $extrasub must be used with care, limiting as
6413# much as possible the usage of range addresses. That's because autoconf
6414# splits the sed script to overcome limits in the number of commands,
6415# and relying on carefully-timed sed passes may turn out to be very hard
6416# to maintain later. In this particular case, you just have to be careful
6417# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6418
81ecdfbb
RW
6419# Check whether --enable-bootstrap was given.
6420if test "${enable_bootstrap+set}" = set; then :
6421 enableval=$enable_bootstrap;
319cab08 6422else
9cb3fa6f 6423 enable_bootstrap=default
81ecdfbb
RW
6424fi
6425
319cab08 6426
9cb3fa6f
PB
6427# Issue errors and warnings for invalid/strange bootstrap combinations.
6428case "$configdirs" in
6429 *gcc*) have_compiler=yes ;;
6430 *) have_compiler=no ;;
6431esac
6432
6433case "$have_compiler:$host:$target:$enable_bootstrap" in
6434 *:*:*:no) ;;
6435
0aed8855 6436 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
6437 # and we are in a native configuration.
6438 yes:$build:$build:default)
0aed8855 6439 enable_bootstrap=yes ;;
9cb3fa6f
PB
6440
6441 *:*:*:default)
6442 enable_bootstrap=no ;;
6443
6444 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 6445 yes:$build:$build:yes)
9cb3fa6f
PB
6446 ;;
6447
6448 # Other configurations, but we have a compiler. Assume the user knows
6449 # what he's doing.
80911fe1 6450 yes:*:*:yes)
81ecdfbb
RW
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6452$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
6453 ;;
6454
6455 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 6456 no:*:*:yes)
81ecdfbb 6457 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
6458
6459 # Fail if wrong command line
6460 *)
81ecdfbb 6461 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
6462 ;;
6463esac
6464
6465# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
6466case "$enable_bootstrap" in
6467 yes)
498d4a71 6468 bootstrap_suffix=bootstrap ;;
319cab08 6469 no)
498d4a71 6470 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
6471esac
6472
6a9cf61e 6473for module in ${build_configdirs} ; do
498d4a71
CF
6474 if test -z "${no_recursion}" \
6475 && test -f ${build_subdir}/${module}/Makefile; then
6476 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6477 rm -f ${build_subdir}/${module}/Makefile
6478 fi
6479 extrasub="$extrasub
6480/^@if build-$module\$/d
6481/^@endif build-$module\$/d
6482/^@if build-$module-$bootstrap_suffix\$/d
6483/^@endif build-$module-$bootstrap_suffix\$/d"
6484done
6485for module in ${configdirs} ; do
80911fe1 6486 if test -z "${no_recursion}"; then
8cf39b1b 6487 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6488 if test -f ${file}; then
6489 echo 1>&2 "*** removing ${file} to force reconfigure"
6490 rm -f ${file}
6491 fi
6492 done
498d4a71
CF
6493 fi
6494 extrasub="$extrasub
6495/^@if $module\$/d
6496/^@endif $module\$/d
6497/^@if $module-$bootstrap_suffix\$/d
6498/^@endif $module-$bootstrap_suffix\$/d"
6499done
6500for module in ${target_configdirs} ; do
6501 if test -z "${no_recursion}" \
6502 && test -f ${target_subdir}/${module}/Makefile; then
6503 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6504 rm -f ${target_subdir}/${module}/Makefile
6505 fi
e8a5fa9c
RW
6506
6507 # We only bootstrap target libraries listed in bootstrap_target_libs.
6508 case $bootstrap_target_libs in
6509 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6510 *) target_bootstrap_suffix=no-bootstrap ;;
6511 esac
6512
498d4a71
CF
6513 extrasub="$extrasub
6514/^@if target-$module\$/d
6515/^@endif target-$module\$/d
e8a5fa9c
RW
6516/^@if target-$module-$target_bootstrap_suffix\$/d
6517/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
6518done
6519
6bd3dfaa
PB
6520extrasub="$extrasub
6521/^@if /,/^@endif /d"
a0da8069
NN
6522
6523# Create the serialization dependencies. This uses a temporary file.
6524
81ecdfbb
RW
6525# Check whether --enable-serial-configure was given.
6526if test "${enable_serial_configure+set}" = set; then :
6527 enableval=$enable_serial_configure;
6528fi
e6bfb94a
AO
6529
6530
1047cb91
DD
6531case ${enable_serial_configure} in
6532 yes)
6533 enable_serial_build_configure=yes
6534 enable_serial_host_configure=yes
6535 enable_serial_target_configure=yes
6536 ;;
6537esac
6538
a0da8069
NN
6539# These force 'configure's to be done one at a time, to avoid problems
6540# with contention over a shared config.cache.
6541rm -f serdep.tmp
e6bfb94a 6542echo '# serdep.tmp' > serdep.tmp
a0da8069 6543olditem=
1047cb91 6544test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6545for item in ${build_configdirs} ; do
6546 case ${olditem} in
6547 "") ;;
e6bfb94a 6548 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6549 esac
6550 olditem=${item}
6551done
6552olditem=
1047cb91 6553test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6554for item in ${configdirs} ; do
6555 case ${olditem} in
6556 "") ;;
e6bfb94a 6557 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6558 esac
6559 olditem=${item}
6560done
6561olditem=
1047cb91 6562test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6563for item in ${target_configdirs} ; do
6564 case ${olditem} in
6565 "") ;;
e6bfb94a 6566 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6567 esac
6568 olditem=${item}
6569done
6570serialization_dependencies=serdep.tmp
6571
6572
e6bfb94a 6573# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
6574# target, nonopt, and variable assignments. These are the ones we
6575# might not want to pass down to subconfigures. Also strip
6576# program-prefix, program-suffix, and program-transform-name, so that
6577# we can pass down a consistent program-transform-name.
6578baseargs=
6579keep_next=no
6580skip_next=no
6581eval "set -- $ac_configure_args"
18f6b6ee
PB
6582for ac_arg
6583do
c6b750e1
DJ
6584 if test X"$skip_next" = X"yes"; then
6585 skip_next=no
6586 continue
6587 fi
6588 if test X"$keep_next" = X"yes"; then
6589 case $ac_arg in
6590 *\'*)
6591 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6592 esac
6593 baseargs="$baseargs '$ac_arg'"
6594 keep_next=no
6595 continue
6596 fi
6597
6598 # Handle separated arguments. Based on the logic generated by
6599 # autoconf 2.59.
6600 case $ac_arg in
6601 *=* | --config-cache | -C | -disable-* | --disable-* \
6602 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6603 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6604 | -with-* | --with-* | -without-* | --without-* | --x)
6605 separate_arg=no
6606 ;;
6607 -*)
6608 separate_arg=yes
6609 ;;
6610 *)
6611 separate_arg=no
6612 ;;
6613 esac
6614
6615 case "$ac_arg" in
6616 --no*)
6617 continue
6618 ;;
6619 --c* | \
6620 --sr* | \
6621 --ho* | \
6622 --bu* | \
6623 --t* | \
6624 --program-* | \
6625 -cache_file* | \
6626 -srcdir* | \
6627 -host* | \
6628 -build* | \
6629 -target* | \
6630 -program-prefix* | \
6631 -program-suffix* | \
6632 -program-transform-name* )
6633 skip_next=$separate_arg
6634 continue
6635 ;;
6636 -*)
6637 # An option. Add it.
6638 case $ac_arg in
6639 *\'*)
6640 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6641 esac
6642 baseargs="$baseargs '$ac_arg'"
6643 keep_next=$separate_arg
6644 ;;
6645 *)
6646 # Either a variable assignment, or a nonopt (triplet). Don't
6647 # pass it down; let the Makefile handle this.
6648 continue
6649 ;;
6650 esac
6651done
6652# Remove the initial space we just introduced and, as these will be
6653# expanded by make, quote '$'.
6654baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 6655
f27d4f92
DJ
6656# Add in --program-transform-name, after --program-prefix and
6657# --program-suffix have been applied to it. Autoconf has already
6658# doubled dollar signs and backslashes in program_transform_name; we want
6659# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 6660# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
6661# Also, because we want to override the logic in subdir configure scripts to
6662# choose program_transform_name, replace any s,x,x, with s,y,y,.
6663sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6664${program_transform_name}
6665EOF_SED
6666gcc_transform_name=`cat conftestsed.out`
6667rm -f conftestsed.out
6668baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
6669if test "$silent" = yes; then
6670 baseargs="$baseargs --silent"
6671fi
34a0f3cf 6672baseargs="$baseargs --disable-option-checking"
f27d4f92 6673
a0da8069
NN
6674# For the build-side libraries, we just need to pretend we're native,
6675# and not use the same cache file. Multilibs are neither needed nor
6676# desired.
4b900473 6677build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
6678
6679# For host modules, accept cache file option, or specification as blank.
6680case "${cache_file}" in
6681"") # empty
6682 cache_file_option="" ;;
6683/* | [A-Za-z]:[\\/]* ) # absolute path
6684 cache_file_option="--cache-file=${cache_file}" ;;
6685*) # relative path
6686 cache_file_option="--cache-file=../${cache_file}" ;;
6687esac
6688
82252c06
NN
6689# Host dirs don't like to share a cache file either, horribly enough.
6690# This seems to be due to autoconf 2.5x stupidity.
4b900473 6691host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
6692
6693target_configargs=${baseargs}
6694
6695# Passing a --with-cross-host argument lets the target libraries know
6696# whether they are being built with a cross-compiler or being built
6697# native. However, it would be better to use other mechanisms to make the
6698# sorts of decisions they want to make on this basis. Please consider
6699# this option to be deprecated. FIXME.
6700if test x${is_cross_compiler} = xyes ; then
c6b750e1 6701 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
6702fi
6703
6704# Default to --enable-multilib.
6705if test x${enable_multilib} = x ; then
6706 target_configargs="--enable-multilib ${target_configargs}"
6707fi
6708
6709# Pass --with-newlib if appropriate. Note that target_configdirs has
6710# changed from the earlier setting of with_newlib.
6711if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6712 target_configargs="--with-newlib ${target_configargs}"
6713fi
6714
95036d20
NN
6715# Different target subdirs use different values of certain variables
6716# (notably CXX). Worse, multilibs use *lots* of different values.
6717# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6718# it doesn't automatically accept command-line overrides of them.
6719# This means it's not safe for target subdirs to share a cache file,
6720# which is disgusting, but there you have it. Hopefully this can be
6721# fixed in future. It's still worthwhile to use a cache file for each
6722# directory. I think.
6723
ae380b45
MS
6724# Pass the appropriate --build, --host, --target and --cache-file arguments.
6725# We need to pass --target, as newer autoconf's requires consistency
6726# for target_alias and gcc doesn't manage it consistently.
4b900473 6727target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 6728
a0da8069
NN
6729FLAGS_FOR_TARGET=
6730case " $target_configdirs " in
6731 *" newlib "*)
6732 case " $target_configargs " in
6733 *" --with-newlib "*)
6734 case "$target" in
6735 *-cygwin*)
564b43e5 6736 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' ;;
a0da8069
NN
6737 esac
6738
6739 # If we're not building GCC, don't discard standard headers.
6740 if test -d ${srcdir}/gcc; then
6741 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6742
6743 if test "${build}" != "${host}"; then
6744 # On Canadian crosses, CC_FOR_TARGET will have already been set
6745 # by `configure', so we won't have an opportunity to add -Bgcc/
6746 # to it. This is right: we don't want to search that directory
6747 # for binaries, but we want the header files in there, so add
6748 # them explicitly.
b00612cc 6749 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
6750
6751 # Someone might think of using the pre-installed headers on
6752 # Canadian crosses, in case the installed compiler is not fully
6753 # compatible with the compiler being built. In this case, it
6754 # would be better to flag an error than risking having
6755 # incompatible object files being constructed. We can't
6756 # guarantee that an error will be flagged, but let's hope the
6757 # compiler will do it, when presented with incompatible header
6758 # files.
6759 fi
6760 fi
6761
6762 case "${target}-${is_cross_compiler}" in
ec11bdc6 6763 i[3456789]86-*-linux*-no)
a0da8069
NN
6764 # Here host == target, so we don't need to build gcc,
6765 # so we don't want to discard standard headers.
6766 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6767 ;;
6768 *)
6769 # If we're building newlib, use its generic headers last, but search
6770 # for any libc-related directories first (so make it the last -B
6771 # switch).
6772 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
6773
6774 # If we're building libgloss, find the startup file, simulator library
6775 # and linker script.
6776 case " $target_configdirs " in
6777 *" libgloss "*)
6778 # Look for startup file, simulator library and maybe linker script.
6779 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6780 # Look for libnosys.a in case the target needs it.
6781 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6782 # Most targets have the linker script in the source directory.
6783 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6784 ;;
6785 esac
a0da8069
NN
6786 ;;
6787 esac
6788 ;;
6789 esac
6790 ;;
6791esac
45055374
CV
6792case "$target" in
6793*-mingw*)
6794 # Can't be handled as Cygwin above since Mingw does not use newlib.
6795 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' ;;
6796esac
a0da8069 6797
5fbad20a
DD
6798# Allow the user to override the flags for
6799# our build compiler if desired.
c66487f8
NC
6800if test x"${build}" = x"${host}" ; then
6801 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6802 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6803 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6804fi
5fbad20a 6805
a0da8069
NN
6806# On Canadian crosses, we'll be searching the right directories for
6807# the previously-installed cross compiler, so don't bother to add
6808# flags for directories within the install tree of the compiler
6809# being built; programs in there won't even run.
6810if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6811 # Search for pre-installed headers if nothing else fits.
bba45b8b 6812 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
6813fi
6814
6815if test "x${use_gnu_ld}" = x &&
6816 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6817 # Arrange for us to find uninstalled linker scripts.
b00612cc 6818 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6819fi
6820
a481dbb7
DD
6821# Search for other target-specific linker scripts and such.
6822case "${target}" in
4e206d7e
DB
6823 mep*)
6824 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6825 ;;
6826esac
6827
a0da8069 6828# Makefile fragments.
3e707e94
PB
6829for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6830do
6831 eval fragval=\$$frag
6832 if test $fragval != /dev/null; then
6833 eval $frag=${srcdir}/$fragval
6834 fi
6835done
a0da8069
NN
6836
6837
6838
6839
6840
6841# Miscellanea: directories, flags, etc.
6842
6843
6844
6845
6846
6847
6848
3bbd2f8f 6849
6a9cf61e 6850# Build module lists & subconfigure args.
a0da8069
NN
6851
6852
6853
be01d343
PB
6854# Host module lists & subconfigure args.
6855
6856
6857
6858# Target module lists & subconfigure args.
6859
6860
6861
6862# Build tools.
6863
6864
6865
1576798e
PB
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
be01d343
PB
6880# Generate default definitions for YACC, M4, LEX and other programs that run
6881# on the build machine. These are used if the Makefile can't locate these
6882# programs in objdir.
6883MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6884
6885for ac_prog in 'bison -y' byacc yacc
6886do
c6b750e1 6887 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6888set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
6891if test "${ac_cv_prog_YACC+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
be01d343
PB
6893else
6894 if test -n "$YACC"; then
6895 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6896else
c6b750e1
DJ
6897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6898for as_dir in $PATH
6899do
6900 IFS=$as_save_IFS
6901 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6902 for ac_exec_ext in '' $ac_executable_extensions; do
6903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 6904 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 6905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
6906 break 2
6907 fi
6908done
81ecdfbb
RW
6909 done
6910IFS=$as_save_IFS
c6b750e1 6911
be01d343
PB
6912fi
6913fi
c6b750e1 6914YACC=$ac_cv_prog_YACC
be01d343 6915if test -n "$YACC"; then
81ecdfbb
RW
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6917$as_echo "$YACC" >&6; }
be01d343 6918else
81ecdfbb
RW
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920$as_echo "no" >&6; }
be01d343
PB
6921fi
6922
81ecdfbb 6923
c6b750e1 6924 test -n "$YACC" && break
be01d343
PB
6925done
6926test -n "$YACC" || YACC="$MISSING bison -y"
6927
6928case " $build_configdirs " in
6929 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6930 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6931esac
6932
6933for ac_prog in bison
6934do
c6b750e1 6935 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6936set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6938$as_echo_n "checking for $ac_word... " >&6; }
6939if test "${ac_cv_prog_BISON+set}" = set; then :
6940 $as_echo_n "(cached) " >&6
be01d343
PB
6941else
6942 if test -n "$BISON"; then
6943 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6944else
c6b750e1
DJ
6945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6946for as_dir in $PATH
6947do
6948 IFS=$as_save_IFS
6949 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 6952 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
6954 break 2
6955 fi
6956done
81ecdfbb
RW
6957 done
6958IFS=$as_save_IFS
c6b750e1 6959
be01d343
PB
6960fi
6961fi
c6b750e1 6962BISON=$ac_cv_prog_BISON
be01d343 6963if test -n "$BISON"; then
81ecdfbb
RW
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6965$as_echo "$BISON" >&6; }
be01d343 6966else
81ecdfbb
RW
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6968$as_echo "no" >&6; }
be01d343
PB
6969fi
6970
81ecdfbb 6971
c6b750e1 6972 test -n "$BISON" && break
be01d343
PB
6973done
6974test -n "$BISON" || BISON="$MISSING bison"
6975
6976case " $build_configdirs " in
6977 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6978esac
6979
6980for ac_prog in gm4 gnum4 m4
6981do
c6b750e1 6982 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6983set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985$as_echo_n "checking for $ac_word... " >&6; }
6986if test "${ac_cv_prog_M4+set}" = set; then :
6987 $as_echo_n "(cached) " >&6
be01d343
PB
6988else
6989 if test -n "$M4"; then
6990 ac_cv_prog_M4="$M4" # Let the user override the test.
6991else
c6b750e1
DJ
6992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993for as_dir in $PATH
6994do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 6999 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7001 break 2
7002 fi
7003done
81ecdfbb
RW
7004 done
7005IFS=$as_save_IFS
c6b750e1 7006
be01d343
PB
7007fi
7008fi
c6b750e1 7009M4=$ac_cv_prog_M4
be01d343 7010if test -n "$M4"; then
81ecdfbb
RW
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7012$as_echo "$M4" >&6; }
be01d343 7013else
81ecdfbb
RW
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015$as_echo "no" >&6; }
be01d343
PB
7016fi
7017
81ecdfbb 7018
c6b750e1 7019 test -n "$M4" && break
be01d343
PB
7020done
7021test -n "$M4" || M4="$MISSING m4"
7022
7023case " $build_configdirs " in
7024 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7025esac
7026
7027for ac_prog in flex lex
7028do
c6b750e1 7029 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7030set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032$as_echo_n "checking for $ac_word... " >&6; }
7033if test "${ac_cv_prog_LEX+set}" = set; then :
7034 $as_echo_n "(cached) " >&6
be01d343
PB
7035else
7036 if test -n "$LEX"; then
7037 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7038else
c6b750e1
DJ
7039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040for as_dir in $PATH
7041do
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7046 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7048 break 2
7049 fi
7050done
81ecdfbb
RW
7051 done
7052IFS=$as_save_IFS
c6b750e1 7053
be01d343
PB
7054fi
7055fi
c6b750e1 7056LEX=$ac_cv_prog_LEX
be01d343 7057if test -n "$LEX"; then
81ecdfbb
RW
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7059$as_echo "$LEX" >&6; }
be01d343 7060else
81ecdfbb
RW
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062$as_echo "no" >&6; }
be01d343
PB
7063fi
7064
81ecdfbb 7065
c6b750e1 7066 test -n "$LEX" && break
be01d343
PB
7067done
7068test -n "$LEX" || LEX="$MISSING flex"
7069
7070case " $build_configdirs " in
7071 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7072 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7073esac
7074
7075for ac_prog in flex
7076do
c6b750e1 7077 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7078set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080$as_echo_n "checking for $ac_word... " >&6; }
7081if test "${ac_cv_prog_FLEX+set}" = set; then :
7082 $as_echo_n "(cached) " >&6
be01d343
PB
7083else
7084 if test -n "$FLEX"; then
7085 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7086else
c6b750e1
DJ
7087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088for as_dir in $PATH
7089do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7094 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7096 break 2
7097 fi
7098done
81ecdfbb
RW
7099 done
7100IFS=$as_save_IFS
c6b750e1 7101
be01d343
PB
7102fi
7103fi
c6b750e1 7104FLEX=$ac_cv_prog_FLEX
be01d343 7105if test -n "$FLEX"; then
81ecdfbb
RW
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7107$as_echo "$FLEX" >&6; }
be01d343 7108else
81ecdfbb
RW
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110$as_echo "no" >&6; }
be01d343
PB
7111fi
7112
81ecdfbb 7113
c6b750e1 7114 test -n "$FLEX" && break
be01d343
PB
7115done
7116test -n "$FLEX" || FLEX="$MISSING flex"
7117
7118case " $build_configdirs " in
7119 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7120esac
7121
7122for ac_prog in makeinfo
7123do
c6b750e1 7124 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7125set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7127$as_echo_n "checking for $ac_word... " >&6; }
7128if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7129 $as_echo_n "(cached) " >&6
be01d343
PB
7130else
7131 if test -n "$MAKEINFO"; then
7132 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7133else
c6b750e1
DJ
7134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135for as_dir in $PATH
7136do
7137 IFS=$as_save_IFS
7138 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7139 for ac_exec_ext in '' $ac_executable_extensions; do
7140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7141 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7143 break 2
7144 fi
7145done
81ecdfbb
RW
7146 done
7147IFS=$as_save_IFS
c6b750e1 7148
be01d343
PB
7149fi
7150fi
c6b750e1 7151MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7152if test -n "$MAKEINFO"; then
81ecdfbb
RW
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7154$as_echo "$MAKEINFO" >&6; }
be01d343 7155else
81ecdfbb
RW
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7157$as_echo "no" >&6; }
be01d343
PB
7158fi
7159
81ecdfbb 7160
c6b750e1 7161 test -n "$MAKEINFO" && break
be01d343
PB
7162done
7163test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7164
7165case " $build_configdirs " in
7166 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7167 *)
7168
10ad8ef3 7169 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7170 # higher, else we use the "missing" dummy.
7171 if ${MAKEINFO} --version \
10ad8ef3 7172 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7173 :
7174 else
7175 MAKEINFO="$MISSING makeinfo"
7176 fi
7177 ;;
7178
7179esac
a0da8069 7180
be01d343 7181# FIXME: expect and dejagnu may become build tools?
a0da8069 7182
be01d343
PB
7183for ac_prog in expect
7184do
c6b750e1 7185 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7186set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7188$as_echo_n "checking for $ac_word... " >&6; }
7189if test "${ac_cv_prog_EXPECT+set}" = set; then :
7190 $as_echo_n "(cached) " >&6
be01d343
PB
7191else
7192 if test -n "$EXPECT"; then
7193 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7194else
c6b750e1
DJ
7195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7196for as_dir in $PATH
7197do
7198 IFS=$as_save_IFS
7199 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7200 for ac_exec_ext in '' $ac_executable_extensions; do
7201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7202 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7204 break 2
7205 fi
7206done
81ecdfbb
RW
7207 done
7208IFS=$as_save_IFS
c6b750e1 7209
be01d343
PB
7210fi
7211fi
c6b750e1 7212EXPECT=$ac_cv_prog_EXPECT
be01d343 7213if test -n "$EXPECT"; then
81ecdfbb
RW
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7215$as_echo "$EXPECT" >&6; }
be01d343 7216else
81ecdfbb
RW
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218$as_echo "no" >&6; }
be01d343 7219fi
a0da8069 7220
81ecdfbb 7221
c6b750e1 7222 test -n "$EXPECT" && break
be01d343
PB
7223done
7224test -n "$EXPECT" || EXPECT="expect"
a0da8069 7225
be01d343
PB
7226case " $configdirs " in
7227 *" expect "*)
7228 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7229 ;;
7230esac
a0da8069 7231
be01d343
PB
7232for ac_prog in runtest
7233do
c6b750e1 7234 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7235set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237$as_echo_n "checking for $ac_word... " >&6; }
7238if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7239 $as_echo_n "(cached) " >&6
be01d343
PB
7240else
7241 if test -n "$RUNTEST"; then
7242 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7243else
c6b750e1
DJ
7244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7251 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7253 break 2
7254 fi
7255done
81ecdfbb
RW
7256 done
7257IFS=$as_save_IFS
c6b750e1 7258
be01d343
PB
7259fi
7260fi
c6b750e1 7261RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7262if test -n "$RUNTEST"; then
81ecdfbb
RW
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7264$as_echo "$RUNTEST" >&6; }
be01d343 7265else
81ecdfbb
RW
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267$as_echo "no" >&6; }
be01d343 7268fi
a0da8069 7269
81ecdfbb 7270
c6b750e1 7271 test -n "$RUNTEST" && break
be01d343
PB
7272done
7273test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7274
be01d343
PB
7275case " $configdirs " in
7276 *" dejagnu "*)
6b89cc21 7277 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7278 ;;
7279esac
a0da8069
NN
7280
7281
a0da8069 7282# Host tools.
859789af
AC
7283ncn_tool_prefix=
7284test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7285ncn_target_tool_prefix=
7286test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7287
9a819804
AO
7288
7289
7290if test -n "$AR"; then
7291 ac_cv_prog_AR=$AR
7292elif test -n "$ac_cv_prog_AR"; then
7293 AR=$ac_cv_prog_AR
7294fi
7295
7296if test -n "$ac_cv_prog_AR"; then
7297 for ncn_progname in ar; do
7298 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7299set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7301$as_echo_n "checking for $ac_word... " >&6; }
7302if test "${ac_cv_prog_AR+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
9a819804
AO
7304else
7305 if test -n "$AR"; then
7306 ac_cv_prog_AR="$AR" # Let the user override the test.
7307else
7308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7309for as_dir in $PATH
7310do
7311 IFS=$as_save_IFS
7312 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7313 for ac_exec_ext in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7315 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7317 break 2
7318 fi
7319done
81ecdfbb
RW
7320 done
7321IFS=$as_save_IFS
9a819804
AO
7322
7323fi
7324fi
7325AR=$ac_cv_prog_AR
7326if test -n "$AR"; then
81ecdfbb
RW
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7328$as_echo "$AR" >&6; }
9a819804 7329else
81ecdfbb
RW
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7331$as_echo "no" >&6; }
9a819804
AO
7332fi
7333
81ecdfbb 7334
9a819804
AO
7335 done
7336fi
7337
7338for ncn_progname in ar; do
05cbd757
PB
7339 if test -n "$ncn_tool_prefix"; then
7340 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7341set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343$as_echo_n "checking for $ac_word... " >&6; }
7344if test "${ac_cv_prog_AR+set}" = set; then :
7345 $as_echo_n "(cached) " >&6
859789af
AC
7346else
7347 if test -n "$AR"; then
7348 ac_cv_prog_AR="$AR" # Let the user override the test.
7349else
c6b750e1
DJ
7350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351for as_dir in $PATH
7352do
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7357 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7359 break 2
7360 fi
7361done
81ecdfbb
RW
7362 done
7363IFS=$as_save_IFS
c6b750e1 7364
859789af
AC
7365fi
7366fi
c6b750e1 7367AR=$ac_cv_prog_AR
859789af 7368if test -n "$AR"; then
81ecdfbb
RW
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7370$as_echo "$AR" >&6; }
859789af 7371else
81ecdfbb
RW
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373$as_echo "no" >&6; }
859789af
AC
7374fi
7375
81ecdfbb 7376
05cbd757
PB
7377 fi
7378 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7379 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7380set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382$as_echo_n "checking for $ac_word... " >&6; }
7383if test "${ac_cv_prog_AR+set}" = set; then :
7384 $as_echo_n "(cached) " >&6
859789af 7385else
05cbd757
PB
7386 if test -n "$AR"; then
7387 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 7388else
c6b750e1
DJ
7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390for as_dir in $PATH
7391do
7392 IFS=$as_save_IFS
7393 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7394 for ac_exec_ext in '' $ac_executable_extensions; do
7395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7396 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7398 break 2
7399 fi
7400done
81ecdfbb
RW
7401 done
7402IFS=$as_save_IFS
c6b750e1 7403
859789af
AC
7404fi
7405fi
c6b750e1 7406AR=$ac_cv_prog_AR
05cbd757 7407if test -n "$AR"; then
81ecdfbb
RW
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7409$as_echo "$AR" >&6; }
859789af 7410else
81ecdfbb
RW
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412$as_echo "no" >&6; }
859789af 7413fi
c6b750e1 7414
81ecdfbb 7415
05cbd757
PB
7416 fi
7417 test -n "$ac_cv_prog_AR" && break
7418done
7419
7420if test -z "$ac_cv_prog_AR" ; then
7421 set dummy ar
7422 if test $build = $host ; then
7423 AR="$2"
859789af 7424 else
05cbd757 7425 AR="${ncn_tool_prefix}$2"
859789af 7426 fi
859789af
AC
7427fi
7428
9a819804
AO
7429
7430
7431if test -n "$AS"; then
7432 ac_cv_prog_AS=$AS
7433elif test -n "$ac_cv_prog_AS"; then
7434 AS=$ac_cv_prog_AS
7435fi
7436
7437if test -n "$ac_cv_prog_AS"; then
7438 for ncn_progname in as; do
7439 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7440set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442$as_echo_n "checking for $ac_word... " >&6; }
7443if test "${ac_cv_prog_AS+set}" = set; then :
7444 $as_echo_n "(cached) " >&6
9a819804
AO
7445else
7446 if test -n "$AS"; then
7447 ac_cv_prog_AS="$AS" # Let the user override the test.
7448else
7449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7456 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7458 break 2
7459 fi
7460done
81ecdfbb
RW
7461 done
7462IFS=$as_save_IFS
9a819804
AO
7463
7464fi
7465fi
7466AS=$ac_cv_prog_AS
7467if test -n "$AS"; then
81ecdfbb
RW
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7469$as_echo "$AS" >&6; }
9a819804 7470else
81ecdfbb
RW
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472$as_echo "no" >&6; }
9a819804
AO
7473fi
7474
81ecdfbb 7475
9a819804
AO
7476 done
7477fi
7478
7479for ncn_progname in as; do
05cbd757
PB
7480 if test -n "$ncn_tool_prefix"; then
7481 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7482set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7484$as_echo_n "checking for $ac_word... " >&6; }
7485if test "${ac_cv_prog_AS+set}" = set; then :
7486 $as_echo_n "(cached) " >&6
859789af
AC
7487else
7488 if test -n "$AS"; then
7489 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
7490else
7491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492for as_dir in $PATH
7493do
7494 IFS=$as_save_IFS
7495 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7496 for ac_exec_ext in '' $ac_executable_extensions; do
7497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7498 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7500 break 2
7501 fi
7502done
81ecdfbb
RW
7503 done
7504IFS=$as_save_IFS
c6b750e1 7505
859789af
AC
7506fi
7507fi
c6b750e1 7508AS=$ac_cv_prog_AS
859789af 7509if test -n "$AS"; then
81ecdfbb
RW
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7511$as_echo "$AS" >&6; }
859789af 7512else
81ecdfbb
RW
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7514$as_echo "no" >&6; }
859789af
AC
7515fi
7516
81ecdfbb 7517
05cbd757
PB
7518 fi
7519 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7521set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523$as_echo_n "checking for $ac_word... " >&6; }
7524if test "${ac_cv_prog_AS+set}" = set; then :
7525 $as_echo_n "(cached) " >&6
859789af 7526else
05cbd757
PB
7527 if test -n "$AS"; then
7528 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 7529else
c6b750e1
DJ
7530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533 IFS=$as_save_IFS
7534 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7535 for ac_exec_ext in '' $ac_executable_extensions; do
7536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7537 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7539 break 2
7540 fi
7541done
81ecdfbb
RW
7542 done
7543IFS=$as_save_IFS
c6b750e1 7544
859789af
AC
7545fi
7546fi
c6b750e1 7547AS=$ac_cv_prog_AS
05cbd757 7548if test -n "$AS"; then
81ecdfbb
RW
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7550$as_echo "$AS" >&6; }
859789af 7551else
81ecdfbb
RW
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553$as_echo "no" >&6; }
859789af 7554fi
c6b750e1 7555
81ecdfbb 7556
05cbd757
PB
7557 fi
7558 test -n "$ac_cv_prog_AS" && break
7559done
7560
7561if test -z "$ac_cv_prog_AS" ; then
7562 set dummy as
7563 if test $build = $host ; then
7564 AS="$2"
859789af 7565 else
05cbd757 7566 AS="${ncn_tool_prefix}$2"
859789af 7567 fi
859789af
AC
7568fi
7569
9a819804
AO
7570
7571
7572if test -n "$DLLTOOL"; then
7573 ac_cv_prog_DLLTOOL=$DLLTOOL
7574elif test -n "$ac_cv_prog_DLLTOOL"; then
7575 DLLTOOL=$ac_cv_prog_DLLTOOL
7576fi
7577
7578if test -n "$ac_cv_prog_DLLTOOL"; then
7579 for ncn_progname in dlltool; do
7580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7581set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583$as_echo_n "checking for $ac_word... " >&6; }
7584if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
9a819804
AO
7586else
7587 if test -n "$DLLTOOL"; then
7588 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7589else
7590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7591for as_dir in $PATH
7592do
7593 IFS=$as_save_IFS
7594 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7595 for ac_exec_ext in '' $ac_executable_extensions; do
7596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7597 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 7598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7599 break 2
7600 fi
7601done
81ecdfbb
RW
7602 done
7603IFS=$as_save_IFS
9a819804
AO
7604
7605fi
7606fi
7607DLLTOOL=$ac_cv_prog_DLLTOOL
7608if test -n "$DLLTOOL"; then
81ecdfbb
RW
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7610$as_echo "$DLLTOOL" >&6; }
9a819804 7611else
81ecdfbb
RW
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7613$as_echo "no" >&6; }
9a819804
AO
7614fi
7615
81ecdfbb 7616
9a819804
AO
7617 done
7618fi
7619
7620for ncn_progname in dlltool; do
05cbd757
PB
7621 if test -n "$ncn_tool_prefix"; then
7622 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7623set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625$as_echo_n "checking for $ac_word... " >&6; }
7626if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7627 $as_echo_n "(cached) " >&6
859789af
AC
7628else
7629 if test -n "$DLLTOOL"; then
7630 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7631else
c6b750e1
DJ
7632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633for as_dir in $PATH
7634do
7635 IFS=$as_save_IFS
7636 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7637 for ac_exec_ext in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7639 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7641 break 2
7642 fi
7643done
81ecdfbb
RW
7644 done
7645IFS=$as_save_IFS
c6b750e1 7646
859789af
AC
7647fi
7648fi
c6b750e1 7649DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 7650if test -n "$DLLTOOL"; then
81ecdfbb
RW
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7652$as_echo "$DLLTOOL" >&6; }
859789af 7653else
81ecdfbb
RW
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7655$as_echo "no" >&6; }
859789af
AC
7656fi
7657
81ecdfbb 7658
05cbd757
PB
7659 fi
7660 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7661 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7662set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664$as_echo_n "checking for $ac_word... " >&6; }
7665if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
859789af 7667else
05cbd757
PB
7668 if test -n "$DLLTOOL"; then
7669 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 7670else
c6b750e1
DJ
7671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672for as_dir in $PATH
7673do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7678 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7680 break 2
7681 fi
7682done
81ecdfbb
RW
7683 done
7684IFS=$as_save_IFS
c6b750e1 7685
859789af
AC
7686fi
7687fi
c6b750e1 7688DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 7689if test -n "$DLLTOOL"; then
81ecdfbb
RW
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7691$as_echo "$DLLTOOL" >&6; }
859789af 7692else
81ecdfbb
RW
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694$as_echo "no" >&6; }
859789af 7695fi
c6b750e1 7696
81ecdfbb 7697
05cbd757
PB
7698 fi
7699 test -n "$ac_cv_prog_DLLTOOL" && break
7700done
7701
7702if test -z "$ac_cv_prog_DLLTOOL" ; then
7703 set dummy dlltool
7704 if test $build = $host ; then
7705 DLLTOOL="$2"
859789af 7706 else
05cbd757 7707 DLLTOOL="${ncn_tool_prefix}$2"
859789af 7708 fi
859789af
AC
7709fi
7710
9a819804
AO
7711
7712
7713if test -n "$LD"; then
7714 ac_cv_prog_LD=$LD
7715elif test -n "$ac_cv_prog_LD"; then
7716 LD=$ac_cv_prog_LD
7717fi
7718
7719if test -n "$ac_cv_prog_LD"; then
7720 for ncn_progname in ld; do
7721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7722set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724$as_echo_n "checking for $ac_word... " >&6; }
7725if test "${ac_cv_prog_LD+set}" = set; then :
7726 $as_echo_n "(cached) " >&6
9a819804
AO
7727else
7728 if test -n "$LD"; then
7729 ac_cv_prog_LD="$LD" # Let the user override the test.
7730else
7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7738 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7740 break 2
7741 fi
7742done
81ecdfbb
RW
7743 done
7744IFS=$as_save_IFS
9a819804
AO
7745
7746fi
7747fi
7748LD=$ac_cv_prog_LD
7749if test -n "$LD"; then
81ecdfbb
RW
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7751$as_echo "$LD" >&6; }
9a819804 7752else
81ecdfbb
RW
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754$as_echo "no" >&6; }
9a819804
AO
7755fi
7756
81ecdfbb 7757
9a819804
AO
7758 done
7759fi
7760
7761for ncn_progname in ld; do
05cbd757
PB
7762 if test -n "$ncn_tool_prefix"; then
7763 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7764set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766$as_echo_n "checking for $ac_word... " >&6; }
7767if test "${ac_cv_prog_LD+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
859789af
AC
7769else
7770 if test -n "$LD"; then
7771 ac_cv_prog_LD="$LD" # Let the user override the test.
7772else
c6b750e1
DJ
7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7780 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7782 break 2
7783 fi
7784done
81ecdfbb
RW
7785 done
7786IFS=$as_save_IFS
c6b750e1 7787
859789af
AC
7788fi
7789fi
c6b750e1 7790LD=$ac_cv_prog_LD
859789af 7791if test -n "$LD"; then
81ecdfbb
RW
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7793$as_echo "$LD" >&6; }
859789af 7794else
81ecdfbb
RW
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796$as_echo "no" >&6; }
859789af
AC
7797fi
7798
81ecdfbb 7799
05cbd757
PB
7800 fi
7801 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7803set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805$as_echo_n "checking for $ac_word... " >&6; }
7806if test "${ac_cv_prog_LD+set}" = set; then :
7807 $as_echo_n "(cached) " >&6
859789af 7808else
05cbd757
PB
7809 if test -n "$LD"; then
7810 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 7811else
c6b750e1
DJ
7812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813for as_dir in $PATH
7814do
7815 IFS=$as_save_IFS
7816 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7817 for ac_exec_ext in '' $ac_executable_extensions; do
7818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7819 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 7820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7821 break 2
7822 fi
7823done
81ecdfbb
RW
7824 done
7825IFS=$as_save_IFS
c6b750e1 7826
859789af
AC
7827fi
7828fi
c6b750e1 7829LD=$ac_cv_prog_LD
05cbd757 7830if test -n "$LD"; then
81ecdfbb
RW
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7832$as_echo "$LD" >&6; }
859789af 7833else
81ecdfbb
RW
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835$as_echo "no" >&6; }
859789af 7836fi
c6b750e1 7837
81ecdfbb 7838
05cbd757
PB
7839 fi
7840 test -n "$ac_cv_prog_LD" && break
7841done
7842
7843if test -z "$ac_cv_prog_LD" ; then
7844 set dummy ld
7845 if test $build = $host ; then
7846 LD="$2"
859789af 7847 else
05cbd757 7848 LD="${ncn_tool_prefix}$2"
859789af 7849 fi
859789af
AC
7850fi
7851
9a819804
AO
7852
7853
7854if test -n "$LIPO"; then
7855 ac_cv_prog_LIPO=$LIPO
7856elif test -n "$ac_cv_prog_LIPO"; then
7857 LIPO=$ac_cv_prog_LIPO
7858fi
7859
7860if test -n "$ac_cv_prog_LIPO"; then
7861 for ncn_progname in lipo; do
7862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7863set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865$as_echo_n "checking for $ac_word... " >&6; }
7866if test "${ac_cv_prog_LIPO+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
9a819804
AO
7868else
7869 if test -n "$LIPO"; then
7870 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7871else
7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7879 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7881 break 2
7882 fi
7883done
81ecdfbb
RW
7884 done
7885IFS=$as_save_IFS
9a819804
AO
7886
7887fi
7888fi
7889LIPO=$ac_cv_prog_LIPO
7890if test -n "$LIPO"; then
81ecdfbb
RW
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7892$as_echo "$LIPO" >&6; }
9a819804 7893else
81ecdfbb
RW
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
9a819804
AO
7896fi
7897
81ecdfbb 7898
9a819804
AO
7899 done
7900fi
7901
7902for ncn_progname in lipo; do
be01d343
PB
7903 if test -n "$ncn_tool_prefix"; then
7904 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7905set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7907$as_echo_n "checking for $ac_word... " >&6; }
7908if test "${ac_cv_prog_LIPO+set}" = set; then :
7909 $as_echo_n "(cached) " >&6
be01d343
PB
7910else
7911 if test -n "$LIPO"; then
7912 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7913else
c6b750e1
DJ
7914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915for as_dir in $PATH
7916do
7917 IFS=$as_save_IFS
7918 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7921 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7923 break 2
7924 fi
7925done
81ecdfbb
RW
7926 done
7927IFS=$as_save_IFS
c6b750e1 7928
be01d343
PB
7929fi
7930fi
c6b750e1 7931LIPO=$ac_cv_prog_LIPO
be01d343 7932if test -n "$LIPO"; then
81ecdfbb
RW
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7934$as_echo "$LIPO" >&6; }
be01d343 7935else
81ecdfbb
RW
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7937$as_echo "no" >&6; }
be01d343
PB
7938fi
7939
81ecdfbb 7940
be01d343
PB
7941 fi
7942 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7944set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7946$as_echo_n "checking for $ac_word... " >&6; }
7947if test "${ac_cv_prog_LIPO+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
be01d343
PB
7949else
7950 if test -n "$LIPO"; then
7951 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7952else
c6b750e1
DJ
7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7954for as_dir in $PATH
7955do
7956 IFS=$as_save_IFS
7957 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7958 for ac_exec_ext in '' $ac_executable_extensions; do
7959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7960 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7962 break 2
7963 fi
7964done
81ecdfbb
RW
7965 done
7966IFS=$as_save_IFS
c6b750e1 7967
be01d343
PB
7968fi
7969fi
c6b750e1 7970LIPO=$ac_cv_prog_LIPO
be01d343 7971if test -n "$LIPO"; then
81ecdfbb
RW
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7973$as_echo "$LIPO" >&6; }
be01d343 7974else
81ecdfbb
RW
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976$as_echo "no" >&6; }
be01d343 7977fi
c6b750e1 7978
81ecdfbb 7979
be01d343
PB
7980 fi
7981 test -n "$ac_cv_prog_LIPO" && break
7982done
7983
7984if test -z "$ac_cv_prog_LIPO" ; then
7985 set dummy lipo
7986 if test $build = $host ; then
7987 LIPO="$2"
7988 else
7989 LIPO="${ncn_tool_prefix}$2"
7990 fi
7991fi
7992
9a819804
AO
7993
7994
7995if test -n "$NM"; then
7996 ac_cv_prog_NM=$NM
7997elif test -n "$ac_cv_prog_NM"; then
7998 NM=$ac_cv_prog_NM
7999fi
8000
8001if test -n "$ac_cv_prog_NM"; then
8002 for ncn_progname in nm; do
8003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8004set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006$as_echo_n "checking for $ac_word... " >&6; }
8007if test "${ac_cv_prog_NM+set}" = set; then :
8008 $as_echo_n "(cached) " >&6
859789af
AC
8009else
8010 if test -n "$NM"; then
8011 ac_cv_prog_NM="$NM" # Let the user override the test.
8012else
c6b750e1
DJ
8013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8014for as_dir in $PATH
8015do
8016 IFS=$as_save_IFS
8017 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8018 for ac_exec_ext in '' $ac_executable_extensions; do
8019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8020 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8022 break 2
8023 fi
8024done
81ecdfbb
RW
8025 done
8026IFS=$as_save_IFS
c6b750e1 8027
859789af
AC
8028fi
8029fi
c6b750e1 8030NM=$ac_cv_prog_NM
859789af 8031if test -n "$NM"; then
81ecdfbb
RW
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8033$as_echo "$NM" >&6; }
859789af 8034else
81ecdfbb
RW
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8036$as_echo "no" >&6; }
859789af
AC
8037fi
8038
81ecdfbb 8039
9a819804
AO
8040 done
8041fi
8042
8043for ncn_progname in nm; do
8044 if test -n "$ncn_tool_prefix"; then
8045 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8046set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8048$as_echo_n "checking for $ac_word... " >&6; }
8049if test "${ac_cv_prog_NM+set}" = set; then :
8050 $as_echo_n "(cached) " >&6
859789af 8051else
05cbd757
PB
8052 if test -n "$NM"; then
8053 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8054else
c6b750e1
DJ
8055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8056for as_dir in $PATH
8057do
8058 IFS=$as_save_IFS
8059 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8060 for ac_exec_ext in '' $ac_executable_extensions; do
8061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8062 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8064 break 2
8065 fi
8066done
81ecdfbb
RW
8067 done
8068IFS=$as_save_IFS
c6b750e1 8069
859789af
AC
8070fi
8071fi
c6b750e1 8072NM=$ac_cv_prog_NM
05cbd757 8073if test -n "$NM"; then
81ecdfbb
RW
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8075$as_echo "$NM" >&6; }
859789af 8076else
81ecdfbb
RW
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8078$as_echo "no" >&6; }
859789af 8079fi
c6b750e1 8080
81ecdfbb 8081
05cbd757 8082 fi
9a819804
AO
8083 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8085set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8087$as_echo_n "checking for $ac_word... " >&6; }
8088if test "${ac_cv_prog_NM+set}" = set; then :
8089 $as_echo_n "(cached) " >&6
9a819804
AO
8090else
8091 if test -n "$NM"; then
8092 ac_cv_prog_NM="$NM" # Let the user override the test.
8093else
8094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095for as_dir in $PATH
8096do
8097 IFS=$as_save_IFS
8098 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8099 for ac_exec_ext in '' $ac_executable_extensions; do
8100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8101 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8103 break 2
8104 fi
8105done
81ecdfbb
RW
8106 done
8107IFS=$as_save_IFS
9a819804
AO
8108
8109fi
8110fi
8111NM=$ac_cv_prog_NM
8112if test -n "$NM"; then
81ecdfbb
RW
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8114$as_echo "$NM" >&6; }
9a819804 8115else
81ecdfbb
RW
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8117$as_echo "no" >&6; }
9a819804
AO
8118fi
8119
81ecdfbb 8120
9a819804
AO
8121 fi
8122 test -n "$ac_cv_prog_NM" && break
8123done
8124
8125if test -z "$ac_cv_prog_NM" ; then
8126 set dummy nm
8127 if test $build = $host ; then
8128 NM="$2"
8129 else
8130 NM="${ncn_tool_prefix}$2"
8131 fi
8132fi
8133
8134
8135
8136if test -n "$RANLIB"; then
8137 ac_cv_prog_RANLIB=$RANLIB
8138elif test -n "$ac_cv_prog_RANLIB"; then
8139 RANLIB=$ac_cv_prog_RANLIB
8140fi
8141
8142if test -n "$ac_cv_prog_RANLIB"; then
8143 for ncn_progname in ranlib; do
8144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8145set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147$as_echo_n "checking for $ac_word... " >&6; }
8148if test "${ac_cv_prog_RANLIB+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
9a819804
AO
8150else
8151 if test -n "$RANLIB"; then
8152 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8153else
8154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8155for as_dir in $PATH
8156do
8157 IFS=$as_save_IFS
8158 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8159 for ac_exec_ext in '' $ac_executable_extensions; do
8160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8161 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8163 break 2
8164 fi
8165done
81ecdfbb
RW
8166 done
8167IFS=$as_save_IFS
9a819804
AO
8168
8169fi
8170fi
8171RANLIB=$ac_cv_prog_RANLIB
8172if test -n "$RANLIB"; then
81ecdfbb
RW
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8174$as_echo "$RANLIB" >&6; }
9a819804 8175else
81ecdfbb
RW
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177$as_echo "no" >&6; }
9a819804
AO
8178fi
8179
81ecdfbb 8180
9a819804
AO
8181 done
8182fi
859789af 8183
9a819804 8184for ncn_progname in ranlib; do
05cbd757
PB
8185 if test -n "$ncn_tool_prefix"; then
8186 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8187set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8189$as_echo_n "checking for $ac_word... " >&6; }
8190if test "${ac_cv_prog_RANLIB+set}" = set; then :
8191 $as_echo_n "(cached) " >&6
859789af
AC
8192else
8193 if test -n "$RANLIB"; then
8194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8195else
c6b750e1
DJ
8196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197for as_dir in $PATH
8198do
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8201 for ac_exec_ext in '' $ac_executable_extensions; do
8202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8203 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8205 break 2
8206 fi
8207done
81ecdfbb
RW
8208 done
8209IFS=$as_save_IFS
c6b750e1 8210
859789af
AC
8211fi
8212fi
c6b750e1 8213RANLIB=$ac_cv_prog_RANLIB
859789af 8214if test -n "$RANLIB"; then
81ecdfbb
RW
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8216$as_echo "$RANLIB" >&6; }
859789af 8217else
81ecdfbb
RW
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219$as_echo "no" >&6; }
859789af
AC
8220fi
8221
81ecdfbb 8222
05cbd757
PB
8223 fi
8224 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8226set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8228$as_echo_n "checking for $ac_word... " >&6; }
8229if test "${ac_cv_prog_RANLIB+set}" = set; then :
8230 $as_echo_n "(cached) " >&6
859789af 8231else
05cbd757
PB
8232 if test -n "$RANLIB"; then
8233 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8234else
c6b750e1
DJ
8235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236for as_dir in $PATH
8237do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8240 for ac_exec_ext in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8242 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8244 break 2
8245 fi
8246done
81ecdfbb
RW
8247 done
8248IFS=$as_save_IFS
c6b750e1 8249
859789af
AC
8250fi
8251fi
c6b750e1 8252RANLIB=$ac_cv_prog_RANLIB
05cbd757 8253if test -n "$RANLIB"; then
81ecdfbb
RW
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8255$as_echo "$RANLIB" >&6; }
859789af 8256else
81ecdfbb
RW
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258$as_echo "no" >&6; }
859789af 8259fi
c6b750e1 8260
81ecdfbb 8261
859789af 8262 fi
05cbd757
PB
8263 test -n "$ac_cv_prog_RANLIB" && break
8264done
8265
8266if test -z "$ac_cv_prog_RANLIB" ; then
8267 RANLIB=":"
859789af
AC
8268fi
8269
9a819804
AO
8270
8271
8272if test -n "$STRIP"; then
8273 ac_cv_prog_STRIP=$STRIP
8274elif test -n "$ac_cv_prog_STRIP"; then
8275 STRIP=$ac_cv_prog_STRIP
8276fi
8277
8278if test -n "$ac_cv_prog_STRIP"; then
8279 for ncn_progname in strip; do
8280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8281set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8283$as_echo_n "checking for $ac_word... " >&6; }
8284if test "${ac_cv_prog_STRIP+set}" = set; then :
8285 $as_echo_n "(cached) " >&6
9a819804
AO
8286else
8287 if test -n "$STRIP"; then
8288 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8289else
8290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291for as_dir in $PATH
8292do
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8297 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8299 break 2
8300 fi
8301done
81ecdfbb
RW
8302 done
8303IFS=$as_save_IFS
9a819804
AO
8304
8305fi
8306fi
8307STRIP=$ac_cv_prog_STRIP
8308if test -n "$STRIP"; then
81ecdfbb
RW
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8310$as_echo "$STRIP" >&6; }
9a819804 8311else
81ecdfbb
RW
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8313$as_echo "no" >&6; }
9a819804
AO
8314fi
8315
81ecdfbb 8316
9a819804
AO
8317 done
8318fi
8319
8320for ncn_progname in strip; do
be01d343
PB
8321 if test -n "$ncn_tool_prefix"; then
8322 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8323set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325$as_echo_n "checking for $ac_word... " >&6; }
8326if test "${ac_cv_prog_STRIP+set}" = set; then :
8327 $as_echo_n "(cached) " >&6
be01d343
PB
8328else
8329 if test -n "$STRIP"; then
8330 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8331else
c6b750e1
DJ
8332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8333for as_dir in $PATH
8334do
8335 IFS=$as_save_IFS
8336 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8337 for ac_exec_ext in '' $ac_executable_extensions; do
8338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8339 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8341 break 2
8342 fi
8343done
81ecdfbb
RW
8344 done
8345IFS=$as_save_IFS
c6b750e1 8346
be01d343
PB
8347fi
8348fi
c6b750e1 8349STRIP=$ac_cv_prog_STRIP
be01d343 8350if test -n "$STRIP"; then
81ecdfbb
RW
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8352$as_echo "$STRIP" >&6; }
be01d343 8353else
81ecdfbb
RW
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355$as_echo "no" >&6; }
be01d343
PB
8356fi
8357
81ecdfbb 8358
be01d343
PB
8359 fi
8360 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8362set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8364$as_echo_n "checking for $ac_word... " >&6; }
8365if test "${ac_cv_prog_STRIP+set}" = set; then :
8366 $as_echo_n "(cached) " >&6
be01d343
PB
8367else
8368 if test -n "$STRIP"; then
8369 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8370else
c6b750e1
DJ
8371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372for as_dir in $PATH
8373do
8374 IFS=$as_save_IFS
8375 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8376 for ac_exec_ext in '' $ac_executable_extensions; do
8377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8378 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8380 break 2
8381 fi
8382done
81ecdfbb
RW
8383 done
8384IFS=$as_save_IFS
c6b750e1 8385
be01d343
PB
8386fi
8387fi
c6b750e1 8388STRIP=$ac_cv_prog_STRIP
be01d343 8389if test -n "$STRIP"; then
81ecdfbb
RW
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8391$as_echo "$STRIP" >&6; }
be01d343 8392else
81ecdfbb
RW
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394$as_echo "no" >&6; }
be01d343 8395fi
c6b750e1 8396
81ecdfbb 8397
be01d343
PB
8398 fi
8399 test -n "$ac_cv_prog_STRIP" && break
8400done
8401
8402if test -z "$ac_cv_prog_STRIP" ; then
8403 STRIP=":"
8404fi
8405
9a819804
AO
8406
8407
8408if test -n "$WINDRES"; then
8409 ac_cv_prog_WINDRES=$WINDRES
8410elif test -n "$ac_cv_prog_WINDRES"; then
8411 WINDRES=$ac_cv_prog_WINDRES
8412fi
8413
8414if test -n "$ac_cv_prog_WINDRES"; then
8415 for ncn_progname in windres; do
8416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8417set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419$as_echo_n "checking for $ac_word... " >&6; }
8420if test "${ac_cv_prog_WINDRES+set}" = set; then :
8421 $as_echo_n "(cached) " >&6
9a819804
AO
8422else
8423 if test -n "$WINDRES"; then
8424 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8425else
8426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8427for as_dir in $PATH
8428do
8429 IFS=$as_save_IFS
8430 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8431 for ac_exec_ext in '' $ac_executable_extensions; do
8432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8433 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8435 break 2
8436 fi
8437done
81ecdfbb
RW
8438 done
8439IFS=$as_save_IFS
9a819804
AO
8440
8441fi
8442fi
8443WINDRES=$ac_cv_prog_WINDRES
8444if test -n "$WINDRES"; then
81ecdfbb
RW
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8446$as_echo "$WINDRES" >&6; }
9a819804 8447else
81ecdfbb
RW
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8449$as_echo "no" >&6; }
9a819804
AO
8450fi
8451
81ecdfbb 8452
9a819804
AO
8453 done
8454fi
8455
8456for ncn_progname in windres; do
05cbd757
PB
8457 if test -n "$ncn_tool_prefix"; then
8458 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8459set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8461$as_echo_n "checking for $ac_word... " >&6; }
8462if test "${ac_cv_prog_WINDRES+set}" = set; then :
8463 $as_echo_n "(cached) " >&6
859789af
AC
8464else
8465 if test -n "$WINDRES"; then
8466 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8467else
c6b750e1
DJ
8468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8469for as_dir in $PATH
8470do
8471 IFS=$as_save_IFS
8472 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8473 for ac_exec_ext in '' $ac_executable_extensions; do
8474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8475 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8477 break 2
8478 fi
8479done
81ecdfbb
RW
8480 done
8481IFS=$as_save_IFS
c6b750e1 8482
859789af
AC
8483fi
8484fi
c6b750e1 8485WINDRES=$ac_cv_prog_WINDRES
859789af 8486if test -n "$WINDRES"; then
81ecdfbb
RW
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8488$as_echo "$WINDRES" >&6; }
859789af 8489else
81ecdfbb
RW
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491$as_echo "no" >&6; }
859789af
AC
8492fi
8493
81ecdfbb 8494
05cbd757
PB
8495 fi
8496 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8498set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8500$as_echo_n "checking for $ac_word... " >&6; }
8501if test "${ac_cv_prog_WINDRES+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
859789af 8503else
05cbd757
PB
8504 if test -n "$WINDRES"; then
8505 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 8506else
c6b750e1
DJ
8507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508for as_dir in $PATH
8509do
8510 IFS=$as_save_IFS
8511 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8512 for ac_exec_ext in '' $ac_executable_extensions; do
8513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8514 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8516 break 2
8517 fi
8518done
81ecdfbb
RW
8519 done
8520IFS=$as_save_IFS
c6b750e1 8521
859789af
AC
8522fi
8523fi
c6b750e1 8524WINDRES=$ac_cv_prog_WINDRES
05cbd757 8525if test -n "$WINDRES"; then
81ecdfbb
RW
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8527$as_echo "$WINDRES" >&6; }
859789af 8528else
81ecdfbb
RW
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8530$as_echo "no" >&6; }
859789af 8531fi
c6b750e1 8532
81ecdfbb 8533
05cbd757
PB
8534 fi
8535 test -n "$ac_cv_prog_WINDRES" && break
8536done
8537
8538if test -z "$ac_cv_prog_WINDRES" ; then
8539 set dummy windres
8540 if test $build = $host ; then
8541 WINDRES="$2"
859789af 8542 else
05cbd757 8543 WINDRES="${ncn_tool_prefix}$2"
859789af 8544 fi
859789af
AC
8545fi
8546
9a819804
AO
8547
8548
0c24b341
NC
8549if test -n "$WINDMC"; then
8550 ac_cv_prog_WINDMC=$WINDMC
8551elif test -n "$ac_cv_prog_WINDMC"; then
8552 WINDMC=$ac_cv_prog_WINDMC
8553fi
8554
8555if test -n "$ac_cv_prog_WINDMC"; then
8556 for ncn_progname in windmc; do
8557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8558set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8560$as_echo_n "checking for $ac_word... " >&6; }
8561if test "${ac_cv_prog_WINDMC+set}" = set; then :
8562 $as_echo_n "(cached) " >&6
0c24b341
NC
8563else
8564 if test -n "$WINDMC"; then
8565 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8566else
8567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568for as_dir in $PATH
8569do
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 8574 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
8576 break 2
8577 fi
8578done
81ecdfbb
RW
8579 done
8580IFS=$as_save_IFS
0c24b341
NC
8581
8582fi
8583fi
8584WINDMC=$ac_cv_prog_WINDMC
8585if test -n "$WINDMC"; then
81ecdfbb
RW
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8587$as_echo "$WINDMC" >&6; }
0c24b341 8588else
81ecdfbb
RW
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8590$as_echo "no" >&6; }
0c24b341
NC
8591fi
8592
81ecdfbb 8593
0c24b341
NC
8594 done
8595fi
8596
8597for ncn_progname in windmc; do
8598 if test -n "$ncn_tool_prefix"; then
8599 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8600set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8602$as_echo_n "checking for $ac_word... " >&6; }
8603if test "${ac_cv_prog_WINDMC+set}" = set; then :
8604 $as_echo_n "(cached) " >&6
0c24b341
NC
8605else
8606 if test -n "$WINDMC"; then
8607 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8608else
8609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610for as_dir in $PATH
8611do
8612 IFS=$as_save_IFS
8613 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8614 for ac_exec_ext in '' $ac_executable_extensions; do
8615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 8616 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
8618 break 2
8619 fi
8620done
81ecdfbb
RW
8621 done
8622IFS=$as_save_IFS
0c24b341
NC
8623
8624fi
8625fi
8626WINDMC=$ac_cv_prog_WINDMC
8627if test -n "$WINDMC"; then
81ecdfbb
RW
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8629$as_echo "$WINDMC" >&6; }
0c24b341 8630else
81ecdfbb
RW
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632$as_echo "no" >&6; }
0c24b341
NC
8633fi
8634
81ecdfbb 8635
0c24b341
NC
8636 fi
8637 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8639set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641$as_echo_n "checking for $ac_word... " >&6; }
8642if test "${ac_cv_prog_WINDMC+set}" = set; then :
8643 $as_echo_n "(cached) " >&6
0c24b341
NC
8644else
8645 if test -n "$WINDMC"; then
8646 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8647else
8648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649for as_dir in $PATH
8650do
8651 IFS=$as_save_IFS
8652 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8653 for ac_exec_ext in '' $ac_executable_extensions; do
8654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 8655 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
8657 break 2
8658 fi
8659done
81ecdfbb
RW
8660 done
8661IFS=$as_save_IFS
0c24b341
NC
8662
8663fi
8664fi
8665WINDMC=$ac_cv_prog_WINDMC
8666if test -n "$WINDMC"; then
81ecdfbb
RW
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8668$as_echo "$WINDMC" >&6; }
0c24b341 8669else
81ecdfbb
RW
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671$as_echo "no" >&6; }
0c24b341
NC
8672fi
8673
81ecdfbb 8674
0c24b341
NC
8675 fi
8676 test -n "$ac_cv_prog_WINDMC" && break
8677done
8678
8679if test -z "$ac_cv_prog_WINDMC" ; then
8680 set dummy windmc
8681 if test $build = $host ; then
8682 WINDMC="$2"
8683 else
8684 WINDMC="${ncn_tool_prefix}$2"
8685 fi
8686fi
8687
8688
8689
9a819804
AO
8690if test -n "$OBJCOPY"; then
8691 ac_cv_prog_OBJCOPY=$OBJCOPY
8692elif test -n "$ac_cv_prog_OBJCOPY"; then
8693 OBJCOPY=$ac_cv_prog_OBJCOPY
8694fi
8695
8696if test -n "$ac_cv_prog_OBJCOPY"; then
8697 for ncn_progname in objcopy; do
8698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8699set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8701$as_echo_n "checking for $ac_word... " >&6; }
8702if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8703 $as_echo_n "(cached) " >&6
9a819804
AO
8704else
8705 if test -n "$OBJCOPY"; then
8706 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8707else
8708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8709for as_dir in $PATH
8710do
8711 IFS=$as_save_IFS
8712 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8713 for ac_exec_ext in '' $ac_executable_extensions; do
8714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8715 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 8716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8717 break 2
8718 fi
8719done
81ecdfbb
RW
8720 done
8721IFS=$as_save_IFS
9a819804
AO
8722
8723fi
8724fi
8725OBJCOPY=$ac_cv_prog_OBJCOPY
8726if test -n "$OBJCOPY"; then
81ecdfbb
RW
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8728$as_echo "$OBJCOPY" >&6; }
9a819804 8729else
81ecdfbb
RW
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8731$as_echo "no" >&6; }
9a819804
AO
8732fi
8733
81ecdfbb 8734
9a819804
AO
8735 done
8736fi
8737
8738for ncn_progname in objcopy; do
05cbd757
PB
8739 if test -n "$ncn_tool_prefix"; then
8740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8741set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8743$as_echo_n "checking for $ac_word... " >&6; }
8744if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8745 $as_echo_n "(cached) " >&6
859789af
AC
8746else
8747 if test -n "$OBJCOPY"; then
8748 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8749else
c6b750e1
DJ
8750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751for as_dir in $PATH
8752do
8753 IFS=$as_save_IFS
8754 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8755 for ac_exec_ext in '' $ac_executable_extensions; do
8756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8757 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8759 break 2
8760 fi
8761done
81ecdfbb
RW
8762 done
8763IFS=$as_save_IFS
c6b750e1 8764
859789af
AC
8765fi
8766fi
c6b750e1 8767OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 8768if test -n "$OBJCOPY"; then
81ecdfbb
RW
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8770$as_echo "$OBJCOPY" >&6; }
859789af 8771else
81ecdfbb
RW
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8773$as_echo "no" >&6; }
859789af
AC
8774fi
8775
81ecdfbb 8776
05cbd757
PB
8777 fi
8778 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8780set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782$as_echo_n "checking for $ac_word... " >&6; }
8783if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8784 $as_echo_n "(cached) " >&6
859789af 8785else
05cbd757
PB
8786 if test -n "$OBJCOPY"; then
8787 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 8788else
c6b750e1
DJ
8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790for as_dir in $PATH
8791do
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8796 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8798 break 2
8799 fi
8800done
81ecdfbb
RW
8801 done
8802IFS=$as_save_IFS
c6b750e1 8803
859789af
AC
8804fi
8805fi
c6b750e1 8806OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 8807if test -n "$OBJCOPY"; then
81ecdfbb
RW
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8809$as_echo "$OBJCOPY" >&6; }
859789af 8810else
81ecdfbb
RW
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
859789af 8813fi
c6b750e1 8814
81ecdfbb 8815
05cbd757
PB
8816 fi
8817 test -n "$ac_cv_prog_OBJCOPY" && break
8818done
8819
8820if test -z "$ac_cv_prog_OBJCOPY" ; then
8821 set dummy objcopy
8822 if test $build = $host ; then
8823 OBJCOPY="$2"
859789af 8824 else
05cbd757 8825 OBJCOPY="${ncn_tool_prefix}$2"
859789af 8826 fi
859789af
AC
8827fi
8828
9a819804
AO
8829
8830
8831if test -n "$OBJDUMP"; then
8832 ac_cv_prog_OBJDUMP=$OBJDUMP
8833elif test -n "$ac_cv_prog_OBJDUMP"; then
8834 OBJDUMP=$ac_cv_prog_OBJDUMP
8835fi
8836
8837if test -n "$ac_cv_prog_OBJDUMP"; then
8838 for ncn_progname in objdump; do
8839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8840set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842$as_echo_n "checking for $ac_word... " >&6; }
8843if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8844 $as_echo_n "(cached) " >&6
9a819804
AO
8845else
8846 if test -n "$OBJDUMP"; then
8847 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8848else
8849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850for as_dir in $PATH
8851do
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8856 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 8857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8858 break 2
8859 fi
8860done
81ecdfbb
RW
8861 done
8862IFS=$as_save_IFS
9a819804
AO
8863
8864fi
8865fi
8866OBJDUMP=$ac_cv_prog_OBJDUMP
8867if test -n "$OBJDUMP"; then
81ecdfbb
RW
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8869$as_echo "$OBJDUMP" >&6; }
9a819804 8870else
81ecdfbb
RW
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872$as_echo "no" >&6; }
9a819804
AO
8873fi
8874
81ecdfbb 8875
9a819804
AO
8876 done
8877fi
8878
8879for ncn_progname in objdump; do
05cbd757
PB
8880 if test -n "$ncn_tool_prefix"; then
8881 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8882set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8884$as_echo_n "checking for $ac_word... " >&6; }
8885if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8886 $as_echo_n "(cached) " >&6
859789af
AC
8887else
8888 if test -n "$OBJDUMP"; then
8889 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8890else
c6b750e1
DJ
8891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8892for as_dir in $PATH
8893do
8894 IFS=$as_save_IFS
8895 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8896 for ac_exec_ext in '' $ac_executable_extensions; do
8897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8898 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8900 break 2
8901 fi
8902done
81ecdfbb
RW
8903 done
8904IFS=$as_save_IFS
c6b750e1 8905
859789af
AC
8906fi
8907fi
c6b750e1 8908OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8909if test -n "$OBJDUMP"; then
81ecdfbb
RW
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8911$as_echo "$OBJDUMP" >&6; }
859789af 8912else
81ecdfbb
RW
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8914$as_echo "no" >&6; }
859789af
AC
8915fi
8916
81ecdfbb 8917
05cbd757
PB
8918 fi
8919 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8921set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923$as_echo_n "checking for $ac_word... " >&6; }
8924if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8925 $as_echo_n "(cached) " >&6
859789af 8926else
05cbd757
PB
8927 if test -n "$OBJDUMP"; then
8928 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8929else
c6b750e1
DJ
8930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931for as_dir in $PATH
8932do
8933 IFS=$as_save_IFS
8934 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8935 for ac_exec_ext in '' $ac_executable_extensions; do
8936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8937 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8939 break 2
8940 fi
8941done
81ecdfbb
RW
8942 done
8943IFS=$as_save_IFS
c6b750e1 8944
859789af
AC
8945fi
8946fi
c6b750e1 8947OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8948if test -n "$OBJDUMP"; then
81ecdfbb
RW
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8950$as_echo "$OBJDUMP" >&6; }
859789af 8951else
81ecdfbb
RW
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }
859789af 8954fi
c6b750e1 8955
81ecdfbb 8956
05cbd757
PB
8957 fi
8958 test -n "$ac_cv_prog_OBJDUMP" && break
8959done
8960
8961if test -z "$ac_cv_prog_OBJDUMP" ; then
8962 set dummy objdump
8963 if test $build = $host ; then
8964 OBJDUMP="$2"
859789af 8965 else
05cbd757 8966 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8967 fi
859789af
AC
8968fi
8969
a0da8069
NN
8970
8971
8972
8973
8974
be01d343 8975# Target tools.
c6b750e1 8976
81ecdfbb
RW
8977# Check whether --with-build-time-tools was given.
8978if test "${with_build_time_tools+set}" = set; then :
8979 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
8980 x/*) ;;
8981 *)
8982 with_build_time_tools=
81ecdfbb
RW
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8984$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8985 ;;
8986 esac
859789af 8987else
2429c060 8988 with_build_time_tools=
81ecdfbb
RW
8989fi
8990
859789af 8991
9a819804
AO
8992
8993
8994if test -n "$CC_FOR_TARGET"; then
8995 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8996elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8997 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8998fi
8999
9000if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9001 for ncn_progname in cc gcc; do
9002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9003set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005$as_echo_n "checking for $ac_word... " >&6; }
9006if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9007 $as_echo_n "(cached) " >&6
9a819804
AO
9008else
9009 if test -n "$CC_FOR_TARGET"; then
9010 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9011else
9012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013for as_dir in $PATH
9014do
9015 IFS=$as_save_IFS
9016 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9019 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9021 break 2
9022 fi
9023done
81ecdfbb
RW
9024 done
9025IFS=$as_save_IFS
9a819804
AO
9026
9027fi
9028fi
9029CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9030if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9032$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9033else
81ecdfbb
RW
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035$as_echo "no" >&6; }
9a819804
AO
9036fi
9037
81ecdfbb 9038
9a819804
AO
9039 done
9040fi
9041
9042if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9043 for ncn_progname in cc gcc; do
81ecdfbb
RW
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9045$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9046 if test -x $with_build_time_tools/${ncn_progname}; then
9047 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9049$as_echo "yes" >&6; }
cac3d6c4 9050 break
2429c060 9051 else
81ecdfbb
RW
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9053$as_echo "no" >&6; }
cac3d6c4
CM
9054 fi
9055 done
55db4b87
PB
9056fi
9057
2429c060
PB
9058if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9059 for ncn_progname in cc gcc; do
9060 if test -n "$ncn_target_tool_prefix"; then
9061 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9062set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064$as_echo_n "checking for $ac_word... " >&6; }
9065if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
55db4b87
PB
9067else
9068 if test -n "$CC_FOR_TARGET"; then
9069 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9070else
c6b750e1
DJ
9071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072for as_dir in $PATH
9073do
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9078 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9080 break 2
9081 fi
9082done
81ecdfbb
RW
9083 done
9084IFS=$as_save_IFS
c6b750e1 9085
55db4b87
PB
9086fi
9087fi
c6b750e1 9088CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9089if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9091$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9092else
81ecdfbb
RW
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094$as_echo "no" >&6; }
55db4b87
PB
9095fi
9096
81ecdfbb 9097
2429c060
PB
9098 fi
9099 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9101set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103$as_echo_n "checking for $ac_word... " >&6; }
9104if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9105 $as_echo_n "(cached) " >&6
55db4b87 9106else
05cbd757
PB
9107 if test -n "$CC_FOR_TARGET"; then
9108 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9109else
c6b750e1
DJ
9110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9111for as_dir in $PATH
9112do
9113 IFS=$as_save_IFS
9114 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9115 for ac_exec_ext in '' $ac_executable_extensions; do
9116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9117 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9119 break 2
9120 fi
9121done
81ecdfbb
RW
9122 done
9123IFS=$as_save_IFS
c6b750e1 9124
55db4b87
PB
9125fi
9126fi
c6b750e1 9127CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9128if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9130$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9131else
81ecdfbb
RW
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9133$as_echo "no" >&6; }
55db4b87 9134fi
c6b750e1 9135
81ecdfbb 9136
2429c060
PB
9137 fi
9138 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9139 done
9140fi
c6b750e1 9141
05cbd757
PB
9142if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9143 set dummy cc gcc
9144 if test $build = $target ; then
9145 CC_FOR_TARGET="$2"
55db4b87 9146 else
05cbd757 9147 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9148 fi
d3f5afc4
MS
9149else
9150 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9151fi
9152
9a819804
AO
9153
9154
9155if test -n "$CXX_FOR_TARGET"; then
9156 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9157elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9158 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9159fi
9160
9161if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9162 for ncn_progname in c++ g++ cxx gxx; do
9163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9164set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166$as_echo_n "checking for $ac_word... " >&6; }
9167if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9a819804
AO
9169else
9170 if test -n "$CXX_FOR_TARGET"; then
9171 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9172else
9173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9174for as_dir in $PATH
9175do
9176 IFS=$as_save_IFS
9177 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9178 for ac_exec_ext in '' $ac_executable_extensions; do
9179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9180 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9182 break 2
9183 fi
9184done
81ecdfbb
RW
9185 done
9186IFS=$as_save_IFS
9a819804
AO
9187
9188fi
9189fi
9190CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9191if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9193$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9194else
81ecdfbb
RW
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9196$as_echo "no" >&6; }
9a819804
AO
9197fi
9198
81ecdfbb 9199
9a819804
AO
9200 done
9201fi
9202
9203if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9204 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9206$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9207 if test -x $with_build_time_tools/${ncn_progname}; then
9208 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9210$as_echo "yes" >&6; }
2429c060
PB
9211 break
9212 else
81ecdfbb
RW
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9214$as_echo "no" >&6; }
2429c060
PB
9215 fi
9216 done
9217fi
9218
9219if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9220 for ncn_progname in c++ g++ cxx gxx; do
9221 if test -n "$ncn_target_tool_prefix"; then
9222 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9223set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225$as_echo_n "checking for $ac_word... " >&6; }
9226if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9227 $as_echo_n "(cached) " >&6
55db4b87
PB
9228else
9229 if test -n "$CXX_FOR_TARGET"; then
9230 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9231else
c6b750e1
DJ
9232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233for as_dir in $PATH
9234do
9235 IFS=$as_save_IFS
9236 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9237 for ac_exec_ext in '' $ac_executable_extensions; do
9238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9239 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9241 break 2
9242 fi
9243done
81ecdfbb
RW
9244 done
9245IFS=$as_save_IFS
c6b750e1 9246
55db4b87
PB
9247fi
9248fi
c6b750e1 9249CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9250if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9252$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9253else
81ecdfbb
RW
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255$as_echo "no" >&6; }
55db4b87
PB
9256fi
9257
81ecdfbb 9258
2429c060
PB
9259 fi
9260 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9261 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9262set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9264$as_echo_n "checking for $ac_word... " >&6; }
9265if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9266 $as_echo_n "(cached) " >&6
55db4b87 9267else
05cbd757
PB
9268 if test -n "$CXX_FOR_TARGET"; then
9269 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9270else
c6b750e1
DJ
9271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272for as_dir in $PATH
9273do
9274 IFS=$as_save_IFS
9275 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9276 for ac_exec_ext in '' $ac_executable_extensions; do
9277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9278 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9280 break 2
9281 fi
9282done
81ecdfbb
RW
9283 done
9284IFS=$as_save_IFS
c6b750e1 9285
55db4b87
PB
9286fi
9287fi
c6b750e1 9288CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9289if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9291$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9292else
81ecdfbb
RW
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9294$as_echo "no" >&6; }
55db4b87 9295fi
c6b750e1 9296
81ecdfbb 9297
2429c060
PB
9298 fi
9299 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9300 done
9301fi
c6b750e1 9302
05cbd757
PB
9303if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9304 set dummy c++ g++ cxx gxx
9305 if test $build = $target ; then
9306 CXX_FOR_TARGET="$2"
55db4b87 9307 else
05cbd757 9308 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9309 fi
d3f5afc4
MS
9310else
9311 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9312fi
9313
9a819804
AO
9314
9315
9316if test -n "$GCC_FOR_TARGET"; then
9317 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9318elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9319 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9320fi
9321
9322if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9323 for ncn_progname in gcc; do
9324 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9325set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9327$as_echo_n "checking for $ac_word... " >&6; }
9328if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9329 $as_echo_n "(cached) " >&6
9a819804
AO
9330else
9331 if test -n "$GCC_FOR_TARGET"; then
9332 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9333else
9334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335for as_dir in $PATH
9336do
9337 IFS=$as_save_IFS
9338 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9339 for ac_exec_ext in '' $ac_executable_extensions; do
9340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9341 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9343 break 2
9344 fi
9345done
81ecdfbb
RW
9346 done
9347IFS=$as_save_IFS
9a819804
AO
9348
9349fi
9350fi
9351GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9352if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9354$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 9355else
81ecdfbb
RW
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9357$as_echo "no" >&6; }
9a819804
AO
9358fi
9359
81ecdfbb 9360
9a819804
AO
9361 done
9362fi
9363
9364if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9365 for ncn_progname in gcc; do
81ecdfbb
RW
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9367$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9368 if test -x $with_build_time_tools/${ncn_progname}; then
9369 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9371$as_echo "yes" >&6; }
2429c060
PB
9372 break
9373 else
81ecdfbb
RW
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375$as_echo "no" >&6; }
2429c060
PB
9376 fi
9377 done
9378fi
9379
9380if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9381 for ncn_progname in gcc; do
9382 if test -n "$ncn_target_tool_prefix"; then
9383 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9384set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9386$as_echo_n "checking for $ac_word... " >&6; }
9387if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9388 $as_echo_n "(cached) " >&6
859789af 9389else
2429c060
PB
9390 if test -n "$GCC_FOR_TARGET"; then
9391 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9392else
c6b750e1
DJ
9393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9394for as_dir in $PATH
9395do
9396 IFS=$as_save_IFS
9397 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9398 for ac_exec_ext in '' $ac_executable_extensions; do
9399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9400 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9402 break 2
9403 fi
9404done
81ecdfbb
RW
9405 done
9406IFS=$as_save_IFS
c6b750e1 9407
55db4b87
PB
9408fi
9409fi
c6b750e1 9410GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 9411if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9413$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 9414else
81ecdfbb
RW
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9416$as_echo "no" >&6; }
55db4b87
PB
9417fi
9418
81ecdfbb 9419
2429c060
PB
9420 fi
9421 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9423set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9425$as_echo_n "checking for $ac_word... " >&6; }
9426if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9427 $as_echo_n "(cached) " >&6
55db4b87 9428else
05cbd757
PB
9429 if test -n "$GCC_FOR_TARGET"; then
9430 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9431else
c6b750e1
DJ
9432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9433for as_dir in $PATH
9434do
9435 IFS=$as_save_IFS
9436 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9437 for ac_exec_ext in '' $ac_executable_extensions; do
9438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9439 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9441 break 2
9442 fi
9443done
81ecdfbb
RW
9444 done
9445IFS=$as_save_IFS
c6b750e1 9446
55db4b87
PB
9447fi
9448fi
c6b750e1 9449GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 9450if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9452$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 9453else
81ecdfbb
RW
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9455$as_echo "no" >&6; }
55db4b87 9456fi
c6b750e1 9457
81ecdfbb 9458
2429c060
PB
9459 fi
9460 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9461 done
9462fi
c6b750e1 9463
05cbd757
PB
9464if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9465 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
9466else
9467 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
9468fi
9469
9a819804
AO
9470
9471
9472if test -n "$GCJ_FOR_TARGET"; then
9473 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9474elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9475 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9476fi
9477
9478if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9479 for ncn_progname in gcj; do
9480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9481set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9483$as_echo_n "checking for $ac_word... " >&6; }
9484if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9485 $as_echo_n "(cached) " >&6
9a819804
AO
9486else
9487 if test -n "$GCJ_FOR_TARGET"; then
9488 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9489else
9490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491for as_dir in $PATH
9492do
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9497 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 9498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9499 break 2
9500 fi
9501done
81ecdfbb
RW
9502 done
9503IFS=$as_save_IFS
9a819804
AO
9504
9505fi
9506fi
9507GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9508if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9510$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9511else
81ecdfbb
RW
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513$as_echo "no" >&6; }
9a819804
AO
9514fi
9515
81ecdfbb 9516
9a819804
AO
9517 done
9518fi
9519
9520if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9521 for ncn_progname in gcj; do
81ecdfbb
RW
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9523$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9524 if test -x $with_build_time_tools/${ncn_progname}; then
9525 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9527$as_echo "yes" >&6; }
2429c060
PB
9528 break
9529 else
81ecdfbb
RW
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531$as_echo "no" >&6; }
2429c060
PB
9532 fi
9533 done
9534fi
9535
9536if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9537 for ncn_progname in gcj; do
9538 if test -n "$ncn_target_tool_prefix"; then
9539 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9540set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9542$as_echo_n "checking for $ac_word... " >&6; }
9543if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9544 $as_echo_n "(cached) " >&6
55db4b87
PB
9545else
9546 if test -n "$GCJ_FOR_TARGET"; then
9547 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9548else
c6b750e1
DJ
9549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550for as_dir in $PATH
9551do
9552 IFS=$as_save_IFS
9553 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9554 for ac_exec_ext in '' $ac_executable_extensions; do
9555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9556 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9558 break 2
9559 fi
9560done
81ecdfbb
RW
9561 done
9562IFS=$as_save_IFS
c6b750e1 9563
55db4b87
PB
9564fi
9565fi
9a819804
AO
9566GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9567if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9569$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9570else
81ecdfbb
RW
9571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9572$as_echo "no" >&6; }
9a819804
AO
9573fi
9574
81ecdfbb 9575
9a819804
AO
9576 fi
9577 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9579set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9581$as_echo_n "checking for $ac_word... " >&6; }
9582if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9583 $as_echo_n "(cached) " >&6
9a819804
AO
9584else
9585 if test -n "$GCJ_FOR_TARGET"; then
9586 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9587else
9588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9589for as_dir in $PATH
9590do
9591 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9593 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9595 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9597 break 2
9598 fi
9599done
81ecdfbb
RW
9600 done
9601IFS=$as_save_IFS
9a819804
AO
9602
9603fi
9604fi
9605GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9606if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9608$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9609else
81ecdfbb
RW
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9611$as_echo "no" >&6; }
9a819804
AO
9612fi
9613
81ecdfbb 9614
9a819804
AO
9615 fi
9616 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9617 done
9618fi
9619
9620if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9621 set dummy gcj
9622 if test $build = $target ; then
9623 GCJ_FOR_TARGET="$2"
9624 else
9625 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9626 fi
d3f5afc4
MS
9627else
9628 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
9629fi
9630
9631
9632
9633if test -n "$GFORTRAN_FOR_TARGET"; then
9634 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9635elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9636 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
9637fi
9638
9a819804
AO
9639if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9640 for ncn_progname in gfortran; do
9641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9642set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644$as_echo_n "checking for $ac_word... " >&6; }
9645if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
55db4b87 9647else
9a819804
AO
9648 if test -n "$GFORTRAN_FOR_TARGET"; then
9649 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 9650else
c6b750e1
DJ
9651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652for as_dir in $PATH
9653do
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9658 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9660 break 2
9661 fi
9662done
81ecdfbb
RW
9663 done
9664IFS=$as_save_IFS
c6b750e1 9665
55db4b87
PB
9666fi
9667fi
9a819804
AO
9668GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9669if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9671$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 9672else
81ecdfbb
RW
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674$as_echo "no" >&6; }
55db4b87 9675fi
c6b750e1 9676
81ecdfbb 9677
2429c060
PB
9678 done
9679fi
c6b750e1 9680
9a819804 9681if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9682 for ncn_progname in gfortran; do
81ecdfbb
RW
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9684$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9685 if test -x $with_build_time_tools/${ncn_progname}; then
9686 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9688$as_echo "yes" >&6; }
2429c060
PB
9689 break
9690 else
81ecdfbb
RW
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692$as_echo "no" >&6; }
2429c060
PB
9693 fi
9694 done
9695fi
9696
9697if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9698 for ncn_progname in gfortran; do
9699 if test -n "$ncn_target_tool_prefix"; then
9700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9701set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9703$as_echo_n "checking for $ac_word... " >&6; }
9704if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9705 $as_echo_n "(cached) " >&6
55db4b87
PB
9706else
9707 if test -n "$GFORTRAN_FOR_TARGET"; then
9708 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9709else
c6b750e1
DJ
9710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711for as_dir in $PATH
9712do
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9717 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9719 break 2
9720 fi
9721done
81ecdfbb
RW
9722 done
9723IFS=$as_save_IFS
c6b750e1 9724
55db4b87
PB
9725fi
9726fi
c6b750e1 9727GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 9728if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9730$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 9731else
81ecdfbb
RW
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733$as_echo "no" >&6; }
55db4b87
PB
9734fi
9735
81ecdfbb 9736
2429c060
PB
9737 fi
9738 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9740set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742$as_echo_n "checking for $ac_word... " >&6; }
9743if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
55db4b87 9745else
05cbd757 9746 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9747 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9748else
9749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9750for as_dir in $PATH
9751do
9752 IFS=$as_save_IFS
9753 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9754 for ac_exec_ext in '' $ac_executable_extensions; do
9755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9756 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 9757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9758 break 2
9759 fi
9760done
81ecdfbb
RW
9761 done
9762IFS=$as_save_IFS
c6b750e1 9763
55db4b87
PB
9764fi
9765fi
c6b750e1 9766GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 9767if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9769$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 9770else
81ecdfbb
RW
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772$as_echo "no" >&6; }
55db4b87 9773fi
c6b750e1 9774
81ecdfbb 9775
2429c060
PB
9776 fi
9777 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9778 done
9779fi
c6b750e1 9780
05cbd757
PB
9781if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9782 set dummy gfortran
9783 if test $build = $target ; then
9784 GFORTRAN_FOR_TARGET="$2"
55db4b87 9785 else
05cbd757 9786 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9787 fi
d3f5afc4
MS
9788else
9789 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
9790fi
9791
2429c060
PB
9792
9793
2429c060
PB
9794cat > conftest.c << \EOF
9795#ifdef __GNUC__
9796 gcc_yay;
9797#endif
9798EOF
9799if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9800 have_gcc_for_target=yes
859789af 9801else
2429c060
PB
9802 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9803 have_gcc_for_target=no
859789af 9804fi
2429c060
PB
9805rm conftest.c
9806
9807
9808
859789af 9809
2429c060
PB
9810if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9811 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
9813$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9814 if test -x $with_build_time_tools/ar; then
9815 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9816 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
9818$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 9819 else
81ecdfbb
RW
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9821$as_echo "no" >&6; }
3a35eeb3 9822 fi
2429c060
PB
9823 elif test $build != $host && test $have_gcc_for_target = yes; then
9824 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
9825 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9826 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 9827 fi
2429c060 9828fi
c6b750e1 9829if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9830 # Extract the first word of "ar", so it can be a program name with args.
9831set dummy ar; ac_word=$2
81ecdfbb
RW
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9833$as_echo_n "checking for $ac_word... " >&6; }
9834if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
9835 $as_echo_n "(cached) " >&6
859789af 9836else
c6b750e1
DJ
9837 case $AR_FOR_TARGET in
9838 [\\/]* | ?:[\\/]*)
2429c060
PB
9839 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9840 ;;
2429c060 9841 *)
c6b750e1
DJ
9842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9843for as_dir in $gcc_cv_tool_dirs
9844do
9845 IFS=$as_save_IFS
9846 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9847 for ac_exec_ext in '' $ac_executable_extensions; do
9848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9849 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 9850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9851 break 2
9852 fi
9853done
81ecdfbb
RW
9854 done
9855IFS=$as_save_IFS
c6b750e1 9856
2429c060
PB
9857 ;;
9858esac
859789af 9859fi
c6b750e1 9860AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 9861if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9863$as_echo "$AR_FOR_TARGET" >&6; }
859789af 9864else
81ecdfbb
RW
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866$as_echo "no" >&6; }
859789af 9867fi
05cbd757 9868
81ecdfbb 9869
2429c060
PB
9870fi
9871if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
9872
9873
9874if test -n "$AR_FOR_TARGET"; then
9875 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9876elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9877 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9878fi
9879
9880if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9881 for ncn_progname in ar; do
9882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9883set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9885$as_echo_n "checking for $ac_word... " >&6; }
9886if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9a819804
AO
9888else
9889 if test -n "$AR_FOR_TARGET"; then
9890 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9891else
9892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9893for as_dir in $PATH
9894do
9895 IFS=$as_save_IFS
9896 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9897 for ac_exec_ext in '' $ac_executable_extensions; do
9898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9899 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 9900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9901 break 2
9902 fi
9903done
81ecdfbb
RW
9904 done
9905IFS=$as_save_IFS
9a819804
AO
9906
9907fi
9908fi
9909AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9910if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9912$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 9913else
81ecdfbb
RW
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9915$as_echo "no" >&6; }
9a819804
AO
9916fi
9917
81ecdfbb 9918
9a819804
AO
9919 done
9920fi
9921
9922if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9923 for ncn_progname in ar; do
81ecdfbb
RW
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9925$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9926 if test -x $with_build_time_tools/${ncn_progname}; then
9927 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9929$as_echo "yes" >&6; }
2429c060
PB
9930 break
9931 else
81ecdfbb
RW
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933$as_echo "no" >&6; }
2429c060
PB
9934 fi
9935 done
859789af
AC
9936fi
9937
2429c060
PB
9938if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9939 for ncn_progname in ar; do
9940 if test -n "$ncn_target_tool_prefix"; then
9941 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9942set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9944$as_echo_n "checking for $ac_word... " >&6; }
9945if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9946 $as_echo_n "(cached) " >&6
7e0f7140 9947else
2429c060
PB
9948 if test -n "$AR_FOR_TARGET"; then
9949 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9950else
c6b750e1
DJ
9951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952for as_dir in $PATH
9953do
9954 IFS=$as_save_IFS
9955 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9956 for ac_exec_ext in '' $ac_executable_extensions; do
9957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9958 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9960 break 2
9961 fi
9962done
81ecdfbb
RW
9963 done
9964IFS=$as_save_IFS
c6b750e1 9965
7e0f7140
GK
9966fi
9967fi
c6b750e1 9968AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9969if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9971$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 9972else
81ecdfbb
RW
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9974$as_echo "no" >&6; }
7e0f7140
GK
9975fi
9976
81ecdfbb 9977
2429c060
PB
9978 fi
9979 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9981set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983$as_echo_n "checking for $ac_word... " >&6; }
9984if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9985 $as_echo_n "(cached) " >&6
7e0f7140 9986else
2429c060
PB
9987 if test -n "$AR_FOR_TARGET"; then
9988 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9989else
c6b750e1
DJ
9990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991for as_dir in $PATH
9992do
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9997 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9999 break 2
10000 fi
10001done
81ecdfbb
RW
10002 done
10003IFS=$as_save_IFS
c6b750e1 10004
7e0f7140
GK
10005fi
10006fi
c6b750e1 10007AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10008if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10010$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10011else
81ecdfbb
RW
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10013$as_echo "no" >&6; }
7e0f7140 10014fi
c6b750e1 10015
81ecdfbb 10016
2429c060
PB
10017 fi
10018 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10019 done
10020fi
c6b750e1 10021
2429c060
PB
10022if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10023 set dummy ar
7e0f7140 10024 if test $build = $target ; then
2429c060 10025 AR_FOR_TARGET="$2"
7e0f7140 10026 else
2429c060 10027 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10028 fi
d3f5afc4
MS
10029else
10030 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10031fi
10032
3a35eeb3
PB
10033else
10034 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10035fi
10036
10037
10038
10039
10040if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10041 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10043$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10044 if test -x $with_build_time_tools/as; then
10045 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10046 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10048$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10049 else
81ecdfbb
RW
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051$as_echo "no" >&6; }
3a35eeb3 10052 fi
2429c060
PB
10053 elif test $build != $host && test $have_gcc_for_target = yes; then
10054 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10055 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10056 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10057 fi
10058fi
c6b750e1 10059if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10060 # Extract the first word of "as", so it can be a program name with args.
10061set dummy as; ac_word=$2
81ecdfbb
RW
10062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063$as_echo_n "checking for $ac_word... " >&6; }
10064if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10065 $as_echo_n "(cached) " >&6
2429c060 10066else
c6b750e1
DJ
10067 case $AS_FOR_TARGET in
10068 [\\/]* | ?:[\\/]*)
2429c060
PB
10069 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10070 ;;
2429c060 10071 *)
c6b750e1
DJ
10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10073for as_dir in $gcc_cv_tool_dirs
10074do
10075 IFS=$as_save_IFS
10076 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10077 for ac_exec_ext in '' $ac_executable_extensions; do
10078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10079 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10081 break 2
10082 fi
10083done
81ecdfbb
RW
10084 done
10085IFS=$as_save_IFS
c6b750e1 10086
2429c060
PB
10087 ;;
10088esac
10089fi
c6b750e1 10090AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10091if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10093$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10094else
81ecdfbb
RW
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10096$as_echo "no" >&6; }
2429c060
PB
10097fi
10098
81ecdfbb 10099
2429c060
PB
10100fi
10101if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10102
10103
10104if test -n "$AS_FOR_TARGET"; then
10105 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10106elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10107 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10108fi
10109
10110if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10111 for ncn_progname in as; do
10112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10113set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10115$as_echo_n "checking for $ac_word... " >&6; }
10116if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
9a819804
AO
10118else
10119 if test -n "$AS_FOR_TARGET"; then
10120 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10121else
10122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10123for as_dir in $PATH
10124do
10125 IFS=$as_save_IFS
10126 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10127 for ac_exec_ext in '' $ac_executable_extensions; do
10128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10129 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10131 break 2
10132 fi
10133done
81ecdfbb
RW
10134 done
10135IFS=$as_save_IFS
9a819804
AO
10136
10137fi
10138fi
10139AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10140if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10142$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10143else
81ecdfbb
RW
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145$as_echo "no" >&6; }
9a819804
AO
10146fi
10147
81ecdfbb 10148
9a819804
AO
10149 done
10150fi
10151
10152if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10153 for ncn_progname in as; do
81ecdfbb
RW
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10155$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10156 if test -x $with_build_time_tools/${ncn_progname}; then
10157 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10159$as_echo "yes" >&6; }
2429c060
PB
10160 break
10161 else
81ecdfbb
RW
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163$as_echo "no" >&6; }
2429c060
PB
10164 fi
10165 done
10166fi
10167
10168if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10169 for ncn_progname in as; do
10170 if test -n "$ncn_target_tool_prefix"; then
10171 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10172set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10174$as_echo_n "checking for $ac_word... " >&6; }
10175if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
2429c060
PB
10177else
10178 if test -n "$AS_FOR_TARGET"; then
10179 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10180else
c6b750e1
DJ
10181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182for as_dir in $PATH
10183do
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10188 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10190 break 2
10191 fi
10192done
81ecdfbb
RW
10193 done
10194IFS=$as_save_IFS
c6b750e1 10195
2429c060
PB
10196fi
10197fi
c6b750e1 10198AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10199if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10201$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10202else
81ecdfbb
RW
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204$as_echo "no" >&6; }
2429c060
PB
10205fi
10206
81ecdfbb 10207
2429c060
PB
10208 fi
10209 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10211set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213$as_echo_n "checking for $ac_word... " >&6; }
10214if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10215 $as_echo_n "(cached) " >&6
2429c060
PB
10216else
10217 if test -n "$AS_FOR_TARGET"; then
10218 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10219else
c6b750e1
DJ
10220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221for as_dir in $PATH
10222do
10223 IFS=$as_save_IFS
10224 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10227 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10229 break 2
10230 fi
10231done
81ecdfbb
RW
10232 done
10233IFS=$as_save_IFS
c6b750e1 10234
2429c060
PB
10235fi
10236fi
c6b750e1 10237AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10238if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10240$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10241else
81ecdfbb
RW
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243$as_echo "no" >&6; }
2429c060 10244fi
c6b750e1 10245
81ecdfbb 10246
2429c060
PB
10247 fi
10248 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10249 done
10250fi
c6b750e1 10251
2429c060
PB
10252if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10253 set dummy as
10254 if test $build = $target ; then
10255 AS_FOR_TARGET="$2"
10256 else
10257 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10258 fi
d3f5afc4
MS
10259else
10260 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
10261fi
10262
3a35eeb3
PB
10263else
10264 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
10265fi
10266
10267
10268
10269
10270if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10271 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10273$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10274 if test -x $with_build_time_tools/dlltool; then
10275 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10276 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10278$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 10279 else
81ecdfbb
RW
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281$as_echo "no" >&6; }
3a35eeb3 10282 fi
2429c060
PB
10283 elif test $build != $host && test $have_gcc_for_target = yes; then
10284 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
10285 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10286 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
10287 fi
10288fi
c6b750e1 10289if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10290 # Extract the first word of "dlltool", so it can be a program name with args.
10291set dummy dlltool; ac_word=$2
81ecdfbb
RW
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10293$as_echo_n "checking for $ac_word... " >&6; }
10294if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10295 $as_echo_n "(cached) " >&6
2429c060 10296else
c6b750e1
DJ
10297 case $DLLTOOL_FOR_TARGET in
10298 [\\/]* | ?:[\\/]*)
2429c060
PB
10299 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10300 ;;
2429c060 10301 *)
c6b750e1
DJ
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303for as_dir in $gcc_cv_tool_dirs
10304do
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10309 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10311 break 2
10312 fi
10313done
81ecdfbb
RW
10314 done
10315IFS=$as_save_IFS
c6b750e1 10316
2429c060
PB
10317 ;;
10318esac
10319fi
c6b750e1 10320DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 10321if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10323$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10324else
81ecdfbb
RW
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326$as_echo "no" >&6; }
2429c060
PB
10327fi
10328
81ecdfbb 10329
2429c060
PB
10330fi
10331if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
10332
10333
10334if test -n "$DLLTOOL_FOR_TARGET"; then
10335 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10336elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10337 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10338fi
10339
10340if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10341 for ncn_progname in dlltool; do
10342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10343set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10345$as_echo_n "checking for $ac_word... " >&6; }
10346if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10347 $as_echo_n "(cached) " >&6
9a819804
AO
10348else
10349 if test -n "$DLLTOOL_FOR_TARGET"; then
10350 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10351else
10352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10353for as_dir in $PATH
10354do
10355 IFS=$as_save_IFS
10356 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10357 for ac_exec_ext in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10359 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10361 break 2
10362 fi
10363done
81ecdfbb
RW
10364 done
10365IFS=$as_save_IFS
9a819804
AO
10366
10367fi
10368fi
10369DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10370if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10372$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 10373else
81ecdfbb
RW
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375$as_echo "no" >&6; }
9a819804
AO
10376fi
10377
81ecdfbb 10378
9a819804
AO
10379 done
10380fi
10381
10382if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10383 for ncn_progname in dlltool; do
81ecdfbb
RW
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10385$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10386 if test -x $with_build_time_tools/${ncn_progname}; then
10387 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10389$as_echo "yes" >&6; }
2429c060
PB
10390 break
10391 else
81ecdfbb
RW
10392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393$as_echo "no" >&6; }
2429c060
PB
10394 fi
10395 done
10396fi
10397
10398if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10399 for ncn_progname in dlltool; do
10400 if test -n "$ncn_target_tool_prefix"; then
10401 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10402set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10404$as_echo_n "checking for $ac_word... " >&6; }
10405if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10406 $as_echo_n "(cached) " >&6
2429c060
PB
10407else
10408 if test -n "$DLLTOOL_FOR_TARGET"; then
10409 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10410else
c6b750e1
DJ
10411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10412for as_dir in $PATH
10413do
10414 IFS=$as_save_IFS
10415 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10416 for ac_exec_ext in '' $ac_executable_extensions; do
10417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10418 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10420 break 2
10421 fi
10422done
81ecdfbb
RW
10423 done
10424IFS=$as_save_IFS
c6b750e1 10425
2429c060
PB
10426fi
10427fi
c6b750e1 10428DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10429if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10431$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10432else
81ecdfbb
RW
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10434$as_echo "no" >&6; }
2429c060
PB
10435fi
10436
81ecdfbb 10437
2429c060
PB
10438 fi
10439 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10441set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10443$as_echo_n "checking for $ac_word... " >&6; }
10444if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10445 $as_echo_n "(cached) " >&6
2429c060
PB
10446else
10447 if test -n "$DLLTOOL_FOR_TARGET"; then
10448 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10449else
c6b750e1
DJ
10450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451for as_dir in $PATH
10452do
10453 IFS=$as_save_IFS
10454 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10455 for ac_exec_ext in '' $ac_executable_extensions; do
10456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10457 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 10458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10459 break 2
10460 fi
10461done
81ecdfbb
RW
10462 done
10463IFS=$as_save_IFS
c6b750e1 10464
2429c060
PB
10465fi
10466fi
c6b750e1 10467DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10468if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10470$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10471else
81ecdfbb
RW
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473$as_echo "no" >&6; }
2429c060 10474fi
c6b750e1 10475
81ecdfbb 10476
2429c060
PB
10477 fi
10478 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10479 done
10480fi
c6b750e1 10481
2429c060
PB
10482if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10483 set dummy dlltool
10484 if test $build = $target ; then
10485 DLLTOOL_FOR_TARGET="$2"
10486 else
10487 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10488 fi
d3f5afc4
MS
10489else
10490 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
10491fi
10492
3a35eeb3
PB
10493else
10494 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
10495fi
10496
10497
10498
10499
10500if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10501 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
10503$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10504 if test -x $with_build_time_tools/ld; then
10505 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10506 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
10508$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 10509 else
81ecdfbb
RW
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511$as_echo "no" >&6; }
3a35eeb3 10512 fi
2429c060
PB
10513 elif test $build != $host && test $have_gcc_for_target = yes; then
10514 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
10515 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10516 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
10517 fi
10518fi
c6b750e1 10519if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10520 # Extract the first word of "ld", so it can be a program name with args.
10521set dummy ld; ac_word=$2
81ecdfbb
RW
10522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523$as_echo_n "checking for $ac_word... " >&6; }
10524if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
10525 $as_echo_n "(cached) " >&6
2429c060 10526else
c6b750e1
DJ
10527 case $LD_FOR_TARGET in
10528 [\\/]* | ?:[\\/]*)
2429c060
PB
10529 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10530 ;;
2429c060 10531 *)
c6b750e1
DJ
10532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533for as_dir in $gcc_cv_tool_dirs
10534do
10535 IFS=$as_save_IFS
10536 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10537 for ac_exec_ext in '' $ac_executable_extensions; do
10538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10539 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10541 break 2
10542 fi
10543done
81ecdfbb
RW
10544 done
10545IFS=$as_save_IFS
c6b750e1 10546
2429c060
PB
10547 ;;
10548esac
10549fi
c6b750e1 10550LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 10551if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10553$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 10554else
81ecdfbb
RW
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10556$as_echo "no" >&6; }
2429c060
PB
10557fi
10558
81ecdfbb 10559
2429c060
PB
10560fi
10561if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
10562
10563
10564if test -n "$LD_FOR_TARGET"; then
10565 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10566elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10567 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10568fi
10569
10570if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10571 for ncn_progname in ld; do
10572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10573set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10575$as_echo_n "checking for $ac_word... " >&6; }
10576if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10577 $as_echo_n "(cached) " >&6
9a819804
AO
10578else
10579 if test -n "$LD_FOR_TARGET"; then
10580 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10581else
10582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583for as_dir in $PATH
10584do
10585 IFS=$as_save_IFS
10586 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10587 for ac_exec_ext in '' $ac_executable_extensions; do
10588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10589 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 10590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10591 break 2
10592 fi
10593done
81ecdfbb
RW
10594 done
10595IFS=$as_save_IFS
9a819804
AO
10596
10597fi
10598fi
10599LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10600if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10602$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 10603else
81ecdfbb
RW
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605$as_echo "no" >&6; }
9a819804
AO
10606fi
10607
81ecdfbb 10608
9a819804
AO
10609 done
10610fi
10611
10612if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10613 for ncn_progname in ld; do
81ecdfbb
RW
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10615$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10616 if test -x $with_build_time_tools/${ncn_progname}; then
10617 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10619$as_echo "yes" >&6; }
2429c060
PB
10620 break
10621 else
81ecdfbb
RW
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623$as_echo "no" >&6; }
2429c060
PB
10624 fi
10625 done
10626fi
10627
10628if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10629 for ncn_progname in ld; do
10630 if test -n "$ncn_target_tool_prefix"; then
10631 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10632set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10634$as_echo_n "checking for $ac_word... " >&6; }
10635if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10636 $as_echo_n "(cached) " >&6
2429c060
PB
10637else
10638 if test -n "$LD_FOR_TARGET"; then
10639 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10640else
c6b750e1
DJ
10641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10642for as_dir in $PATH
10643do
10644 IFS=$as_save_IFS
10645 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10646 for ac_exec_ext in '' $ac_executable_extensions; do
10647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10648 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10650 break 2
10651 fi
10652done
81ecdfbb
RW
10653 done
10654IFS=$as_save_IFS
c6b750e1 10655
2429c060
PB
10656fi
10657fi
c6b750e1 10658LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10659if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10661$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 10662else
81ecdfbb
RW
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664$as_echo "no" >&6; }
2429c060
PB
10665fi
10666
81ecdfbb 10667
2429c060
PB
10668 fi
10669 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10671set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10673$as_echo_n "checking for $ac_word... " >&6; }
10674if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10675 $as_echo_n "(cached) " >&6
2429c060
PB
10676else
10677 if test -n "$LD_FOR_TARGET"; then
10678 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10679else
c6b750e1
DJ
10680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681for as_dir in $PATH
10682do
10683 IFS=$as_save_IFS
10684 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10687 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 10688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10689 break 2
10690 fi
10691done
81ecdfbb
RW
10692 done
10693IFS=$as_save_IFS
c6b750e1 10694
2429c060
PB
10695fi
10696fi
c6b750e1 10697LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10698if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10700$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 10701else
81ecdfbb
RW
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703$as_echo "no" >&6; }
2429c060 10704fi
c6b750e1 10705
81ecdfbb 10706
2429c060
PB
10707 fi
10708 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10709 done
10710fi
c6b750e1 10711
2429c060
PB
10712if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10713 set dummy ld
10714 if test $build = $target ; then
10715 LD_FOR_TARGET="$2"
10716 else
10717 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10718 fi
d3f5afc4
MS
10719else
10720 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
10721fi
10722
3a35eeb3
PB
10723else
10724 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
10725fi
10726
10727
10728
10729
10730if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10731 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
10733$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10734 if test -x $with_build_time_tools/lipo; then
10735 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10736 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10738$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 10739 else
81ecdfbb
RW
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741$as_echo "no" >&6; }
3a35eeb3 10742 fi
2429c060
PB
10743 elif test $build != $host && test $have_gcc_for_target = yes; then
10744 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
10745 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10746 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
10747 fi
10748fi
9a819804
AO
10749if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10750 # Extract the first word of "lipo", so it can be a program name with args.
10751set dummy lipo; ac_word=$2
81ecdfbb
RW
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753$as_echo_n "checking for $ac_word... " >&6; }
10754if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
10755 $as_echo_n "(cached) " >&6
9a819804
AO
10756else
10757 case $LIPO_FOR_TARGET in
10758 [\\/]* | ?:[\\/]*)
10759 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10760 ;;
10761 *)
10762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10763for as_dir in $gcc_cv_tool_dirs
10764do
10765 IFS=$as_save_IFS
10766 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10767 for ac_exec_ext in '' $ac_executable_extensions; do
10768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10769 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10771 break 2
10772 fi
10773done
81ecdfbb
RW
10774 done
10775IFS=$as_save_IFS
9a819804
AO
10776
10777 ;;
10778esac
10779fi
10780LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 10781if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10783$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 10784else
81ecdfbb
RW
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786$as_echo "no" >&6; }
9a819804
AO
10787fi
10788
81ecdfbb 10789
9a819804
AO
10790fi
10791if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10792
10793
10794if test -n "$LIPO_FOR_TARGET"; then
10795 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10796elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10797 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10798fi
10799
10800if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10801 for ncn_progname in lipo; do
10802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10803set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10805$as_echo_n "checking for $ac_word... " >&6; }
10806if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10807 $as_echo_n "(cached) " >&6
2429c060 10808else
9a819804
AO
10809 if test -n "$LIPO_FOR_TARGET"; then
10810 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10811else
10812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10813for as_dir in $PATH
c6b750e1
DJ
10814do
10815 IFS=$as_save_IFS
10816 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10817 for ac_exec_ext in '' $ac_executable_extensions; do
10818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10819 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 10820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10821 break 2
10822 fi
10823done
81ecdfbb
RW
10824 done
10825IFS=$as_save_IFS
c6b750e1 10826
2429c060 10827fi
9a819804
AO
10828fi
10829LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10830if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10832$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 10833else
81ecdfbb
RW
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835$as_echo "no" >&6; }
2429c060
PB
10836fi
10837
81ecdfbb 10838
9a819804 10839 done
2429c060 10840fi
9a819804
AO
10841
10842if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10843 for ncn_progname in lipo; do
81ecdfbb
RW
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10845$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10846 if test -x $with_build_time_tools/${ncn_progname}; then
10847 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10849$as_echo "yes" >&6; }
2429c060
PB
10850 break
10851 else
81ecdfbb
RW
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10853$as_echo "no" >&6; }
2429c060
PB
10854 fi
10855 done
10856fi
10857
10858if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10859 for ncn_progname in lipo; do
10860 if test -n "$ncn_target_tool_prefix"; then
10861 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10862set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10864$as_echo_n "checking for $ac_word... " >&6; }
10865if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10866 $as_echo_n "(cached) " >&6
2429c060
PB
10867else
10868 if test -n "$LIPO_FOR_TARGET"; then
10869 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10870else
c6b750e1
DJ
10871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872for as_dir in $PATH
10873do
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10878 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10880 break 2
10881 fi
10882done
81ecdfbb
RW
10883 done
10884IFS=$as_save_IFS
c6b750e1 10885
2429c060
PB
10886fi
10887fi
c6b750e1 10888LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10889if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10891$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 10892else
81ecdfbb
RW
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894$as_echo "no" >&6; }
2429c060
PB
10895fi
10896
81ecdfbb 10897
2429c060
PB
10898 fi
10899 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10901set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903$as_echo_n "checking for $ac_word... " >&6; }
10904if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
2429c060
PB
10906else
10907 if test -n "$LIPO_FOR_TARGET"; then
10908 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10909else
c6b750e1
DJ
10910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911for as_dir in $PATH
10912do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10917 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 10918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10919 break 2
10920 fi
10921done
81ecdfbb
RW
10922 done
10923IFS=$as_save_IFS
c6b750e1 10924
2429c060
PB
10925fi
10926fi
c6b750e1 10927LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10928if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10930$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 10931else
81ecdfbb
RW
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933$as_echo "no" >&6; }
2429c060 10934fi
c6b750e1 10935
81ecdfbb 10936
2429c060
PB
10937 fi
10938 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10939 done
10940fi
c6b750e1 10941
2429c060
PB
10942if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10943 set dummy lipo
10944 if test $build = $target ; then
10945 LIPO_FOR_TARGET="$2"
10946 else
10947 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10948 fi
d3f5afc4
MS
10949else
10950 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
10951fi
10952
3a35eeb3
PB
10953else
10954 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10955fi
10956
10957
10958
10959
10960if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10961 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
10963$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10964 if test -x $with_build_time_tools/nm; then
10965 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10966 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
10968$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 10969 else
81ecdfbb
RW
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10971$as_echo "no" >&6; }
3a35eeb3 10972 fi
2429c060
PB
10973 elif test $build != $host && test $have_gcc_for_target = yes; then
10974 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10975 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10976 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10977 fi
10978fi
c6b750e1 10979if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10980 # Extract the first word of "nm", so it can be a program name with args.
10981set dummy nm; ac_word=$2
81ecdfbb
RW
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983$as_echo_n "checking for $ac_word... " >&6; }
10984if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
2429c060 10986else
c6b750e1
DJ
10987 case $NM_FOR_TARGET in
10988 [\\/]* | ?:[\\/]*)
2429c060
PB
10989 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10990 ;;
2429c060 10991 *)
c6b750e1
DJ
10992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10993for as_dir in $gcc_cv_tool_dirs
10994do
10995 IFS=$as_save_IFS
10996 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10997 for ac_exec_ext in '' $ac_executable_extensions; do
10998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10999 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11001 break 2
11002 fi
11003done
81ecdfbb
RW
11004 done
11005IFS=$as_save_IFS
c6b750e1 11006
2429c060
PB
11007 ;;
11008esac
11009fi
c6b750e1 11010NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11011if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11013$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11014else
81ecdfbb
RW
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016$as_echo "no" >&6; }
2429c060
PB
11017fi
11018
81ecdfbb 11019
2429c060
PB
11020fi
11021if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11022
11023
11024if test -n "$NM_FOR_TARGET"; then
11025 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11026elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11027 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11028fi
11029
11030if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11031 for ncn_progname in nm; do
11032 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11033set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11035$as_echo_n "checking for $ac_word... " >&6; }
11036if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
9a819804
AO
11038else
11039 if test -n "$NM_FOR_TARGET"; then
11040 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11041else
11042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043for as_dir in $PATH
11044do
11045 IFS=$as_save_IFS
11046 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11049 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11051 break 2
11052 fi
11053done
81ecdfbb
RW
11054 done
11055IFS=$as_save_IFS
9a819804
AO
11056
11057fi
11058fi
11059NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11060if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11062$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11063else
81ecdfbb
RW
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11065$as_echo "no" >&6; }
9a819804
AO
11066fi
11067
81ecdfbb 11068
9a819804
AO
11069 done
11070fi
11071
11072if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11073 for ncn_progname in nm; do
81ecdfbb
RW
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11075$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11076 if test -x $with_build_time_tools/${ncn_progname}; then
11077 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11079$as_echo "yes" >&6; }
2429c060
PB
11080 break
11081 else
81ecdfbb
RW
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11083$as_echo "no" >&6; }
2429c060
PB
11084 fi
11085 done
11086fi
11087
11088if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11089 for ncn_progname in nm; do
11090 if test -n "$ncn_target_tool_prefix"; then
11091 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11092set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11094$as_echo_n "checking for $ac_word... " >&6; }
11095if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11096 $as_echo_n "(cached) " >&6
859789af 11097else
55db4b87
PB
11098 if test -n "$NM_FOR_TARGET"; then
11099 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11100else
c6b750e1
DJ
11101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11102for as_dir in $PATH
11103do
11104 IFS=$as_save_IFS
11105 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11106 for ac_exec_ext in '' $ac_executable_extensions; do
11107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11108 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11110 break 2
11111 fi
11112done
81ecdfbb
RW
11113 done
11114IFS=$as_save_IFS
c6b750e1 11115
859789af
AC
11116fi
11117fi
c6b750e1 11118NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11119if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11121$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11122else
81ecdfbb
RW
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11124$as_echo "no" >&6; }
859789af
AC
11125fi
11126
81ecdfbb 11127
2429c060
PB
11128 fi
11129 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11130 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11131set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11133$as_echo_n "checking for $ac_word... " >&6; }
11134if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11135 $as_echo_n "(cached) " >&6
859789af 11136else
05cbd757
PB
11137 if test -n "$NM_FOR_TARGET"; then
11138 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11139else
c6b750e1
DJ
11140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141for as_dir in $PATH
11142do
11143 IFS=$as_save_IFS
11144 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11145 for ac_exec_ext in '' $ac_executable_extensions; do
11146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11147 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11149 break 2
11150 fi
11151done
81ecdfbb
RW
11152 done
11153IFS=$as_save_IFS
c6b750e1 11154
859789af
AC
11155fi
11156fi
c6b750e1 11157NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11158if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11160$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11161else
81ecdfbb
RW
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163$as_echo "no" >&6; }
859789af 11164fi
c6b750e1 11165
81ecdfbb 11166
2429c060
PB
11167 fi
11168 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11169 done
11170fi
c6b750e1 11171
05cbd757
PB
11172if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11173 set dummy nm
11174 if test $build = $target ; then
11175 NM_FOR_TARGET="$2"
859789af 11176 else
05cbd757 11177 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11178 fi
d3f5afc4
MS
11179else
11180 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
11181fi
11182
3a35eeb3
PB
11183else
11184 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
11185fi
11186
11187
11188
11189
11190if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11191 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11193$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11194 if test -x $with_build_time_tools/objdump; then
11195 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11196 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11198$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 11199 else
81ecdfbb
RW
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11201$as_echo "no" >&6; }
3a35eeb3 11202 fi
2429c060
PB
11203 elif test $build != $host && test $have_gcc_for_target = yes; then
11204 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
11205 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11206 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
11207 fi
11208fi
c6b750e1 11209if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11210 # Extract the first word of "objdump", so it can be a program name with args.
11211set dummy objdump; ac_word=$2
81ecdfbb
RW
11212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213$as_echo_n "checking for $ac_word... " >&6; }
11214if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
2429c060 11216else
c6b750e1
DJ
11217 case $OBJDUMP_FOR_TARGET in
11218 [\\/]* | ?:[\\/]*)
2429c060
PB
11219 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11220 ;;
2429c060 11221 *)
c6b750e1
DJ
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223for as_dir in $gcc_cv_tool_dirs
11224do
11225 IFS=$as_save_IFS
11226 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11227 for ac_exec_ext in '' $ac_executable_extensions; do
11228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11229 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11231 break 2
11232 fi
11233done
81ecdfbb
RW
11234 done
11235IFS=$as_save_IFS
c6b750e1 11236
2429c060
PB
11237 ;;
11238esac
11239fi
c6b750e1 11240OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 11241if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11243$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 11244else
81ecdfbb
RW
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246$as_echo "no" >&6; }
2429c060
PB
11247fi
11248
81ecdfbb 11249
2429c060
PB
11250fi
11251if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
11252
11253
11254if test -n "$OBJDUMP_FOR_TARGET"; then
11255 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11256elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11257 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11258fi
11259
11260if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11261 for ncn_progname in objdump; do
11262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11263set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11265$as_echo_n "checking for $ac_word... " >&6; }
11266if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11267 $as_echo_n "(cached) " >&6
9a819804
AO
11268else
11269 if test -n "$OBJDUMP_FOR_TARGET"; then
11270 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11271else
11272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273for as_dir in $PATH
11274do
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11279 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11281 break 2
11282 fi
11283done
81ecdfbb
RW
11284 done
11285IFS=$as_save_IFS
9a819804
AO
11286
11287fi
11288fi
11289OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11290if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11292$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 11293else
81ecdfbb
RW
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11295$as_echo "no" >&6; }
9a819804
AO
11296fi
11297
81ecdfbb 11298
9a819804
AO
11299 done
11300fi
11301
11302if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11303 for ncn_progname in objdump; do
81ecdfbb
RW
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11305$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11306 if test -x $with_build_time_tools/${ncn_progname}; then
11307 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11309$as_echo "yes" >&6; }
2429c060
PB
11310 break
11311 else
81ecdfbb
RW
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313$as_echo "no" >&6; }
2429c060
PB
11314 fi
11315 done
11316fi
11317
11318if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11319 for ncn_progname in objdump; do
11320 if test -n "$ncn_target_tool_prefix"; then
11321 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11322set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11324$as_echo_n "checking for $ac_word... " >&6; }
11325if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11326 $as_echo_n "(cached) " >&6
5ae72758
DJ
11327else
11328 if test -n "$OBJDUMP_FOR_TARGET"; then
11329 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11330else
c6b750e1
DJ
11331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11332for as_dir in $PATH
11333do
11334 IFS=$as_save_IFS
11335 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11336 for ac_exec_ext in '' $ac_executable_extensions; do
11337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11338 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11340 break 2
11341 fi
11342done
81ecdfbb
RW
11343 done
11344IFS=$as_save_IFS
c6b750e1 11345
5ae72758
DJ
11346fi
11347fi
c6b750e1 11348OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11349if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11351$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 11352else
81ecdfbb
RW
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354$as_echo "no" >&6; }
5ae72758
DJ
11355fi
11356
81ecdfbb 11357
2429c060
PB
11358 fi
11359 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 11361set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11363$as_echo_n "checking for $ac_word... " >&6; }
11364if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11365 $as_echo_n "(cached) " >&6
5ae72758
DJ
11366else
11367 if test -n "$OBJDUMP_FOR_TARGET"; then
11368 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11369else
c6b750e1
DJ
11370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371for as_dir in $PATH
11372do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11377 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11379 break 2
11380 fi
11381done
81ecdfbb
RW
11382 done
11383IFS=$as_save_IFS
c6b750e1 11384
5ae72758
DJ
11385fi
11386fi
c6b750e1 11387OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11388if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11390$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 11391else
81ecdfbb
RW
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393$as_echo "no" >&6; }
5ae72758 11394fi
c6b750e1 11395
81ecdfbb 11396
2429c060
PB
11397 fi
11398 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11399 done
11400fi
c6b750e1 11401
5ae72758
DJ
11402if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11403 set dummy objdump
11404 if test $build = $target ; then
11405 OBJDUMP_FOR_TARGET="$2"
11406 else
11407 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11408 fi
d3f5afc4
MS
11409else
11410 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
11411fi
11412
3a35eeb3
PB
11413else
11414 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
11415fi
11416
11417
11418
11419
11420if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11421 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
11423$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11424 if test -x $with_build_time_tools/ranlib; then
11425 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11426 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11428$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 11429 else
81ecdfbb
RW
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431$as_echo "no" >&6; }
3a35eeb3 11432 fi
2429c060
PB
11433 elif test $build != $host && test $have_gcc_for_target = yes; then
11434 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
11435 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11436 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
11437 fi
11438fi
c6b750e1 11439if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11440 # Extract the first word of "ranlib", so it can be a program name with args.
11441set dummy ranlib; ac_word=$2
81ecdfbb
RW
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443$as_echo_n "checking for $ac_word... " >&6; }
11444if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
11445 $as_echo_n "(cached) " >&6
2429c060 11446else
c6b750e1
DJ
11447 case $RANLIB_FOR_TARGET in
11448 [\\/]* | ?:[\\/]*)
2429c060
PB
11449 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11450 ;;
2429c060 11451 *)
c6b750e1
DJ
11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11453for as_dir in $gcc_cv_tool_dirs
11454do
11455 IFS=$as_save_IFS
11456 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11457 for ac_exec_ext in '' $ac_executable_extensions; do
11458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11459 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11461 break 2
11462 fi
11463done
81ecdfbb
RW
11464 done
11465IFS=$as_save_IFS
c6b750e1 11466
2429c060
PB
11467 ;;
11468esac
11469fi
c6b750e1 11470RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 11471if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11473$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 11474else
81ecdfbb
RW
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11476$as_echo "no" >&6; }
2429c060
PB
11477fi
11478
81ecdfbb 11479
2429c060
PB
11480fi
11481if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
11482
11483
11484if test -n "$RANLIB_FOR_TARGET"; then
11485 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11486elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11487 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11488fi
11489
11490if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11491 for ncn_progname in ranlib; do
11492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11493set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11495$as_echo_n "checking for $ac_word... " >&6; }
11496if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11497 $as_echo_n "(cached) " >&6
9a819804
AO
11498else
11499 if test -n "$RANLIB_FOR_TARGET"; then
11500 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11501else
11502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503for as_dir in $PATH
11504do
11505 IFS=$as_save_IFS
11506 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11507 for ac_exec_ext in '' $ac_executable_extensions; do
11508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11509 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 11510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11511 break 2
11512 fi
11513done
81ecdfbb
RW
11514 done
11515IFS=$as_save_IFS
9a819804
AO
11516
11517fi
11518fi
11519RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11520if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11522$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 11523else
81ecdfbb
RW
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11525$as_echo "no" >&6; }
9a819804
AO
11526fi
11527
81ecdfbb 11528
9a819804
AO
11529 done
11530fi
11531
11532if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11533 for ncn_progname in ranlib; do
81ecdfbb
RW
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11535$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11536 if test -x $with_build_time_tools/${ncn_progname}; then
11537 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11539$as_echo "yes" >&6; }
2429c060
PB
11540 break
11541 else
81ecdfbb
RW
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543$as_echo "no" >&6; }
2429c060
PB
11544 fi
11545 done
11546fi
11547
11548if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11549 for ncn_progname in ranlib; do
11550 if test -n "$ncn_target_tool_prefix"; then
11551 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 11552set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11554$as_echo_n "checking for $ac_word... " >&6; }
11555if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11556 $as_echo_n "(cached) " >&6
859789af 11557else
55db4b87
PB
11558 if test -n "$RANLIB_FOR_TARGET"; then
11559 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11560else
c6b750e1
DJ
11561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562for as_dir in $PATH
11563do
11564 IFS=$as_save_IFS
11565 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11566 for ac_exec_ext in '' $ac_executable_extensions; do
11567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11568 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11570 break 2
11571 fi
11572done
81ecdfbb
RW
11573 done
11574IFS=$as_save_IFS
c6b750e1 11575
859789af
AC
11576fi
11577fi
c6b750e1 11578RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 11579if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11581$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 11582else
81ecdfbb
RW
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11584$as_echo "no" >&6; }
859789af
AC
11585fi
11586
81ecdfbb 11587
2429c060
PB
11588 fi
11589 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11590 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11591set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11593$as_echo_n "checking for $ac_word... " >&6; }
11594if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11595 $as_echo_n "(cached) " >&6
859789af 11596else
05cbd757
PB
11597 if test -n "$RANLIB_FOR_TARGET"; then
11598 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11599else
c6b750e1
DJ
11600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601for as_dir in $PATH
11602do
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11605 for ac_exec_ext in '' $ac_executable_extensions; do
11606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11607 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 11608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11609 break 2
11610 fi
11611done
81ecdfbb
RW
11612 done
11613IFS=$as_save_IFS
c6b750e1 11614
859789af
AC
11615fi
11616fi
c6b750e1 11617RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 11618if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11620$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 11621else
81ecdfbb
RW
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623$as_echo "no" >&6; }
859789af 11624fi
c6b750e1 11625
81ecdfbb 11626
2429c060
PB
11627 fi
11628 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11629 done
11630fi
c6b750e1 11631
2429c060
PB
11632if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11633 set dummy ranlib
11634 if test $build = $target ; then
11635 RANLIB_FOR_TARGET="$2"
11636 else
11637 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11638 fi
d3f5afc4
MS
11639else
11640 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 11641fi
05cbd757 11642
3a35eeb3
PB
11643else
11644 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
11645fi
11646
2429c060
PB
11647
11648
11649
11650if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11651 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
11653$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11654 if test -x $with_build_time_tools/strip; then
11655 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11656 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11658$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 11659 else
81ecdfbb
RW
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661$as_echo "no" >&6; }
3a35eeb3 11662 fi
2429c060
PB
11663 elif test $build != $host && test $have_gcc_for_target = yes; then
11664 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
11665 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11666 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
11667 fi
11668fi
c6b750e1 11669if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11670 # Extract the first word of "strip", so it can be a program name with args.
11671set dummy strip; ac_word=$2
81ecdfbb
RW
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673$as_echo_n "checking for $ac_word... " >&6; }
11674if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
11675 $as_echo_n "(cached) " >&6
2429c060 11676else
c6b750e1
DJ
11677 case $STRIP_FOR_TARGET in
11678 [\\/]* | ?:[\\/]*)
2429c060
PB
11679 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11680 ;;
2429c060 11681 *)
c6b750e1
DJ
11682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11683for as_dir in $gcc_cv_tool_dirs
11684do
11685 IFS=$as_save_IFS
11686 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11687 for ac_exec_ext in '' $ac_executable_extensions; do
11688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11689 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11691 break 2
11692 fi
11693done
81ecdfbb
RW
11694 done
11695IFS=$as_save_IFS
c6b750e1 11696
2429c060
PB
11697 ;;
11698esac
11699fi
c6b750e1 11700STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 11701if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11703$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 11704else
81ecdfbb
RW
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11706$as_echo "no" >&6; }
2429c060
PB
11707fi
11708
81ecdfbb 11709
2429c060
PB
11710fi
11711if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
11712
11713
11714if test -n "$STRIP_FOR_TARGET"; then
11715 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11716elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11717 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11718fi
11719
11720if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11721 for ncn_progname in strip; do
11722 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11723set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11725$as_echo_n "checking for $ac_word... " >&6; }
11726if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11727 $as_echo_n "(cached) " >&6
9a819804
AO
11728else
11729 if test -n "$STRIP_FOR_TARGET"; then
11730 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11731else
11732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733for as_dir in $PATH
11734do
11735 IFS=$as_save_IFS
11736 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11737 for ac_exec_ext in '' $ac_executable_extensions; do
11738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11739 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11741 break 2
11742 fi
11743done
81ecdfbb
RW
11744 done
11745IFS=$as_save_IFS
9a819804
AO
11746
11747fi
11748fi
11749STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11750if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11752$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 11753else
81ecdfbb
RW
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11755$as_echo "no" >&6; }
9a819804
AO
11756fi
11757
81ecdfbb 11758
9a819804
AO
11759 done
11760fi
11761
11762if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11763 for ncn_progname in strip; do
81ecdfbb
RW
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11765$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11766 if test -x $with_build_time_tools/${ncn_progname}; then
11767 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11769$as_echo "yes" >&6; }
2429c060
PB
11770 break
11771 else
81ecdfbb
RW
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773$as_echo "no" >&6; }
2429c060
PB
11774 fi
11775 done
11776fi
11777
11778if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11779 for ncn_progname in strip; do
11780 if test -n "$ncn_target_tool_prefix"; then
11781 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11782set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11784$as_echo_n "checking for $ac_word... " >&6; }
11785if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11786 $as_echo_n "(cached) " >&6
7e0f7140
GK
11787else
11788 if test -n "$STRIP_FOR_TARGET"; then
11789 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
11790else
11791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11792for as_dir in $PATH
11793do
11794 IFS=$as_save_IFS
11795 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11796 for ac_exec_ext in '' $ac_executable_extensions; do
11797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11798 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11800 break 2
11801 fi
11802done
81ecdfbb
RW
11803 done
11804IFS=$as_save_IFS
c6b750e1 11805
7e0f7140
GK
11806fi
11807fi
c6b750e1 11808STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11809if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11811$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 11812else
81ecdfbb
RW
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11814$as_echo "no" >&6; }
7e0f7140
GK
11815fi
11816
81ecdfbb 11817
2429c060
PB
11818 fi
11819 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11821set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11823$as_echo_n "checking for $ac_word... " >&6; }
11824if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11825 $as_echo_n "(cached) " >&6
7e0f7140
GK
11826else
11827 if test -n "$STRIP_FOR_TARGET"; then
11828 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11829else
c6b750e1
DJ
11830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831for as_dir in $PATH
11832do
11833 IFS=$as_save_IFS
11834 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11835 for ac_exec_ext in '' $ac_executable_extensions; do
11836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11837 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11839 break 2
11840 fi
11841done
81ecdfbb
RW
11842 done
11843IFS=$as_save_IFS
c6b750e1 11844
7e0f7140
GK
11845fi
11846fi
c6b750e1 11847STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11848if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11850$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 11851else
81ecdfbb
RW
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853$as_echo "no" >&6; }
7e0f7140 11854fi
c6b750e1 11855
81ecdfbb 11856
2429c060
PB
11857 fi
11858 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11859 done
11860fi
c6b750e1 11861
7e0f7140
GK
11862if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11863 set dummy strip
11864 if test $build = $target ; then
11865 STRIP_FOR_TARGET="$2"
11866 else
11867 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11868 fi
d3f5afc4
MS
11869else
11870 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
11871fi
11872
3a35eeb3
PB
11873else
11874 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
11875fi
11876
11877
11878
11879
11880if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11881 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
11883$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11884 if test -x $with_build_time_tools/windres; then
11885 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11886 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11888$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 11889 else
81ecdfbb
RW
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891$as_echo "no" >&6; }
3a35eeb3 11892 fi
2429c060
PB
11893 elif test $build != $host && test $have_gcc_for_target = yes; then
11894 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
11895 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11896 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
11897 fi
11898fi
c6b750e1 11899if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11900 # Extract the first word of "windres", so it can be a program name with args.
11901set dummy windres; ac_word=$2
81ecdfbb
RW
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903$as_echo_n "checking for $ac_word... " >&6; }
11904if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
11905 $as_echo_n "(cached) " >&6
2429c060 11906else
c6b750e1
DJ
11907 case $WINDRES_FOR_TARGET in
11908 [\\/]* | ?:[\\/]*)
2429c060
PB
11909 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11910 ;;
2429c060 11911 *)
c6b750e1
DJ
11912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913for as_dir in $gcc_cv_tool_dirs
11914do
11915 IFS=$as_save_IFS
11916 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11919 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11921 break 2
11922 fi
11923done
81ecdfbb
RW
11924 done
11925IFS=$as_save_IFS
c6b750e1 11926
2429c060
PB
11927 ;;
11928esac
11929fi
c6b750e1 11930WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 11931if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
11933$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 11934else
81ecdfbb
RW
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11936$as_echo "no" >&6; }
2429c060
PB
11937fi
11938
81ecdfbb 11939
2429c060
PB
11940fi
11941if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
11942
11943
11944if test -n "$WINDRES_FOR_TARGET"; then
11945 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11946elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11947 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11948fi
11949
11950if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11951 for ncn_progname in windres; do
11952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11953set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955$as_echo_n "checking for $ac_word... " >&6; }
11956if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
11957 $as_echo_n "(cached) " >&6
9a819804
AO
11958else
11959 if test -n "$WINDRES_FOR_TARGET"; then
11960 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11961else
11962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963for as_dir in $PATH
11964do
11965 IFS=$as_save_IFS
11966 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11969 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11971 break 2
11972 fi
11973done
81ecdfbb
RW
11974 done
11975IFS=$as_save_IFS
9a819804
AO
11976
11977fi
11978fi
11979WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11980if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
11982$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 11983else
81ecdfbb
RW
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985$as_echo "no" >&6; }
9a819804
AO
11986fi
11987
81ecdfbb 11988
9a819804
AO
11989 done
11990fi
11991
11992if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11993 for ncn_progname in windres; do
81ecdfbb
RW
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11995$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11996 if test -x $with_build_time_tools/${ncn_progname}; then
11997 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11999$as_echo "yes" >&6; }
2429c060
PB
12000 break
12001 else
81ecdfbb
RW
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12003$as_echo "no" >&6; }
2429c060
PB
12004 fi
12005 done
12006fi
12007
12008if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12009 for ncn_progname in windres; do
12010 if test -n "$ncn_target_tool_prefix"; then
12011 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12012set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12014$as_echo_n "checking for $ac_word... " >&6; }
12015if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12016 $as_echo_n "(cached) " >&6
859789af 12017else
55db4b87
PB
12018 if test -n "$WINDRES_FOR_TARGET"; then
12019 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12020else
c6b750e1
DJ
12021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12022for as_dir in $PATH
12023do
12024 IFS=$as_save_IFS
12025 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12026 for ac_exec_ext in '' $ac_executable_extensions; do
12027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12028 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12030 break 2
12031 fi
12032done
81ecdfbb
RW
12033 done
12034IFS=$as_save_IFS
c6b750e1 12035
859789af
AC
12036fi
12037fi
c6b750e1 12038WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12039if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12041$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12042else
81ecdfbb
RW
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044$as_echo "no" >&6; }
859789af
AC
12045fi
12046
81ecdfbb 12047
2429c060
PB
12048 fi
12049 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12050 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12051set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12053$as_echo_n "checking for $ac_word... " >&6; }
12054if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12055 $as_echo_n "(cached) " >&6
859789af 12056else
05cbd757
PB
12057 if test -n "$WINDRES_FOR_TARGET"; then
12058 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12059else
c6b750e1
DJ
12060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061for as_dir in $PATH
12062do
12063 IFS=$as_save_IFS
12064 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12065 for ac_exec_ext in '' $ac_executable_extensions; do
12066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12067 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12069 break 2
12070 fi
12071done
81ecdfbb
RW
12072 done
12073IFS=$as_save_IFS
c6b750e1 12074
859789af
AC
12075fi
12076fi
c6b750e1 12077WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12078if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12080$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12081else
81ecdfbb
RW
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12083$as_echo "no" >&6; }
859789af 12084fi
c6b750e1 12085
81ecdfbb 12086
2429c060
PB
12087 fi
12088 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12089 done
12090fi
c6b750e1 12091
05cbd757
PB
12092if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12093 set dummy windres
12094 if test $build = $target ; then
12095 WINDRES_FOR_TARGET="$2"
859789af 12096 else
05cbd757 12097 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12098 fi
d3f5afc4
MS
12099else
12100 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12101fi
12102
3a35eeb3
PB
12103else
12104 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12105fi
12106
852e5f18 12107
0c24b341
NC
12108
12109
12110if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12111 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12113$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12114 if test -x $with_build_time_tools/windmc; then
12115 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12116 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12118$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12119 else
81ecdfbb
RW
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121$as_echo "no" >&6; }
0c24b341
NC
12122 fi
12123 elif test $build != $host && test $have_gcc_for_target = yes; then
12124 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12125 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12126 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12127 fi
12128fi
12129if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12130 # Extract the first word of "windmc", so it can be a program name with args.
12131set dummy windmc; ac_word=$2
81ecdfbb
RW
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133$as_echo_n "checking for $ac_word... " >&6; }
12134if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12135 $as_echo_n "(cached) " >&6
0c24b341
NC
12136else
12137 case $WINDMC_FOR_TARGET in
12138 [\\/]* | ?:[\\/]*)
12139 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12140 ;;
12141 *)
12142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12143for as_dir in $gcc_cv_tool_dirs
12144do
12145 IFS=$as_save_IFS
12146 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12147 for ac_exec_ext in '' $ac_executable_extensions; do
12148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12149 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12151 break 2
12152 fi
12153done
81ecdfbb
RW
12154 done
12155IFS=$as_save_IFS
0c24b341
NC
12156
12157 ;;
12158esac
12159fi
12160WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 12161if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12163$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12164else
81ecdfbb
RW
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12166$as_echo "no" >&6; }
0c24b341
NC
12167fi
12168
81ecdfbb 12169
0c24b341
NC
12170fi
12171if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12172
12173
12174if test -n "$WINDMC_FOR_TARGET"; then
12175 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12176elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12177 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12178fi
12179
12180if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12181 for ncn_progname in windmc; do
12182 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12183set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185$as_echo_n "checking for $ac_word... " >&6; }
12186if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12187 $as_echo_n "(cached) " >&6
0c24b341
NC
12188else
12189 if test -n "$WINDMC_FOR_TARGET"; then
12190 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12191else
12192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193for as_dir in $PATH
12194do
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12197 for ac_exec_ext in '' $ac_executable_extensions; do
12198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12199 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 12200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12201 break 2
12202 fi
12203done
81ecdfbb
RW
12204 done
12205IFS=$as_save_IFS
0c24b341
NC
12206
12207fi
12208fi
12209WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12210if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12212$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12213else
81ecdfbb
RW
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215$as_echo "no" >&6; }
0c24b341
NC
12216fi
12217
81ecdfbb 12218
0c24b341
NC
12219 done
12220fi
12221
12222if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12223 for ncn_progname in windmc; do
81ecdfbb
RW
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12225$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
12226 if test -x $with_build_time_tools/${ncn_progname}; then
12227 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12229$as_echo "yes" >&6; }
0c24b341
NC
12230 break
12231 else
81ecdfbb
RW
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233$as_echo "no" >&6; }
0c24b341
NC
12234 fi
12235 done
12236fi
12237
12238if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12239 for ncn_progname in windmc; do
12240 if test -n "$ncn_target_tool_prefix"; then
12241 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12242set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12244$as_echo_n "checking for $ac_word... " >&6; }
12245if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12246 $as_echo_n "(cached) " >&6
0c24b341
NC
12247else
12248 if test -n "$WINDMC_FOR_TARGET"; then
12249 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12250else
12251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252for as_dir in $PATH
12253do
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12256 for ac_exec_ext in '' $ac_executable_extensions; do
12257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12258 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12260 break 2
12261 fi
12262done
81ecdfbb
RW
12263 done
12264IFS=$as_save_IFS
0c24b341
NC
12265
12266fi
12267fi
12268WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12269if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12271$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12272else
81ecdfbb
RW
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12274$as_echo "no" >&6; }
0c24b341
NC
12275fi
12276
81ecdfbb 12277
0c24b341
NC
12278 fi
12279 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12281set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12283$as_echo_n "checking for $ac_word... " >&6; }
12284if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12285 $as_echo_n "(cached) " >&6
0c24b341
NC
12286else
12287 if test -n "$WINDMC_FOR_TARGET"; then
12288 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12289else
12290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12291for as_dir in $PATH
12292do
12293 IFS=$as_save_IFS
12294 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12295 for ac_exec_ext in '' $ac_executable_extensions; do
12296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12297 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 12298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12299 break 2
12300 fi
12301done
81ecdfbb
RW
12302 done
12303IFS=$as_save_IFS
0c24b341
NC
12304
12305fi
12306fi
12307WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12308if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12310$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12311else
81ecdfbb
RW
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12313$as_echo "no" >&6; }
0c24b341
NC
12314fi
12315
81ecdfbb 12316
0c24b341
NC
12317 fi
12318 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12319 done
12320fi
12321
12322if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12323 set dummy windmc
12324 if test $build = $target ; then
12325 WINDMC_FOR_TARGET="$2"
12326 else
12327 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12328 fi
12329else
12330 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12331fi
12332
12333else
12334 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12335fi
12336
12337
be01d343
PB
12338RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12339
81ecdfbb
RW
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12341$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 12342if test "x${build}" != "x${host}" ; then
2429c060
PB
12343 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12344 # We already found the complete path
b8025f34 12345 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12347$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12348 else
12349 # Canadian cross, just use what we found
81ecdfbb
RW
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12351$as_echo "pre-installed" >&6; }
2429c060 12352 fi
be01d343
PB
12353else
12354 ok=yes
12355 case " ${configdirs} " in
12356 *" binutils "*) ;;
12357 *) ok=no ;;
12358 esac
c6b750e1 12359
be01d343
PB
12360 if test $ok = yes; then
12361 # An in-tree tool is available and we can use it
12362 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12364$as_echo "just compiled" >&6; }
2429c060
PB
12365 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12366 # We already found the complete path
b8025f34 12367 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12369$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12370 elif test "x$target" = "x$host"; then
12371 # We can use an host tool
12372 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12374$as_echo "host tool" >&6; }
be01d343
PB
12375 else
12376 # We need a cross tool
81ecdfbb
RW
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12378$as_echo "pre-installed" >&6; }
be01d343
PB
12379 fi
12380fi
4b900473 12381
81ecdfbb
RW
12382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12383$as_echo_n "checking where to find the target as... " >&6; }
be01d343 12384if test "x${build}" != "x${host}" ; then
2429c060
PB
12385 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12386 # We already found the complete path
b8025f34 12387 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12389$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12390 else
12391 # Canadian cross, just use what we found
81ecdfbb
RW
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12393$as_echo "pre-installed" >&6; }
2429c060 12394 fi
be01d343
PB
12395else
12396 ok=yes
12397 case " ${configdirs} " in
12398 *" gas "*) ;;
12399 *) ok=no ;;
12400 esac
c6b750e1 12401
be01d343
PB
12402 if test $ok = yes; then
12403 # An in-tree tool is available and we can use it
12404 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12406$as_echo "just compiled" >&6; }
2429c060
PB
12407 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12408 # We already found the complete path
b8025f34 12409 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12411$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12412 elif test "x$target" = "x$host"; then
12413 # We can use an host tool
12414 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12416$as_echo "host tool" >&6; }
be01d343
PB
12417 else
12418 # We need a cross tool
81ecdfbb
RW
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12420$as_echo "pre-installed" >&6; }
be01d343
PB
12421 fi
12422fi
4b900473 12423
81ecdfbb
RW
12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
12425$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 12426if test "x${build}" != "x${host}" ; then
2429c060
PB
12427 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12428 # We already found the complete path
b8025f34 12429 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12431$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12432 else
12433 # Canadian cross, just use what we found
81ecdfbb
RW
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12435$as_echo "pre-installed" >&6; }
2429c060 12436 fi
be01d343
PB
12437else
12438 ok=yes
12439 case " ${configdirs} " in
12440 *" gcc "*) ;;
12441 *) ok=no ;;
12442 esac
c6b750e1 12443
be01d343
PB
12444 if test $ok = yes; then
12445 # An in-tree tool is available and we can use it
12446 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12448$as_echo "just compiled" >&6; }
2429c060
PB
12449 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12450 # We already found the complete path
b8025f34 12451 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12453$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12454 elif test "x$target" = "x$host"; then
12455 # We can use an host tool
12456 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12458$as_echo "host tool" >&6; }
be01d343
PB
12459 else
12460 # We need a cross tool
81ecdfbb
RW
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12462$as_echo "pre-installed" >&6; }
be01d343
PB
12463 fi
12464fi
4b900473 12465
81ecdfbb
RW
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
12467$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 12468if test "x${build}" != "x${host}" ; then
2429c060
PB
12469 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12470 # We already found the complete path
b8025f34 12471 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12473$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12474 else
12475 # Canadian cross, just use what we found
81ecdfbb
RW
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12477$as_echo "pre-installed" >&6; }
2429c060 12478 fi
be01d343
PB
12479else
12480 ok=yes
12481 case " ${configdirs} " in
12482 *" gcc "*) ;;
12483 *) ok=no ;;
12484 esac
12485 case ,${enable_languages}, in
12486 *,c++,*) ;;
12487 *) ok=no ;;
12488 esac
12489 if test $ok = yes; then
12490 # An in-tree tool is available and we can use it
12491 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12493$as_echo "just compiled" >&6; }
2429c060
PB
12494 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12495 # We already found the complete path
b8025f34 12496 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12498$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12499 elif test "x$target" = "x$host"; then
12500 # We can use an host tool
12501 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12503$as_echo "host tool" >&6; }
be01d343
PB
12504 else
12505 # We need a cross tool
81ecdfbb
RW
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12507$as_echo "pre-installed" >&6; }
be01d343
PB
12508 fi
12509fi
4b900473 12510
81ecdfbb
RW
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
12512$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 12513if test "x${build}" != "x${host}" ; then
2429c060
PB
12514 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12515 # We already found the complete path
b8025f34 12516 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12518$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12519 else
12520 # Canadian cross, just use what we found
81ecdfbb
RW
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12522$as_echo "pre-installed" >&6; }
2429c060 12523 fi
be01d343
PB
12524else
12525 ok=yes
12526 case " ${configdirs} " in
12527 *" gcc "*) ;;
12528 *) ok=no ;;
12529 esac
12530 case ,${enable_languages}, in
12531 *,c++,*) ;;
12532 *) ok=no ;;
12533 esac
12534 if test $ok = yes; then
12535 # An in-tree tool is available and we can use it
12536 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12538$as_echo "just compiled" >&6; }
2429c060
PB
12539 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12540 # We already found the complete path
b8025f34 12541 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12543$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12544 elif test "x$target" = "x$host"; then
12545 # We can use an host tool
12546 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12548$as_echo "host tool" >&6; }
be01d343
PB
12549 else
12550 # We need a cross tool
81ecdfbb
RW
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12552$as_echo "pre-installed" >&6; }
be01d343
PB
12553 fi
12554fi
4b900473 12555
81ecdfbb
RW
12556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
12557$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 12558if test "x${build}" != "x${host}" ; then
2429c060
PB
12559 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12560 # We already found the complete path
b8025f34 12561 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12563$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12564 else
12565 # Canadian cross, just use what we found
81ecdfbb
RW
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12567$as_echo "pre-installed" >&6; }
2429c060 12568 fi
be01d343
PB
12569else
12570 ok=yes
12571 case " ${configdirs} " in
12572 *" binutils "*) ;;
12573 *) ok=no ;;
12574 esac
c6b750e1 12575
be01d343
PB
12576 if test $ok = yes; then
12577 # An in-tree tool is available and we can use it
12578 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12580$as_echo "just compiled" >&6; }
2429c060
PB
12581 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12582 # We already found the complete path
b8025f34 12583 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12585$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12586 elif test "x$target" = "x$host"; then
12587 # We can use an host tool
12588 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12590$as_echo "host tool" >&6; }
be01d343
PB
12591 else
12592 # We need a cross tool
81ecdfbb
RW
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12594$as_echo "pre-installed" >&6; }
be01d343
PB
12595 fi
12596fi
4b900473 12597
81ecdfbb
RW
12598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
12599$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 12600if test "x${build}" != "x${host}" ; then
2429c060
PB
12601 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12602 # We already found the complete path
b8025f34 12603 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12605$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12606 else
12607 # Canadian cross, just use what we found
81ecdfbb
RW
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12609$as_echo "pre-installed" >&6; }
2429c060 12610 fi
be01d343
PB
12611else
12612 ok=yes
12613 case " ${configdirs} " in
12614 *" gcc "*) ;;
12615 *) ok=no ;;
12616 esac
c6b750e1 12617
be01d343
PB
12618 if test $ok = yes; then
12619 # An in-tree tool is available and we can use it
12620 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12622$as_echo "just compiled" >&6; }
2429c060
PB
12623 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12624 # We already found the complete path
b8025f34 12625 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12627$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12628 elif test "x$target" = "x$host"; then
12629 # We can use an host tool
12630 GCC_FOR_TARGET='$()'
81ecdfbb
RW
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12632$as_echo "host tool" >&6; }
be01d343
PB
12633 else
12634 # We need a cross tool
81ecdfbb
RW
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12636$as_echo "pre-installed" >&6; }
be01d343
PB
12637 fi
12638fi
4b900473 12639
81ecdfbb
RW
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
12641$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 12642if test "x${build}" != "x${host}" ; then
2429c060
PB
12643 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12644 # We already found the complete path
b8025f34 12645 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12647$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12648 else
12649 # Canadian cross, just use what we found
81ecdfbb
RW
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12651$as_echo "pre-installed" >&6; }
2429c060 12652 fi
be01d343
PB
12653else
12654 ok=yes
12655 case " ${configdirs} " in
12656 *" gcc "*) ;;
12657 *) ok=no ;;
12658 esac
12659 case ,${enable_languages}, in
12660 *,java,*) ;;
12661 *) ok=no ;;
12662 esac
12663 if test $ok = yes; then
12664 # An in-tree tool is available and we can use it
12665 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12667$as_echo "just compiled" >&6; }
2429c060
PB
12668 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12669 # We already found the complete path
b8025f34 12670 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12672$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12673 elif test "x$target" = "x$host"; then
12674 # We can use an host tool
12675 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12677$as_echo "host tool" >&6; }
be01d343
PB
12678 else
12679 # We need a cross tool
81ecdfbb
RW
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12681$as_echo "pre-installed" >&6; }
be01d343
PB
12682 fi
12683fi
4b900473 12684
81ecdfbb
RW
12685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
12686$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 12687if test "x${build}" != "x${host}" ; then
2429c060
PB
12688 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12689 # We already found the complete path
b8025f34 12690 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12692$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12693 else
12694 # Canadian cross, just use what we found
81ecdfbb
RW
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12696$as_echo "pre-installed" >&6; }
2429c060 12697 fi
be01d343
PB
12698else
12699 ok=yes
12700 case " ${configdirs} " in
12701 *" gcc "*) ;;
12702 *) ok=no ;;
12703 esac
12704 case ,${enable_languages}, in
12705 *,fortran,*) ;;
12706 *) ok=no ;;
12707 esac
12708 if test $ok = yes; then
12709 # An in-tree tool is available and we can use it
12710 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12712$as_echo "just compiled" >&6; }
2429c060
PB
12713 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12714 # We already found the complete path
b8025f34 12715 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12717$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12718 elif test "x$target" = "x$host"; then
12719 # We can use an host tool
12720 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12722$as_echo "host tool" >&6; }
be01d343
PB
12723 else
12724 # We need a cross tool
81ecdfbb
RW
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12726$as_echo "pre-installed" >&6; }
be01d343
PB
12727 fi
12728fi
4b900473 12729
81ecdfbb
RW
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
12731$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 12732if test "x${build}" != "x${host}" ; then
2429c060
PB
12733 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12734 # We already found the complete path
b8025f34 12735 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12737$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12738 else
12739 # Canadian cross, just use what we found
81ecdfbb
RW
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12741$as_echo "pre-installed" >&6; }
2429c060 12742 fi
be01d343
PB
12743else
12744 ok=yes
12745 case " ${configdirs} " in
12746 *" ld "*) ;;
12747 *) ok=no ;;
12748 esac
c6b750e1 12749
be01d343
PB
12750 if test $ok = yes; then
12751 # An in-tree tool is available and we can use it
12752 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12754$as_echo "just compiled" >&6; }
2429c060
PB
12755 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12756 # We already found the complete path
b8025f34 12757 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12759$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12760 elif test "x$target" = "x$host"; then
12761 # We can use an host tool
12762 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12764$as_echo "host tool" >&6; }
be01d343
PB
12765 else
12766 # We need a cross tool
81ecdfbb
RW
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12768$as_echo "pre-installed" >&6; }
be01d343
PB
12769 fi
12770fi
4b900473 12771
81ecdfbb
RW
12772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
12773$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 12774if test "x${build}" != "x${host}" ; then
2429c060
PB
12775 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12776 # We already found the complete path
b8025f34 12777 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12779$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12780 else
12781 # Canadian cross, just use what we found
81ecdfbb
RW
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12783$as_echo "pre-installed" >&6; }
2429c060 12784 fi
be01d343 12785else
2429c060
PB
12786 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12787 # We already found the complete path
b8025f34 12788 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12790$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 12791 elif test "x$target" = "x$host"; then
be01d343
PB
12792 # We can use an host tool
12793 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12795$as_echo "host tool" >&6; }
be01d343
PB
12796 else
12797 # We need a cross tool
81ecdfbb
RW
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12799$as_echo "pre-installed" >&6; }
be01d343
PB
12800 fi
12801fi
4b900473 12802
81ecdfbb
RW
12803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
12804$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 12805if test "x${build}" != "x${host}" ; then
2429c060
PB
12806 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12807 # We already found the complete path
b8025f34 12808 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12810$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12811 else
12812 # Canadian cross, just use what we found
81ecdfbb
RW
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12814$as_echo "pre-installed" >&6; }
2429c060 12815 fi
be01d343
PB
12816else
12817 ok=yes
12818 case " ${configdirs} " in
12819 *" binutils "*) ;;
12820 *) ok=no ;;
12821 esac
c6b750e1 12822
be01d343
PB
12823 if test $ok = yes; then
12824 # An in-tree tool is available and we can use it
12825 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12827$as_echo "just compiled" >&6; }
2429c060
PB
12828 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12829 # We already found the complete path
b8025f34 12830 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12832$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12833 elif test "x$target" = "x$host"; then
12834 # We can use an host tool
12835 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12837$as_echo "host tool" >&6; }
be01d343
PB
12838 else
12839 # We need a cross tool
81ecdfbb
RW
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12841$as_echo "pre-installed" >&6; }
be01d343
PB
12842 fi
12843fi
4b900473 12844
81ecdfbb
RW
12845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
12846$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 12847if test "x${build}" != "x${host}" ; then
2429c060
PB
12848 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12849 # We already found the complete path
b8025f34 12850 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12852$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12853 else
12854 # Canadian cross, just use what we found
81ecdfbb
RW
12855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12856$as_echo "pre-installed" >&6; }
2429c060 12857 fi
be01d343
PB
12858else
12859 ok=yes
12860 case " ${configdirs} " in
12861 *" binutils "*) ;;
12862 *) ok=no ;;
12863 esac
c6b750e1 12864
be01d343
PB
12865 if test $ok = yes; then
12866 # An in-tree tool is available and we can use it
12867 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12869$as_echo "just compiled" >&6; }
2429c060
PB
12870 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12871 # We already found the complete path
b8025f34 12872 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12874$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12875 elif test "x$target" = "x$host"; then
12876 # We can use an host tool
12877 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12879$as_echo "host tool" >&6; }
be01d343
PB
12880 else
12881 # We need a cross tool
81ecdfbb
RW
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12883$as_echo "pre-installed" >&6; }
be01d343
PB
12884 fi
12885fi
4b900473 12886
81ecdfbb
RW
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
12888$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 12889if test "x${build}" != "x${host}" ; then
2429c060
PB
12890 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12891 # We already found the complete path
b8025f34 12892 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12894$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12895 else
12896 # Canadian cross, just use what we found
81ecdfbb
RW
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12898$as_echo "pre-installed" >&6; }
2429c060 12899 fi
be01d343
PB
12900else
12901 ok=yes
12902 case " ${configdirs} " in
12903 *" binutils "*) ;;
12904 *) ok=no ;;
12905 esac
c6b750e1 12906
be01d343
PB
12907 if test $ok = yes; then
12908 # An in-tree tool is available and we can use it
12909 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12911$as_echo "just compiled" >&6; }
2429c060
PB
12912 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12913 # We already found the complete path
b8025f34 12914 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
12915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12916$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12917 elif test "x$target" = "x$host"; then
12918 # We can use an host tool
12919 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12921$as_echo "host tool" >&6; }
be01d343
PB
12922 else
12923 # We need a cross tool
81ecdfbb
RW
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12925$as_echo "pre-installed" >&6; }
be01d343
PB
12926 fi
12927fi
4b900473 12928
81ecdfbb
RW
12929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
12930$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 12931if test "x${build}" != "x${host}" ; then
2429c060
PB
12932 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12933 # We already found the complete path
b8025f34 12934 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12936$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12937 else
12938 # Canadian cross, just use what we found
81ecdfbb
RW
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12940$as_echo "pre-installed" >&6; }
2429c060 12941 fi
be01d343
PB
12942else
12943 ok=yes
12944 case " ${configdirs} " in
12945 *" binutils "*) ;;
12946 *) ok=no ;;
12947 esac
c6b750e1 12948
be01d343
PB
12949 if test $ok = yes; then
12950 # An in-tree tool is available and we can use it
12951 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
81ecdfbb
RW
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12953$as_echo "just compiled" >&6; }
2429c060
PB
12954 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12955 # We already found the complete path
b8025f34 12956 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12958$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12959 elif test "x$target" = "x$host"; then
12960 # We can use an host tool
12961 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12963$as_echo "host tool" >&6; }
be01d343
PB
12964 else
12965 # We need a cross tool
81ecdfbb
RW
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12967$as_echo "pre-installed" >&6; }
be01d343
PB
12968 fi
12969fi
4b900473 12970
81ecdfbb
RW
12971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
12972$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 12973if test "x${build}" != "x${host}" ; then
2429c060
PB
12974 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12975 # We already found the complete path
b8025f34 12976 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12978$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12979 else
12980 # Canadian cross, just use what we found
81ecdfbb
RW
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12982$as_echo "pre-installed" >&6; }
2429c060 12983 fi
be01d343
PB
12984else
12985 ok=yes
12986 case " ${configdirs} " in
12987 *" binutils "*) ;;
12988 *) ok=no ;;
12989 esac
c6b750e1 12990
be01d343
PB
12991 if test $ok = yes; then
12992 # An in-tree tool is available and we can use it
12993 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12995$as_echo "just compiled" >&6; }
2429c060
PB
12996 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12997 # We already found the complete path
b8025f34 12998 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13000$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13001 elif test "x$target" = "x$host"; then
13002 # We can use an host tool
13003 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13005$as_echo "host tool" >&6; }
be01d343
PB
13006 else
13007 # We need a cross tool
81ecdfbb
RW
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13009$as_echo "pre-installed" >&6; }
be01d343 13010 fi
a0da8069 13011fi
54752a6b 13012
81ecdfbb
RW
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13014$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13015if test "x${build}" != "x${host}" ; then
13016 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13017 # We already found the complete path
13018 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13020$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13021 else
13022 # Canadian cross, just use what we found
81ecdfbb
RW
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13024$as_echo "pre-installed" >&6; }
0c24b341
NC
13025 fi
13026else
13027 ok=yes
13028 case " ${configdirs} " in
13029 *" binutils "*) ;;
13030 *) ok=no ;;
13031 esac
13032
13033 if test $ok = yes; then
13034 # An in-tree tool is available and we can use it
13035 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13037$as_echo "just compiled" >&6; }
0c24b341
NC
13038 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13039 # We already found the complete path
13040 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13042$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13043 elif test "x$target" = "x$host"; then
13044 # We can use an host tool
13045 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13047$as_echo "host tool" >&6; }
0c24b341
NC
13048 else
13049 # We need a cross tool
81ecdfbb
RW
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13051$as_echo "pre-installed" >&6; }
0c24b341
NC
13052 fi
13053fi
13054
54752a6b
NN
13055
13056
be01d343 13057
4b900473 13058
a0da8069
NN
13059# Certain tools may need extra flags.
13060AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13061RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13062NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13063
be01d343
PB
13064# When building target libraries, except in a Canadian cross, we use
13065# the same toolchain as the compiler we just built.
13066COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13067COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13068COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13069if test $host = $build; then
13070 case " $configdirs " in
13071 *" gcc "*)
13072 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13073 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13074 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13075 ;;
13076 esac
13077fi
13078
13079
13080
13081
13082
81ecdfbb
RW
13083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13084$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13085# Check whether --enable-maintainer-mode was given.
13086if test "${enable_maintainer_mode+set}" = set; then :
13087 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13088else
13089 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13090fi
13091
13092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13093$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13094
13095
13096if test "$USE_MAINTAINER_MODE" = yes; then
13097 MAINTAINER_MODE_TRUE=
13098 MAINTAINER_MODE_FALSE='#'
13099else
13100 MAINTAINER_MODE_TRUE='#'
13101 MAINTAINER_MODE_FALSE=
c6b750e1 13102fi
3d5e36ae
AO
13103MAINT=$MAINTAINER_MODE_TRUE
13104
1d39f329
NN
13105# ---------------------
13106# GCC bootstrap support
13107# ---------------------
13108
13109# Stage specific cflags for build.
13110stage1_cflags="-g"
13111case $build in
13112 vax-*-*)
13113 case ${GCC} in
13114 yes) stage1_cflags="-g -Wa,-J" ;;
13115 *) stage1_cflags="-g -J" ;;
13116 esac ;;
1d39f329
NN
13117esac
13118
1d89b610 13119# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 13120if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
13121 saved_CFLAGS="$CFLAGS"
13122
13123 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13124 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13126$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
13128/* end confdefs.h. */
13129
2038f525
PB
13130#if (__GNUC__ < 3) \
13131 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13132 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13133#error http://gcc.gnu.org/PR29382
13134#endif
13135
c6b750e1
DJ
13136int
13137main ()
13138{
13139
13140 ;
13141 return 0;
13142}
13143_ACEOF
81ecdfbb
RW
13144if ac_fn_c_try_compile "$LINENO"; then :
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13146$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 13147else
81ecdfbb
RW
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13149$as_echo "no" >&6; }
c6b750e1 13150fi
81ecdfbb 13151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
13152
13153 CFLAGS="$saved_CFLAGS"
13154fi
13155
13156
1d39f329 13157
8a0d8a5c 13158# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
13159# Check whether --enable-stage1-checking was given.
13160if test "${enable_stage1_checking+set}" = set; then :
13161 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 13162else
5566c1fa 13163 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 13164 stage1_checking=--enable-checking=yes,types
8a0d8a5c 13165else
5566c1fa 13166 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 13167fi
81ecdfbb 13168fi
8a0d8a5c
PB
13169
13170
c6b750e1 13171
81ecdfbb
RW
13172# Enable -Werror in bootstrap stage2 and later.
13173# Check whether --enable-werror was given.
13174if test "${enable_werror+set}" = set; then :
13175 enableval=$enable_werror;
1d39f329 13176else
a0323144 13177 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 13178 enable_werror=yes
79fcd0ec
PB
13179else
13180 enable_werror=no
13181fi
81ecdfbb
RW
13182fi
13183
1a6f2dc7
NN
13184case ${enable_werror} in
13185 yes) stage2_werror_flag="--enable-werror-always" ;;
13186 *) stage2_werror_flag="" ;;
1d39f329
NN
13187esac
13188
13189
108a6f8e 13190# Flags needed to enable html installing and building
c6b750e1 13191
81ecdfbb
RW
13192# Check whether --with-datarootdir was given.
13193if test "${with_datarootdir+set}" = set; then :
13194 withval=$with_datarootdir; datarootdir="\${prefix}/${withval}"
108a6f8e
CD
13195else
13196 datarootdir="\${prefix}/share"
81ecdfbb
RW
13197fi
13198
108a6f8e
CD
13199
13200
81ecdfbb
RW
13201# Check whether --with-docdir was given.
13202if test "${with_docdir+set}" = set; then :
13203 withval=$with_docdir; docdir="\${prefix}/${withval}"
108a6f8e
CD
13204else
13205 docdir="\${datarootdir}/doc"
81ecdfbb
RW
13206fi
13207
108a6f8e
CD
13208
13209
81ecdfbb
RW
13210# Check whether --with-pdfdir was given.
13211if test "${with_pdfdir+set}" = set; then :
13212 withval=$with_pdfdir; pdfdir="\${prefix}/${withval}"
a3ca38d2
DD
13213else
13214 pdfdir="\${docdir}"
81ecdfbb
RW
13215fi
13216
a3ca38d2
DD
13217
13218
81ecdfbb
RW
13219# Check whether --with-htmldir was given.
13220if test "${with_htmldir+set}" = set; then :
13221 withval=$with_htmldir; htmldir="\${prefix}/${withval}"
108a6f8e
CD
13222else
13223 htmldir="\${docdir}"
81ecdfbb
RW
13224fi
13225
108a6f8e
CD
13226
13227
13228
13229
13230
b8025f34 13231
e8a5fa9c
RW
13232# Specify what files to not compare during bootstrap.
13233
13234compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13235case "$target" in
13236 hppa*64*-*-hpux*) ;;
13237 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13238esac
13239
13240
81ecdfbb
RW
13241ac_config_files="$ac_config_files Makefile"
13242
c6b750e1 13243cat >confcache <<\_ACEOF
a0da8069
NN
13244# This file is a shell script that caches the results of configure
13245# tests run on this system so they can be shared between configure
c6b750e1
DJ
13246# scripts and configure runs, see configure's option --config-cache.
13247# It is not useful on other systems. If it contains results you don't
13248# want to keep, you may remove or edit it.
a0da8069 13249#
c6b750e1
DJ
13250# config.status only pays attention to the cache file if you give it
13251# the --recheck option to rerun configure.
a0da8069 13252#
c6b750e1
DJ
13253# `ac_cv_env_foo' variables (set or unset) will be overridden when
13254# loading this file, other *unset* `ac_cv_foo' will be assigned the
13255# following values.
13256
13257_ACEOF
13258
a0da8069
NN
13259# The following way of writing the cache mishandles newlines in values,
13260# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13261# So, we kill variables containing newlines.
a0da8069
NN
13262# Ultrix sh set writes to stderr and can't be redirected directly,
13263# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13264(
13265 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13266 eval ac_val=\$$ac_var
13267 case $ac_val in #(
13268 *${as_nl}*)
13269 case $ac_var in #(
13270 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13271$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13272 esac
13273 case $ac_var in #(
13274 _ | IFS | as_nl) ;; #(
13275 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13276 *) { eval $ac_var=; unset $ac_var;} ;;
13277 esac ;;
13278 esac
13279 done
13280
c6b750e1 13281 (set) 2>&1 |
81ecdfbb
RW
13282 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13283 *${as_nl}ac_space=\ *)
13284 # `set' does not quote correctly, so add quotes: double-quote
13285 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
13286 sed -n \
13287 "s/'/'\\\\''/g;
13288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 13289 ;; #(
c6b750e1
DJ
13290 *)
13291 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 13292 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 13293 ;;
81ecdfbb
RW
13294 esac |
13295 sort
13296) |
c6b750e1 13297 sed '
81ecdfbb 13298 /^ac_cv_env_/b end
c6b750e1 13299 t clear
81ecdfbb 13300 :clear
c6b750e1
DJ
13301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13302 t end
81ecdfbb
RW
13303 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13304 :end' >>confcache
13305if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13306 if test -w "$cache_file"; then
13307 test "x$cache_file" != "x/dev/null" &&
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13309$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 13310 cat confcache >$cache_file
a0da8069 13311 else
81ecdfbb
RW
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13313$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 13314 fi
852e5f18 13315fi
a0da8069 13316rm -f confcache
852e5f18 13317
a0da8069
NN
13318test "x$prefix" = xNONE && prefix=$ac_default_prefix
13319# Let make expand exec_prefix.
13320test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 13321
a0da8069
NN
13322# Transform confdefs.h into DEFS.
13323# Protect against shell expansion while executing Makefile rules.
13324# Protect against Makefile macro expansion.
c6b750e1
DJ
13325#
13326# If the first sed substitution is executed (which looks for macros that
81ecdfbb 13327# take arguments), then branch to the quote section. Otherwise,
c6b750e1 13328# look for a macro that doesn't take arguments.
81ecdfbb
RW
13329ac_script='
13330:mline
13331/\\$/{
13332 N
13333 s,\\\n,,
13334 b mline
13335}
c6b750e1 13336t clear
81ecdfbb
RW
13337:clear
13338s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 13339t quote
81ecdfbb 13340s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 13341t quote
81ecdfbb
RW
13342b any
13343:quote
13344s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13345s/\[/\\&/g
13346s/\]/\\&/g
13347s/\$/$$/g
13348H
13349:any
13350${
13351 g
13352 s/^\n//
13353 s/\n/ /g
13354 p
13355}
13356'
13357DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
13358
13359
13360ac_libobjs=
13361ac_ltlibobjs=
13362for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13363 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
13364 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13365 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13366 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13367 # will be set to the directory where LIBOBJS objects are built.
13368 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13369 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
13370done
13371LIBOBJS=$ac_libobjs
852e5f18 13372
c6b750e1 13373LTLIBOBJS=$ac_ltlibobjs
376a0e54 13374
cac3d6c4 13375
c6b750e1
DJ
13376
13377: ${CONFIG_STATUS=./config.status}
81ecdfbb 13378ac_write_fail=0
c6b750e1
DJ
13379ac_clean_files_save=$ac_clean_files
13380ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13382$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13383as_write_fail=0
13384cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
13385#! $SHELL
13386# Generated by $as_me.
a0da8069 13387# Run this file to recreate the current configuration.
a0da8069 13388# Compiler output produced by configure, useful for debugging
c6b750e1 13389# configure, is in config.log if it exists.
376a0e54 13390
c6b750e1
DJ
13391debug=false
13392ac_cs_recheck=false
13393ac_cs_silent=false
c6b750e1 13394
81ecdfbb
RW
13395SHELL=\${CONFIG_SHELL-$SHELL}
13396export SHELL
13397_ASEOF
13398cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13399## -------------------- ##
13400## M4sh Initialization. ##
13401## -------------------- ##
13402
13403# Be more Bourne compatible
13404DUALCASE=1; export DUALCASE # for MKS sh
13405if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
13406 emulate sh
13407 NULLCMD=:
81ecdfbb 13408 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
13409 # is contrary to our usage. Disable this feature.
13410 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
13411 setopt NO_GLOB_SUBST
13412else
13413 case `(set -o) 2>/dev/null` in #(
13414 *posix*) :
13415 set -o posix ;; #(
13416 *) :
13417 ;;
13418esac
c6b750e1 13419fi
c6b750e1 13420
81ecdfbb
RW
13421
13422as_nl='
13423'
13424export as_nl
13425# Printing a long string crashes Solaris 7 /usr/bin/printf.
13426as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13427as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13428as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13429# Prefer a ksh shell builtin over an external printf program on Solaris,
13430# but without wasting forks for bash or zsh.
13431if test -z "$BASH_VERSION$ZSH_VERSION" \
13432 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13433 as_echo='print -r --'
13434 as_echo_n='print -rn --'
13435elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13436 as_echo='printf %s\n'
13437 as_echo_n='printf %s'
13438else
13439 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13440 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13441 as_echo_n='/usr/ucb/echo -n'
13442 else
13443 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13444 as_echo_n_body='eval
13445 arg=$1;
13446 case $arg in #(
13447 *"$as_nl"*)
13448 expr "X$arg" : "X\\(.*\\)$as_nl";
13449 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13450 esac;
13451 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13452 '
13453 export as_echo_n_body
13454 as_echo_n='sh -c $as_echo_n_body as_echo'
13455 fi
13456 export as_echo_body
13457 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
13458fi
13459
81ecdfbb
RW
13460# The user is always right.
13461if test "${PATH_SEPARATOR+set}" != set; then
13462 PATH_SEPARATOR=:
13463 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13464 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13465 PATH_SEPARATOR=';'
13466 }
13467fi
13468
13469
13470# IFS
13471# We need space, tab and new line, in precisely that order. Quoting is
13472# there to prevent editors from complaining about space-tab.
13473# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13474# splitting by setting IFS to empty value.)
13475IFS=" "" $as_nl"
13476
13477# Find who we are. Look in the path if we contain no directory separator.
13478case $0 in #((
13479 *[\\/]* ) as_myself=$0 ;;
13480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13481for as_dir in $PATH
13482do
13483 IFS=$as_save_IFS
13484 test -z "$as_dir" && as_dir=.
13485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13486 done
13487IFS=$as_save_IFS
13488
13489 ;;
13490esac
13491# We did not find ourselves, most probably we were run as `sh COMMAND'
13492# in which case we are not to be found in the path.
13493if test "x$as_myself" = x; then
13494 as_myself=$0
13495fi
13496if test ! -f "$as_myself"; then
13497 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13498 exit 1
13499fi
c6b750e1 13500
81ecdfbb
RW
13501# Unset variables that we do not need and which cause bugs (e.g. in
13502# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13503# suppresses any "Segmentation fault" message there. '((' could
13504# trigger a bug in pdksh 5.2.14.
13505for as_var in BASH_ENV ENV MAIL MAILPATH
13506do eval test x\${$as_var+set} = xset \
13507 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13508done
c6b750e1
DJ
13509PS1='$ '
13510PS2='> '
13511PS4='+ '
13512
13513# NLS nuisances.
81ecdfbb
RW
13514LC_ALL=C
13515export LC_ALL
13516LANGUAGE=C
13517export LANGUAGE
13518
13519# CDPATH.
13520(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13521
13522
13523# as_fn_error ERROR [LINENO LOG_FD]
13524# ---------------------------------
13525# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13526# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13527# script with status $?, using 1 if that was 0.
13528as_fn_error ()
13529{
13530 as_status=$?; test $as_status -eq 0 && as_status=1
13531 if test "$3"; then
13532 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13533 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 13534 fi
81ecdfbb
RW
13535 $as_echo "$as_me: error: $1" >&2
13536 as_fn_exit $as_status
13537} # as_fn_error
13538
13539
13540# as_fn_set_status STATUS
13541# -----------------------
13542# Set $? to STATUS, without forking.
13543as_fn_set_status ()
13544{
13545 return $1
13546} # as_fn_set_status
13547
13548# as_fn_exit STATUS
13549# -----------------
13550# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13551as_fn_exit ()
13552{
13553 set +e
13554 as_fn_set_status $1
13555 exit $1
13556} # as_fn_exit
13557
13558# as_fn_unset VAR
13559# ---------------
13560# Portably unset VAR.
13561as_fn_unset ()
13562{
13563 { eval $1=; unset $1;}
13564}
13565as_unset=as_fn_unset
13566# as_fn_append VAR VALUE
13567# ----------------------
13568# Append the text in VALUE to the end of the definition contained in VAR. Take
13569# advantage of any shell optimizations that allow amortized linear growth over
13570# repeated appends, instead of the typical quadratic growth present in naive
13571# implementations.
13572if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13573 eval 'as_fn_append ()
13574 {
13575 eval $1+=\$2
13576 }'
13577else
13578 as_fn_append ()
13579 {
13580 eval $1=\$$1\$2
13581 }
13582fi # as_fn_append
13583
13584# as_fn_arith ARG...
13585# ------------------
13586# Perform arithmetic evaluation on the ARGs, and store the result in the
13587# global $as_val. Take advantage of shells that can avoid forks. The arguments
13588# must be portable across $(()) and expr.
13589if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13590 eval 'as_fn_arith ()
13591 {
13592 as_val=$(( $* ))
13593 }'
13594else
13595 as_fn_arith ()
13596 {
13597 as_val=`expr "$@" || test $? -eq 1`
13598 }
13599fi # as_fn_arith
13600
c6b750e1 13601
81ecdfbb
RW
13602if expr a : '\(a\)' >/dev/null 2>&1 &&
13603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
13604 as_expr=expr
13605else
13606 as_expr=false
13607fi
13608
81ecdfbb 13609if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
13610 as_basename=basename
13611else
13612 as_basename=false
13613fi
13614
81ecdfbb
RW
13615if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13616 as_dirname=dirname
13617else
13618 as_dirname=false
13619fi
c6b750e1 13620
81ecdfbb 13621as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
13622$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13623 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
13624 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13625$as_echo X/"$0" |
13626 sed '/^.*\/\([^/][^/]*\)\/*$/{
13627 s//\1/
13628 q
13629 }
13630 /^X\/\(\/\/\)$/{
13631 s//\1/
13632 q
13633 }
13634 /^X\/\(\/\).*/{
13635 s//\1/
13636 q
13637 }
13638 s/.*/./; q'`
c6b750e1 13639
c6b750e1
DJ
13640# Avoid depending upon Character Ranges.
13641as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13642as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13643as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13644as_cr_digits='0123456789'
13645as_cr_alnum=$as_cr_Letters$as_cr_digits
13646
81ecdfbb
RW
13647ECHO_C= ECHO_N= ECHO_T=
13648case `echo -n x` in #(((((
13649-n*)
13650 case `echo 'xy\c'` in
13651 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13652 xy) ECHO_C='\c';;
13653 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13654 ECHO_T=' ';;
13655 esac;;
13656*)
13657 ECHO_N='-n';;
c6b750e1
DJ
13658esac
13659
81ecdfbb
RW
13660rm -f conf$$ conf$$.exe conf$$.file
13661if test -d conf$$.dir; then
13662 rm -f conf$$.dir/conf$$.file
c6b750e1 13663else
81ecdfbb
RW
13664 rm -f conf$$.dir
13665 mkdir conf$$.dir 2>/dev/null
c6b750e1 13666fi
81ecdfbb
RW
13667if (echo >conf$$.file) 2>/dev/null; then
13668 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 13669 as_ln_s='ln -s'
81ecdfbb
RW
13670 # ... but there are two gotchas:
13671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13673 # In both cases, we have to default to `cp -p'.
13674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13675 as_ln_s='cp -p'
13676 elif ln conf$$.file conf$$ 2>/dev/null; then
13677 as_ln_s=ln
13678 else
13679 as_ln_s='cp -p'
c6b750e1 13680 fi
c6b750e1
DJ
13681else
13682 as_ln_s='cp -p'
13683fi
81ecdfbb
RW
13684rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13685rmdir conf$$.dir 2>/dev/null
13686
13687
13688# as_fn_mkdir_p
13689# -------------
13690# Create "$as_dir" as a directory, including parents if necessary.
13691as_fn_mkdir_p ()
13692{
13693
13694 case $as_dir in #(
13695 -*) as_dir=./$as_dir;;
13696 esac
13697 test -d "$as_dir" || eval $as_mkdir_p || {
13698 as_dirs=
13699 while :; do
13700 case $as_dir in #(
13701 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13702 *) as_qdir=$as_dir;;
13703 esac
13704 as_dirs="'$as_qdir' $as_dirs"
13705 as_dir=`$as_dirname -- "$as_dir" ||
13706$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13707 X"$as_dir" : 'X\(//\)[^/]' \| \
13708 X"$as_dir" : 'X\(//\)$' \| \
13709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13710$as_echo X"$as_dir" |
13711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13712 s//\1/
13713 q
13714 }
13715 /^X\(\/\/\)[^/].*/{
13716 s//\1/
13717 q
13718 }
13719 /^X\(\/\/\)$/{
13720 s//\1/
13721 q
13722 }
13723 /^X\(\/\).*/{
13724 s//\1/
13725 q
13726 }
13727 s/.*/./; q'`
13728 test -d "$as_dir" && break
13729 done
13730 test -z "$as_dirs" || eval "mkdir $as_dirs"
13731 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13732
c6b750e1 13733
81ecdfbb 13734} # as_fn_mkdir_p
c6b750e1 13735if mkdir -p . 2>/dev/null; then
81ecdfbb 13736 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
13737else
13738 test -d ./-p && rmdir ./-p
13739 as_mkdir_p=false
13740fi
13741
81ecdfbb
RW
13742if test -x / >/dev/null 2>&1; then
13743 as_test_x='test -x'
13744else
13745 if ls -dL / >/dev/null 2>&1; then
13746 as_ls_L_option=L
13747 else
13748 as_ls_L_option=
13749 fi
13750 as_test_x='
13751 eval sh -c '\''
13752 if test -d "$1"; then
13753 test -d "$1/.";
13754 else
13755 case $1 in #(
13756 -*)set "./$1";;
13757 esac;
13758 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13759 ???[sx]*):;;*)false;;esac;fi
13760 '\'' sh
13761 '
13762fi
13763as_executable_p=$as_test_x
c6b750e1
DJ
13764
13765# Sed expression to map a string onto a valid CPP name.
13766as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13767
13768# Sed expression to map a string onto a valid variable name.
13769as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13770
13771
c6b750e1 13772exec 6>&1
81ecdfbb
RW
13773## ----------------------------------- ##
13774## Main body of $CONFIG_STATUS script. ##
13775## ----------------------------------- ##
13776_ASEOF
13777test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13778
13779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13780# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 13781# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
13782# values after options handling.
13783ac_log="
c6b750e1 13784This file was extended by $as_me, which was
81ecdfbb 13785generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
13786
13787 CONFIG_FILES = $CONFIG_FILES
13788 CONFIG_HEADERS = $CONFIG_HEADERS
13789 CONFIG_LINKS = $CONFIG_LINKS
13790 CONFIG_COMMANDS = $CONFIG_COMMANDS
13791 $ $0 $@
13792
81ecdfbb
RW
13793on `(hostname || uname -n) 2>/dev/null | sed 1q`
13794"
13795
c6b750e1
DJ
13796_ACEOF
13797
81ecdfbb
RW
13798case $ac_config_files in *"
13799"*) set x $ac_config_files; shift; ac_config_files=$*;;
13800esac
c6b750e1 13801
c6b750e1 13802
c6b750e1 13803
81ecdfbb
RW
13804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13805# Files that config.status was made for.
13806config_files="$ac_config_files"
c6b750e1 13807
81ecdfbb 13808_ACEOF
c6b750e1 13809
81ecdfbb 13810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 13811ac_cs_usage="\
81ecdfbb
RW
13812\`$as_me' instantiates files and other configuration actions
13813from templates according to the current configuration. Unless the files
13814and actions are specified as TAGs, all are instantiated by default.
c6b750e1 13815
81ecdfbb 13816Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
13817
13818 -h, --help print this help, then exit
81ecdfbb
RW
13819 -V, --version print version number and configuration settings, then exit
13820 -q, --quiet, --silent
13821 do not print progress messages
c6b750e1
DJ
13822 -d, --debug don't remove temporary files
13823 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
13824 --file=FILE[:TEMPLATE]
13825 instantiate the configuration file FILE
c6b750e1
DJ
13826
13827Configuration files:
13828$config_files
13829
81ecdfbb 13830Report bugs to the package provider."
c6b750e1 13831
81ecdfbb
RW
13832_ACEOF
13833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
13834ac_cs_version="\\
13835config.status
81ecdfbb
RW
13836configured by $0, generated by GNU Autoconf 2.64,
13837 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 13838
81ecdfbb 13839Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
13840This config.status script is free software; the Free Software Foundation
13841gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13842
13843ac_pwd='$ac_pwd'
13844srcdir='$srcdir'
13845INSTALL='$INSTALL'
13846test -n "\$AWK" || AWK=awk
c6b750e1
DJ
13847_ACEOF
13848
81ecdfbb
RW
13849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13850# The default lists apply if the user does not specify any file.
c6b750e1
DJ
13851ac_need_defaults=:
13852while test $# != 0
a0da8069 13853do
c6b750e1
DJ
13854 case $1 in
13855 --*=*)
81ecdfbb
RW
13856 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13857 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
13858 ac_shift=:
13859 ;;
81ecdfbb 13860 *)
c6b750e1
DJ
13861 ac_option=$1
13862 ac_optarg=$2
13863 ac_shift=shift
13864 ;;
c6b750e1
DJ
13865 esac
13866
13867 case $ac_option in
13868 # Handling of the options.
a0da8069 13869 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 13870 ac_cs_recheck=: ;;
81ecdfbb
RW
13871 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13872 $as_echo "$ac_cs_version"; exit ;;
13873 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
13874 debug=: ;;
13875 --file | --fil | --fi | --f )
13876 $ac_shift
81ecdfbb
RW
13877 case $ac_optarg in
13878 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13879 esac
13880 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 13881 ac_need_defaults=false;;
81ecdfbb
RW
13882 --he | --h | --help | --hel | -h )
13883 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
13884 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13885 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13886 ac_cs_silent=: ;;
13887
13888 # This is an error.
81ecdfbb
RW
13889 -*) as_fn_error "unrecognized option: \`$1'
13890Try \`$0 --help' for more information." ;;
c6b750e1 13891
81ecdfbb
RW
13892 *) as_fn_append ac_config_targets " $1"
13893 ac_need_defaults=false ;;
c6b750e1 13894
376a0e54 13895 esac
c6b750e1 13896 shift
376a0e54
CM
13897done
13898
c6b750e1 13899ac_configure_extra_args=
376a0e54 13900
c6b750e1
DJ
13901if $ac_cs_silent; then
13902 exec 6>/dev/null
13903 ac_configure_extra_args="$ac_configure_extra_args --silent"
13904fi
376a0e54 13905
c6b750e1 13906_ACEOF
81ecdfbb 13907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 13908if \$ac_cs_recheck; then
81ecdfbb
RW
13909 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13910 shift
13911 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13912 CONFIG_SHELL='$SHELL'
13913 export CONFIG_SHELL
13914 exec "\$@"
c6b750e1
DJ
13915fi
13916
13917_ACEOF
81ecdfbb
RW
13918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13919exec 5>>config.log
13920{
13921 echo
13922 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13923## Running $as_me. ##
13924_ASBOX
13925 $as_echo "$ac_log"
13926} >&5
c6b750e1 13927
81ecdfbb
RW
13928_ACEOF
13929cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13930_ACEOF
c6b750e1 13931
81ecdfbb 13932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 13933
81ecdfbb 13934# Handling of arguments.
c6b750e1
DJ
13935for ac_config_target in $ac_config_targets
13936do
81ecdfbb
RW
13937 case $ac_config_target in
13938 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13939
13940 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
13941 esac
13942done
13943
81ecdfbb 13944
c6b750e1
DJ
13945# If the user did not use the arguments to specify the items to instantiate,
13946# then the envvar interface is used. Set only those that are not.
13947# We use the long form for the default assignment because of an extremely
13948# bizarre bug on SunOS 4.1.3.
13949if $ac_need_defaults; then
13950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13951fi
13952
13953# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13954# simply because there is no reason against having it here, and in addition,
c6b750e1 13955# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13956# Hook for its removal unless debugging.
13957# Note that there is a small window in which the directory will not be cleaned:
13958# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
13959$debug ||
13960{
81ecdfbb
RW
13961 tmp=
13962 trap 'exit_status=$?
13963 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13964' 0
13965 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 13966}
c6b750e1
DJ
13967# Create a (secure) tmp directory for tmp files.
13968
13969{
81ecdfbb 13970 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
13971 test -n "$tmp" && test -d "$tmp"
13972} ||
13973{
81ecdfbb
RW
13974 tmp=./conf$$-$RANDOM
13975 (umask 077 && mkdir "$tmp")
13976} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13977
13978# Set up the scripts for CONFIG_FILES section.
13979# No need to generate them if there are no CONFIG_FILES.
13980# This happens for instance with `./config.status config.h'.
13981if test -n "$CONFIG_FILES"; then
13982
13983if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13984 ac_cs_awk_getline=:
13985 ac_cs_awk_pipe_init=
13986 ac_cs_awk_read_file='
13987 while ((getline aline < (F[key])) > 0)
13988 print(aline)
13989 close(F[key])'
13990 ac_cs_awk_pipe_fini=
13991else
13992 ac_cs_awk_getline=false
13993 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13994 ac_cs_awk_read_file='
13995 print "|#_!!_#|"
13996 print "cat " F[key] " &&"
13997 '$ac_cs_awk_pipe_init
13998 # The final `:' finishes the AND list.
13999 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14000fi
14001ac_cr=`echo X | tr X '\015'`
14002# On cygwin, bash can eat \r inside `` if the user requested igncr.
14003# But we know of no other shell where ac_cr would be empty at this
14004# point, so we can use a bashism as a fallback.
14005if test "x$ac_cr" = x; then
14006 eval ac_cr=\$\'\\r\'
14007fi
14008ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14009if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14010 ac_cs_awk_cr='\r'
14011else
14012 ac_cs_awk_cr=$ac_cr
14013fi
14014
14015echo 'BEGIN {' >"$tmp/subs1.awk" &&
14016_ACEOF
14017
14018# Create commands to substitute file output variables.
c6b750e1 14019{
81ecdfbb
RW
14020 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14021 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14022 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14023 echo "_ACAWK" &&
14024 echo "_ACEOF"
14025} >conf$$files.sh &&
14026. ./conf$$files.sh ||
14027 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14028rm -f conf$$files.sh
c6b750e1 14029
81ecdfbb
RW
14030{
14031 echo "cat >conf$$subs.awk <<_ACEOF" &&
14032 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14033 echo "_ACEOF"
14034} >conf$$subs.sh ||
14035 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14036ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14037ac_delim='%!_!# '
14038for ac_last_try in false false false false false :; do
14039 . ./conf$$subs.sh ||
14040 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14041
14042 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14043 if test $ac_delim_n = $ac_delim_num; then
14044 break
14045 elif $ac_last_try; then
14046 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14047 else
14048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14049 fi
14050done
14051rm -f conf$$subs.sh
14052
14053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14054cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14055_ACEOF
81ecdfbb
RW
14056sed -n '
14057h
14058s/^/S["/; s/!.*/"]=/
14059p
14060g
14061s/^[^!]*!//
14062:repl
14063t repl
14064s/'"$ac_delim"'$//
14065t delim
14066:nl
14067h
14068s/\(.\{148\}\).*/\1/
14069t more1
14070s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14071p
14072n
14073b repl
14074:more1
14075s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14076p
14077g
14078s/.\{148\}//
14079t nl
14080:delim
14081h
14082s/\(.\{148\}\).*/\1/
14083t more2
14084s/["\\]/\\&/g; s/^/"/; s/$/"/
14085p
14086b
14087:more2
14088s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14089p
14090g
14091s/.\{148\}//
14092t delim
14093' <conf$$subs.awk | sed '
14094/^[^""]/{
14095 N
14096 s/\n//
14097}
14098' >>$CONFIG_STATUS || ac_write_fail=1
14099rm -f conf$$subs.awk
14100cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14101_ACAWK
14102cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14103 for (key in S) S_is_set[key] = 1
14104 FS = "\a"
14105 \$ac_cs_awk_pipe_init
14106}
14107{
14108 line = $ 0
14109 nfields = split(line, field, "@")
14110 substed = 0
14111 len = length(field[1])
14112 for (i = 2; i < nfields; i++) {
14113 key = field[i]
14114 keylen = length(key)
14115 if (S_is_set[key]) {
14116 value = S[key]
14117 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14118 len += length(value) + length(field[++i])
14119 substed = 1
14120 } else
14121 len += 1 + keylen
14122 }
14123 if (nfields == 3 && !substed) {
14124 key = field[2]
14125 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14126 \$ac_cs_awk_read_file
14127 next
14128 }
14129 }
14130 print line
14131}
14132\$ac_cs_awk_pipe_fini
14133_ACAWK
14134_ACEOF
14135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14136if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14137 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14138else
14139 cat
14140fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14141 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14142_ACEOF
14143
14144# VPATH may cause trouble with some makes, so we remove $(srcdir),
14145# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14146# trailing colons and then remove the whole line if VPATH becomes empty
14147# (actually we leave an empty line to preserve line numbers).
14148if test "x$srcdir" = x.; then
14149 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14150s/:*\$(srcdir):*/:/
14151s/:*\${srcdir}:*/:/
14152s/:*@srcdir@:*/:/
14153s/^\([^=]*=[ ]*\):*/\1/
14154s/:*$//
14155s/^[^=]*=[ ]*$//
14156}'
14157fi
c6b750e1 14158
81ecdfbb
RW
14159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14160fi # test -n "$CONFIG_FILES"
c6b750e1 14161
c6b750e1 14162
81ecdfbb
RW
14163eval set X " :F $CONFIG_FILES "
14164shift
14165for ac_tag
14166do
14167 case $ac_tag in
14168 :[FHLC]) ac_mode=$ac_tag; continue;;
14169 esac
14170 case $ac_mode$ac_tag in
14171 :[FHL]*:*);;
14172 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14173 :[FH]-) ac_tag=-:-;;
14174 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14175 esac
14176 ac_save_IFS=$IFS
14177 IFS=:
14178 set x $ac_tag
14179 IFS=$ac_save_IFS
14180 shift
14181 ac_file=$1
14182 shift
252b5132 14183
81ecdfbb
RW
14184 case $ac_mode in
14185 :L) ac_source=$1;;
14186 :[FH])
14187 ac_file_inputs=
14188 for ac_f
14189 do
14190 case $ac_f in
14191 -) ac_f="$tmp/stdin";;
14192 *) # Look for the file first in the build tree, then in the source tree
14193 # (if the path is not absolute). The absolute path cannot be DOS-style,
14194 # because $ac_f cannot contain `:'.
14195 test -f "$ac_f" ||
14196 case $ac_f in
14197 [\\/$]*) false;;
14198 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14199 esac ||
14200 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14201 esac
14202 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14203 as_fn_append ac_file_inputs " '$ac_f'"
14204 done
c6b750e1 14205
81ecdfbb
RW
14206 # Let's still pretend it is `configure' which instantiates (i.e., don't
14207 # use $as_me), people would be surprised to read:
14208 # /* config.h. Generated by config.status. */
14209 configure_input='Generated from '`
14210 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14211 `' by configure.'
14212 if test x"$ac_file" != x-; then
14213 configure_input="$ac_file. $configure_input"
14214 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14215$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 14216 fi
81ecdfbb
RW
14217 # Neutralize special characters interpreted by sed in replacement strings.
14218 case $configure_input in #(
14219 *\&* | *\|* | *\\* )
14220 ac_sed_conf_input=`$as_echo "$configure_input" |
14221 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14222 *) ac_sed_conf_input=$configure_input;;
14223 esac
cac3d6c4 14224
81ecdfbb
RW
14225 case $ac_tag in
14226 *:-:* | *:-) cat >"$tmp/stdin" \
14227 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14228 esac
14229 ;;
a0da8069 14230 esac
252b5132 14231
81ecdfbb 14232 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
14233$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14234 X"$ac_file" : 'X\(//\)[^/]' \| \
14235 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
14236 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14237$as_echo X"$ac_file" |
14238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14239 s//\1/
14240 q
14241 }
14242 /^X\(\/\/\)[^/].*/{
14243 s//\1/
14244 q
14245 }
14246 /^X\(\/\/\)$/{
14247 s//\1/
14248 q
14249 }
14250 /^X\(\/\).*/{
14251 s//\1/
14252 q
14253 }
14254 s/.*/./; q'`
14255 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 14256 ac_builddir=.
252b5132 14257
81ecdfbb
RW
14258case "$ac_dir" in
14259.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14260*)
14261 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14262 # A ".." for each directory in $ac_dir_suffix.
14263 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14264 case $ac_top_builddir_sub in
14265 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14266 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14267 esac ;;
14268esac
14269ac_abs_top_builddir=$ac_pwd
14270ac_abs_builddir=$ac_pwd$ac_dir_suffix
14271# for backward compatibility:
14272ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
14273
14274case $srcdir in
81ecdfbb 14275 .) # We are building in place.
c6b750e1 14276 ac_srcdir=.
81ecdfbb
RW
14277 ac_top_srcdir=$ac_top_builddir_sub
14278 ac_abs_top_srcdir=$ac_pwd ;;
14279 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 14280 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
14281 ac_top_srcdir=$srcdir
14282 ac_abs_top_srcdir=$srcdir ;;
14283 *) # Relative name.
14284 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14285 ac_top_srcdir=$ac_top_build_prefix$srcdir
14286 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 14287esac
81ecdfbb 14288ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 14289
252b5132 14290
81ecdfbb
RW
14291 case $ac_mode in
14292 :F)
14293 #
14294 # CONFIG_FILE
14295 #
c6b750e1
DJ
14296
14297 case $INSTALL in
14298 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 14299 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 14300 esac
81ecdfbb 14301_ACEOF
252b5132 14302
81ecdfbb
RW
14303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14304# If the template does not know about datarootdir, expand it.
14305# FIXME: This hack should be removed a few years after 2.60.
14306ac_datarootdir_hack=; ac_datarootdir_seen=
14307ac_sed_dataroot='
14308/datarootdir/ {
14309 p
14310 q
14311}
14312/@datadir@/p
14313/@docdir@/p
14314/@infodir@/p
14315/@localedir@/p
14316/@mandir@/p'
14317case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14318*datarootdir*) ac_datarootdir_seen=yes;;
14319*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14321$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 14322_ACEOF
81ecdfbb
RW
14323cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14324 ac_datarootdir_hack='
14325 s&@datadir@&$datadir&g
14326 s&@docdir@&$docdir&g
14327 s&@infodir@&$infodir&g
14328 s&@localedir@&$localedir&g
14329 s&@mandir@&$mandir&g
14330 s&\\\${datarootdir}&$datarootdir&g' ;;
14331esac
14332_ACEOF
14333
14334# Neutralize VPATH when `$srcdir' = `.'.
14335# Shell code in configure.ac might set extrasub.
14336# FIXME: do we really want to maintain this feature?
14337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14338ac_sed_extra="$ac_vpsub
c6b750e1
DJ
14339$extrasub
14340_ACEOF
81ecdfbb 14341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
14342:t
14343/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
14344s|@configure_input@|$ac_sed_conf_input|;t t
14345s&@top_builddir@&$ac_top_builddir_sub&;t t
14346s&@top_build_prefix@&$ac_top_build_prefix&;t t
14347s&@srcdir@&$ac_srcdir&;t t
14348s&@abs_srcdir@&$ac_abs_srcdir&;t t
14349s&@top_srcdir@&$ac_top_srcdir&;t t
14350s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14351s&@builddir@&$ac_builddir&;t t
14352s&@abs_builddir@&$ac_abs_builddir&;t t
14353s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14354s&@INSTALL@&$ac_INSTALL&;t t
14355$ac_datarootdir_hack
14356"
14357eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14358if $ac_cs_awk_getline; then
14359 $AWK -f "$tmp/subs.awk"
14360else
14361 $AWK -f "$tmp/subs.awk" | $SHELL
14362fi >$tmp/out \
14363 || as_fn_error "could not create $ac_file" "$LINENO" 5
14364
14365test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14366 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14367 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14369which seems to be undefined. Please make sure it is defined." >&5
14370$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14371which seems to be undefined. Please make sure it is defined." >&2;}
14372
14373 rm -f "$tmp/stdin"
14374 case $ac_file in
14375 -) cat "$tmp/out" && rm -f "$tmp/out";;
14376 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14377 esac \
14378 || as_fn_error "could not create $ac_file" "$LINENO" 5
14379 ;;
c148b4cb 14380
c148b4cb 14381
c148b4cb 14382
81ecdfbb
RW
14383 esac
14384
14385done # for ac_tag
14386
14387
14388as_fn_exit 0
c6b750e1 14389_ACEOF
c6b750e1
DJ
14390ac_clean_files=$ac_clean_files_save
14391
81ecdfbb
RW
14392test $ac_write_fail = 0 ||
14393 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14394
c6b750e1
DJ
14395
14396# configure is writing to config.log, and then calls config.status.
14397# config.status does its own redirection, appending to config.log.
14398# Unfortunately, on DOS this fails, as config.log is still kept open
14399# by configure, so config.status won't be able to write to it; its
14400# output is simply discarded. So we exec the FD to /dev/null,
14401# effectively closing config.log, so it can be properly (re)opened and
14402# appended to by config.status. When coming back to configure, we
14403# need to make the FD available again.
14404if test "$no_create" != yes; then
14405 ac_cs_success=:
14406 ac_config_status_args=
14407 test "$silent" = yes &&
14408 ac_config_status_args="$ac_config_status_args --quiet"
14409 exec 5>/dev/null
14410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14411 exec 5>>config.log
14412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14413 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14414 $ac_cs_success || as_fn_exit $?
14415fi
14416if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14418$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 14419fi
c148b4cb 14420
This page took 1.344792 seconds and 4 git commands to generate.