split changelog
[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
81ecdfbb
RW
773'
774 ac_precious_vars='build_alias
775host_alias
776target_alias
777CC
778CFLAGS
779LDFLAGS
780LIBS
781CPPFLAGS
782CXX
783CXXFLAGS
784CCC
785AR
786AS
787DLLTOOL
788LD
789LIPO
790NM
791RANLIB
792STRIP
793WINDRES
794WINDMC
795OBJCOPY
796OBJDUMP
797CC_FOR_TARGET
798CXX_FOR_TARGET
799GCC_FOR_TARGET
800GCJ_FOR_TARGET
801GFORTRAN_FOR_TARGET
802AR_FOR_TARGET
803AS_FOR_TARGET
804DLLTOOL_FOR_TARGET
805LD_FOR_TARGET
806LIPO_FOR_TARGET
807NM_FOR_TARGET
808OBJDUMP_FOR_TARGET
809RANLIB_FOR_TARGET
810STRIP_FOR_TARGET
811WINDRES_FOR_TARGET
812WINDMC_FOR_TARGET'
813
a0da8069
NN
814
815# Initialize some variables set by options.
c6b750e1
DJ
816ac_init_help=
817ac_init_version=false
81ecdfbb
RW
818ac_unrecognized_opts=
819ac_unrecognized_sep=
a0da8069
NN
820# The variables have the same names as the options, with
821# dashes changed to underlines.
c6b750e1 822cache_file=/dev/null
a0da8069 823exec_prefix=NONE
a0da8069 824no_create=
a0da8069
NN
825no_recursion=
826prefix=NONE
827program_prefix=NONE
828program_suffix=NONE
829program_transform_name=s,x,x,
830silent=
831site=
832srcdir=
a0da8069
NN
833verbose=
834x_includes=NONE
835x_libraries=NONE
c6b750e1
DJ
836
837# Installation directory options.
838# These are left unexpanded so users can "make install exec_prefix=/foo"
839# and all the variables that are supposed to be based on exec_prefix
840# by default will actually change.
841# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 842# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
843bindir='${exec_prefix}/bin'
844sbindir='${exec_prefix}/sbin'
845libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
846datarootdir='${prefix}/share'
847datadir='${datarootdir}'
a0da8069
NN
848sysconfdir='${prefix}/etc'
849sharedstatedir='${prefix}/com'
850localstatedir='${prefix}/var'
a0da8069
NN
851includedir='${prefix}/include'
852oldincludedir='/usr/include'
81ecdfbb
RW
853docdir='${datarootdir}/doc/${PACKAGE}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
252b5132 862
a0da8069 863ac_prev=
81ecdfbb 864ac_dashdash=
a0da8069
NN
865for ac_option
866do
a0da8069
NN
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
81ecdfbb 869 eval $ac_prev=\$ac_option
a0da8069
NN
870 ac_prev=
871 continue
872 fi
252b5132 873
81ecdfbb
RW
874 case $ac_option in
875 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *) ac_optarg=yes ;;
877 esac
a0da8069
NN
878
879 # Accept the important Cygnus configure options, so we can diagnose typos.
880
81ecdfbb
RW
881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
a0da8069
NN
884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 888 bindir=$ac_optarg ;;
a0da8069
NN
889
890 -build | --build | --buil | --bui | --bu)
c6b750e1 891 ac_prev=build_alias ;;
a0da8069 892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 893 build_alias=$ac_optarg ;;
a0da8069
NN
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
a0da8069 904
81ecdfbb 905 -datadir | --datadir | --datadi | --datad)
a0da8069 906 ac_prev=datadir ;;
81ecdfbb 907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 908 datadir=$ac_optarg ;;
a0da8069 909
81ecdfbb
RW
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
a0da8069 917 -disable-* | --disable-*)
81ecdfbb 918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 919 # Reject names that are not valid shell variable names.
81ecdfbb
RW
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error "invalid feature name: $ac_useropt"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926"enable_$ac_useropt"
927"*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
a0da8069
NN
942
943 -enable-* | --enable-*)
81ecdfbb 944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 945 # Reject names that are not valid shell variable names.
81ecdfbb
RW
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error "invalid feature name: $ac_useropt"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952"enable_$ac_useropt"
953"*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
a0da8069 956 esac
81ecdfbb 957 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
c6b750e1 966 exec_prefix=$ac_optarg ;;
a0da8069
NN
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
c6b750e1
DJ
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
a0da8069
NN
978
979 -host | --host | --hos | --ho)
c6b750e1 980 ac_prev=host_alias ;;
a0da8069 981 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 982 host_alias=$ac_optarg ;;
a0da8069 983
81ecdfbb
RW
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
a0da8069
NN
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 995 includedir=$ac_optarg ;;
a0da8069
NN
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1000 infodir=$ac_optarg ;;
a0da8069
NN
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1005 libdir=$ac_optarg ;;
a0da8069
NN
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1012 libexecdir=$ac_optarg ;;
a0da8069 1013
81ecdfbb
RW
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
a0da8069 1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1020 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1024 localstatedir=$ac_optarg ;;
a0da8069
NN
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1029 mandir=$ac_optarg ;;
a0da8069
NN
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1036 | --no-cr | --no-c | -n)
a0da8069
NN
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1050 oldincludedir=$ac_optarg ;;
a0da8069
NN
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1055 prefix=$ac_optarg ;;
a0da8069
NN
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1062 program_prefix=$ac_optarg ;;
a0da8069
NN
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1069 program_suffix=$ac_optarg ;;
a0da8069
NN
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1086 program_transform_name=$ac_optarg ;;
a0da8069 1087
81ecdfbb
RW
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
a0da8069
NN
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
c6b750e1 1106 sbindir=$ac_optarg ;;
a0da8069
NN
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
c6b750e1 1117 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
c6b750e1 1122 site=$ac_optarg ;;
a0da8069
NN
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1127 srcdir=$ac_optarg ;;
a0da8069
NN
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1134 sysconfdir=$ac_optarg ;;
a0da8069
NN
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1137 ac_prev=target_alias ;;
a0da8069 1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1139 target_alias=$ac_optarg ;;
a0da8069
NN
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
c6b750e1
DJ
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
a0da8069
NN
1146
1147 -with-* | --with-*)
81ecdfbb 1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1149 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error "invalid package name: $ac_useropt"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156"with_$ac_useropt"
1157"*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
a0da8069 1160 esac
81ecdfbb 1161 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1162
1163 -without-* | --without-*)
81ecdfbb 1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1165 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172"with_$ac_useropt"
1173"*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
a0da8069
NN
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1188 x_includes=$ac_optarg ;;
a0da8069
NN
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1195 x_libraries=$ac_optarg ;;
a0da8069 1196
81ecdfbb
RW
1197 -*) as_fn_error "unrecognized option: \`$ac_option'
1198Try \`$0 --help' for more information."
a0da8069
NN
1199 ;;
1200
c6b750e1
DJ
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1209 export $ac_envvar ;;
1210
a0da8069 1211 *)
c6b750e1 1212 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1213 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1215 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1216 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1217 ;;
1218
1219 esac
1220done
1221
1222if test -n "$ac_prev"; then
c6b750e1 1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1224 as_fn_error "missing argument to $ac_option"
a0da8069 1225fi
a0da8069 1226
81ecdfbb
RW
1227if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1232 esac
81ecdfbb 1233fi
a0da8069 1234
81ecdfbb
RW
1235# Check all directory arguments for consistency.
1236for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir
a0da8069 1240do
81ecdfbb
RW
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
c6b750e1 1249 case $ac_val in
81ecdfbb
RW
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1252 esac
81ecdfbb 1253 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1254done
1255
c6b750e1
DJ
1256# There might be people who depend on the old broken behavior: `$host'
1257# used to hold the argument of --host etc.
1258# FIXME: To remove some day.
1259build=$build_alias
1260host=$host_alias
1261target=$target_alias
376a0e54 1262
c6b750e1
DJ
1263# FIXME: To remove some day.
1264if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
81ecdfbb 1267 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1268 If a cross compiler is detected then cross compile mode will be used." >&2
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1271 fi
1272fi
1273
1274ac_tool_prefix=
1275test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277test "$silent" = yes && exec 6>/dev/null
a0da8069 1278
a0da8069 1279
81ecdfbb
RW
1280ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281ac_ls_di=`ls -di .` &&
1282ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error "working directory cannot be determined"
1284test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error "pwd does not report name of working directory"
1286
1287
a0da8069
NN
1288# Find the source files, if location was not specified.
1289if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
81ecdfbb
RW
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297$as_echo X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\).*/{
1311 s//\1/
1312 q
1313 }
1314 s/.*/./; q'`
a0da8069 1315 srcdir=$ac_confdir
81ecdfbb 1316 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1317 srcdir=..
1318 fi
1319else
1320 ac_srcdir_defaulted=no
1321fi
81ecdfbb
RW
1322if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1325fi
1326ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1329 pwd)`
1330# When building in place, set srcdir=.
1331if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1333fi
1334# Remove unnecessary trailing slashes from srcdir.
1335# Double slashes in file names in object file debugging info
1336# mess up M-x gdb in Emacs.
1337case $srcdir in
1338*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339esac
9cc8ae67
PB
1340ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1341
81ecdfbb
RW
1342for ac_var in $ac_precious_vars; do
1343 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_env_${ac_var}_value=\$${ac_var}
1345 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1346 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1347done
c6b750e1
DJ
1348
1349#
1350# Report the --help message.
1351#
1352if test "$ac_init_help" = "long"; then
1353 # Omit some internal or obsolete options to make the list less imposing.
1354 # This message is too long to be a string in the A/UX 3.1 sh.
1355 cat <<_ACEOF
1356\`configure' configures this package to adapt to many kinds of systems.
1357
1358Usage: $0 [OPTION]... [VAR=VALUE]...
1359
1360To assign environment variables (e.g., CC, CFLAGS...), specify them as
1361VAR=VALUE. See below for descriptions of some of the useful variables.
1362
1363Defaults for the options are specified in brackets.
1364
1365Configuration:
1366 -h, --help display this help and exit
1367 --help=short display options specific to this package
1368 --help=recursive display the short help of all the included packages
1369 -V, --version display version information and exit
1370 -q, --quiet, --silent do not print \`checking...' messages
1371 --cache-file=FILE cache test results in FILE [disabled]
1372 -C, --config-cache alias for \`--cache-file=config.cache'
1373 -n, --no-create do not create output files
1374 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1375
c6b750e1
DJ
1376Installation directories:
1377 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1378 [$ac_default_prefix]
c6b750e1 1379 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1380 [PREFIX]
c6b750e1
DJ
1381
1382By default, \`make install' will install all the files in
1383\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1384an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1385for instance \`--prefix=\$HOME'.
1386
1387For better control, use the options below.
1388
1389Fine tuning of the installation directories:
81ecdfbb
RW
1390 --bindir=DIR user executables [EPREFIX/bin]
1391 --sbindir=DIR system admin executables [EPREFIX/sbin]
1392 --libexecdir=DIR program executables [EPREFIX/libexec]
1393 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1394 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1395 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1396 --libdir=DIR object code libraries [EPREFIX/lib]
1397 --includedir=DIR C header files [PREFIX/include]
1398 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1399 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1400 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1401 --infodir=DIR info documentation [DATAROOTDIR/info]
1402 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1403 --mandir=DIR man documentation [DATAROOTDIR/man]
1404 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1405 --htmldir=DIR html documentation [DOCDIR]
1406 --dvidir=DIR dvi documentation [DOCDIR]
1407 --pdfdir=DIR pdf documentation [DOCDIR]
1408 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1409_ACEOF
1410
1411 cat <<\_ACEOF
1412
1413Program names:
1414 --program-prefix=PREFIX prepend PREFIX to installed program names
1415 --program-suffix=SUFFIX append SUFFIX to installed program names
1416 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1417
1418System types:
1419 --build=BUILD configure for building on BUILD [guessed]
1420 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1421 --target=TARGET configure for building compilers for TARGET [HOST]
1422_ACEOF
a0da8069 1423fi
a0da8069 1424
c6b750e1
DJ
1425if test -n "$ac_init_help"; then
1426
1427 cat <<\_ACEOF
1428
1429Optional Features:
81ecdfbb 1430 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
93f9b408 1433 --enable-gold use gold instead of ld
521ec477
DD
1434 --enable-libada build libada directory
1435 --enable-libssp build libssp directory
e8a5fa9c 1436 --enable-build-with-cxx build with C++ compiler instead of C compiler
e28c595f
JM
1437 --disable-ppl-version-check disable check for PPL version
1438 --disable-cloog-version-check disable check for CLooG version
521ec477 1439 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 1440 stage1. Mostly useful for compiler development.
521ec477
DD
1441 --enable-objc-gc enable use of Boehm's garbage collector with the
1442 GNU Objective-C runtime
1443 --enable-bootstrap enable bootstrapping [yes if native build]
1444 --enable-serial-[{host,target,build}-]configure
1445 force sequential configuration of
c6b750e1 1446 sub-packages for the host, target or build
521ec477 1447 machine, or all sub-packages
c6b750e1
DJ
1448 --enable-maintainer-mode enable make rules and dependencies not useful
1449 (and sometimes confusing) to the casual installer
521ec477
DD
1450 --enable-stage1-checking[=all] choose additional checking for stage1
1451 of the compiler
c6b750e1
DJ
1452 --enable-werror enable -Werror in bootstrap stage2 and later
1453
1454Optional Packages:
1455 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1456 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1457 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8a5fa9c
RW
1458 --with-mpc=PATH specify prefix directory for installed MPC package.
1459 Equivalent to --with-mpc-include=PATH/include
1460 plus --with-mpc-lib=PATH/lib
1461 --with-mpc-include=PATH
1462 specify directory for installed MPC include files
1463 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1464 --with-mpfr-dir=PATH this option has been REMOVED
1465 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
1466 Equivalent to --with-mpfr-include=PATH/include
1467 plus --with-mpfr-lib=PATH/lib
1468 --with-mpfr-include=PATH
521ec477
DD
1469 specify directory for installed MPFR include files
1470 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1471 --with-gmp-dir=PATH this option has been REMOVED
1472 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
1473 Equivalent to --with-gmp-include=PATH/include
1474 plus --with-gmp-lib=PATH/lib
521ec477
DD
1475 --with-gmp-include=PATH specify directory for installed GMP include files
1476 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
1477 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1478 when linking with PPL
e8a5fa9c
RW
1479 --with-stage1-ldflags=FLAGS Linker flags for stage1
1480 -with-stage1-libs=LIBS Libraries for stage1
1481 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
1482 --with-boot-libs=LIBS Libraries for stage2 and later
e28c595f
JM
1483 --with-ppl=PATH Specify prefix directory for the installed PPL package
1484 Equivalent to --with-ppl-include=PATH/include
1485 plus --with-ppl-lib=PATH/lib
1486 --with-ppl-include=PATH Specify directory for installed PPL include files
1487 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1488 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1489 Equivalent to --with-cloog-include=PATH/include
1490 plus --with-cloog-lib=PATH/lib
1491 --with-cloog-include=PATH Specify directory for installed CLooG include files
1492 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
521ec477 1493 --with-build-sysroot=SYSROOT
c6b750e1 1494 use sysroot as the system root during the build
8a6ee3ab
JM
1495 --with-debug-prefix-map='A=B C=D ...'
1496 map A to B, C to D ... in debug information
521ec477 1497 --with-build-time-tools=PATH
c6b750e1 1498 use given path to find target tools during the build
c6b750e1
DJ
1499
1500Some influential environment variables:
1501 CC C compiler command
1502 CFLAGS C compiler flags
1503 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1504 nonstandard directory <lib dir>
81ecdfbb
RW
1505 LIBS libraries to pass to the linker, e.g. -l<library>
1506 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1507 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1508 CXX C++ compiler command
1509 CXXFLAGS C++ compiler flags
9a819804
AO
1510 AR AR for the host
1511 AS AS for the host
1512 DLLTOOL DLLTOOL for the host
1513 LD LD for the host
1514 LIPO LIPO for the host
1515 NM NM for the host
1516 RANLIB RANLIB for the host
1517 STRIP STRIP for the host
1518 WINDRES WINDRES for the host
0c24b341 1519 WINDMC WINDMC for the host
9a819804
AO
1520 OBJCOPY OBJCOPY for the host
1521 OBJDUMP OBJDUMP for the host
1522 CC_FOR_TARGET
1523 CC for the target
1524 CXX_FOR_TARGET
1525 CXX for the target
1526 GCC_FOR_TARGET
1527 GCC for the target
1528 GCJ_FOR_TARGET
1529 GCJ for the target
1530 GFORTRAN_FOR_TARGET
1531 GFORTRAN for the target
1532 AR_FOR_TARGET
1533 AR for the target
1534 AS_FOR_TARGET
1535 AS for the target
1536 DLLTOOL_FOR_TARGET
1537 DLLTOOL for the target
1538 LD_FOR_TARGET
1539 LD for the target
1540 LIPO_FOR_TARGET
1541 LIPO for the target
1542 NM_FOR_TARGET
1543 NM for the target
1544 OBJDUMP_FOR_TARGET
1545 OBJDUMP for the target
1546 RANLIB_FOR_TARGET
1547 RANLIB for the target
1548 STRIP_FOR_TARGET
1549 STRIP for the target
1550 WINDRES_FOR_TARGET
1551 WINDRES for the target
0c24b341
NC
1552 WINDMC_FOR_TARGET
1553 WINDMC for the target
c6b750e1
DJ
1554
1555Use these variables to override the choices made by `configure' or to help
1556it to find libraries and programs with nonstandard names/locations.
1557
81ecdfbb 1558Report bugs to the package provider.
c6b750e1 1559_ACEOF
81ecdfbb 1560ac_status=$?
c6b750e1
DJ
1561fi
1562
1563if test "$ac_init_help" = "recursive"; then
1564 # If there are subdirs, report their specific --help.
c6b750e1 1565 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1566 test -d "$ac_dir" ||
1567 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1568 continue
c6b750e1
DJ
1569 ac_builddir=.
1570
81ecdfbb
RW
1571case "$ac_dir" in
1572.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573*)
1574 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1575 # A ".." for each directory in $ac_dir_suffix.
1576 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1577 case $ac_top_builddir_sub in
1578 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1580 esac ;;
1581esac
1582ac_abs_top_builddir=$ac_pwd
1583ac_abs_builddir=$ac_pwd$ac_dir_suffix
1584# for backward compatibility:
1585ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1586
1587case $srcdir in
81ecdfbb 1588 .) # We are building in place.
c6b750e1 1589 ac_srcdir=.
81ecdfbb
RW
1590 ac_top_srcdir=$ac_top_builddir_sub
1591 ac_abs_top_srcdir=$ac_pwd ;;
1592 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1593 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1594 ac_top_srcdir=$srcdir
1595 ac_abs_top_srcdir=$srcdir ;;
1596 *) # Relative name.
1597 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1598 ac_top_srcdir=$ac_top_build_prefix$srcdir
1599 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1600esac
81ecdfbb
RW
1601ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602
1603 cd "$ac_dir" || { ac_status=$?; continue; }
1604 # Check for guested configure.
1605 if test -f "$ac_srcdir/configure.gnu"; then
1606 echo &&
1607 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1608 elif test -f "$ac_srcdir/configure"; then
1609 echo &&
1610 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1611 else
81ecdfbb
RW
1612 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613 fi || ac_status=$?
1614 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1615 done
1616fi
1617
81ecdfbb 1618test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1619if $ac_init_version; then
1620 cat <<\_ACEOF
81ecdfbb
RW
1621configure
1622generated by GNU Autoconf 2.64
c6b750e1 1623
81ecdfbb 1624Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1625This configure script is free software; the Free Software Foundation
1626gives unlimited permission to copy, distribute and modify it.
1627_ACEOF
81ecdfbb 1628 exit
c6b750e1 1629fi
81ecdfbb
RW
1630
1631## ------------------------ ##
1632## Autoconf initialization. ##
1633## ------------------------ ##
1634
1635# ac_fn_c_try_compile LINENO
1636# --------------------------
1637# Try to compile conftest.$ac_ext, and return whether this succeeded.
1638ac_fn_c_try_compile ()
1639{
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 rm -f conftest.$ac_objext
1642 if { { ac_try="$ac_compile"
1643case "(($ac_try" in
1644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1645 *) ac_try_echo=$ac_try;;
1646esac
1647eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1648$as_echo "$ac_try_echo"; } >&5
1649 (eval "$ac_compile") 2>conftest.err
1650 ac_status=$?
1651 if test -s conftest.err; then
1652 grep -v '^ *+' conftest.err >conftest.er1
1653 cat conftest.er1 >&5
1654 mv -f conftest.er1 conftest.err
1655 fi
1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1657 test $ac_status = 0; } && {
1658 test -z "$ac_c_werror_flag" ||
1659 test ! -s conftest.err
1660 } && test -s conftest.$ac_objext; then :
1661 ac_retval=0
1662else
1663 $as_echo "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666 ac_retval=1
1667fi
1668 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669 return $ac_retval
1670
1671} # ac_fn_c_try_compile
1672
1673# ac_fn_cxx_try_compile LINENO
1674# ----------------------------
1675# Try to compile conftest.$ac_ext, and return whether this succeeded.
1676ac_fn_cxx_try_compile ()
1677{
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext
1680 if { { ac_try="$ac_compile"
1681case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686$as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_compile") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_cxx_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest.$ac_objext; then :
1699 ac_retval=0
1700else
1701 $as_echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705fi
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1708
1709} # ac_fn_cxx_try_compile
1710
1711# ac_fn_c_try_link LINENO
1712# -----------------------
1713# Try to link conftest.$ac_ext, and return whether this succeeded.
1714ac_fn_c_try_link ()
1715{
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext conftest$ac_exeext
1718 if { { ac_try="$ac_link"
1719case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722esac
1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724$as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_link") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest$ac_exeext && {
1737 test "$cross_compiling" = yes ||
1738 $as_test_x conftest$ac_exeext
1739 }; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746fi
1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1749 # interfere with the next link command; also delete a directory that is
1750 # left behind by Apple's compiler. We do this before executing the actions.
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1753 return $ac_retval
1754
1755} # ac_fn_c_try_link
1756cat >config.log <<_ACEOF
c6b750e1
DJ
1757This file contains any messages produced by compilers while
1758running configure, to aid debugging if configure makes a mistake.
1759
1760It was created by $as_me, which was
81ecdfbb 1761generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1762
1763 $ $0 $@
1764
1765_ACEOF
81ecdfbb 1766exec 5>>config.log
c6b750e1
DJ
1767{
1768cat <<_ASUNAME
1769## --------- ##
1770## Platform. ##
1771## --------- ##
1772
1773hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1774uname -m = `(uname -m) 2>/dev/null || echo unknown`
1775uname -r = `(uname -r) 2>/dev/null || echo unknown`
1776uname -s = `(uname -s) 2>/dev/null || echo unknown`
1777uname -v = `(uname -v) 2>/dev/null || echo unknown`
1778
1779/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1780/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1781
1782/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1783/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1784/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1785/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1786/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1787/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1788/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1789
1790_ASUNAME
1791
1792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1793for as_dir in $PATH
1794do
1795 IFS=$as_save_IFS
1796 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1797 $as_echo "PATH: $as_dir"
1798 done
1799IFS=$as_save_IFS
c6b750e1
DJ
1800
1801} >&5
1802
1803cat >&5 <<_ACEOF
1804
1805
1806## ----------- ##
1807## Core tests. ##
1808## ----------- ##
1809
1810_ACEOF
1811
1812
1813# Keep a trace of the command line.
1814# Strip out --no-create and --no-recursion so they do not pile up.
1815# Strip out --silent because we don't want to record it for future runs.
1816# Also quote any args containing shell meta-characters.
1817# Make two passes to allow for proper duplicate-argument suppression.
1818ac_configure_args=
1819ac_configure_args0=
1820ac_configure_args1=
c6b750e1
DJ
1821ac_must_keep_next=false
1822for ac_pass in 1 2
1823do
1824 for ac_arg
1825 do
1826 case $ac_arg in
1827 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1829 | -silent | --silent | --silen | --sile | --sil)
1830 continue ;;
81ecdfbb
RW
1831 *\'*)
1832 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1833 esac
1834 case $ac_pass in
81ecdfbb 1835 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1836 2)
81ecdfbb 1837 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1838 if test $ac_must_keep_next = true; then
1839 ac_must_keep_next=false # Got value, back to normal.
1840 else
1841 case $ac_arg in
1842 *=* | --config-cache | -C | -disable-* | --disable-* \
1843 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1844 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1845 | -with-* | --with-* | -without-* | --without-* | --x)
1846 case "$ac_configure_args0 " in
1847 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1848 esac
1849 ;;
1850 -* ) ac_must_keep_next=true ;;
1851 esac
1852 fi
81ecdfbb 1853 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1854 ;;
1855 esac
1856 done
1857done
81ecdfbb
RW
1858{ ac_configure_args0=; unset ac_configure_args0;}
1859{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1860
1861# When interrupted or exit'd, cleanup temporary files, and complete
1862# config.log. We remove comments because anyway the quotes in there
1863# would cause problems or look ugly.
81ecdfbb
RW
1864# WARNING: Use '\'' to represent an apostrophe within the trap.
1865# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1866trap 'exit_status=$?
1867 # Save into config.log some information that might help in debugging.
1868 {
1869 echo
1870
1871 cat <<\_ASBOX
1872## ---------------- ##
1873## Cache variables. ##
1874## ---------------- ##
1875_ASBOX
1876 echo
1877 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1878(
1879 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1880 eval ac_val=\$$ac_var
1881 case $ac_val in #(
1882 *${as_nl}*)
1883 case $ac_var in #(
1884 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1885$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1886 esac
1887 case $ac_var in #(
1888 _ | IFS | as_nl) ;; #(
1889 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1890 *) { eval $ac_var=; unset $ac_var;} ;;
1891 esac ;;
1892 esac
1893 done
c6b750e1 1894 (set) 2>&1 |
81ecdfbb
RW
1895 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1896 *${as_nl}ac_space=\ *)
c6b750e1 1897 sed -n \
81ecdfbb
RW
1898 "s/'\''/'\''\\\\'\'''\''/g;
1899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1900 ;; #(
c6b750e1 1901 *)
81ecdfbb 1902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1903 ;;
81ecdfbb
RW
1904 esac |
1905 sort
1906)
c6b750e1
DJ
1907 echo
1908
1909 cat <<\_ASBOX
1910## ----------------- ##
1911## Output variables. ##
1912## ----------------- ##
1913_ASBOX
1914 echo
1915 for ac_var in $ac_subst_vars
1916 do
81ecdfbb
RW
1917 eval ac_val=\$$ac_var
1918 case $ac_val in
1919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 esac
1921 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1922 done | sort
1923 echo
1924
1925 if test -n "$ac_subst_files"; then
1926 cat <<\_ASBOX
81ecdfbb
RW
1927## ------------------- ##
1928## File substitutions. ##
1929## ------------------- ##
c6b750e1
DJ
1930_ASBOX
1931 echo
1932 for ac_var in $ac_subst_files
1933 do
81ecdfbb
RW
1934 eval ac_val=\$$ac_var
1935 case $ac_val in
1936 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1937 esac
1938 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1939 done | sort
1940 echo
1941 fi
1942
1943 if test -s confdefs.h; then
1944 cat <<\_ASBOX
1945## ----------- ##
1946## confdefs.h. ##
1947## ----------- ##
1948_ASBOX
1949 echo
81ecdfbb 1950 cat confdefs.h
c6b750e1
DJ
1951 echo
1952 fi
1953 test "$ac_signal" != 0 &&
81ecdfbb
RW
1954 $as_echo "$as_me: caught signal $ac_signal"
1955 $as_echo "$as_me: exit $exit_status"
c6b750e1 1956 } >&5
81ecdfbb
RW
1957 rm -f core *.core core.conftest.* &&
1958 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 1959 exit $exit_status
81ecdfbb 1960' 0
c6b750e1 1961for ac_signal in 1 2 13 15; do
81ecdfbb 1962 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
1963done
1964ac_signal=0
1965
1966# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1967rm -f -r conftest* confdefs.h
1968
1969$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
1970
1971# Predefined preprocessor variables.
1972
1973cat >>confdefs.h <<_ACEOF
1974#define PACKAGE_NAME "$PACKAGE_NAME"
1975_ACEOF
1976
c6b750e1
DJ
1977cat >>confdefs.h <<_ACEOF
1978#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1979_ACEOF
1980
c6b750e1
DJ
1981cat >>confdefs.h <<_ACEOF
1982#define PACKAGE_VERSION "$PACKAGE_VERSION"
1983_ACEOF
1984
c6b750e1
DJ
1985cat >>confdefs.h <<_ACEOF
1986#define PACKAGE_STRING "$PACKAGE_STRING"
1987_ACEOF
1988
c6b750e1
DJ
1989cat >>confdefs.h <<_ACEOF
1990#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1991_ACEOF
1992
81ecdfbb
RW
1993cat >>confdefs.h <<_ACEOF
1994#define PACKAGE_URL "$PACKAGE_URL"
1995_ACEOF
1996
c6b750e1
DJ
1997
1998# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
1999# Prefer an explicitly selected file to automatically selected ones.
2000ac_site_file1=NONE
2001ac_site_file2=NONE
2002if test -n "$CONFIG_SITE"; then
2003 ac_site_file1=$CONFIG_SITE
2004elif test "x$prefix" != xNONE; then
2005 ac_site_file1=$prefix/share/config.site
2006 ac_site_file2=$prefix/etc/config.site
2007else
2008 ac_site_file1=$ac_default_prefix/share/config.site
2009 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2010fi
81ecdfbb
RW
2011for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2012do
2013 test "x$ac_site_file" = xNONE && continue
a0da8069 2014 if test -r "$ac_site_file"; then
81ecdfbb
RW
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2016$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2017 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2018 . "$ac_site_file"
2019 fi
2020done
2021
2022if test -r "$cache_file"; then
c6b750e1
DJ
2023 # Some versions of bash will fail to source /dev/null (special
2024 # files actually), so we avoid doing that.
2025 if test -f "$cache_file"; then
81ecdfbb
RW
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2027$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2028 case $cache_file in
81ecdfbb
RW
2029 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2030 *) . "./$cache_file";;
c6b750e1
DJ
2031 esac
2032 fi
a0da8069 2033else
81ecdfbb
RW
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2035$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2036 >$cache_file
2037fi
2038
2039# Check that the precious variables saved in the cache have kept the same
2040# value.
2041ac_cache_corrupted=false
81ecdfbb 2042for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2043 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2044 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2045 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2046 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2047 case $ac_old_set,$ac_new_set in
2048 set,)
81ecdfbb
RW
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2050$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2051 ac_cache_corrupted=: ;;
2052 ,set)
81ecdfbb
RW
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2054$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2055 ac_cache_corrupted=: ;;
2056 ,);;
2057 *)
2058 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2059 # differences in whitespace do not lead to failure.
2060 ac_old_val_w=`echo x $ac_old_val`
2061 ac_new_val_w=`echo x $ac_new_val`
2062 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2064$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2065 ac_cache_corrupted=:
2066 else
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2068$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2069 eval $ac_var=\$ac_old_val
2070 fi
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2072$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2074$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2075 fi;;
2076 esac
2077 # Pass precious variables to config.status.
2078 if test "$ac_new_set" = set; then
2079 case $ac_new_val in
81ecdfbb 2080 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2081 *) ac_arg=$ac_var=$ac_new_val ;;
2082 esac
2083 case " $ac_configure_args " in
2084 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2085 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2086 esac
2087 fi
2088done
2089if $ac_cache_corrupted; then
81ecdfbb
RW
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2093$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2094 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2095fi
81ecdfbb
RW
2096## -------------------- ##
2097## Main body of script. ##
2098## -------------------- ##
a0da8069
NN
2099
2100ac_ext=c
a0da8069 2101ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2104ac_compiler_gnu=$ac_cv_c_compiler_gnu
2105
2106
2107
2108
c6b750e1
DJ
2109
2110
34a0f3cf 2111
c6b750e1 2112
5b553f7e
RW
2113
2114progname=$0
2115# if PWD already has a value, it is probably wrong.
2116if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2117
2118# Export original configure arguments for use by sub-configures.
2119# Quote arguments with shell meta charatcers.
2120TOPLEVEL_CONFIGURE_ARGUMENTS=
2121set -- "$progname" "$@"
2122for ac_arg
2123do
2124 case "$ac_arg" in
2125 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2126 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2127 # if the argument is of the form -foo=baz, quote the baz part only
2128 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2129 *) ;;
2130 esac
2131 # Add the quoted argument to the list.
2132 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2133done
2134if test "$silent" = yes; then
2135 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2136fi
2137# Remove the initial space we just introduced and, as these will be
2138# expanded by make, quote '$'.
2139TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2140
c6b750e1
DJ
2141
2142# Find the build, host, and target systems.
a0da8069 2143ac_aux_dir=
81ecdfbb
RW
2144for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2145 for ac_t in install-sh install.sh shtool; do
2146 if test -f "$ac_dir/$ac_t"; then
2147 ac_aux_dir=$ac_dir
2148 ac_install_sh="$ac_aux_dir/$ac_t -c"
2149 break 2
2150 fi
2151 done
a0da8069
NN
2152done
2153if test -z "$ac_aux_dir"; then
81ecdfbb 2154 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2155fi
81ecdfbb
RW
2156
2157# These three variables are undocumented and unsupported,
2158# and are intended to be withdrawn in a future Autoconf release.
2159# They can cause serious problems if a builder's source tree is in a directory
2160# whose full name contains unusual characters.
2161ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2162ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2163ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2164
a0da8069 2165
c6b750e1 2166# Make sure we can run config.sub.
81ecdfbb
RW
2167$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2168 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2169
2170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2171$as_echo_n "checking build system type... " >&6; }
2172if test "${ac_cv_build+set}" = set; then :
2173 $as_echo_n "(cached) " >&6
2174else
2175 ac_build_alias=$build_alias
2176test "x$ac_build_alias" = x &&
2177 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2178test "x$ac_build_alias" = x &&
2179 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2180ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2181 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2182
2183fi
2184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2185$as_echo "$ac_cv_build" >&6; }
2186case $ac_cv_build in
2187*-*-*) ;;
2188*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2189esac
c6b750e1 2190build=$ac_cv_build
81ecdfbb
RW
2191ac_save_IFS=$IFS; IFS='-'
2192set x $ac_cv_build
2193shift
2194build_cpu=$1
2195build_vendor=$2
2196shift; shift
2197# Remember, the first character of IFS is used to create $*,
2198# except with old shells:
2199build_os=$*
2200IFS=$ac_save_IFS
2201case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2202
a0da8069 2203
c6b750e1
DJ
2204 case ${build_alias} in
2205 "") build_noncanonical=${build} ;;
2206 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2207esac
2208
2209
cac3d6c4 2210
c6b750e1
DJ
2211 case ${host_alias} in
2212 "") host_noncanonical=${build_noncanonical} ;;
2213 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2214esac
2215
cac3d6c4 2216
c6b750e1
DJ
2217
2218 case ${target_alias} in
2219 "") target_noncanonical=${host_noncanonical} ;;
2220 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2221esac
2222
cac3d6c4 2223
c6b750e1
DJ
2224
2225
2226test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2227 test "$program_prefix$program_suffix$program_transform_name" = \
2228 NONENONEs,x,x, &&
c6b750e1 2229 program_transform_name=s,y,y,
cac3d6c4 2230
81ecdfbb
RW
2231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2232$as_echo_n "checking host system type... " >&6; }
2233if test "${ac_cv_host+set}" = set; then :
2234 $as_echo_n "(cached) " >&6
cac3d6c4 2235else
81ecdfbb
RW
2236 if test "x$host_alias" = x; then
2237 ac_cv_host=$ac_cv_build
2238else
2239 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2240 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2241fi
c6b750e1
DJ
2242
2243fi
81ecdfbb
RW
2244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2245$as_echo "$ac_cv_host" >&6; }
2246case $ac_cv_host in
2247*-*-*) ;;
2248*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2249esac
c6b750e1 2250host=$ac_cv_host
81ecdfbb
RW
2251ac_save_IFS=$IFS; IFS='-'
2252set x $ac_cv_host
2253shift
2254host_cpu=$1
2255host_vendor=$2
2256shift; shift
2257# Remember, the first character of IFS is used to create $*,
2258# except with old shells:
2259host_os=$*
2260IFS=$ac_save_IFS
2261case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2262
2263
81ecdfbb
RW
2264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2265$as_echo_n "checking target system type... " >&6; }
2266if test "${ac_cv_target+set}" = set; then :
2267 $as_echo_n "(cached) " >&6
c6b750e1 2268else
81ecdfbb
RW
2269 if test "x$target_alias" = x; then
2270 ac_cv_target=$ac_cv_host
2271else
2272 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2273 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2274fi
c6b750e1 2275
cac3d6c4 2276fi
81ecdfbb
RW
2277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2278$as_echo "$ac_cv_target" >&6; }
2279case $ac_cv_target in
2280*-*-*) ;;
2281*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2282esac
c6b750e1 2283target=$ac_cv_target
81ecdfbb
RW
2284ac_save_IFS=$IFS; IFS='-'
2285set x $ac_cv_target
2286shift
2287target_cpu=$1
2288target_vendor=$2
2289shift; shift
2290# Remember, the first character of IFS is used to create $*,
2291# except with old shells:
2292target_os=$*
2293IFS=$ac_save_IFS
2294case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2295
2296
2297# The aliases save the names the user supplied, while $host etc.
2298# will get canonicalized.
2299test -n "$target_alias" &&
2300 test "$program_prefix$program_suffix$program_transform_name" = \
2301 NONENONEs,x,x, &&
2302 program_prefix=${target_alias}-
81ecdfbb 2303
a0da8069 2304test "$program_prefix" != NONE &&
81ecdfbb 2305 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2306# Use a double $ so make ignores it.
2307test "$program_suffix" != NONE &&
81ecdfbb
RW
2308 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2309# Double any \ or $.
c6b750e1 2310# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2311ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2312program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2313
a0da8069
NN
2314
2315
e5c3f801
NN
2316# Get 'install' or 'install-sh' and its variants.
2317# Find a good install program. We prefer a C program (faster),
2318# so one script is as good as another. But avoid the broken or
2319# incompatible versions:
2320# SysV /etc/install, /usr/sbin/install
2321# SunOS /usr/etc/install
2322# IRIX /sbin/install
2323# AIX /bin/install
c6b750e1 2324# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2325# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2326# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2327# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2328# OS/2's system install, which has a completely different semantic
e5c3f801 2329# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2330# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2332$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2333if test -z "$INSTALL"; then
81ecdfbb
RW
2334if test "${ac_cv_path_install+set}" = set; then :
2335 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2336else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338for as_dir in $PATH
2339do
2340 IFS=$as_save_IFS
2341 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2342 # Account for people who put trailing slashes in PATH elements.
2343case $as_dir/ in #((
2344 ./ | .// | /[cC]/* | \
c6b750e1 2345 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2346 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2347 /usr/ucb/* ) ;;
2348 *)
2349 # OSF1 and SCO ODT 3.0 have their own names for install.
2350 # Don't use installbsd from OSF since it installs stuff as root
2351 # by default.
2352 for ac_prog in ginstall scoinst install; do
2353 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2354 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2355 if test $ac_prog = install &&
c6b750e1 2356 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2357 # AIX install. It has an incompatible calling convention.
2358 :
c6b750e1
DJ
2359 elif test $ac_prog = install &&
2360 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361 # program-specific install script used by HP pwplus--don't use.
2362 :
e5c3f801 2363 else
58c85be7
RW
2364 rm -rf conftest.one conftest.two conftest.dir
2365 echo one > conftest.one
2366 echo two > conftest.two
2367 mkdir conftest.dir
2368 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2369 test -s conftest.one && test -s conftest.two &&
2370 test -s conftest.dir/conftest.one &&
2371 test -s conftest.dir/conftest.two
2372 then
2373 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2374 break 3
2375 fi
e5c3f801
NN
2376 fi
2377 fi
2378 done
c6b750e1
DJ
2379 done
2380 ;;
2381esac
81ecdfbb
RW
2382
2383 done
2384IFS=$as_save_IFS
c6b750e1 2385
58c85be7 2386rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2387
2388fi
2389 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2390 INSTALL=$ac_cv_path_install
e5c3f801 2391 else
58c85be7
RW
2392 # As a last resort, use the slow shell script. Don't cache a
2393 # value for INSTALL within a source directory, because that will
e5c3f801 2394 # break other packages using the cache if that directory is
58c85be7 2395 # removed, or if the value is a relative name.
c6b750e1 2396 INSTALL=$ac_install_sh
e5c3f801
NN
2397 fi
2398fi
81ecdfbb
RW
2399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2400$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2401
2402# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2403# It thinks the first close brace ends the variable substitution.
2404test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2405
c6b750e1 2406test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2407
2408test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2409
81ecdfbb
RW
2410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2411$as_echo_n "checking whether ln works... " >&6; }
2412if test "${acx_cv_prog_LN+set}" = set; then :
2413 $as_echo_n "(cached) " >&6
656fdd47
PB
2414else
2415 rm -f conftestdata_t
2416echo >conftestdata_f
2417if ln conftestdata_f conftestdata_t 2>/dev/null
2418then
2419 acx_cv_prog_LN=ln
2420else
2421 acx_cv_prog_LN=no
2422fi
2423rm -f conftestdata_f conftestdata_t
2424
2425fi
2426if test $acx_cv_prog_LN = no; then
2427 LN="cp"
81ecdfbb
RW
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2429$as_echo "no, using $LN" >&6; }
656fdd47
PB
2430else
2431 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2433$as_echo "yes" >&6; }
656fdd47
PB
2434fi
2435
81ecdfbb
RW
2436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2437$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2438LN_S=$as_ln_s
2439if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2441$as_echo "yes" >&6; }
cac3d6c4 2442else
81ecdfbb
RW
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2444$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2445fi
2446
e5c3f801 2447
252b5132 2448### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2449### If we are on Windows, search for the shell. This will permit people
2450### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2451### without also having to set CONFIG_SHELL. This code will work when
2452### using bash, which sets OSTYPE.
2453case "${OSTYPE}" in
2454*win32*)
a0da8069
NN
2455 if test x${CONFIG_SHELL} = x ; then
2456 if test ! -f /bin/sh ; then
2457 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2458 CONFIG_SHELL=${SHELL}
2459 export CONFIG_SHELL
2460 else
2461 for prog in sh sh.exe bash bash.exe; do
2462 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2463 for dir in $PATH; do
2464 test -z "$dir" && dir=.
2465 if test -f $dir/$prog; then
2466 CONFIG_SHELL=$dir/$prog
2467 export CONFIG_SHELL
2468 break
2469 fi
2470 done
2471 IFS="$save_ifs"
2472 test -n "${CONFIG_SHELL}" && break
2473 done
2474 fi
2475 fi
2476 fi
2477 ;;
2478esac
2479
2480config_shell=${CONFIG_SHELL-/bin/sh}
2481
a0da8069 2482moveifchange=${srcdir}/move-if-change
252b5132 2483
0fdbe983
DJ
2484srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2485
2486# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2487# a relative path.
2488if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2489 INSTALL="${srcpwd}/install-sh -c"
2490fi
2491
a0da8069
NN
2492# Set srcdir to "." if that's what it is.
2493# This is important for multilib support.
2494pwd=`${PWDCMD-pwd}`
a0da8069
NN
2495if test "${pwd}" = "${srcpwd}" ; then
2496 srcdir=.
252b5132
RH
2497fi
2498
a0da8069 2499topsrcdir=$srcpwd
252b5132 2500
a0da8069 2501extra_host_args=
afefada0 2502
a0da8069
NN
2503### To add a new directory to the tree, first choose whether it is a target
2504### or a host dependent tool. Then put it into the appropriate list
2505### (library or tools, host or target), doing a dependency sort.
252b5132 2506
c6b750e1 2507# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2508# configdirs, or target_configdirs; see the serialization section below.
252b5132 2509
c6b750e1
DJ
2510# Dependency sorting is only needed when *configuration* must be done in
2511# a particular order. In all cases a dependency should be specified in
a0da8069 2512# the Makefile, whether or not it's implicitly specified here.
252b5132 2513
a0da8069
NN
2514# Double entries in build_configdirs, configdirs, or target_configdirs may
2515# cause circular dependencies and break everything horribly.
252b5132 2516
6a9cf61e
PB
2517# these library is used by various programs built for the build
2518# environment
2519#
2520build_libs="build-libiberty"
2521
2522# these tools are built for the build environment
ee025550 2523build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2524
a0da8069
NN
2525# these libraries are used by various programs built for the host environment
2526#
e8a5fa9c 2527host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libiconv"
a0da8069 2528
a0da8069
NN
2529# these tools are built for the host environment
2530# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2531# know that we are building the simulator.
2532# binutils, gas and ld appear in that order because it makes sense to run
2533# "make check" in that particular order.
93f9b408 2534# If --enable-gold is used, "gold" will replace "ld".
f9806fa5 2535host_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
2536
2537# libgcj represents the runtime libraries only used by gcj.
2538libgcj="target-libffi \
a0da8069
NN
2539 target-zlib \
2540 target-qthreads \
2541 target-libjava"
2542
2543# these libraries are built for the target environment, and are built after
2544# the host libraries and the host tools (which may be a cross compiler)
2545#
b1299c4e
DJ
2546target_libraries="target-libgcc \
2547 target-libiberty \
a0da8069
NN
2548 target-libgloss \
2549 target-newlib \
cff87f51 2550 target-libgomp \
b9459e83 2551 target-libstdc++-v3 \
4b1cb4fe 2552 target-libmudflap \
bb780410 2553 target-libssp \
4b1cb4fe 2554 target-libgfortran \
4f0ef2d8 2555 target-boehm-gc \
83326456 2556 ${libgcj} \
a2592b1b 2557 target-libobjc \
cff87f51 2558 target-libada"
a0da8069 2559
9c14acb8
NN
2560# these tools are built using the target libraries, and are intended to
2561# run only in the target environment
a0da8069 2562#
9c14acb8 2563# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
2564# list belongs in this list. those programs are also very likely
2565# candidates for the "native_only" list which follows
2566#
a3dd767d 2567target_tools="target-examples target-groff target-gperf target-rda"
252b5132 2568
a0da8069 2569################################################################################
252b5132 2570
a0da8069
NN
2571## All tools belong in one of the four categories, and are assigned above
2572## We assign ${configdirs} this way to remove all embedded newlines. This
2573## is important because configure will choke if they ever get through.
2574## ${configdirs} is directories we build using the host tools.
2575## ${target_configdirs} is directories we build using the target tools.
a0da8069 2576configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2577target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2578build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2579
9cc8ae67
PB
2580
2581
a0da8069 2582################################################################################
252b5132 2583
a0da8069 2584srcname="gnu development package"
252b5132 2585
a0da8069
NN
2586# This gets set non-empty for some net releases of packages.
2587appdirs=""
252b5132 2588
a0da8069
NN
2589# Define is_cross_compiler to save on calls to 'test'.
2590is_cross_compiler=
2591if test x"${host}" = x"${target}" ; then
2592 is_cross_compiler=no
252b5132 2593else
a0da8069 2594 is_cross_compiler=yes
c6b750e1 2595fi
252b5132 2596
9175bfc0 2597# Find the build and target subdir names.
dd12c3a8 2598
66a79c16
DJ
2599# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2600# have matching libraries, they should use host libraries: Makefile.tpl
2601# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2602# However, they still use the build modules, because the corresponding
2603# host modules (e.g. bison) are only built for the host when bootstrap
2604# finishes. So:
2605# - build_subdir is where we find build modules, and never changes.
2606# - build_libsubdir is where we find build libraries, and can be overridden.
2607
2608# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2609build_subdir="build-${build_noncanonical}"
c6b750e1 2610
81ecdfbb
RW
2611# Check whether --with-build-libsubdir was given.
2612if test "${with_build_libsubdir+set}" = set; then :
2613 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2614else
2615 build_libsubdir="$build_subdir"
81ecdfbb
RW
2616fi
2617
b00612cc
PB
2618# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2619if ( test $srcdir = . && test -d gcc ) \
2620 || test -d $srcdir/../host-${host_noncanonical}; then
2621 host_subdir="host-${host_noncanonical}"
2622else
2623 host_subdir=.
2624fi
dd12c3a8
NN
2625# No prefix.
2626target_subdir=${target_noncanonical}
c6b750e1 2627
252b5132 2628
a0da8069
NN
2629# Skipdirs are removed silently.
2630skipdirs=
2631# Noconfigdirs are removed loudly.
2632noconfigdirs=""
252b5132 2633
a0da8069
NN
2634use_gnu_ld=
2635# Make sure we don't let GNU ld be added if we didn't want it.
2636if test x$with_gnu_ld = xno ; then
2637 use_gnu_ld=no
93f9b408 2638 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2639fi
2640
a0da8069
NN
2641use_gnu_as=
2642# Make sure we don't let GNU as be added if we didn't want it.
2643if test x$with_gnu_as = xno ; then
2644 use_gnu_as=no
2645 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2646fi
2647
c6b750e1 2648# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2649# it's not even worth trying to configure, much less build, that tool.
252b5132 2650
a0da8069
NN
2651case ${with_x} in
2652 yes | "") ;; # the default value for this tree is that X11 is available
2653 no)
675c6968 2654 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2655 # We won't be able to build gdbtk without X.
c6b750e1 2656 enable_gdbtk=no
a0da8069
NN
2657 ;;
2658 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2659esac
252b5132 2660
a0da8069 2661# Some tools are only suitable for building in a "native" situation.
c6b750e1 2662# Remove these if host!=target.
701628f5 2663native_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 2664
a0da8069
NN
2665# Similarly, some are only suitable for cross toolchains.
2666# Remove these if host=target.
2667cross_only="target-libgloss target-newlib target-opcodes"
2668
2669case $is_cross_compiler in
2670 no) skipdirs="${skipdirs} ${cross_only}" ;;
2671 yes) skipdirs="${skipdirs} ${native_only}" ;;
2672esac
252b5132 2673
a0da8069
NN
2674# If both --with-headers and --with-libs are specified, default to
2675# --without-newlib.
32be62b5
RS
2676if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2677 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2678 if test x"${with_newlib}" = x ; then
2679 with_newlib=no
2680 fi
252b5132
RH
2681fi
2682
a0da8069
NN
2683# Recognize --with-newlib/--without-newlib.
2684case ${with_newlib} in
2685 no) skipdirs="${skipdirs} target-newlib" ;;
2686 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2687esac
252b5132 2688
93f9b408
ILT
2689# Handle --enable-gold.
2690
81ecdfbb
RW
2691# Check whether --enable-gold was given.
2692if test "${enable_gold+set}" = set; then :
2693 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2694else
2695 ENABLE_GOLD=no
81ecdfbb
RW
2696fi
2697
93f9b408
ILT
2698if test "${ENABLE_GOLD}" = "yes"; then
2699 # Check for ELF target.
2700 is_elf=no
2701 case "${target}" in
2702 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2703 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8bcf2718 2704 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
93f9b408
ILT
2705 case "${target}" in
2706 *-*-linux*aout* | *-*-linux*oldld*)
2707 ;;
2708 *)
2709 is_elf=yes
2710 ;;
2711 esac
2712 esac
2713
2714 if test "$is_elf" = "yes"; then
2715 # Check for target supported by gold.
2716 case "${target}" in
4a657b0d 2717 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
93f9b408
ILT
2718 configdirs="`echo " ${configdirs} " | sed -e 's/ ld / gold /'`"
2719 ;;
2720 esac
2721 fi
2722fi
2723
a0da8069 2724# Configure extra directories which are host specific
252b5132 2725
a0da8069
NN
2726case "${host}" in
2727 *-cygwin*)
2728 configdirs="$configdirs libtermcap" ;;
2729esac
252b5132 2730
59f7ec45
HPN
2731# A target can indicate whether a language isn't supported for some reason.
2732# Only spaces may be used in this macro; not newlines or tabs.
2733unsupported_languages=
2734
c6b750e1 2735# Remove more programs from consideration, based on the host or
a0da8069
NN
2736# target this usually means that a port of the program doesn't
2737# exist yet.
252b5132 2738
a0da8069
NN
2739case "${host}" in
2740 hppa*64*-*-*)
2741 noconfigdirs="$noconfigdirs byacc"
2742 ;;
ec11bdc6 2743 i[3456789]86-*-vsta)
675c6968 2744 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2745 ;;
ec11bdc6 2746 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2747 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2748 ;;
2d1e8239
NC
2749 x86_64-*-mingw*)
2750 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2751 ;;
ec11bdc6 2752 i[3456789]86-*-mingw32*)
675c6968 2753 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2754 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2755 ;;
ec11bdc6 2756 i[3456789]86-*-beos*)
675c6968 2757 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2758 ;;
a0da8069 2759 *-*-cygwin*)
a92834c8 2760 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2761 ;;
2762 *-*-netbsd*)
a92834c8 2763 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2764 ;;
2765 ppc*-*-pe)
675c6968 2766 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2767 ;;
2768 powerpc-*-beos*)
675c6968 2769 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2770 ;;
a0da8069 2771esac
252b5132 2772
4b1cb4fe 2773
81ecdfbb
RW
2774# Check whether --enable-libada was given.
2775if test "${enable_libada+set}" = set; then :
2776 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2777else
2778 ENABLE_LIBADA=yes
81ecdfbb
RW
2779fi
2780
a2592b1b 2781if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2782 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2783fi
2784
81ecdfbb
RW
2785# Check whether --enable-libssp was given.
2786if test "${enable_libssp+set}" = set; then :
2787 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
2788else
2789 ENABLE_LIBSSP=yes
81ecdfbb
RW
2790fi
2791
5f128533 2792
a0da8069
NN
2793# Save it here so that, even in case of --enable-libgcj, if the Java
2794# front-end isn't enabled, we still get libgcj disabled.
2795libgcj_saved=$libgcj
2796case $enable_libgcj in
2797yes)
2798 # If we reset it here, it won't get added to noconfigdirs in the
2799 # target-specific build rules, so it will be forcibly enabled
2800 # (unless the Java language itself isn't enabled).
2801 libgcj=
2802 ;;
2803no)
2804 # Make sure we get it printed in the list of not supported target libs.
2805 noconfigdirs="$noconfigdirs ${libgcj}"
2806 ;;
2807esac
252b5132 2808
4b1cb4fe 2809
a6df5a19
PB
2810# Disable libmudflap on some systems.
2811if test x$enable_libmudflap = x ; then
3e707e94 2812 case "${target}" in
29383458 2813 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 2814 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2815 ;;
2816 *-*-freebsd*)
2817 # Enable libmudflap by default in FreeBSD.
2818 ;;
2819 *)
2820 # Disable it by default everywhere else.
2821 noconfigdirs="$noconfigdirs target-libmudflap"
2822 ;;
2823 esac
a6df5a19 2824fi
4b1cb4fe 2825
a6df5a19
PB
2826# Disable libgomp on non POSIX hosted systems.
2827if test x$enable_libgomp = x ; then
b3ded179
PB
2828 # Enable libgomp by default on hosted POSIX systems.
2829 case "${target}" in
29383458 2830 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
2831 ;;
2832 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
2833 ;;
64ce424c 2834 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
2835 ;;
2836 *-*-darwin* | *-*-aix*)
2837 ;;
2838 *)
2839 noconfigdirs="$noconfigdirs target-libgomp"
2840 ;;
2841 esac
a6df5a19 2842fi
b3ded179 2843
691bb5a1
DD
2844# Default libgloss CPU subdirectory.
2845libgloss_dir="$target_cpu"
4b1cb4fe 2846
a0da8069
NN
2847case "${target}" in
2848 *-*-chorusos)
54d1c879 2849 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2850 ;;
24741ab2 2851 powerpc-*-darwin*)
9d39db92 2852 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2853 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 2854 ;;
85bd1942
TG
2855 i[3456789]86-*-darwin*)
2856 noconfigdirs="$noconfigdirs ld gprof"
2857 noconfigdirs="$noconfigdirs sim target-rda"
2858 ;;
e8a5fa9c 2859 x86_64-*-darwin[912]*)
652dec25
TG
2860 noconfigdirs="$noconfigdirs ld gas gprof"
2861 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 2862 ;;
04d1ab34 2863 *-*-darwin*)
d320aacb 2864 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 2865 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 2866 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 2867 ;;
a0da8069 2868 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 2869 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2870 ;;
de0b4a87 2871 *-*-freebsd*)
4b1cb4fe
DD
2872 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2873 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
2874 && test -f /usr/local/include/gmp.h; then
2875 with_gmp=/usr/local
2876 fi
2877
2878 # Skip some stuff that's unsupported on some FreeBSD configurations.
2879 case "${target}" in
2880 i*86-*-*) ;;
2881 alpha*-*-*) ;;
2882 *)
54d1c879 2883 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
2884 ;;
2885 esac
2886 ;;
f8a495c8
NC
2887 *-*-kaos*)
2888 # Remove unsupported stuff on all kaOS configurations.
54d1c879 2889 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
2890 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
2891 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
2892 noconfigdirs="$noconfigdirs target-libgloss"
2893 ;;
a0da8069
NN
2894 *-*-netbsd*)
2895 # Skip some stuff on all NetBSD configurations.
2896 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
2897
2898 # Skip some stuff that's unsupported on some NetBSD configurations.
2899 case "${target}" in
2900 i*86-*-netbsdelf*) ;;
5b474aa8 2901 arm*-*-netbsdelf*) ;;
a0da8069 2902 *)
54d1c879 2903 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2904 ;;
2905 esac
2906 ;;
2a3124ca 2907 *-*-netware*)
54d1c879 2908 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
2909 ;;
2910 *-*-rtems*)
54d1c879 2911 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2912 ;;
1587117a
EC
2913 # The tpf target doesn't support gdb yet.
2914 *-*-tpf*)
54d1c879 2915 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 2916 ;;
c1968181 2917 *-*-uclinux*)
54d1c879 2918 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 2919 ;;
a0da8069 2920 *-*-vxworks*)
54d1c879 2921 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
2922 ;;
2923 alpha*-dec-osf*)
2924 # ld works, but does not support shared libraries.
2925 # newlib is not 64 bit ready. I'm not sure about fileutils.
2926 # gas doesn't generate exception information.
2927 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
2928 ;;
2929 alpha*-*-*vms*)
54d1c879 2930 noconfigdirs="$noconfigdirs gdb ld target-newlib target-libgloss ${libgcj}"
a0da8069
NN
2931 ;;
2932 alpha*-*-linux*)
2933 # newlib is not 64 bit ready
2934 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2935 ;;
a0da8069
NN
2936 alpha*-*-*)
2937 # newlib is not 64 bit ready
54d1c879 2938 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 2939 ;;
4a18bd6b 2940 am33_2.0-*-linux*)
54d1c879 2941 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 2942 ;;
a0da8069 2943 sh-*-linux*)
54d1c879 2944 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 2945 ;;
a0da8069 2946 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 2947 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
2948 noconfigdirs="$noconfigdirs target-examples"
2949 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 2950 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
2951 noconfigdirs="$noconfigdirs expect dejagnu"
2952 # the C++ libraries don't build on top of CE's C libraries
b9459e83 2953 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
2954 noconfigdirs="$noconfigdirs target-newlib"
2955 case "${host}" in
2956 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 2957 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
2958 ;;
2959 esac
691bb5a1 2960 libgloss_dir=wince
a0da8069
NN
2961 ;;
2962 arc-*-*)
54d1c879 2963 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2964 ;;
caeba88f 2965 arm-semi-aof )
caeba88f 2966 ;;
a0da8069 2967 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 2968 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 2969 libgloss_dir=arm
a0da8069 2970 ;;
11b04d1f 2971 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 2972 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 2973 libgloss_dir=arm
a0da8069 2974 ;;
bd70a46f 2975 arm*-*-linux-gnueabi)
6d18b86b 2976 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
2977 case ${with_newlib} in
2978 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
2979 esac
691bb5a1 2980 libgloss_dir=arm
bd70a46f 2981 ;;
df4a6958 2982 arm*-*-symbianelf*)
54d1c879 2983 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 2984 libgloss_dir=arm
df4a6958 2985 ;;
a0da8069 2986 arm-*-pe*)
54d1c879 2987 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2988 ;;
a0da8069 2989 thumb-*-coff)
54d1c879 2990 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2991 ;;
2992 thumb-*-elf)
54d1c879 2993 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 2994 ;;
a0da8069 2995 thumb-*-pe)
54d1c879 2996 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
2997 ;;
2998 arm-*-riscix*)
54d1c879 2999 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3000 ;;
3001 avr-*-*)
266df637 3002 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3003 ;;
376a0e54 3004 bfin-*-*)
00d89675 3005 noconfigdirs="$noconfigdirs gdb"
3cf3372e 3006 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3007 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3008 fi
3009 ;;
a0da8069 3010 c4x-*-* | tic4x-*-*)
54d1c879 3011 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3012 ;;
3013 c54x*-*-* | tic54x-*-*)
54d1c879 3014 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3015 ;;
52310858
NC
3016 cr16-*-*)
3017 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3018 ;;
c7e66c6d 3019 cris-*-* | crisv32-*-*)
59f7ec45 3020 unsupported_languages="$unsupported_languages java"
c7e66c6d 3021 case "${target}" in
2faa2958 3022 *-*-aout)
096f7d00 3023 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3024 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3025 *-*-elf)
5e818318 3026 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 3027 *-*-linux*)
5e818318 3028 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3029 *)
096f7d00 3030 unsupported_languages="$unsupported_languages fortran"
54d1c879 3031 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3032 esac
691bb5a1 3033 libgloss_dir=cris
a0da8069 3034 ;;
3e707e94 3035 crx-*-*)
54d1c879 3036 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 3037 ;;
a0da8069 3038 d10v-*-*)
54d1c879 3039 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3040 ;;
3041 d30v-*-*)
54d1c879 3042 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 3043 ;;
691bb5a1
DD
3044 ep9312-*-elf | ep9312-*-coff)
3045 libgloss_dir=arm
3046 ;;
a0da8069 3047 fr30-*-elf*)
54d1c879 3048 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3049 ;;
3050 frv-*-*)
54d1c879 3051 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3052 ;;
20135e4c
NC
3053 moxie-*-*)
3054 noconfigdirs="$noconfigdirs ${libgcj}"
3055 noconfigdirs="$noconfigdirs gprof"
3056 ;;
a0da8069 3057 h8300*-*-*)
54d1c879 3058 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3059 ;;
3060 h8500-*-*)
54d1c879 3061 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3062 ;;
caeba88f 3063 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3064 ;;
a0da8069
NN
3065 hppa*64*-*-linux* | parisc*64*-*-linux*)
3066 # In this case, it's because the hppa64-linux target is for
3067 # the kernel only at this point and has no libc, and thus no
3068 # headers, crt*.o, etc., all of which are needed by these.
3069 noconfigdirs="$noconfigdirs target-zlib"
3070 ;;
5dcac624
DA
3071 parisc*-*-linux* | hppa*-*-linux*)
3072 ;;
a0da8069 3073 hppa*-*-*elf* | \
a0da8069
NN
3074 hppa*-*-lites* | \
3075 hppa*-*-openbsd* | \
3076 hppa*64*-*-*)
54d1c879 3077 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3078 ;;
3079 hppa*-hp-hpux11*)
3080 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3081 ;;
691bb5a1
DD
3082 hppa*-*-pro*)
3083 libgloss_dir=pa
3084 ;;
a0da8069
NN
3085 hppa*-*-*)
3086 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3087 # build on HP-UX 10.20.
54d1c879 3088 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3089 ;;
b07c2aad 3090 i960-*-*)
54d1c879 3091 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3092 ;;
a0da8069
NN
3093 ia64*-*-elf*)
3094 # No gdb support yet.
675c6968 3095 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3096 ;;
3097 ia64*-**-hpux*)
3098 # No gdb or ld support yet.
54d1c879 3099 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 3100 ;;
19e99079
NC
3101 ia64*-*-*vms*)
3102 # No gdb or ld support yet.
3103 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3104 ;;
caeba88f 3105 i370-*-opened*)
caeba88f 3106 ;;
ec11bdc6 3107 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3108 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3109 libgloss_dir=i386
a0da8069 3110 ;;
ec11bdc6 3111 i[3456789]86-*-linux*)
a0da8069
NN
3112 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3113 # not build java stuff by default.
3114 case "${target}" in
3115 *-*-*libc1*)
54d1c879 3116 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3117 esac
3118
3119 # This section makes it possible to build newlib natively on linux.
3120 # If we are using a cross compiler then don't configure newlib.
3121 if test x${is_cross_compiler} != xno ; then
bba45b8b 3122 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3123 fi
3124 noconfigdirs="$noconfigdirs target-libgloss"
3125 # If we are not using a cross compiler, do configure newlib.
3126 # Note however, that newlib will only be configured in this situation
3127 # if the --with-newlib option has been given, because otherwise
3128 # 'target-newlib' will appear in skipdirs.
3129 ;;
ec11bdc6 3130 i[3456789]86-*-mingw32*)
45055374
CV
3131 target_configdirs="$target_configdirs target-winsup"
3132 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3133 ;;
2d1e8239
NC
3134 x86_64-*-mingw*)
3135 target_configdirs="$target_configdirs target-winsup"
3136 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3137 ;;
a0da8069
NN
3138 *-*-cygwin*)
3139 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3140 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3141 # always build newlib if winsup directory is present.
45055374 3142 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3143 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3144 elif test -d "$srcdir/newlib"; then
45055374 3145 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3146 fi
c6b750e1 3147 ;;
caeba88f
AL
3148 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3149 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 3150 ;;
ec11bdc6 3151 i[3456789]86-*-pe)
54d1c879 3152 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3153 ;;
ec11bdc6 3154 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3155 # The linker does not yet know about weak symbols in COFF,
3156 # and is not configured to handle mixed ELF and COFF.
54d1c879 3157 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3158 ;;
ec11bdc6 3159 i[3456789]86-*-sco*)
54d1c879 3160 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3161 ;;
ec11bdc6 3162 i[3456789]86-*-solaris2*)
a0da8069
NN
3163 noconfigdirs="$noconfigdirs target-libgloss"
3164 ;;
ec11bdc6 3165 i[3456789]86-*-sysv4*)
54d1c879 3166 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3167 ;;
ec11bdc6 3168 i[3456789]86-*-beos*)
54d1c879 3169 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3170 ;;
b59bea8a 3171 i[3456789]86-*-rdos*)
2429c060
PB
3172 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3173 ;;
b07c2aad 3174 m32r-*-*)
54d1c879 3175 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3176 ;;
a0da8069 3177 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 3178 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 3179 libgloss_dir=m68hc11
a0da8069
NN
3180 ;;
3181 m68k-*-elf*)
54d1c879 3182 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3183 ;;
3184 m68k-*-coff*)
54d1c879 3185 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3186 ;;
691bb5a1
DD
3187 m68*-*-* | fido-*-*)
3188 libgloss_dir=m68k
3189 ;;
a0da8069
NN
3190 mcore-*-pe*)
3191 # The EPOC C++ environment does not support exceptions or rtti,
3192 # and so building libstdc++-v3 tends not to always work.
3193 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3194 ;;
3195 mmix-*-*)
59f7ec45 3196 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3197 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3198 ;;
3199 mn10200-*-*)
54d1c879 3200 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3201 ;;
3202 mn10300-*-*)
54d1c879 3203 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3204 ;;
4970f871 3205 mt-*-*)
cdb9b172
AH
3206 noconfigdirs="$noconfigdirs sim"
3207 ;;
a0da8069
NN
3208 powerpc-*-aix*)
3209 # copied from rs6000-*-* entry
e8a5fa9c 3210 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3211 ;;
3212 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3213 target_configdirs="$target_configdirs target-winsup"
54d1c879 3214 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3215 # always build newlib.
3216 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3217 ;;
3218 # This is temporary until we can link against shared libraries
3219 powerpcle-*-solaris*)
54d1c879 3220 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3221 libgloss_dir=rs6000
a0da8069
NN
3222 ;;
3223 powerpc-*-beos*)
54d1c879 3224 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3225 ;;
a0da8069 3226 powerpc-*-eabi)
54d1c879 3227 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3228 libgloss_dir=rs6000
caeba88f
AL
3229 ;;
3230 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3231 libgloss_dir=rs6000
a0da8069 3232 ;;
a0da8069 3233 rs6000-*-lynxos*)
54d1c879 3234 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3235 ;;
3236 rs6000-*-aix*)
e8a5fa9c 3237 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3238 ;;
3239 rs6000-*-*)
54d1c879 3240 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3241 ;;
3242 m68k-apollo-*)
54d1c879 3243 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3244 ;;
25a07265
NC
3245 microblaze*)
3246 noconfigdirs="$noconfigdirs gprof ${libgcj}"
3247 ;;
5bd8be13
RS
3248 mips*-sde-elf*)
3249 skipdirs="$skipdirs target-libiberty"
3250 noconfigdirs="$noconfigdirs ${libgcj}"
3251 if test x$with_newlib = xyes; then
3252 noconfigdirs="$noconfigdirs gprof"
3253 fi
3254 libgloss_dir=mips
3255 ;;
a0da8069 3256 mips*-*-irix5*)
54d1c879 3257 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3258 ;;
3259 mips*-*-irix6*)
a0da8069
NN
3260 # Linking libjava exceeds command-line length limits on at least
3261 # IRIX 6.2, but not on IRIX 6.5.
3262 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3263 # <oldham@codesourcery.com>
54d1c879 3264 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3265 ;;
a0da8069 3266 mips*-*-bsd*)
54d1c879 3267 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3268 ;;
a0da8069
NN
3269 mips*-*-linux*)
3270 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3271 ;;
3272 mips*-*-*)
54d1c879 3273 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3274 libgloss_dir=mips
a0da8069
NN
3275 ;;
3276 romp-*-*)
54d1c879 3277 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3278 ;;
dbf85af7 3279 sh-*-* | sh64-*-*)
a0da8069 3280 case "${host}" in
ec11bdc6
DD
3281 i[3456789]86-*-vsta) ;; # don't add gprof back in
3282 i[3456789]86-*-go32*) ;; # don't add gprof back in
3283 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3284 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3285 esac
e8a5fa9c
RW
3286 case "${target}" in
3287 sh*-*-elf)
3288 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3289 *)
3290 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3291 esac
a0da8069 3292 ;;
691bb5a1
DD
3293 sparclet-*-aout* | sparc86x-*-*)
3294 libgloss_dir=sparc
3295 ;;
a0da8069 3296 sparc-*-elf*)
54d1c879 3297 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3298 ;;
3299 sparc64-*-elf*)
54d1c879 3300 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3301 libgloss_dir=sparc
a0da8069
NN
3302 ;;
3303 sparclite-*-*)
54d1c879 3304 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3305 libgloss_dir=sparc
a0da8069
NN
3306 ;;
3307 sparc-*-sunos4*)
54d1c879 3308 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3309 if test x${is_cross_compiler} != xno ; then
3310 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3311 else
3312 use_gnu_ld=no
3313 fi
3314 ;;
e3c770b1 3315 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3316 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3317 ;;
a0da8069
NN
3318 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3319 ;;
3320 v810-*-*)
54d1c879 3321 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069
NN
3322 ;;
3323 v850-*-*)
54d1c879 3324 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3325 ;;
3326 v850e-*-*)
54d1c879 3327 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3328 ;;
3329 v850ea-*-*)
54d1c879 3330 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3331 ;;
3332 vax-*-vms)
54d1c879 3333 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3334 ;;
3335 vax-*-*)
54d1c879 3336 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3337 ;;
8b66833e 3338 xtensa*-*-*)
54d1c879 3339 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3340 ;;
a0da8069 3341 ip2k-*-*)
54d1c879 3342 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3343 ;;
29383458 3344 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3345 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3346 ;;
3347 *-*-lynxos*)
54d1c879 3348 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3349 ;;
a0da8069 3350 *-*-*)
54d1c879 3351 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3352 ;;
3353esac
252b5132 3354
a0da8069
NN
3355# If we aren't building newlib, then don't build libgloss, since libgloss
3356# depends upon some newlib header files.
3357case "${noconfigdirs}" in
3358 *target-libgloss*) ;;
3359 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3360esac
3361
a0da8069
NN
3362# Work in distributions that contain no compiler tools, like Autoconf.
3363tentative_cc=""
3364host_makefile_frag=/dev/null
3365if test -d ${srcdir}/config ; then
3366case "${host}" in
3367 m68k-hp-hpux*)
3368 # Avoid "too much defining" errors from HPUX compiler.
3369 tentative_cc="cc -Wp,-H256000"
3370 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3371 # If it's HP/UX ar, this should be harmless.
3372 RANLIB="ar ts"
3373 ;;
3374 m68k-apollo-sysv*)
3375 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3376 ;;
3377 m68k-apollo-bsd*)
3378 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3379 # chokes on bfd, the compiler won't let you assign integers to enums, and
3380 # other problems. Defining CC to gcc is a questionable way to say "don't use
3381 # the apollo compiler" (the preferred version of GCC could be called cc,
3382 # or whatever), but I'm not sure leaving CC as cc is any better...
3383 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3384 # Used to have BISON=yacc.
3385 tentative_cc=gcc
3386 ;;
3387 m88k-dg-dgux*)
3388 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3389 ;;
3390 m88k-harris-cxux*)
3391 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3392 tentative_cc="cc -Xa"
3393 host_makefile_frag="config/mh-cxux"
3394 ;;
3395 m88k-motorola-sysv*)
3396 ;;
3397 mips*-dec-ultrix*)
3398 tentative_cc="cc -Wf,-XNg1000"
3399 host_makefile_frag="config/mh-decstation"
3400 ;;
3401 mips*-nec-sysv4*)
3402 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3403 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3404 host_makefile_frag="config/mh-necv4"
3405 ;;
3406 mips*-sgi-irix4*)
3407 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3408 # environment. Also bump switch table size so that cp-parse will
3409 # compile. Bump string length limit so linker builds.
3410 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3411 ;;
3412 mips*-*-sysv4*)
3413 host_makefile_frag="config/mh-sysv4"
3414 ;;
3415 mips*-*-sysv*)
3416 # This is for a MIPS running RISC/os 4.52C.
3417
3418 # This is needed for GDB, but needs to be in the top-level make because
3419 # if a library is compiled with the bsd headers and gets linked with the
3420 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3421 # a different size).
3422 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3423 # known except to select the sysv environment. Could we use /proc instead?
3424 # These "sysv environments" and "bsd environments" often end up being a pain.
3425 #
3426 # This is not part of CFLAGS because perhaps not all C compilers have this
3427 # option.
3428 tentative_cc="cc -systype sysv"
3429 ;;
3430 i370-ibm-opened*)
3431 tentative_cc="c89"
3432 ;;
ec11bdc6 3433 i[3456789]86-*-sysv5*)
a0da8069
NN
3434 host_makefile_frag="config/mh-sysv5"
3435 ;;
ec11bdc6 3436 i[3456789]86-*-dgux*)
a0da8069
NN
3437 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3438 host_makefile_frag="config/mh-dgux386"
3439 ;;
ec11bdc6 3440 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3441 # The MetaWare compiler will generate a copyright message unless you
3442 # turn it off by adding the -Hnocopyr flag.
3443 tentative_cc="cc -Hnocopyr"
3444 ;;
ec11bdc6 3445 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3446 # for an NCR 3000 (i486/SVR4) system.
3447 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3448 # This compiler not only emits obnoxious copyright messages every time
3449 # you run it, but it chokes and dies on a whole bunch of GNU source
3450 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3451 tentative_cc="/usr/ccs/ATT/cc"
3452 host_makefile_frag="config/mh-ncr3000"
3453 ;;
ec11bdc6 3454 i[3456789]86-*-sco3.2v5*)
a0da8069 3455 ;;
ec11bdc6 3456 i[3456789]86-*-sco*)
a0da8069
NN
3457 # The native C compiler botches some simple uses of const. Unfortunately,
3458 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3459 tentative_cc="cc -Dconst="
3460 host_makefile_frag="config/mh-sco"
3461 ;;
ec11bdc6 3462 i[3456789]86-*-udk*)
a0da8069
NN
3463 host_makefile_frag="config/mh-sysv5"
3464 ;;
ec11bdc6 3465 i[3456789]86-*-solaris2*)
a0da8069
NN
3466 host_makefile_frag="config/mh-sysv4"
3467 ;;
ec11bdc6 3468 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3469 host_makefile_frag="config/mh-djgpp"
3470 ;;
3471 *-cygwin*)
e33b51a6 3472
81ecdfbb
RW
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3474$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6
NC
3475echo a >cygwin-cat-check
3476if test `cat cygwin-cat-check` == a ; then
8ade07e9 3477 rm cygwin-cat-check
81ecdfbb
RW
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3479$as_echo "yes" >&6; }
e33b51a6 3480else
8ade07e9 3481 rm cygwin-cat-check
81ecdfbb
RW
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3483$as_echo "no" >&6; }
3484 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3485 Please either mount the build directory in binary mode or run the following
3486 commands before running any configure script:
3487set -o igncr
3488export SHELLOPTS
81ecdfbb 3489 " "$LINENO" 5
e33b51a6 3490fi
e33b51a6 3491
a0da8069
NN
3492 host_makefile_frag="config/mh-cygwin"
3493 ;;
8a1599ab 3494 *-mingw*)
84e7906e 3495 host_makefile_frag="config/mh-mingw"
2d1e8239 3496 ;;
a0da8069
NN
3497 *-interix*)
3498 host_makefile_frag="config/mh-interix"
3499 ;;
3500 vax-*-ultrix2*)
3501 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3502 tentative_cc=gcc
3503 ;;
3504 *-*-solaris2*)
3505 host_makefile_frag="config/mh-solaris"
3506 ;;
3507 m68k-sun-sunos*)
3508 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3509 # without overflowing the jump tables (-J says to use a 32 bit table)
3510 tentative_cc="cc -J"
3511 ;;
da888c87 3512 hppa*-hp-hpux10*)
a0da8069 3513 tentative_cc="cc -Wp,-H256000"
da888c87 3514 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3515 ;;
da888c87
PB
3516 hppa*-hp-hpux* | hppa*-*-hiux*)
3517 tentative_cc="cc -Wp,-H256000"
3518 host_makefile_frag="config/mh-pa"
3519 ;;
3520 hppa*-*)
3521 host_makefile_frag="config/mh-pa"
3522 ;;
3523 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3524 tentative_cc="cc -Wp,-H256000"
3525 ;;
3526 rs6000-*-lynxos*)
3527 # /bin/cc is less than useful for our purposes. Always use GCC
3528 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3529 host_makefile_frag="config/mh-lynxrs6k"
3530 ;;
0df3d27f
PB
3531 powerpc-*-darwin*)
3532 host_makefile_frag="config/mh-ppc-darwin"
3533 ;;
f6d183c0
PB
3534 powerpc-*-aix*)
3535 host_makefile_frag="config/mh-ppc-aix"
3536 ;;
3537 rs6000-*-aix*)
3538 host_makefile_frag="config/mh-ppc-aix"
3539 ;;
a0da8069
NN
3540 *-*-lynxos*)
3541 # /bin/cc is less than useful for our purposes. Always use GCC
3542 tentative_cc="/bin/gcc"
3543 ;;
3544 *-*-sysv4*)
3545 host_makefile_frag="config/mh-sysv4"
3546 ;;
fe69863c
DD
3547 # This is placed last to prevent interfering with the cases above.
3548 i[3456789]86-*-*)
3549 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3550 host_makefile_frag="config/mh-x86omitfp"
3551 ;;
a0da8069
NN
3552esac
3553fi
3554
9e07f89d
NN
3555# If we aren't going to be using gcc, see if we can extract a definition
3556# of CC from the fragment.
3557# Actually, use the 'pre-extracted' version above.
3558if test -z "${CC}" && test "${build}" = "${host}" ; then
3559 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3560 found=
3561 for dir in $PATH; do
3562 test -z "$dir" && dir=.
3563 if test -f $dir/gcc; then
3564 found=yes
3565 break
3566 fi
3567 done
3568 IFS="$save_ifs"
3569 if test -z "${found}" && test -n "${tentative_cc}" ; then
3570 CC=$tentative_cc
3571 fi
3572fi
3573
3574if test "${build}" != "${host}" ; then
1576798e
PB
3575 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3576 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3577 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3578 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3579 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3580 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3581 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3582 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3583 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3584 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3585 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3586 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3587else
3588 AR_FOR_BUILD="\$(AR)"
3589 AS_FOR_BUILD="\$(AS)"
512b7dfb 3590 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3591 CXX_FOR_BUILD="\$(CXX)"
3592 GCJ_FOR_BUILD="\$(GCJ)"
3593 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3594 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3595 LD_FOR_BUILD="\$(LD)"
3596 NM_FOR_BUILD="\$(NM)"
3597 RANLIB_FOR_BUILD="\$(RANLIB)"
3598 WINDRES_FOR_BUILD="\$(WINDRES)"
3599 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3600fi
3601
3602ac_ext=c
c6b750e1
DJ
3603ac_cpp='$CPP $CPPFLAGS'
3604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3606ac_compiler_gnu=$ac_cv_c_compiler_gnu
3607if test -n "$ac_tool_prefix"; then
3608 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3609set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611$as_echo_n "checking for $ac_word... " >&6; }
3612if test "${ac_cv_prog_CC+set}" = set; then :
3613 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3614else
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617else
3618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619for as_dir in $PATH
3620do
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3625 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3627 break 2
3628 fi
3629done
81ecdfbb
RW
3630 done
3631IFS=$as_save_IFS
c6b750e1
DJ
3632
3633fi
3634fi
3635CC=$ac_cv_prog_CC
3636if test -n "$CC"; then
81ecdfbb
RW
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638$as_echo "$CC" >&6; }
c6b750e1 3639else
81ecdfbb
RW
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641$as_echo "no" >&6; }
c6b750e1
DJ
3642fi
3643
81ecdfbb 3644
c6b750e1
DJ
3645fi
3646if test -z "$ac_cv_prog_CC"; then
3647 ac_ct_CC=$CC
6a9cf61e 3648 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3649set dummy gcc; ac_word=$2
81ecdfbb
RW
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651$as_echo_n "checking for $ac_word... " >&6; }
3652if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3653 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3654else
3655 if test -n "$ac_ct_CC"; then
3656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3657else
3658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659for as_dir in $PATH
3660do
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3665 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3667 break 2
3668 fi
3669done
81ecdfbb
RW
3670 done
3671IFS=$as_save_IFS
c6b750e1
DJ
3672
3673fi
3674fi
3675ac_ct_CC=$ac_cv_prog_ac_ct_CC
3676if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3678$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3679else
81ecdfbb
RW
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3681$as_echo "no" >&6; }
c6b750e1
DJ
3682fi
3683
81ecdfbb
RW
3684 if test "x$ac_ct_CC" = x; then
3685 CC=""
3686 else
3687 case $cross_compiling:$ac_tool_warned in
3688yes:)
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3691ac_tool_warned=yes ;;
3692esac
3693 CC=$ac_ct_CC
3694 fi
c6b750e1
DJ
3695else
3696 CC="$ac_cv_prog_CC"
3697fi
3698
3699if test -z "$CC"; then
81ecdfbb
RW
3700 if test -n "$ac_tool_prefix"; then
3701 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3702set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704$as_echo_n "checking for $ac_word... " >&6; }
3705if test "${ac_cv_prog_CC+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
9e07f89d
NN
3707else
3708 if test -n "$CC"; then
3709 ac_cv_prog_CC="$CC" # Let the user override the test.
3710else
c6b750e1
DJ
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3718 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3720 break 2
3721 fi
3722done
81ecdfbb
RW
3723 done
3724IFS=$as_save_IFS
c6b750e1 3725
9e07f89d
NN
3726fi
3727fi
c6b750e1 3728CC=$ac_cv_prog_CC
9e07f89d 3729if test -n "$CC"; then
81ecdfbb
RW
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731$as_echo "$CC" >&6; }
c6b750e1 3732else
81ecdfbb
RW
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734$as_echo "no" >&6; }
c6b750e1
DJ
3735fi
3736
c6b750e1 3737
81ecdfbb 3738 fi
c6b750e1 3739fi
9e07f89d
NN
3740if test -z "$CC"; then
3741 # Extract the first word of "cc", so it can be a program name with args.
3742set dummy cc; ac_word=$2
81ecdfbb
RW
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744$as_echo_n "checking for $ac_word... " >&6; }
3745if test "${ac_cv_prog_CC+set}" = set; then :
3746 $as_echo_n "(cached) " >&6
9e07f89d
NN
3747else
3748 if test -n "$CC"; then
3749 ac_cv_prog_CC="$CC" # Let the user override the test.
3750else
9e07f89d 3751 ac_prog_rejected=no
c6b750e1
DJ
3752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3753for as_dir in $PATH
3754do
3755 IFS=$as_save_IFS
3756 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3760 ac_prog_rejected=yes
3761 continue
3762 fi
3763 ac_cv_prog_CC="cc"
81ecdfbb 3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3765 break 2
3766 fi
3767done
81ecdfbb
RW
3768 done
3769IFS=$as_save_IFS
c6b750e1 3770
9e07f89d
NN
3771if test $ac_prog_rejected = yes; then
3772 # We found a bogon in the path, so make sure we never use it.
3773 set dummy $ac_cv_prog_CC
3774 shift
c6b750e1 3775 if test $# != 0; then
9e07f89d
NN
3776 # We chose a different compiler from the bogus one.
3777 # However, it has the same basename, so the bogon will be chosen
3778 # first if we set CC to just the basename; use the full file name.
3779 shift
c6b750e1 3780 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3781 fi
3782fi
3783fi
3784fi
c6b750e1 3785CC=$ac_cv_prog_CC
9e07f89d 3786if test -n "$CC"; then
81ecdfbb
RW
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3788$as_echo "$CC" >&6; }
9e07f89d 3789else
81ecdfbb
RW
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791$as_echo "no" >&6; }
9e07f89d
NN
3792fi
3793
81ecdfbb 3794
c6b750e1
DJ
3795fi
3796if test -z "$CC"; then
3797 if test -n "$ac_tool_prefix"; then
81ecdfbb 3798 for ac_prog in cl.exe
c6b750e1
DJ
3799 do
3800 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3801set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803$as_echo_n "checking for $ac_word... " >&6; }
3804if test "${ac_cv_prog_CC+set}" = set; then :
3805 $as_echo_n "(cached) " >&6
9e07f89d
NN
3806else
3807 if test -n "$CC"; then
3808 ac_cv_prog_CC="$CC" # Let the user override the test.
3809else
c6b750e1
DJ
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3815 for ac_exec_ext in '' $ac_executable_extensions; do
3816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3817 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3819 break 2
376a0e54 3820 fi
c6b750e1 3821done
81ecdfbb
RW
3822 done
3823IFS=$as_save_IFS
cac3d6c4 3824
c6b750e1
DJ
3825fi
3826fi
3827CC=$ac_cv_prog_CC
3828if test -n "$CC"; then
81ecdfbb
RW
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3830$as_echo "$CC" >&6; }
cac3d6c4 3831else
81ecdfbb
RW
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833$as_echo "no" >&6; }
9e07f89d 3834fi
cac3d6c4 3835
81ecdfbb 3836
c6b750e1
DJ
3837 test -n "$CC" && break
3838 done
cac3d6c4 3839fi
c6b750e1
DJ
3840if test -z "$CC"; then
3841 ac_ct_CC=$CC
81ecdfbb 3842 for ac_prog in cl.exe
c6b750e1
DJ
3843do
3844 # Extract the first word of "$ac_prog", so it can be a program name with args.
3845set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847$as_echo_n "checking for $ac_word... " >&6; }
3848if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3849 $as_echo_n "(cached) " >&6
cac3d6c4 3850else
c6b750e1
DJ
3851 if test -n "$ac_ct_CC"; then
3852 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 3853else
c6b750e1
DJ
3854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH
3856do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3861 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3863 break 2
3864 fi
3865done
81ecdfbb
RW
3866 done
3867IFS=$as_save_IFS
c6b750e1 3868
cac3d6c4
CM
3869fi
3870fi
c6b750e1
DJ
3871ac_ct_CC=$ac_cv_prog_ac_ct_CC
3872if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3874$as_echo "$ac_ct_CC" >&6; }
9e07f89d 3875else
81ecdfbb
RW
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3877$as_echo "no" >&6; }
cac3d6c4 3878fi
376a0e54 3879
81ecdfbb 3880
c6b750e1
DJ
3881 test -n "$ac_ct_CC" && break
3882done
3883
81ecdfbb
RW
3884 if test "x$ac_ct_CC" = x; then
3885 CC=""
3886 else
3887 case $cross_compiling:$ac_tool_warned in
3888yes:)
3889{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3890$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3891ac_tool_warned=yes ;;
3892esac
3893 CC=$ac_ct_CC
3894 fi
c6b750e1
DJ
3895fi
3896
3897fi
3898
3899
81ecdfbb
RW
3900test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3902as_fn_error "no acceptable C compiler found in \$PATH
3903See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
3904
3905# Provide some information about the compiler.
81ecdfbb
RW
3906$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3907set X $ac_compile
3908ac_compiler=$2
3909for ac_option in --version -v -V -qversion; do
3910 { { ac_try="$ac_compiler $ac_option >&5"
3911case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3914esac
3915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916$as_echo "$ac_try_echo"; } >&5
3917 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 3918 ac_status=$?
81ecdfbb
RW
3919 if test -s conftest.err; then
3920 sed '10a\
3921... rest of stderr output deleted ...
3922 10q' conftest.err >conftest.er1
3923 cat conftest.er1 >&5
3924 rm -f conftest.er1 conftest.err
3925 fi
3926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3927 test $ac_status = 0; }
3928done
c6b750e1 3929
81ecdfbb 3930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
3931/* end confdefs.h. */
3932
3933int
3934main ()
3935{
3936
3937 ;
3938 return 0;
3939}
3940_ACEOF
3941ac_clean_files_save=$ac_clean_files
81ecdfbb 3942ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
3943# Try to create an executable without -o first, disregard a.out.
3944# It will help us diagnose broken compilers, and finding out an intuition
3945# of exeext.
81ecdfbb
RW
3946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3947$as_echo_n "checking for C compiler default output file name... " >&6; }
3948ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3949
3950# The possible output files:
3951ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3952
3953ac_rmfiles=
3954for ac_file in $ac_files
3955do
3956 case $ac_file in
3957 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3958 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3959 esac
3960done
3961rm -f $ac_rmfiles
3962
3963if { { ac_try="$ac_link_default"
3964case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967esac
3968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969$as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_link_default") 2>&5
c6b750e1 3971 ac_status=$?
81ecdfbb
RW
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3975# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3976# in a Makefile. We should not override ac_cv_exeext if it was cached,
3977# so that the user can short-circuit this test for compilers unknown to
3978# Autoconf.
3979for ac_file in $ac_files ''
c6b750e1
DJ
3980do
3981 test -f "$ac_file" || continue
3982 case $ac_file in
81ecdfbb 3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
3984 ;;
3985 [ab].out )
3986 # We found the default executable, but exeext='' is most
3987 # certainly right.
3988 break;;
3989 *.* )
81ecdfbb
RW
3990 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3991 then :; else
3992 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3993 fi
3994 # We set ac_cv_exeext here because the later test for it is not
3995 # safe: cross compilers may not add the suffix if given an `-o'
3996 # argument, so we may need to know it at that point already.
3997 # Even if this section looks crufty: it has the advantage of
3998 # actually working.
c6b750e1
DJ
3999 break;;
4000 * )
4001 break;;
4002 esac
4003done
81ecdfbb
RW
4004test "$ac_cv_exeext" = no && ac_cv_exeext=
4005
c6b750e1 4006else
81ecdfbb
RW
4007 ac_file=''
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4010$as_echo "$ac_file" >&6; }
4011if test -z "$ac_file"; then :
4012 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4013sed 's/^/| /' conftest.$ac_ext >&5
4014
81ecdfbb
RW
4015{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4017{ as_fn_set_status 77
4018as_fn_error "C compiler cannot create executables
4019See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4020fi
c6b750e1 4021ac_exeext=$ac_cv_exeext
c6b750e1 4022
81ecdfbb 4023# Check that the compiler produces executables we can run. If not, either
c6b750e1 4024# the compiler is broken, or we cross compile.
81ecdfbb
RW
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4026$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4027# If not cross compiling, check that we can run a simple program.
4028if test "$cross_compiling" != yes; then
4029 if { ac_try='./$ac_file'
81ecdfbb
RW
4030 { { case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033esac
4034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035$as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_try") 2>&5
c6b750e1 4037 ac_status=$?
81ecdfbb
RW
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }; }; then
c6b750e1
DJ
4040 cross_compiling=no
4041 else
4042 if test "$cross_compiling" = maybe; then
4043 cross_compiling=yes
4044 else
81ecdfbb
RW
4045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047as_fn_error "cannot run C compiled programs.
c6b750e1 4048If you meant to cross compile, use \`--host'.
81ecdfbb 4049See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4050 fi
4051 fi
4052fi
81ecdfbb
RW
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4054$as_echo "yes" >&6; }
c6b750e1 4055
81ecdfbb 4056rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4057ac_clean_files=$ac_clean_files_save
81ecdfbb 4058# Check that the compiler produces executables we can run. If not, either
c6b750e1 4059# the compiler is broken, or we cross compile.
81ecdfbb
RW
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4061$as_echo_n "checking whether we are cross compiling... " >&6; }
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4063$as_echo "$cross_compiling" >&6; }
4064
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4066$as_echo_n "checking for suffix of executables... " >&6; }
4067if { { ac_try="$ac_link"
4068case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071esac
4072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073$as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_link") 2>&5
c6b750e1 4075 ac_status=$?
81ecdfbb
RW
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; then :
c6b750e1
DJ
4078 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4079# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4080# work properly (i.e., refer to `conftest.exe'), while it won't with
4081# `rm'.
4082for ac_file in conftest.exe conftest conftest.*; do
4083 test -f "$ac_file" || continue
4084 case $ac_file in
81ecdfbb 4085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4086 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4087 break;;
4088 * ) break;;
4089 esac
4090done
4091else
81ecdfbb
RW
4092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4094as_fn_error "cannot compute suffix of executables: cannot compile and link
4095See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4096fi
c6b750e1 4097rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4099$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4100
4101rm -f conftest.$ac_ext
4102EXEEXT=$ac_cv_exeext
4103ac_exeext=$EXEEXT
81ecdfbb
RW
4104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4105$as_echo_n "checking for suffix of object files... " >&6; }
4106if test "${ac_cv_objext+set}" = set; then :
4107 $as_echo_n "(cached) " >&6
c6b750e1 4108else
81ecdfbb 4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4110/* end confdefs.h. */
4111
4112int
4113main ()
4114{
4115
4116 ;
4117 return 0;
4118}
4119_ACEOF
4120rm -f conftest.o conftest.obj
81ecdfbb
RW
4121if { { ac_try="$ac_compile"
4122case "(($ac_try" in
4123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4124 *) ac_try_echo=$ac_try;;
4125esac
4126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4127$as_echo "$ac_try_echo"; } >&5
4128 (eval "$ac_compile") 2>&5
c6b750e1 4129 ac_status=$?
81ecdfbb
RW
4130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131 test $ac_status = 0; }; then :
4132 for ac_file in conftest.o conftest.obj conftest.*; do
4133 test -f "$ac_file" || continue;
c6b750e1 4134 case $ac_file in
81ecdfbb 4135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4136 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4137 break;;
4138 esac
4139done
cac3d6c4 4140else
81ecdfbb 4141 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4142sed 's/^/| /' conftest.$ac_ext >&5
4143
81ecdfbb
RW
4144{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4145$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4146as_fn_error "cannot compute suffix of object files: cannot compile
4147See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4148fi
c6b750e1
DJ
4149rm -f conftest.$ac_cv_objext conftest.$ac_ext
4150fi
81ecdfbb
RW
4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4152$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4153OBJEXT=$ac_cv_objext
4154ac_objext=$OBJEXT
81ecdfbb
RW
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4156$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4157if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
c6b750e1 4159else
81ecdfbb 4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4161/* end confdefs.h. */
4162
4163int
4164main ()
4165{
4166#ifndef __GNUC__
4167 choke me
4168#endif
4169
4170 ;
4171 return 0;
4172}
4173_ACEOF
81ecdfbb 4174if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4175 ac_compiler_gnu=yes
4176else
81ecdfbb 4177 ac_compiler_gnu=no
c6b750e1 4178fi
81ecdfbb 4179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4180ac_cv_c_compiler_gnu=$ac_compiler_gnu
4181
4182fi
81ecdfbb
RW
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4184$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4185if test $ac_compiler_gnu = yes; then
4186 GCC=yes
4187else
4188 GCC=
4189fi
c6b750e1
DJ
4190ac_test_CFLAGS=${CFLAGS+set}
4191ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4193$as_echo_n "checking whether $CC accepts -g... " >&6; }
4194if test "${ac_cv_prog_cc_g+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4196else
4197 ac_save_c_werror_flag=$ac_c_werror_flag
4198 ac_c_werror_flag=yes
4199 ac_cv_prog_cc_g=no
4200 CFLAGS="-g"
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4202/* end confdefs.h. */
4203
4204int
4205main ()
4206{
4207
4208 ;
4209 return 0;
4210}
4211_ACEOF
81ecdfbb 4212if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4213 ac_cv_prog_cc_g=yes
4214else
81ecdfbb
RW
4215 CFLAGS=""
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217/* end confdefs.h. */
4218
4219int
4220main ()
4221{
4222
4223 ;
4224 return 0;
4225}
4226_ACEOF
4227if ac_fn_c_try_compile "$LINENO"; then :
4228
4229else
4230 ac_c_werror_flag=$ac_save_c_werror_flag
4231 CFLAGS="-g"
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233/* end confdefs.h. */
cac3d6c4 4234
81ecdfbb
RW
4235int
4236main ()
4237{
4238
4239 ;
4240 return 0;
4241}
4242_ACEOF
4243if ac_fn_c_try_compile "$LINENO"; then :
4244 ac_cv_prog_cc_g=yes
4245fi
4246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4247fi
81ecdfbb 4248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4249fi
81ecdfbb
RW
4250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4251 ac_c_werror_flag=$ac_save_c_werror_flag
4252fi
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4254$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4255if test "$ac_test_CFLAGS" = set; then
c6b750e1 4256 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4257elif test $ac_cv_prog_cc_g = yes; then
4258 if test "$GCC" = yes; then
4259 CFLAGS="-g -O2"
4260 else
4261 CFLAGS="-g"
4262 fi
4263else
4264 if test "$GCC" = yes; then
4265 CFLAGS="-O2"
4266 else
4267 CFLAGS=
4268 fi
4269fi
81ecdfbb
RW
4270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4271$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4272if test "${ac_cv_prog_cc_c89+set}" = set; then :
4273 $as_echo_n "(cached) " >&6
c6b750e1 4274else
81ecdfbb 4275 ac_cv_prog_cc_c89=no
c6b750e1 4276ac_save_CC=$CC
81ecdfbb 4277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4278/* end confdefs.h. */
4279#include <stdarg.h>
4280#include <stdio.h>
4281#include <sys/types.h>
4282#include <sys/stat.h>
4283/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4284struct buf { int x; };
4285FILE * (*rcsopen) (struct buf *, struct stat *, int);
4286static char *e (p, i)
4287 char **p;
4288 int i;
4289{
4290 return p[i];
4291}
4292static char *f (char * (*g) (char **, int), char **p, ...)
4293{
4294 char *s;
4295 va_list v;
4296 va_start (v,p);
4297 s = g (p, va_arg (v,int));
4298 va_end (v);
4299 return s;
4300}
4301
4302/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4303 function prototypes and stuff, but not '\xHH' hex character constants.
4304 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4305 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4306 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4307 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4308 that's true only with -std. */
c6b750e1
DJ
4309int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4310
81ecdfbb
RW
4311/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4312 inside strings and character constants. */
4313#define FOO(x) 'x'
4314int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4315
c6b750e1
DJ
4316int test (int i, double x);
4317struct s1 {int (*f) (int a);};
4318struct s2 {int (*f) (double a);};
4319int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4320int argc;
4321char **argv;
4322int
4323main ()
4324{
4325return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4326 ;
4327 return 0;
4328}
4329_ACEOF
81ecdfbb
RW
4330for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4331 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4332do
4333 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4334 if ac_fn_c_try_compile "$LINENO"; then :
4335 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4336fi
81ecdfbb
RW
4337rm -f core conftest.err conftest.$ac_objext
4338 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4339done
81ecdfbb 4340rm -f conftest.$ac_ext
c6b750e1
DJ
4341CC=$ac_save_CC
4342
4343fi
81ecdfbb
RW
4344# AC_CACHE_VAL
4345case "x$ac_cv_prog_cc_c89" in
4346 x)
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4348$as_echo "none needed" >&6; } ;;
4349 xno)
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4351$as_echo "unsupported" >&6; } ;;
c6b750e1 4352 *)
81ecdfbb
RW
4353 CC="$CC $ac_cv_prog_cc_c89"
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4355$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4356esac
81ecdfbb 4357if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4358
c6b750e1
DJ
4359fi
4360
c6b750e1
DJ
4361ac_ext=c
4362ac_cpp='$CPP $CPPFLAGS'
4363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4366
81ecdfbb 4367ac_ext=cpp
18f6b6ee
PB
4368ac_cpp='$CXXCPP $CPPFLAGS'
4369ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4372if test -z "$CXX"; then
4373 if test -n "$CCC"; then
4374 CXX=$CCC
4375 else
4376 if test -n "$ac_tool_prefix"; then
4377 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4378 do
4379 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4380set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4382$as_echo_n "checking for $ac_word... " >&6; }
4383if test "${ac_cv_prog_CXX+set}" = set; then :
4384 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4385else
4386 if test -n "$CXX"; then
4387 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4388else
4389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390for as_dir in $PATH
4391do
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4396 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4398 break 2
4399 fi
4400done
81ecdfbb
RW
4401 done
4402IFS=$as_save_IFS
512b7dfb 4403
18f6b6ee
PB
4404fi
4405fi
4406CXX=$ac_cv_prog_CXX
4407if test -n "$CXX"; then
81ecdfbb
RW
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4409$as_echo "$CXX" >&6; }
18f6b6ee 4410else
81ecdfbb
RW
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412$as_echo "no" >&6; }
18f6b6ee
PB
4413fi
4414
81ecdfbb 4415
18f6b6ee
PB
4416 test -n "$CXX" && break
4417 done
4418fi
4419if test -z "$CXX"; then
4420 ac_ct_CXX=$CXX
81ecdfbb 4421 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4422do
4423 # Extract the first word of "$ac_prog", so it can be a program name with args.
4424set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426$as_echo_n "checking for $ac_word... " >&6; }
4427if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4428 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4429else
4430 if test -n "$ac_ct_CXX"; then
4431 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4440 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4442 break 2
512b7dfb 4443 fi
18f6b6ee 4444done
81ecdfbb
RW
4445 done
4446IFS=$as_save_IFS
512b7dfb 4447
18f6b6ee
PB
4448fi
4449fi
4450ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4451if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4453$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4454else
81ecdfbb
RW
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456$as_echo "no" >&6; }
18f6b6ee
PB
4457fi
4458
81ecdfbb 4459
18f6b6ee
PB
4460 test -n "$ac_ct_CXX" && break
4461done
18f6b6ee 4462
81ecdfbb
RW
4463 if test "x$ac_ct_CXX" = x; then
4464 CXX="g++"
4465 else
4466 case $cross_compiling:$ac_tool_warned in
4467yes:)
4468{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4469$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4470ac_tool_warned=yes ;;
4471esac
4472 CXX=$ac_ct_CXX
4473 fi
18f6b6ee
PB
4474fi
4475
81ecdfbb
RW
4476 fi
4477fi
18f6b6ee 4478# Provide some information about the compiler.
81ecdfbb
RW
4479$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4480set X $ac_compile
4481ac_compiler=$2
4482for ac_option in --version -v -V -qversion; do
4483 { { ac_try="$ac_compiler $ac_option >&5"
4484case "(($ac_try" in
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4487esac
4488eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489$as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4491 ac_status=$?
81ecdfbb
RW
4492 if test -s conftest.err; then
4493 sed '10a\
4494... rest of stderr output deleted ...
4495 10q' conftest.err >conftest.er1
4496 cat conftest.er1 >&5
4497 rm -f conftest.er1 conftest.err
4498 fi
4499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4500 test $ac_status = 0; }
4501done
18f6b6ee 4502
81ecdfbb
RW
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4504$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4505if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4506 $as_echo_n "(cached) " >&6
18f6b6ee 4507else
81ecdfbb 4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4509/* end confdefs.h. */
4510
4511int
4512main ()
4513{
4514#ifndef __GNUC__
4515 choke me
4516#endif
4517
4518 ;
4519 return 0;
4520}
4521_ACEOF
81ecdfbb 4522if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4523 ac_compiler_gnu=yes
4524else
81ecdfbb 4525 ac_compiler_gnu=no
18f6b6ee 4526fi
81ecdfbb 4527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4528ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4529
4530fi
81ecdfbb
RW
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4532$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4533if test $ac_compiler_gnu = yes; then
4534 GXX=yes
4535else
4536 GXX=
4537fi
18f6b6ee
PB
4538ac_test_CXXFLAGS=${CXXFLAGS+set}
4539ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4541$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4542if test "${ac_cv_prog_cxx_g+set}" = set; then :
4543 $as_echo_n "(cached) " >&6
4544else
4545 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4546 ac_cxx_werror_flag=yes
4547 ac_cv_prog_cxx_g=no
4548 CXXFLAGS="-g"
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4550/* end confdefs.h. */
4551
4552int
4553main ()
4554{
4555
4556 ;
4557 return 0;
4558}
4559_ACEOF
81ecdfbb 4560if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4561 ac_cv_prog_cxx_g=yes
4562else
81ecdfbb
RW
4563 CXXFLAGS=""
4564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4565/* end confdefs.h. */
81ecdfbb 4566
18f6b6ee
PB
4567int
4568main ()
4569{
81ecdfbb 4570
18f6b6ee
PB
4571 ;
4572 return 0;
4573}
4574_ACEOF
81ecdfbb 4575if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4576
81ecdfbb
RW
4577else
4578 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4579 CXXFLAGS="-g"
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4581/* end confdefs.h. */
81ecdfbb 4582
18f6b6ee
PB
4583int
4584main ()
4585{
81ecdfbb 4586
18f6b6ee
PB
4587 ;
4588 return 0;
4589}
4590_ACEOF
81ecdfbb
RW
4591if ac_fn_cxx_try_compile "$LINENO"; then :
4592 ac_cv_prog_cxx_g=yes
18f6b6ee 4593fi
81ecdfbb
RW
4594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595fi
4596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597fi
4598rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4600fi
4601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4602$as_echo "$ac_cv_prog_cxx_g" >&6; }
4603if test "$ac_test_CXXFLAGS" = set; then
4604 CXXFLAGS=$ac_save_CXXFLAGS
4605elif test $ac_cv_prog_cxx_g = yes; then
4606 if test "$GXX" = yes; then
4607 CXXFLAGS="-g -O2"
4608 else
4609 CXXFLAGS="-g"
4610 fi
4611else
4612 if test "$GXX" = yes; then
4613 CXXFLAGS="-O2"
4614 else
4615 CXXFLAGS=
4616 fi
18f6b6ee 4617fi
18f6b6ee
PB
4618ac_ext=c
4619ac_cpp='$CPP $CPPFLAGS'
4620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622ac_compiler_gnu=$ac_cv_c_compiler_gnu
4623
4624
4625# We must set the default linker to the linker used by gcc for the correct
4626# operation of libtool. If LD is not defined and we are using gcc, try to
4627# set the LD default to the ld used by gcc.
4628if test -z "$LD"; then
4629 if test "$GCC" = yes; then
4630 case $build in
4631 *-*-mingw*)
4632 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4633 *)
4634 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4635 esac
4636 case $gcc_prog_ld in
4637 # Accept absolute paths.
4638 [\\/]* | [A-Za-z]:[\\/]*)
4639 LD="$gcc_prog_ld" ;;
4640 esac
4641 fi
512b7dfb
PB
4642fi
4643
4644
4645
4646
c6b750e1 4647if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4648 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4649set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651$as_echo_n "checking for $ac_word... " >&6; }
4652if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
9e07f89d 4654else
512b7dfb
PB
4655 if test -n "$GNATBIND"; then
4656 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4657else
c6b750e1
DJ
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4665 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4667 break 2
4668 fi
4669done
81ecdfbb
RW
4670 done
4671IFS=$as_save_IFS
c6b750e1 4672
9e07f89d
NN
4673fi
4674fi
512b7dfb
PB
4675GNATBIND=$ac_cv_prog_GNATBIND
4676if test -n "$GNATBIND"; then
81ecdfbb
RW
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4678$as_echo "$GNATBIND" >&6; }
9e07f89d 4679else
81ecdfbb
RW
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681$as_echo "no" >&6; }
9e07f89d
NN
4682fi
4683
81ecdfbb 4684
c6b750e1 4685fi
512b7dfb
PB
4686if test -z "$ac_cv_prog_GNATBIND"; then
4687 ac_ct_GNATBIND=$GNATBIND
4688 # Extract the first word of "gnatbind", so it can be a program name with args.
4689set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4691$as_echo_n "checking for $ac_word... " >&6; }
4692if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
9e07f89d 4694else
512b7dfb
PB
4695 if test -n "$ac_ct_GNATBIND"; then
4696 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4697else
c6b750e1
DJ
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4705 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4707 break 2
4708 fi
4709done
81ecdfbb
RW
4710 done
4711IFS=$as_save_IFS
c6b750e1 4712
9e07f89d
NN
4713fi
4714fi
512b7dfb
PB
4715ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4716if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4718$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4719else
81ecdfbb
RW
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721$as_echo "no" >&6; }
9e07f89d
NN
4722fi
4723
81ecdfbb
RW
4724 if test "x$ac_ct_GNATBIND" = x; then
4725 GNATBIND="no"
4726 else
4727 case $cross_compiling:$ac_tool_warned in
4728yes:)
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4730$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4731ac_tool_warned=yes ;;
4732esac
4733 GNATBIND=$ac_ct_GNATBIND
4734 fi
24ff9987 4735else
512b7dfb 4736 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4737fi
4738
7df2cd5d 4739if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4740 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4741set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4743$as_echo_n "checking for $ac_word... " >&6; }
4744if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
7df2cd5d 4746else
512b7dfb
PB
4747 if test -n "$GNATMAKE"; then
4748 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4749else
4750as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4751for as_dir in $PATH
4752do
4753 IFS=$as_save_IFS
4754 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4757 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4759 break 2
4760 fi
4761done
81ecdfbb
RW
4762 done
4763IFS=$as_save_IFS
7df2cd5d
PB
4764
4765fi
4766fi
512b7dfb
PB
4767GNATMAKE=$ac_cv_prog_GNATMAKE
4768if test -n "$GNATMAKE"; then
81ecdfbb
RW
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4770$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4771else
81ecdfbb
RW
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773$as_echo "no" >&6; }
7df2cd5d
PB
4774fi
4775
81ecdfbb 4776
7df2cd5d 4777fi
512b7dfb
PB
4778if test -z "$ac_cv_prog_GNATMAKE"; then
4779 ac_ct_GNATMAKE=$GNATMAKE
4780 # Extract the first word of "gnatmake", so it can be a program name with args.
4781set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783$as_echo_n "checking for $ac_word... " >&6; }
4784if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4785 $as_echo_n "(cached) " >&6
7df2cd5d 4786else
512b7dfb
PB
4787 if test -n "$ac_ct_GNATMAKE"; then
4788 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4789else
4790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4795 for ac_exec_ext in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4797 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4799 break 2
4800 fi
4801done
81ecdfbb
RW
4802 done
4803IFS=$as_save_IFS
7df2cd5d 4804
7df2cd5d
PB
4805fi
4806fi
512b7dfb
PB
4807ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4808if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4810$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4811else
81ecdfbb
RW
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813$as_echo "no" >&6; }
7df2cd5d
PB
4814fi
4815
81ecdfbb
RW
4816 if test "x$ac_ct_GNATMAKE" = x; then
4817 GNATMAKE="no"
4818 else
4819 case $cross_compiling:$ac_tool_warned in
4820yes:)
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4823ac_tool_warned=yes ;;
4824esac
4825 GNATMAKE=$ac_ct_GNATMAKE
4826 fi
7df2cd5d 4827else
512b7dfb 4828 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4829fi
4830
81ecdfbb
RW
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4832$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4833if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
9e07f89d
NN
4835else
4836 cat >conftest.adb <<EOF
4837procedure conftest is begin null; end conftest;
4838EOF
4839acx_cv_cc_gcc_supports_ada=no
4840# There is a bug in old released versions of GCC which causes the
4841# driver to exit successfully when the appropriate language module
4842# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4843# Therefore we must check for the error message as well as an
4844# unsuccessful exit.
b8908782
DD
4845# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4846# given a .adb file, but produce no object file. So we must check
4847# if an object file was really produced to guard against this.
9e07f89d 4848errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 4849if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 4850 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
4851fi
4852rm -f conftest.*
4853fi
81ecdfbb
RW
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4855$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 4856
512b7dfb 4857if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
4858 have_gnat=yes
4859else
4860 have_gnat=no
4861fi
4862
81ecdfbb
RW
4863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4864$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4865if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4866 $as_echo_n "(cached) " >&6
b8908782
DD
4867else
4868 echo abfoo >t1
4869 echo cdfoo >t2
4870 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
4871 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4872 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4873 :
4874 else
4875 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4876 fi
4877 fi
b8908782
DD
4878 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4879 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 4880 :
b8908782
DD
4881 else
4882 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4883 fi
4884 fi
4885 rm t1 t2
4886
4887fi
81ecdfbb
RW
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4889$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
4890do_compare="$gcc_cv_prog_cmp_skip"
4891
4892
9e07f89d 4893
e8a5fa9c 4894# See if we are building gcc with C++.
81ecdfbb
RW
4895# Check whether --enable-build-with-cxx was given.
4896if test "${enable_build_with_cxx+set}" = set; then :
4897 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
4898else
4899 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
4900fi
4901
e8a5fa9c
RW
4902
4903# Check for GMP, MPFR and MPC
4b900473 4904gmplibs="-lmpfr -lgmp"
4b1cb4fe 4905gmpinc=
4b900473 4906have_gmp=no
e8a5fa9c
RW
4907mpclibs=-lmpc
4908mpcinc=
4909have_mpc=no
4910
4911# Specify a location for mpc
4912# check for this first so it ends up on the link line before mpfr.
4913
81ecdfbb
RW
4914# Check whether --with-mpc was given.
4915if test "${with_mpc+set}" = set; then :
4916 withval=$with_mpc;
4917fi
e8a5fa9c 4918
e8a5fa9c 4919
81ecdfbb
RW
4920# Check whether --with-mpc_include was given.
4921if test "${with_mpc_include+set}" = set; then :
4922 withval=$with_mpc_include;
4923fi
e8a5fa9c 4924
e8a5fa9c 4925
81ecdfbb
RW
4926# Check whether --with-mpc_lib was given.
4927if test "${with_mpc_lib+set}" = set; then :
4928 withval=$with_mpc_lib;
4929fi
e8a5fa9c 4930
e8a5fa9c
RW
4931
4932if test "x$with_mpc" != x; then
4933 mpclibs="-L$with_mpc/lib -lmpc"
4934 mpcinc="-I$with_mpc/include $mpcinc"
4935fi
4936if test "x$with_mpc_include" != x; then
4937 mpcinc="-I$with_mpc_include $mpcinc"
4938fi
4939if test "x$with_mpc_lib" != x; then
4940 mpclibs="-L$with_mpc_lib -lmpc"
4941fi
4942if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
4943 mpclibs='-L$$r/$(HOST_SUBDIR)/mpc/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/_libs -lmpc'
4944 mpcinc='-I$$s/mpc/src '"$mpcinc"
4945 # Do not test the mpc version. Assume that it is sufficient, since
4946 # it is in the source tree, and the library has not been built yet
4947 # but it would be included on the link line in the version check below
4948 # hence making the test fail.
4949 have_mpc=yes
4950fi
4b900473 4951
11b04d1f
DD
4952# Specify a location for mpfr
4953# check for this first so it ends up on the link line before gmp.
c6b750e1 4954
81ecdfbb
RW
4955# Check whether --with-mpfr-dir was given.
4956if test "${with_mpfr_dir+set}" = set; then :
4957 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
4958Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
4959fi
4960
11b04d1f
DD
4961
4962
81ecdfbb
RW
4963# Check whether --with-mpfr was given.
4964if test "${with_mpfr+set}" = set; then :
4965 withval=$with_mpfr;
4966fi
c6b750e1 4967
11b04d1f 4968
81ecdfbb
RW
4969# Check whether --with-mpfr_include was given.
4970if test "${with_mpfr_include+set}" = set; then :
4971 withval=$with_mpfr_include;
4972fi
c6b750e1 4973
8a0d8a5c 4974
81ecdfbb
RW
4975# Check whether --with-mpfr_lib was given.
4976if test "${with_mpfr_lib+set}" = set; then :
4977 withval=$with_mpfr_lib;
4978fi
8a0d8a5c 4979
11b04d1f
DD
4980
4981if test "x$with_mpfr" != x; then
4982 gmplibs="-L$with_mpfr/lib $gmplibs"
4983 gmpinc="-I$with_mpfr/include"
4984fi
8a0d8a5c
PB
4985if test "x$with_mpfr_include" != x; then
4986 gmpinc="-I$with_mpfr_include"
4987fi
4988if test "x$with_mpfr_lib" != x; then
4989 gmplibs="-L$with_mpfr_lib $gmplibs"
4990fi
4b900473
PB
4991if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
4992 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/.libs -L$$r/$(HOST_SUBDIR)/mpfr/_libs '"$gmplibs"
4993 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
e8a5fa9c 4994 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr'
4b900473
PB
4995 # Do not test the mpfr version. Assume that it is sufficient, since
4996 # it is in the source tree, and the library has not been built yet
4997 # but it would be included on the link line in the version check below
4998 # hence making the test fail.
4999 have_gmp=yes
5000fi
11b04d1f 5001
4b1cb4fe 5002# Specify a location for gmp
c6b750e1 5003
81ecdfbb
RW
5004# Check whether --with-gmp-dir was given.
5005if test "${with_gmp_dir+set}" = set; then :
5006 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5007Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5008fi
5009
4b1cb4fe
DD
5010
5011
81ecdfbb
RW
5012# Check whether --with-gmp was given.
5013if test "${with_gmp+set}" = set; then :
5014 withval=$with_gmp;
5015fi
c6b750e1 5016
4b1cb4fe 5017
81ecdfbb
RW
5018# Check whether --with-gmp_include was given.
5019if test "${with_gmp_include+set}" = set; then :
5020 withval=$with_gmp_include;
5021fi
c6b750e1 5022
8a0d8a5c 5023
81ecdfbb
RW
5024# Check whether --with-gmp_lib was given.
5025if test "${with_gmp_lib+set}" = set; then :
5026 withval=$with_gmp_lib;
5027fi
8a0d8a5c
PB
5028
5029
4b1cb4fe 5030
11b04d1f
DD
5031if test "x$with_gmp" != x; then
5032 gmplibs="-L$with_gmp/lib $gmplibs"
5033 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5034fi
8a0d8a5c
PB
5035if test "x$with_gmp_include" != x; then
5036 gmpinc="-I$with_gmp_include $gmpinc"
5037fi
5038if test "x$with_gmp_lib" != x; then
5039 gmplibs="-L$with_gmp_lib $gmplibs"
5040fi
4b900473
PB
5041if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
5042 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L$$r/$(HOST_SUBDIR)/gmp/_libs '"$gmplibs"
5043 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
e8a5fa9c
RW
5044 extra_mpfr_configure_flags='--with-gmp-build=$$r/$(HOST_SUBDIR)/gmp'
5045 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp'
4b900473
PB
5046 # Do not test the gmp version. Assume that it is sufficient, since
5047 # it is in the source tree, and the library has not been built yet
5048 # but it would be included on the link line in the version check below
5049 # hence making the test fail.
5050 have_gmp=yes
5051fi
4b1cb4fe 5052
ceb92e78 5053if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5054 have_gmp=yes
5055 saved_CFLAGS="$CFLAGS"
5056 CFLAGS="$CFLAGS $gmpinc"
5057 # Check GMP actually works
81ecdfbb
RW
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of gmp.h" >&5
5059$as_echo_n "checking for correct version of gmp.h... " >&6; }
c6b750e1 5060
81ecdfbb 5061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5062/* end confdefs.h. */
4b1cb4fe 5063#include "gmp.h"
c6b750e1
DJ
5064int
5065main ()
5066{
4b1cb4fe 5067
ef699244 5068 #if __GNU_MP_VERSION < 4 || (__GNU_MP_VERSION == 4 && __GNU_MP_VERSION_MINOR < 2)
4b900473
PB
5069 choke me
5070 #endif
c6b750e1
DJ
5071
5072 ;
5073 return 0;
5074}
5075_ACEOF
81ecdfbb
RW
5076if ac_fn_c_try_compile "$LINENO"; then :
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5078$as_echo "yes" >&6; }
c6b750e1 5079else
81ecdfbb
RW
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5082fi
81ecdfbb 5083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5084
e8a5fa9c 5085 # If we have GMP, check the MPFR version.
4b900473 5086 if test x"$have_gmp" = xyes; then
81ecdfbb
RW
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of mpfr.h" >&5
5088$as_echo_n "checking for correct version of mpfr.h... " >&6; }
5089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5090/* end confdefs.h. */
9b134994 5091#include <gmp.h>
4b900473 5092 #include <mpfr.h>
c6b750e1
DJ
5093int
5094main ()
5095{
9b134994 5096
ef699244 5097 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5098 choke me
5099 #endif
c6b750e1
DJ
5100
5101 ;
5102 return 0;
5103}
5104_ACEOF
81ecdfbb
RW
5105if ac_fn_c_try_compile "$LINENO"; then :
5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5107/* end confdefs.h. */
4b1cb4fe 5108#include <gmp.h>
4b900473 5109 #include <mpfr.h>
c6b750e1
DJ
5110int
5111main ()
5112{
9dbaa842 5113
e28c595f 5114 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,2)
4b900473
PB
5115 choke me
5116 #endif
e8a5fa9c
RW
5117
5118 ;
5119 return 0;
5120}
5121_ACEOF
81ecdfbb
RW
5122if ac_fn_c_try_compile "$LINENO"; then :
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5124$as_echo "yes" >&6; }
e8a5fa9c 5125else
81ecdfbb
RW
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5127$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5128fi
81ecdfbb 5129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5130else
81ecdfbb
RW
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5133fi
81ecdfbb 5134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5135 fi
5136
5137 # Check for the MPC header version.
5138 if test x"$have_mpc" != xyes ; then
5139 CFLAGS="$CFLAGS $mpcinc"
81ecdfbb
RW
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5141$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5143/* end confdefs.h. */
5144#include <mpc.h>
5145int
5146main ()
5147{
5148
5149 #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
5150 choke me
5151 #endif
5152
5153 ;
5154 return 0;
5155}
5156_ACEOF
81ecdfbb
RW
5157if ac_fn_c_try_compile "$LINENO"; then :
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5159$as_echo "yes" >&6; }; have_mpc=maybe
e8a5fa9c 5160else
81ecdfbb
RW
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
e8a5fa9c 5163fi
81ecdfbb 5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5165 fi
5166
5167 # Now check the MPFR library.
5168 if test x"$have_gmp" = xyes; then
5169 saved_LIBS="$LIBS"
5170 LIBS="$LIBS $gmplibs"
81ecdfbb
RW
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
5172$as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5174/* end confdefs.h. */
5175#include <gmp.h>
5176 #include <mpfr.h>
5177int
5178main ()
5179{
5180
5181 mpfr_t n;
5182 mpfr_t x;
5183 int t;
5184 mpfr_init (n);
5185 mpfr_init (x);
5186 mpfr_atan2 (n, n, x, GMP_RNDN);
5187 mpfr_erfc (n, x, GMP_RNDN);
5188 mpfr_subnormalize (x, t, GMP_RNDN);
c6b750e1
DJ
5189
5190 ;
5191 return 0;
5192}
5193_ACEOF
81ecdfbb
RW
5194if ac_fn_c_try_link "$LINENO"; then :
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5196$as_echo "yes" >&6; }
c6b750e1 5197else
81ecdfbb
RW
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5200fi
81ecdfbb
RW
5201rm -f core conftest.err conftest.$ac_objext \
5202 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5203 LIBS="$saved_LIBS"
5204 fi
5205
5206 if test x"$have_mpc" = xmaybe; then
5207 saved_LIBS="$LIBS"
5208 LIBS="$LIBS $mpclibs $gmplibs"
81ecdfbb
RW
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc library" >&5
5210$as_echo_n "checking for the correct version of the mpc library... " >&6; }
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5212/* end confdefs.h. */
5213#include <mpc.h>
5214int
5215main ()
5216{
5217
5218 mpc_t n;
5219 mpc_init2 (n, 53);
5220 mpc_set_ui_ui (n, 1, 1, MPC_RNDNN);
5221 mpc_sin (n, n, MPC_RNDNN);
5222 mpc_cos (n, n, MPC_RNDNN);
5223 mpc_tan (n, n, MPC_RNDNN);
5224 mpc_sinh (n, n, MPC_RNDNN);
5225 mpc_cosh (n, n, MPC_RNDNN);
5226 mpc_tanh (n, n, MPC_RNDNN);
5227 mpc_exp (n, n, MPC_RNDNN);
5228 mpc_log (n, n, MPC_RNDNN);
5229 mpc_sqrt (n, n, MPC_RNDNN);
5230 mpc_proj (n, n, MPC_RNDNN);
5231 mpc_neg (n, n, MPC_RNDNN);
5232 mpc_sqr (n, n, MPC_RNDNN);
5233 mpc_clear (n);
5234
5235 ;
5236 return 0;
5237}
5238_ACEOF
81ecdfbb
RW
5239if ac_fn_c_try_link "$LINENO"; then :
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5241$as_echo "yes" >&6; }; have_mpc=yes
c6b750e1 5242else
81ecdfbb
RW
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244$as_echo "no" >&6; }; have_mpc=no; mpclibs= ; mpcinc=
c6b750e1 5245fi
81ecdfbb
RW
5246rm -f core conftest.err conftest.$ac_objext \
5247 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c 5248 LIBS="$saved_LIBS"
4b900473 5249 fi
e8a5fa9c 5250
4b900473 5251 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5252
4b900473 5253 if test x$have_gmp != xyes; then
81ecdfbb 5254 as_fn_error "Building GCC requires GMP 4.2+ and MPFR 2.3.2+.
9dbaa842
DD
5255Try the --with-gmp and/or --with-mpfr options to specify their locations.
5256Copies of these libraries' source code can be found at their respective
5257hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/.
8a0d8a5c
PB
5258See also http://gcc.gnu.org/install/prerequisites.html for additional info.
5259If you obtained GMP and/or MPFR from a vendor distribution package, make
5260sure that you have installed both the libraries and the header files.
81ecdfbb 5261They may be located in separate packages." "$LINENO" 5
4b900473 5262 fi
9dbaa842
DD
5263fi
5264
e8a5fa9c
RW
5265if test x$have_mpc != xyes ; then
5266 mpcinc=
5267 mpclibs=
5268fi
5269
5270gmpinc="$mpcinc $gmpinc"
5271gmplibs="$mpclibs $gmplibs"
5272
5273# Flags needed for both GMP, MPFR and/or MPC.
5274
5275
5276
4b1cb4fe
DD
5277
5278
5279
29383458
JM
5280# Allow host libstdc++ to be specified for static linking with PPL.
5281
81ecdfbb
RW
5282# Check whether --with-host-libstdcxx was given.
5283if test "${with_host_libstdcxx+set}" = set; then :
5284 withval=$with_host_libstdcxx;
5285fi
29383458 5286
29383458
JM
5287
5288case $with_host_libstdcxx in
5289 no|yes)
81ecdfbb 5290 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5291 ;;
5292esac
e28c595f 5293
e8a5fa9c
RW
5294# Linker flags to use for stage1 or when not boostrapping.
5295
81ecdfbb
RW
5296# Check whether --with-stage1-ldflags was given.
5297if test "${with_stage1_ldflags+set}" = set; then :
5298 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5299 stage1_ldflags=
5300 else
5301 stage1_ldflags=$withval
5302 fi
5303else
5304 stage1_ldflags=
81ecdfbb
RW
5305fi
5306
e8a5fa9c
RW
5307
5308
5309# Libraries to use for stage1 or when not bootstrapping.
5310
81ecdfbb
RW
5311# Check whether --with-stage1-libs was given.
5312if test "${with_stage1_libs+set}" = set; then :
5313 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5314 stage1_libs=
5315 else
5316 stage1_libs=$withval
5317 fi
5318else
5319 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5320fi
5321
e8a5fa9c
RW
5322
5323
5324# Linker flags to use for stage2 and later builds.
5325
81ecdfbb
RW
5326# Check whether --with-boot-ldflags was given.
5327if test "${with_boot_ldflags+set}" = set; then :
5328 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5329 poststage1_ldflags=
5330 else
5331 poststage1_ldflags=$withval
5332 fi
5333else
5334 if test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5335 poststage1_ldflags=-static-libstdc++
5336 else
5337 poststage1_ldflags=
5338 fi
81ecdfbb
RW
5339fi
5340
e8a5fa9c
RW
5341
5342
5343# Libraries to use for stage2 and later builds. This defaults to the
5344# argument passed to --with-host-libstdcxx.
5345
81ecdfbb
RW
5346# Check whether --with-boot-libs was given.
5347if test "${with_boot_libs+set}" = set; then :
5348 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5349 poststage1_libs=
5350 else
5351 poststage1_libs=$withval
5352 fi
5353else
5354 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5355fi
5356
e8a5fa9c
RW
5357
5358
e28c595f
JM
5359# Check for PPL
5360ppl_major_version=0
5361ppl_minor_version=10
e8a5fa9c 5362ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5363pplinc=
5364
5365
81ecdfbb
RW
5366# Check whether --with-ppl was given.
5367if test "${with_ppl+set}" = set; then :
5368 withval=$with_ppl;
e8a5fa9c
RW
5369else
5370 with_ppl=no
81ecdfbb 5371fi
e28c595f 5372
e28c595f 5373
81ecdfbb
RW
5374# Check whether --with-ppl_include was given.
5375if test "${with_ppl_include+set}" = set; then :
5376 withval=$with_ppl_include;
5377fi
5378
e28c595f 5379
81ecdfbb
RW
5380# Check whether --with-ppl_lib was given.
5381if test "${with_ppl_lib+set}" = set; then :
5382 withval=$with_ppl_lib;
5383fi
e28c595f 5384
e28c595f 5385
29383458
JM
5386case $with_ppl in
5387 no)
5388 ppllibs=
5389 ;;
5390 *)
e8a5fa9c 5391 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458
JM
5392 pplinc="-I$with_ppl/include $pplinc"
5393 LIBS="$ppllibs $LIBS"
5394 ;;
5395esac
e28c595f
JM
5396if test "x$with_ppl_include" != x; then
5397 pplinc="-I$with_ppl_include $pplinc"
5398fi
5399if test "x$with_ppl_lib" != x; then
e8a5fa9c 5400 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5401 LIBS="$ppllibs $LIBS"
5402fi
5403if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
e8a5fa9c 5404 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/.libs -L$$r/$(HOST_SUBDIR)/ppl/_libs -lppl_c -lppl -lgmpxx '
e28c595f
JM
5405 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/include -I$$s/ppl/include '
5406 LIBS="$ppllibs $LIBS"
5407fi
5408
81ecdfbb
RW
5409# Check whether --enable-ppl-version-check was given.
5410if test "${enable_ppl_version_check+set}" = set; then :
5411 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
e28c595f
JM
5412else
5413 ENABLE_PPL_CHECK=yes
81ecdfbb
RW
5414fi
5415
e28c595f
JM
5416
5417if test "${ENABLE_PPL_CHECK}" = "yes"; then
5418 saved_CFLAGS="$CFLAGS"
5419 CFLAGS="$CFLAGS $pplinc $gmpinc"
81ecdfbb
RW
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version $ppl_major_version.$ppl_minor_version of PPL" >&5
5421$as_echo_n "checking for version $ppl_major_version.$ppl_minor_version of PPL... " >&6; }
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5423/* end confdefs.h. */
5424#include "ppl_c.h"
5425int
5426main ()
5427{
5428
5429 #if PPL_VERSION_MAJOR != $ppl_major_version || PPL_VERSION_MINOR != $ppl_minor_version
5430 choke me
5431 #endif
5432
5433 ;
5434 return 0;
5435}
5436_ACEOF
81ecdfbb
RW
5437if ac_fn_c_try_compile "$LINENO"; then :
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5439$as_echo "yes" >&6; }
e28c595f 5440else
81ecdfbb
RW
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442$as_echo "no" >&6; }; ppllibs= ; pplinc=
e28c595f 5443fi
81ecdfbb 5444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5445 CFLAGS="$saved_CFLAGS"
5446fi
5447
5448# Flags needed for PPL
5449
5450
5451
5452
5453# Check for CLOOG
5454clooglibs=" -lcloog "
5455clooginc=" -DCLOOG_PPL_BACKEND "
5456
5457
81ecdfbb
RW
5458# Check whether --with-cloog was given.
5459if test "${with_cloog+set}" = set; then :
5460 withval=$with_cloog;
e8a5fa9c
RW
5461else
5462 with_cloog=no
81ecdfbb
RW
5463fi
5464
e28c595f 5465
81ecdfbb
RW
5466# Check whether --with-cloog_include was given.
5467if test "${with_cloog_include+set}" = set; then :
5468 withval=$with_cloog_include;
5469fi
e28c595f 5470
e28c595f 5471
81ecdfbb
RW
5472# Check whether --with-cloog_lib was given.
5473if test "${with_cloog_lib+set}" = set; then :
5474 withval=$with_cloog_lib;
5475fi
e28c595f 5476
e28c595f 5477
29383458
JM
5478case $with_cloog in
5479 no)
5480 clooglibs=
5481 clooginc=
5482 ;;
5483 *)
5484 clooglibs="-L$with_cloog/lib -lcloog"
5485 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
5486 LIBS="$clooglibs $LIBS"
5487 ;;
5488esac
e28c595f
JM
5489if test "x$with_cloog_include" != x; then
5490 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5491fi
5492if test "x$with_cloog_lib" != x; then
5493 clooglibs="-L$with_cloog_lib -lcloog"
5494 LIBS="$clooglibs $LIBS"
5495fi
5496if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
5497 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/.libs -L$$r/$(HOST_SUBDIR)/cloog/_libs -lcloog '
5498 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
5499 LIBS="$clooglibs $LIBS"
5500fi
5501
81ecdfbb
RW
5502# Check whether --enable-cloog-version-check was given.
5503if test "${enable_cloog_version_check+set}" = set; then :
5504 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
e28c595f
JM
5505else
5506 ENABLE_CLOOG_CHECK=yes
81ecdfbb
RW
5507fi
5508
e28c595f
JM
5509
5510if test "${ENABLE_CLOOG_CHECK}" = "yes"; then
5511 saved_CFLAGS="$CFLAGS"
5512 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
81ecdfbb
RW
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for correct version of CLooG" >&5
5514$as_echo_n "checking for correct version of CLooG... " >&6; }
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5516/* end confdefs.h. */
5517#include "cloog/cloog.h"
5518int
5519main ()
5520{
5521
5522 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15
5523 choke me
5524 #endif
5525
5526 ;
5527 return 0;
5528}
5529_ACEOF
81ecdfbb
RW
5530if ac_fn_c_try_compile "$LINENO"; then :
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5532$as_echo "yes" >&6; }
e28c595f 5533else
81ecdfbb
RW
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }; clooglibs= ; clooginc=
e28c595f 5536fi
81ecdfbb 5537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5538 CFLAGS="$saved_CFLAGS"
5539fi
5540
5541# Flags needed for CLOOG
5542
5543
5544
5545
947f426e 5546# By default, C is the only stage 1 language.
9b134994 5547stage1_languages=,c,
1d39f329 5548
e8a5fa9c
RW
5549# Target libraries that we bootstrap.
5550bootstrap_target_libs=,target-libgcc,
5551
9e07f89d
NN
5552# Figure out what language subdirectories are present.
5553# Look if the user specified --enable-languages="..."; if not, use
5554# the environment variable $LANGUAGES if defined. $LANGUAGES might
5555# go away some day.
5556# NB: embedded tabs in this IF block -- do not untabify
5557if test -d ${srcdir}/gcc; then
5558 if test x"${enable_languages+set}" != xset; then
5559 if test x"${LANGUAGES+set}" = xset; then
5560 enable_languages="${LANGUAGES}"
5561 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5562 else
5563 enable_languages=all
5564 fi
5565 else
5566 if test x"${enable_languages}" = x ||
5567 test x"${enable_languages}" = xyes;
5568 then
5569 echo configure.in: --enable-languages needs at least one language argument 1>&2
5570 exit 1
5571 fi
5572 fi
5573 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5574
096f7d00
DE
5575 # 'f95' is the old name for the 'fortran' language. We issue a warning
5576 # and make the substitution.
5577 case ,${enable_languages}, in
5578 *,f95,*)
5579 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5580 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5581 ;;
5582 esac
5583
9e07f89d
NN
5584 # First scan to see if an enabled language requires some other language.
5585 # We assume that a given config-lang.in will list all the language
5586 # front ends it requires, even if some are required indirectly.
5587 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5588 case ${lang_frag} in
5589 ..) ;;
5590 # The odd quoting in the next line works around
5591 # an apparent bug in bash 1.12 on linux.
5592 ${srcdir}/gcc/[*]/config-lang.in) ;;
5593 *)
5594 # From the config-lang.in, get $language, $lang_requires
5595 language=
5596 lang_requires=
5597 . ${lang_frag}
5598 for other in ${lang_requires} ; do
5599 case ,${enable_languages}, in
5600 *,$other,*) ;;
5601 *,all,*) ;;
5602 *,$language,*)
5603 echo " \`$other' language required by \`$language'; enabling" 1>&2
5604 enable_languages="${enable_languages},${other}"
5605 ;;
5606 esac
5607 done
5608 ;;
5609 esac
5610 done
5611
9b134994 5612 new_enable_languages=,c,
9e07f89d 5613 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 5614 potential_languages=,c,
9e07f89d
NN
5615
5616 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5617 case ${lang_frag} in
5618 ..) ;;
5619 # The odd quoting in the next line works around
5620 # an apparent bug in bash 1.12 on linux.
5621 ${srcdir}/gcc/[*]/config-lang.in) ;;
5622 *)
c6b750e1 5623 # From the config-lang.in, get $language, $target_libs,
1d39f329 5624 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
5625 language=
5626 target_libs=
5627 lang_dirs=
64ce424c 5628 subdir_requires=
9b134994
PB
5629 boot_language=no
5630 build_by_default=yes
9e07f89d 5631 . ${lang_frag}
9b134994
PB
5632 if test x${language} = x; then
5633 echo "${lang_frag} doesn't set \$language." 1>&2
5634 exit 1
5635 fi
5636
e8a5fa9c
RW
5637 if test "$language" = "c++" -a "$ENABLE_BUILD_WITH_CXX" = "yes"; then
5638 boot_language=yes
5639 fi
5640
9b134994
PB
5641 case ,${enable_languages}, in
5642 *,${language},*)
9e07f89d
NN
5643 # Language was explicitly selected; include it.
5644 add_this_lang=yes
5645 ;;
9b134994
PB
5646 *,all,*)
5647 # 'all' was selected, select it if it is a default language
5648 add_this_lang=${build_by_default}
9e07f89d
NN
5649 ;;
5650 *)
5651 add_this_lang=no
5652 ;;
5653 esac
4b1cb4fe 5654
64ce424c 5655 # Disable languages that need other directories if these aren't available.
1f3f1bbf 5656 for i in $subdir_requires; do
3d3adb43 5657 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
5658 case ,${enable_languages}, in
5659 *,${language},*)
5660 # Specifically requested language; tell them.
81ecdfbb 5661 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
5662 ;;
5663 *)
5664 # Silently disable.
9b134994 5665 add_this_lang=unsupported
64ce424c
PB
5666 ;;
5667 esac
5668 done
5669
9b134994
PB
5670 # Disable Ada if no preexisting GNAT is available.
5671 case ,${enable_languages},:${language}:${have_gnat} in
5672 *,${language},*:ada:no)
5673 # Specifically requested language; tell them.
81ecdfbb 5674 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
5675 ;;
5676 *:ada:no)
5677 # Silently disable.
5678 add_this_lang=unsupported
5679 ;;
5680 esac
5681
59f7ec45
HPN
5682 # Disable a language that is unsupported by the target.
5683 case " $unsupported_languages " in
5684 *" $language "*)
9b134994 5685 add_this_lang=unsupported
59f7ec45
HPN
5686 ;;
5687 esac
5688
4b1cb4fe 5689 case $add_this_lang in
9b134994 5690 unsupported)
9e07f89d 5691 # Remove language-dependent dirs.
1d39f329
NN
5692 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5693 ;;
9b134994
PB
5694 no)
5695 # Remove language-dependent dirs; still show language as supported.
5696 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5697 potential_languages="${potential_languages}${language},"
5698 ;;
5699 yes)
5700 new_enable_languages="${new_enable_languages}${language},"
5701 potential_languages="${potential_languages}${language},"
1d39f329
NN
5702 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
5703 case ${boot_language} in
5704 yes)
4fa63067 5705 # Add to (comma-separated) list of stage 1 languages.
9b134994 5706 stage1_languages="${stage1_languages}${language},"
e8a5fa9c
RW
5707 # We need to bootstrap any supporting libraries.
5708 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
5709 ;;
5710 esac
5711 ;;
9e07f89d
NN
5712 esac
5713 ;;
5714 esac
5715 done
5716
81ecdfbb
RW
5717 # Check whether --enable-stage1-languages was given.
5718if test "${enable_stage1_languages+set}" = set; then :
5719 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
5720 ,no,|,,)
5721 # Set it to something that will have no effect in the loop below
5722 enable_stage1_languages=c ;;
5723 ,yes,)
5724 enable_stage1_languages=`echo $new_enable_languages | \
5725 sed -e "s/^,//" -e "s/,$//" ` ;;
5726 *,all,*)
5727 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
5728 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
5729 esac
5730
5731 # Add "good" languages from enable_stage1_languages to stage1_languages,
5732 # while "bad" languages go in missing_languages. Leave no duplicates.
5733 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
5734 case $potential_languages in
5735 *,$i,*)
5736 case $stage1_languages in
5737 *,$i,*) ;;
5738 *) stage1_languages="$stage1_languages$i," ;;
5739 esac ;;
5740 *)
5741 case $missing_languages in
5742 *,$i,*) ;;
5743 *) missing_languages="$missing_languages$i," ;;
5744 esac ;;
5745 esac
5746 done
81ecdfbb
RW
5747fi
5748
9b134994
PB
5749
5750 # Remove leading/trailing commas that were added for simplicity
5751 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 5752 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
5753 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
5754 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
5755
9e07f89d 5756 if test "x$missing_languages" != x; then
81ecdfbb 5757 as_fn_error "
27258dd4 5758The following requested languages could not be built: ${missing_languages}
81ecdfbb 5759Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 5760 fi
9e07f89d
NN
5761 if test "x$new_enable_languages" != "x$enable_languages"; then
5762 echo The following languages will be built: ${new_enable_languages}
9b134994 5763 enable_languages="$new_enable_languages"
9e07f89d 5764 fi
9b134994 5765
c6b750e1 5766
81ec575a 5767 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
5768fi
5769
a6df5a19
PB
5770# Handle --disable-<component> generically.
5771for dir in $configdirs $build_configdirs $target_configdirs ; do
5772 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
5773 varname=`echo $dirname | sed -e s/+/_/g`
5774 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
5775 noconfigdirs="$noconfigdirs $dir"
5776 fi
5777done
5778
4f0ef2d8 5779# Check for Boehm's garbage collector
81ecdfbb
RW
5780# Check whether --enable-objc-gc was given.
5781if test "${enable_objc_gc+set}" = set; then :
5782 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 5783 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 5784 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
5785 ;;
5786esac
81ecdfbb
RW
5787fi
5788
4f0ef2d8
CD
5789
5790# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
5791case ,${enable_languages},:${enable_objc_gc} in
5792 *,objc,*:yes)
4f0ef2d8
CD
5793 # Keep target-boehm-gc if requested for Objective-C.
5794 ;;
4f0ef2d8 5795 *)
d42c4017
DA
5796 # Otherwise remove target-boehm-gc depending on target-libjava.
5797 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
5798 noconfigdirs="$noconfigdirs target-boehm-gc"
5799 fi
4f0ef2d8
CD
5800 ;;
5801esac
5802
caeba88f
AL
5803# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
5804# $build_configdirs and $target_configdirs.
9e07f89d
NN
5805# If we have the source for $noconfigdirs entries, add them to $notsupp.
5806
5807notsupp=""
5808for dir in . $skipdirs $noconfigdirs ; do
caeba88f 5809 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
5810 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5811 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
5812 if test -r $srcdir/$dirname/configure ; then
5813 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5814 true
5815 else
5816 notsupp="$notsupp $dir"
5817 fi
5818 fi
5819 fi
caeba88f
AL
5820 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5821 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
5822 if test -r $srcdir/$dirname/configure ; then
5823 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5824 true
5825 else
5826 notsupp="$notsupp $dir"
5827 fi
5828 fi
5829 fi
9e07f89d
NN
5830 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5831 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
5832 if test -r $srcdir/$dirname/configure ; then
5833 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5834 true
5835 else
5836 notsupp="$notsupp $dir"
5837 fi
5838 fi
5839 fi
5840done
5841
5842# Sometimes the tools are distributed with libiberty but with no other
5843# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 5844# Don't let libgcc imply libiberty either.
9e07f89d 5845if test -n "${target_configdirs}" ; then
f86e35b8 5846 libgcc=
9e07f89d
NN
5847 others=
5848 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
5849 if test "$i" = "libgcc"; then
5850 libgcc=target-libgcc
5851 elif test "$i" != "libiberty" ; then
9e07f89d
NN
5852 if test -r $srcdir/$i/configure ; then
5853 others=yes;
5854 break;
5855 fi
5856 fi
5857 done
5858 if test -z "${others}" ; then
f86e35b8 5859 target_configdirs=$libgcc
9e07f89d
NN
5860 fi
5861fi
5862
5863# Quietly strip out all directories which aren't configurable in this tree.
5864# This relies on all configurable subdirectories being autoconfiscated, which
5865# is now the case.
6a9cf61e
PB
5866build_configdirs_all="$build_configdirs"
5867build_configdirs=
5868for i in ${build_configdirs_all} ; do
c6b750e1 5869 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
5870 if test -f ${srcdir}/$j/configure ; then
5871 build_configdirs="${build_configdirs} $i"
5872 fi
5873done
5874
9e07f89d
NN
5875configdirs_all="$configdirs"
5876configdirs=
5877for i in ${configdirs_all} ; do
5878 if test -f ${srcdir}/$i/configure ; then
5879 configdirs="${configdirs} $i"
5880 fi
5881done
6a9cf61e 5882
9e07f89d
NN
5883target_configdirs_all="$target_configdirs"
5884target_configdirs=
5885for i in ${target_configdirs_all} ; do
c6b750e1 5886 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
5887 if test -f ${srcdir}/$j/configure ; then
5888 target_configdirs="${target_configdirs} $i"
5889 fi
5890done
5891
5892# Produce a warning message for the subdirs we can't configure.
5893# This isn't especially interesting in the Cygnus tree, but in the individual
5894# FSF releases, it's important to let people know when their machine isn't
5895# supported by the one or two programs in a package.
5896
5897if test -n "${notsupp}" && test -z "${norecursion}" ; then
5898 # If $appdirs is non-empty, at least one of those directories must still
5899 # be configured, or we error out. (E.g., if the gas release supports a
5900 # specified target in some subdirs but not the gas subdir, we shouldn't
5901 # pretend that all is well.)
5902 if test -n "$appdirs" ; then
5903 for dir in $appdirs ; do
5904 if test -r $dir/Makefile.in ; then
5905 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
5906 appdirs=""
5907 break
5908 fi
6a9cf61e 5909 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
5910 appdirs=""
5911 break
5912 fi
5913 fi
5914 done
5915 if test -n "$appdirs" ; then
5916 echo "*** This configuration is not supported by this package." 1>&2
5917 exit 1
5918 fi
5919 fi
5920 # Okay, some application will build, or we don't care to check. Still
5921 # notify of subdirs not getting built.
5922 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
5923 echo " ${notsupp}" 1>&2
5924 echo " (Any other directories should still work fine.)" 1>&2
5925fi
5926
5927case "$host" in
5928 *msdosdjgpp*)
5929 enable_gdbtk=no ;;
5930esac
5931
18f6b6ee
PB
5932# To find our prefix, in gcc_cv_tool_prefix.
5933
5934# The user is always right.
5935if test "${PATH_SEPARATOR+set}" != set; then
5936 echo "#! /bin/sh" >conf$$.sh
5937 echo "exit 0" >>conf$$.sh
5938 chmod +x conf$$.sh
5939 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5940 PATH_SEPARATOR=';'
5941 else
5942 PATH_SEPARATOR=:
5943 fi
5944 rm -f conf$$.sh
5945fi
5946
5947
5948
5949if test "x$exec_prefix" = xNONE; then
5950 if test "x$prefix" = xNONE; then
5951 gcc_cv_tool_prefix=$ac_default_prefix
5952 else
5953 gcc_cv_tool_prefix=$prefix
5954 fi
5955else
5956 gcc_cv_tool_prefix=$exec_prefix
5957fi
5958
5959# If there is no compiler in the tree, use the PATH only. In any
5960# case, if there is no compiler in the tree nobody should use
5961# AS_FOR_TARGET and LD_FOR_TARGET.
5962if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
5963 gcc_version=`cat $srcdir/gcc/BASE-VER`
5964 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5965 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
5966 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5967 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
5968 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
5969 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
5970else
5971 gcc_cv_tool_dirs=
5972fi
5973
5974if test x$build = x$target && test -n "$md_exec_prefix"; then
5975 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
5976fi
5977
5978
5979
9e07f89d
NN
5980copy_dirs=
5981
c6b750e1 5982
81ecdfbb
RW
5983# Check whether --with-build-sysroot was given.
5984if test "${with_build_sysroot+set}" = set; then :
5985 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
5986 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
5987 fi
5988else
5989 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 5990fi
a19b6204
MM
5991
5992
8a6ee3ab 5993
81ecdfbb
RW
5994
5995# Check whether --with-debug-prefix-map was given.
5996if test "${with_debug_prefix_map+set}" = set; then :
5997 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
5998 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5999 for debug_map in $withval; do
6000 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6001 done
6002 fi
6003else
6004 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6005fi
6006
8a6ee3ab
JM
6007
6008
7f6ef0c0
PB
6009# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6010# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6011# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6012# We want to ensure that TARGET libraries (which we know are built with
6013# gcc) are built with "-O2 -g", so include those options when setting
6014# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6015if test "x$CFLAGS_FOR_TARGET" = x; then
6016 CFLAGS_FOR_TARGET=$CFLAGS
6017 case " $CFLAGS " in
6018 *" -O2 "*) ;;
6019 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6020 esac
6021 case " $CFLAGS " in
6022 *" -g "* | *" -g3 "*) ;;
6023 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6024 esac
6025fi
6026
6027
6028if test "x$CXXFLAGS_FOR_TARGET" = x; then
6029 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6030 case " $CXXFLAGS " in
6031 *" -O2 "*) ;;
6032 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6033 esac
6034 case " $CXXFLAGS " in
6035 *" -g "* | *" -g3 "*) ;;
6036 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6037 esac
6038fi
6039
6040
9e07f89d
NN
6041# Handle --with-headers=XXX. If the value is not "yes", the contents of
6042# the named directory are copied to $(tooldir)/sys-include.
6043if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6044 if test x${is_cross_compiler} = xno ; then
6045 echo 1>&2 '***' --with-headers is only supported when cross compiling
6046 exit 1
6047 fi
6048 if test x"${with_headers}" != xyes ; then
18f6b6ee 6049 x=${gcc_cv_tool_prefix}
c6b750e1 6050 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6051 fi
6052fi
6053
6054# Handle --with-libs=XXX. If the value is not "yes", the contents of
6055# the name directories are copied to $(tooldir)/lib. Multiple directories
6056# are permitted.
6057if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6058 if test x${is_cross_compiler} = xno ; then
6059 echo 1>&2 '***' --with-libs is only supported when cross compiling
6060 exit 1
6061 fi
6062 if test x"${with_libs}" != xyes ; then
6063 # Copy the libraries in reverse order, so that files in the first named
6064 # library override files in subsequent libraries.
18f6b6ee 6065 x=${gcc_cv_tool_prefix}
9e07f89d 6066 for l in ${with_libs}; do
c6b750e1 6067 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6068 done
6069 fi
6070fi
6071
2429c060
PB
6072# Set with_gnu_as and with_gnu_ld as appropriate.
6073#
6074# This is done by determining whether or not the appropriate directory
6075# is available, and by checking whether or not specific configurations
6076# have requested that this magic not happen.
c6b750e1
DJ
6077#
6078# The command line options always override the explicit settings in
2429c060
PB
6079# configure.in, and the settings in configure.in override this magic.
6080#
c6b750e1 6081# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060
PB
6082# want to do that, then you should use the --without-gnu-as and
6083# --without-gnu-ld options for the configure script.
6084
6085if test x${use_gnu_as} = x &&
6086 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6087 with_gnu_as=yes
6088 extra_host_args="$extra_host_args --with-gnu-as"
6089fi
6090
6091if test x${use_gnu_ld} = x &&
93f9b408 6092 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6093 with_gnu_ld=yes
6094 extra_host_args="$extra_host_args --with-gnu-ld"
6095fi
6096
6097# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6098# can detect this case.
6099
6100if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6101 with_newlib=yes
6102 extra_host_args="$extra_host_args --with-newlib"
6103fi
6104
9e07f89d
NN
6105# Handle ${copy_dirs}
6106set fnord ${copy_dirs}
6107shift
6108while test $# != 0 ; do
6109 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6110 :
6111 else
6112 echo Copying $1 to $2
6113
6114 # Use the install script to create the directory and all required
6115 # parent directories.
6116 if test -d $2 ; then
6117 :
6118 else
6119 echo >config.temp
6120 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6121 fi
6122
6123 # Copy the directory, assuming we have tar.
6124 # FIXME: Should we use B in the second tar? Not all systems support it.
6125 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6126
6127 # It is the responsibility of the user to correctly adjust all
6128 # symlinks. If somebody can figure out how to handle them correctly
6129 # here, feel free to add the code.
6130
6131 echo $1 > $2/COPIED
6132 fi
6133 shift; shift
6134done
6135
2429c060
PB
6136# Determine a target-dependent exec_prefix that the installed
6137# gcc will search in. Keep this list sorted by triplet, with
6138# the *-*-osname triplets last.
6139md_exec_prefix=
6140case "${target}" in
6141 alpha*-*-*vms*)
6142 md_exec_prefix=/gnu/lib/gcc-lib
6143 ;;
521ec477 6144 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6145 md_exec_prefix=/dev/env/DJDIR/bin
6146 ;;
521ec477 6147 i[34567]86-*-sco3.2v5*)
2429c060
PB
6148 if test $with_gnu_as = yes; then
6149 md_exec_prefix=/usr/gnu/bin
6150 else
6151 md_exec_prefix=/usr/ccs/bin/elf
6152 fi
6153 ;;
6154
6155 mn10300-*-* | \
6156 powerpc-*-chorusos* | \
6157 powerpc*-*-eabi* | \
6158 powerpc*-*-sysv* | \
6159 powerpc*-*-kaos* | \
6160 s390x-ibm-tpf*)
6161 md_exec_prefix=/usr/ccs/bin
6162 ;;
6163 sparc64-*-elf*)
6164 ;;
6165 v850*-*-*)
6166 md_exec_prefix=/usr/ccs/bin
6167 ;;
8b66833e 6168 xtensa*-*-elf*)
2429c060
PB
6169 ;;
6170
6171 *-*-beos* | \
6172 *-*-elf* | \
6173 *-*-hpux* | \
6174 *-*-netware* | \
6175 *-*-nto-qnx* | \
6176 *-*-rtems* | \
6177 *-*-solaris2* | \
521ec477 6178 *-*-sysv[45]* | \
2429c060
PB
6179 *-*-vxworks* | \
6180 *-wrs-windiss)
6181 md_exec_prefix=/usr/ccs/bin
6182 ;;
6183esac
6184
a0da8069
NN
6185extra_arflags_for_target=
6186extra_nmflags_for_target=
6187extra_ranlibflags_for_target=
6188target_makefile_frag=/dev/null
6189case "${target}" in
4e206d7e
DB
6190 mep*-*-*)
6191 target_makefile_frag="config/mt-mep"
6192 ;;
77d7106f
AM
6193 spu-*-*)
6194 target_makefile_frag="config/mt-spu"
6195 ;;
429acdec
RS
6196 mips*-sde-elf*)
6197 target_makefile_frag="config/mt-sde"
6198 ;;
f3b1e08e
RS
6199 mipsisa*-*-elfoabi*)
6200 target_makefile_frag="config/mt-mips-elfoabi"
6201 ;;
e7c8859c
RS
6202 mips*-*-*linux* | mips*-*-gnu*)
6203 target_makefile_frag="config/mt-mips-gnu"
6204 ;;
2a3124ca 6205 *-*-netware*)
a0da8069
NN
6206 target_makefile_frag="config/mt-netware"
6207 ;;
29383458 6208 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6209 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6210 ;;
6211 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6212 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6213 # commands to handle both 32-bit and 64-bit objects. These flags are
6214 # harmless if we're using GNU nm or ar.
6215 extra_arflags_for_target=" -X32_64"
6216 extra_nmflags_for_target=" -B -X32_64"
6217 ;;
6218 *-*-darwin*)
6219 # ranlib from Darwin requires the -c flag to look at common symbols.
6220 extra_ranlibflags_for_target=" -c"
6221 ;;
6222 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6223 target_makefile_frag="config/mt-wince"
6224 ;;
6225esac
6226
6227alphaieee_frag=/dev/null
6228case $target in
6229 alpha*-*-*)
6230 # This just makes sure to use the -mieee option to build target libs.
6231 # This should probably be set individually by each library.
6232 alphaieee_frag="config/mt-alphaieee"
6233 ;;
6234esac
6235
6236# If --enable-target-optspace always use -Os instead of -O2 to build
6237# the target libraries, similarly if it is not specified, use -Os
6238# on selected platforms.
6239ospace_frag=/dev/null
6240case "${enable_target_optspace}:${target}" in
6241 yes:*)
6242 ospace_frag="config/mt-ospace"
6243 ;;
6244 :d30v-*)
6245 ospace_frag="config/mt-d30v"
6246 ;;
6247 :m32r-* | :d10v-* | :fr30-*)
6248 ospace_frag="config/mt-ospace"
6249 ;;
6250 no:* | :*)
6251 ;;
6252 *)
6253 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6254 ;;
6255esac
6256
a0da8069
NN
6257# Default to using --with-stabs for certain targets.
6258if test x${with_stabs} = x ; then
6259 case "${target}" in
e31d1ea3 6260 mips*-*-irix[56]*)
a0da8069
NN
6261 ;;
6262 mips*-*-* | alpha*-*-osf*)
6263 with_stabs=yes;
6264 extra_host_args="${extra_host_args} --with-stabs"
6265 ;;
6266 esac
6267fi
6268
6269# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6270# them automatically.
6271case "${host}" in
c6b750e1 6272 hppa*64*-*-hpux11*)
a0da8069
NN
6273 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6274 ;;
6275esac
6276
a0da8069
NN
6277# Some systems (e.g., one of the i386-aix systems the gas testers are
6278# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6279tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6280build_tooldir=${tooldir}
6281
a0da8069
NN
6282# Create a .gdbinit file which runs the one in srcdir
6283# and tells GDB to look there for source files.
6284
6285if test -r ${srcdir}/.gdbinit ; then
6286 case ${srcdir} in
6287 .) ;;
6288 *) cat > ./.gdbinit <<EOF
6289# ${NO_EDIT}
6290dir ${srcdir}
6291dir .
6292source ${srcdir}/.gdbinit
6293EOF
6294 ;;
6295 esac
6296fi
6297
a0da8069
NN
6298# Make sure that the compiler is able to generate an executable. If it
6299# can't, we are probably in trouble. We don't care whether we can run the
6300# executable--we might be using a cross compiler--we only care whether it
6301# can be created. At this point the main configure script has set CC.
6302we_are_ok=no
6303echo "int main () { return 0; }" > conftest.c
6304${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6305if test $? = 0 ; then
6306 if test -s conftest || test -s conftest.exe ; then
6307 we_are_ok=yes
6308 fi
c6b750e1 6309fi
a0da8069
NN
6310case $we_are_ok in
6311 no)
6312 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6313 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6314 rm -f conftest*
6315 exit 1
6316 ;;
6317esac
6318rm -f conftest*
6319
6320# The Solaris /usr/ucb/cc compiler does not appear to work.
6321case "${host}" in
6322 sparc-sun-solaris2*)
6323 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6324 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6325 could_use=
6326 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6327 if test -d /opt/cygnus/bin ; then
6328 if test "$could_use" = "" ; then
6329 could_use="/opt/cygnus/bin"
6330 else
6331 could_use="$could_use or /opt/cygnus/bin"
6332 fi
6333 fi
6334 if test "$could_use" = "" ; then
6335 echo "Warning: compilation may fail because you're using"
6336 echo "/usr/ucb/cc. You should change your PATH or CC "
6337 echo "variable and rerun configure."
6338 else
6339 echo "Warning: compilation may fail because you're using"
6340 echo "/usr/ucb/cc, when you should use the C compiler from"
6341 echo "$could_use. You should change your"
6342 echo "PATH or CC variable and rerun configure."
6343 fi
6344 fi
6345 ;;
6346esac
6347
3bbd2f8f 6348# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6349case "${host}" in
6350 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 6351 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6352 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6353 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6354esac
6355
3bbd2f8f 6356# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6357# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6358# built executables to PATH.
3bbd2f8f
AL
6359if test "$RPATH_ENVVAR" = PATH; then
6360 GCC_SHLIB_SUBDIR=/shlib
6361else
6362 GCC_SHLIB_SUBDIR=
6363fi
6364
a0da8069
NN
6365# Record target_configdirs and the configure arguments for target and
6366# build configuration in Makefile.
6367target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6368build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6369
a0da8069
NN
6370# Determine whether gdb needs tk/tcl or not.
6371# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6372# and in that case we want gdb to be built without tk. Ugh!
6373# In fact I believe gdb is the *only* package directly dependent on tk,
6374# so we should be able to put the 'maybe's in unconditionally and
6375# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6376# 100% sure that that's safe though.
c180f501 6377
675c6968 6378gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6379case "$enable_gdbtk" in
6380 no)
6381 GDB_TK="" ;;
c180f501
AC
6382 yes)
6383 GDB_TK="${gdb_tk}" ;;
a0da8069 6384 *)
c180f501
AC
6385 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6386 # distro. Eventually someone will fix this and move Insight, nee
6387 # gdbtk to a separate directory.
6388 if test -d ${srcdir}/gdb/gdbtk ; then
6389 GDB_TK="${gdb_tk}"
6390 else
6391 GDB_TK=""
6392 fi
6393 ;;
a0da8069 6394esac
907be67c
DJ
6395CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6396INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6397
6bd3dfaa 6398# Strip out unwanted targets.
dd12c3a8
NN
6399
6400# While at that, we remove Makefiles if we were started for recursive
6401# configuration, so that the top-level Makefile reconfigures them,
6402# like we used to do when configure itself was recursive.
dd12c3a8 6403
6bd3dfaa
PB
6404# Loop over modules. $extrasub must be used with care, limiting as
6405# much as possible the usage of range addresses. That's because autoconf
6406# splits the sed script to overcome limits in the number of commands,
6407# and relying on carefully-timed sed passes may turn out to be very hard
6408# to maintain later. In this particular case, you just have to be careful
6409# not to nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6410
81ecdfbb
RW
6411# Check whether --enable-bootstrap was given.
6412if test "${enable_bootstrap+set}" = set; then :
6413 enableval=$enable_bootstrap;
319cab08 6414else
9cb3fa6f 6415 enable_bootstrap=default
81ecdfbb
RW
6416fi
6417
319cab08 6418
9cb3fa6f
PB
6419# Issue errors and warnings for invalid/strange bootstrap combinations.
6420case "$configdirs" in
6421 *gcc*) have_compiler=yes ;;
6422 *) have_compiler=no ;;
6423esac
6424
6425case "$have_compiler:$host:$target:$enable_bootstrap" in
6426 *:*:*:no) ;;
6427
0aed8855 6428 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
6429 # and we are in a native configuration.
6430 yes:$build:$build:default)
0aed8855 6431 enable_bootstrap=yes ;;
9cb3fa6f
PB
6432
6433 *:*:*:default)
6434 enable_bootstrap=no ;;
6435
6436 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 6437 yes:$build:$build:yes)
9cb3fa6f
PB
6438 ;;
6439
6440 # Other configurations, but we have a compiler. Assume the user knows
6441 # what he's doing.
80911fe1 6442 yes:*:*:yes)
81ecdfbb
RW
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6444$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
6445 ;;
6446
6447 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 6448 no:*:*:yes)
81ecdfbb 6449 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
6450
6451 # Fail if wrong command line
6452 *)
81ecdfbb 6453 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
6454 ;;
6455esac
6456
6457# Adjust the toplevel makefile according to whether bootstrap was selected.
319cab08
PB
6458case "$enable_bootstrap" in
6459 yes)
498d4a71 6460 bootstrap_suffix=bootstrap ;;
319cab08 6461 no)
498d4a71 6462 bootstrap_suffix=no-bootstrap ;;
319cab08
PB
6463esac
6464
6a9cf61e 6465for module in ${build_configdirs} ; do
498d4a71
CF
6466 if test -z "${no_recursion}" \
6467 && test -f ${build_subdir}/${module}/Makefile; then
6468 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6469 rm -f ${build_subdir}/${module}/Makefile
6470 fi
6471 extrasub="$extrasub
6472/^@if build-$module\$/d
6473/^@endif build-$module\$/d
6474/^@if build-$module-$bootstrap_suffix\$/d
6475/^@endif build-$module-$bootstrap_suffix\$/d"
6476done
6477for module in ${configdirs} ; do
80911fe1 6478 if test -z "${no_recursion}"; then
8cf39b1b 6479 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6480 if test -f ${file}; then
6481 echo 1>&2 "*** removing ${file} to force reconfigure"
6482 rm -f ${file}
6483 fi
6484 done
498d4a71
CF
6485 fi
6486 extrasub="$extrasub
6487/^@if $module\$/d
6488/^@endif $module\$/d
6489/^@if $module-$bootstrap_suffix\$/d
6490/^@endif $module-$bootstrap_suffix\$/d"
6491done
6492for module in ${target_configdirs} ; do
6493 if test -z "${no_recursion}" \
6494 && test -f ${target_subdir}/${module}/Makefile; then
6495 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6496 rm -f ${target_subdir}/${module}/Makefile
6497 fi
e8a5fa9c
RW
6498
6499 # We only bootstrap target libraries listed in bootstrap_target_libs.
6500 case $bootstrap_target_libs in
6501 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6502 *) target_bootstrap_suffix=no-bootstrap ;;
6503 esac
6504
498d4a71
CF
6505 extrasub="$extrasub
6506/^@if target-$module\$/d
6507/^@endif target-$module\$/d
e8a5fa9c
RW
6508/^@if target-$module-$target_bootstrap_suffix\$/d
6509/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
6510done
6511
6bd3dfaa
PB
6512extrasub="$extrasub
6513/^@if /,/^@endif /d"
a0da8069
NN
6514
6515# Create the serialization dependencies. This uses a temporary file.
6516
81ecdfbb
RW
6517# Check whether --enable-serial-configure was given.
6518if test "${enable_serial_configure+set}" = set; then :
6519 enableval=$enable_serial_configure;
6520fi
e6bfb94a
AO
6521
6522
1047cb91
DD
6523case ${enable_serial_configure} in
6524 yes)
6525 enable_serial_build_configure=yes
6526 enable_serial_host_configure=yes
6527 enable_serial_target_configure=yes
6528 ;;
6529esac
6530
a0da8069
NN
6531# These force 'configure's to be done one at a time, to avoid problems
6532# with contention over a shared config.cache.
6533rm -f serdep.tmp
e6bfb94a 6534echo '# serdep.tmp' > serdep.tmp
a0da8069 6535olditem=
1047cb91 6536test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6537for item in ${build_configdirs} ; do
6538 case ${olditem} in
6539 "") ;;
e6bfb94a 6540 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6541 esac
6542 olditem=${item}
6543done
6544olditem=
1047cb91 6545test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6546for item in ${configdirs} ; do
6547 case ${olditem} in
6548 "") ;;
e6bfb94a 6549 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6550 esac
6551 olditem=${item}
6552done
6553olditem=
1047cb91 6554test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6555for item in ${target_configdirs} ; do
6556 case ${olditem} in
6557 "") ;;
e6bfb94a 6558 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6559 esac
6560 olditem=${item}
6561done
6562serialization_dependencies=serdep.tmp
6563
6564
e6bfb94a 6565# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1
DJ
6566# target, nonopt, and variable assignments. These are the ones we
6567# might not want to pass down to subconfigures. Also strip
6568# program-prefix, program-suffix, and program-transform-name, so that
6569# we can pass down a consistent program-transform-name.
6570baseargs=
6571keep_next=no
6572skip_next=no
6573eval "set -- $ac_configure_args"
18f6b6ee
PB
6574for ac_arg
6575do
c6b750e1
DJ
6576 if test X"$skip_next" = X"yes"; then
6577 skip_next=no
6578 continue
6579 fi
6580 if test X"$keep_next" = X"yes"; then
6581 case $ac_arg in
6582 *\'*)
6583 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6584 esac
6585 baseargs="$baseargs '$ac_arg'"
6586 keep_next=no
6587 continue
6588 fi
6589
6590 # Handle separated arguments. Based on the logic generated by
6591 # autoconf 2.59.
6592 case $ac_arg in
6593 *=* | --config-cache | -C | -disable-* | --disable-* \
6594 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6595 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6596 | -with-* | --with-* | -without-* | --without-* | --x)
6597 separate_arg=no
6598 ;;
6599 -*)
6600 separate_arg=yes
6601 ;;
6602 *)
6603 separate_arg=no
6604 ;;
6605 esac
6606
6607 case "$ac_arg" in
6608 --no*)
6609 continue
6610 ;;
6611 --c* | \
6612 --sr* | \
6613 --ho* | \
6614 --bu* | \
6615 --t* | \
6616 --program-* | \
6617 -cache_file* | \
6618 -srcdir* | \
6619 -host* | \
6620 -build* | \
6621 -target* | \
6622 -program-prefix* | \
6623 -program-suffix* | \
6624 -program-transform-name* )
6625 skip_next=$separate_arg
6626 continue
6627 ;;
6628 -*)
6629 # An option. Add it.
6630 case $ac_arg in
6631 *\'*)
6632 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6633 esac
6634 baseargs="$baseargs '$ac_arg'"
6635 keep_next=$separate_arg
6636 ;;
6637 *)
6638 # Either a variable assignment, or a nonopt (triplet). Don't
6639 # pass it down; let the Makefile handle this.
6640 continue
6641 ;;
6642 esac
6643done
6644# Remove the initial space we just introduced and, as these will be
6645# expanded by make, quote '$'.
6646baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 6647
f27d4f92
DJ
6648# Add in --program-transform-name, after --program-prefix and
6649# --program-suffix have been applied to it. Autoconf has already
6650# doubled dollar signs and backslashes in program_transform_name; we want
6651# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 6652# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
6653# Also, because we want to override the logic in subdir configure scripts to
6654# choose program_transform_name, replace any s,x,x, with s,y,y,.
6655sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
6656${program_transform_name}
6657EOF_SED
6658gcc_transform_name=`cat conftestsed.out`
6659rm -f conftestsed.out
6660baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
6661if test "$silent" = yes; then
6662 baseargs="$baseargs --silent"
6663fi
34a0f3cf 6664baseargs="$baseargs --disable-option-checking"
f27d4f92 6665
a0da8069
NN
6666# For the build-side libraries, we just need to pretend we're native,
6667# and not use the same cache file. Multilibs are neither needed nor
6668# desired.
4b900473 6669build_configargs="--cache-file=../config.cache ${baseargs}"
a0da8069
NN
6670
6671# For host modules, accept cache file option, or specification as blank.
6672case "${cache_file}" in
6673"") # empty
6674 cache_file_option="" ;;
6675/* | [A-Za-z]:[\\/]* ) # absolute path
6676 cache_file_option="--cache-file=${cache_file}" ;;
6677*) # relative path
6678 cache_file_option="--cache-file=../${cache_file}" ;;
6679esac
6680
82252c06
NN
6681# Host dirs don't like to share a cache file either, horribly enough.
6682# This seems to be due to autoconf 2.5x stupidity.
4b900473 6683host_configargs="--cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069
NN
6684
6685target_configargs=${baseargs}
6686
6687# Passing a --with-cross-host argument lets the target libraries know
6688# whether they are being built with a cross-compiler or being built
6689# native. However, it would be better to use other mechanisms to make the
6690# sorts of decisions they want to make on this basis. Please consider
6691# this option to be deprecated. FIXME.
6692if test x${is_cross_compiler} = xyes ; then
c6b750e1 6693 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
6694fi
6695
6696# Default to --enable-multilib.
6697if test x${enable_multilib} = x ; then
6698 target_configargs="--enable-multilib ${target_configargs}"
6699fi
6700
6701# Pass --with-newlib if appropriate. Note that target_configdirs has
6702# changed from the earlier setting of with_newlib.
6703if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
6704 target_configargs="--with-newlib ${target_configargs}"
6705fi
6706
95036d20
NN
6707# Different target subdirs use different values of certain variables
6708# (notably CXX). Worse, multilibs use *lots* of different values.
6709# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
6710# it doesn't automatically accept command-line overrides of them.
6711# This means it's not safe for target subdirs to share a cache file,
6712# which is disgusting, but there you have it. Hopefully this can be
6713# fixed in future. It's still worthwhile to use a cache file for each
6714# directory. I think.
6715
ae380b45
MS
6716# Pass the appropriate --build, --host, --target and --cache-file arguments.
6717# We need to pass --target, as newer autoconf's requires consistency
6718# for target_alias and gcc doesn't manage it consistently.
4b900473 6719target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 6720
a0da8069
NN
6721FLAGS_FOR_TARGET=
6722case " $target_configdirs " in
6723 *" newlib "*)
6724 case " $target_configargs " in
6725 *" --with-newlib "*)
6726 case "$target" in
6727 *-cygwin*)
564b43e5 6728 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
6729 esac
6730
6731 # If we're not building GCC, don't discard standard headers.
6732 if test -d ${srcdir}/gcc; then
6733 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
6734
6735 if test "${build}" != "${host}"; then
6736 # On Canadian crosses, CC_FOR_TARGET will have already been set
6737 # by `configure', so we won't have an opportunity to add -Bgcc/
6738 # to it. This is right: we don't want to search that directory
6739 # for binaries, but we want the header files in there, so add
6740 # them explicitly.
b00612cc 6741 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
6742
6743 # Someone might think of using the pre-installed headers on
6744 # Canadian crosses, in case the installed compiler is not fully
6745 # compatible with the compiler being built. In this case, it
6746 # would be better to flag an error than risking having
6747 # incompatible object files being constructed. We can't
6748 # guarantee that an error will be flagged, but let's hope the
6749 # compiler will do it, when presented with incompatible header
6750 # files.
6751 fi
6752 fi
6753
6754 case "${target}-${is_cross_compiler}" in
ec11bdc6 6755 i[3456789]86-*-linux*-no)
a0da8069
NN
6756 # Here host == target, so we don't need to build gcc,
6757 # so we don't want to discard standard headers.
6758 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
6759 ;;
6760 *)
6761 # If we're building newlib, use its generic headers last, but search
6762 # for any libc-related directories first (so make it the last -B
6763 # switch).
6764 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
6765
6766 # If we're building libgloss, find the startup file, simulator library
6767 # and linker script.
6768 case " $target_configdirs " in
6769 *" libgloss "*)
6770 # Look for startup file, simulator library and maybe linker script.
6771 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
6772 # Look for libnosys.a in case the target needs it.
6773 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
6774 # Most targets have the linker script in the source directory.
6775 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
6776 ;;
6777 esac
a0da8069
NN
6778 ;;
6779 esac
6780 ;;
6781 esac
6782 ;;
6783esac
45055374
CV
6784case "$target" in
6785*-mingw*)
6786 # Can't be handled as Cygwin above since Mingw does not use newlib.
6787 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' ;;
6788esac
a0da8069 6789
5fbad20a
DD
6790# Allow the user to override the flags for
6791# our build compiler if desired.
c66487f8
NC
6792if test x"${build}" = x"${host}" ; then
6793 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
6794 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
6795 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
6796fi
5fbad20a 6797
a0da8069
NN
6798# On Canadian crosses, we'll be searching the right directories for
6799# the previously-installed cross compiler, so don't bother to add
6800# flags for directories within the install tree of the compiler
6801# being built; programs in there won't even run.
6802if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
6803 # Search for pre-installed headers if nothing else fits.
bba45b8b 6804 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
6805fi
6806
6807if test "x${use_gnu_ld}" = x &&
6808 echo " ${configdirs} " | grep " ld " > /dev/null ; then
6809 # Arrange for us to find uninstalled linker scripts.
b00612cc 6810 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
6811fi
6812
a481dbb7
DD
6813# Search for other target-specific linker scripts and such.
6814case "${target}" in
4e206d7e
DB
6815 mep*)
6816 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
6817 ;;
6818esac
6819
a0da8069 6820# Makefile fragments.
3e707e94
PB
6821for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
6822do
6823 eval fragval=\$$frag
6824 if test $fragval != /dev/null; then
6825 eval $frag=${srcdir}/$fragval
6826 fi
6827done
a0da8069
NN
6828
6829
6830
6831
6832
6833# Miscellanea: directories, flags, etc.
6834
6835
6836
6837
6838
6839
6840
3bbd2f8f 6841
6a9cf61e 6842# Build module lists & subconfigure args.
a0da8069
NN
6843
6844
6845
be01d343
PB
6846# Host module lists & subconfigure args.
6847
6848
6849
6850# Target module lists & subconfigure args.
6851
6852
6853
6854# Build tools.
6855
6856
6857
1576798e
PB
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
be01d343
PB
6872# Generate default definitions for YACC, M4, LEX and other programs that run
6873# on the build machine. These are used if the Makefile can't locate these
6874# programs in objdir.
6875MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
6876
6877for ac_prog in 'bison -y' byacc yacc
6878do
c6b750e1 6879 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6880set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882$as_echo_n "checking for $ac_word... " >&6; }
6883if test "${ac_cv_prog_YACC+set}" = set; then :
6884 $as_echo_n "(cached) " >&6
be01d343
PB
6885else
6886 if test -n "$YACC"; then
6887 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6888else
c6b750e1
DJ
6889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890for as_dir in $PATH
6891do
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 6896 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
6898 break 2
6899 fi
6900done
81ecdfbb
RW
6901 done
6902IFS=$as_save_IFS
c6b750e1 6903
be01d343
PB
6904fi
6905fi
c6b750e1 6906YACC=$ac_cv_prog_YACC
be01d343 6907if test -n "$YACC"; then
81ecdfbb
RW
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
6909$as_echo "$YACC" >&6; }
be01d343 6910else
81ecdfbb
RW
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912$as_echo "no" >&6; }
be01d343
PB
6913fi
6914
81ecdfbb 6915
c6b750e1 6916 test -n "$YACC" && break
be01d343
PB
6917done
6918test -n "$YACC" || YACC="$MISSING bison -y"
6919
6920case " $build_configdirs " in
6921 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
6922 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
6923esac
6924
6925for ac_prog in bison
6926do
c6b750e1 6927 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6928set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930$as_echo_n "checking for $ac_word... " >&6; }
6931if test "${ac_cv_prog_BISON+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
be01d343
PB
6933else
6934 if test -n "$BISON"; then
6935 ac_cv_prog_BISON="$BISON" # Let the user override the test.
6936else
c6b750e1
DJ
6937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938for as_dir in $PATH
6939do
6940 IFS=$as_save_IFS
6941 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 6944 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 6945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
6946 break 2
6947 fi
6948done
81ecdfbb
RW
6949 done
6950IFS=$as_save_IFS
c6b750e1 6951
be01d343
PB
6952fi
6953fi
c6b750e1 6954BISON=$ac_cv_prog_BISON
be01d343 6955if test -n "$BISON"; then
81ecdfbb
RW
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
6957$as_echo "$BISON" >&6; }
be01d343 6958else
81ecdfbb
RW
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960$as_echo "no" >&6; }
be01d343
PB
6961fi
6962
81ecdfbb 6963
c6b750e1 6964 test -n "$BISON" && break
be01d343
PB
6965done
6966test -n "$BISON" || BISON="$MISSING bison"
6967
6968case " $build_configdirs " in
6969 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
6970esac
6971
6972for ac_prog in gm4 gnum4 m4
6973do
c6b750e1 6974 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 6975set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
6976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977$as_echo_n "checking for $ac_word... " >&6; }
6978if test "${ac_cv_prog_M4+set}" = set; then :
6979 $as_echo_n "(cached) " >&6
be01d343
PB
6980else
6981 if test -n "$M4"; then
6982 ac_cv_prog_M4="$M4" # Let the user override the test.
6983else
c6b750e1
DJ
6984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985for as_dir in $PATH
6986do
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 6991 ac_cv_prog_M4="$ac_prog"
81ecdfbb 6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
6993 break 2
6994 fi
6995done
81ecdfbb
RW
6996 done
6997IFS=$as_save_IFS
c6b750e1 6998
be01d343
PB
6999fi
7000fi
c6b750e1 7001M4=$ac_cv_prog_M4
be01d343 7002if test -n "$M4"; then
81ecdfbb
RW
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7004$as_echo "$M4" >&6; }
be01d343 7005else
81ecdfbb
RW
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007$as_echo "no" >&6; }
be01d343
PB
7008fi
7009
81ecdfbb 7010
c6b750e1 7011 test -n "$M4" && break
be01d343
PB
7012done
7013test -n "$M4" || M4="$MISSING m4"
7014
7015case " $build_configdirs " in
7016 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7017esac
7018
7019for ac_prog in flex lex
7020do
c6b750e1 7021 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7022set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7024$as_echo_n "checking for $ac_word... " >&6; }
7025if test "${ac_cv_prog_LEX+set}" = set; then :
7026 $as_echo_n "(cached) " >&6
be01d343
PB
7027else
7028 if test -n "$LEX"; then
7029 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7030else
c6b750e1
DJ
7031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032for as_dir in $PATH
7033do
7034 IFS=$as_save_IFS
7035 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7038 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7040 break 2
7041 fi
7042done
81ecdfbb
RW
7043 done
7044IFS=$as_save_IFS
c6b750e1 7045
be01d343
PB
7046fi
7047fi
c6b750e1 7048LEX=$ac_cv_prog_LEX
be01d343 7049if test -n "$LEX"; then
81ecdfbb
RW
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7051$as_echo "$LEX" >&6; }
be01d343 7052else
81ecdfbb
RW
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7054$as_echo "no" >&6; }
be01d343
PB
7055fi
7056
81ecdfbb 7057
c6b750e1 7058 test -n "$LEX" && break
be01d343
PB
7059done
7060test -n "$LEX" || LEX="$MISSING flex"
7061
7062case " $build_configdirs " in
7063 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7064 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7065esac
7066
7067for ac_prog in flex
7068do
c6b750e1 7069 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7070set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072$as_echo_n "checking for $ac_word... " >&6; }
7073if test "${ac_cv_prog_FLEX+set}" = set; then :
7074 $as_echo_n "(cached) " >&6
be01d343
PB
7075else
7076 if test -n "$FLEX"; then
7077 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7078else
c6b750e1
DJ
7079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080for as_dir in $PATH
7081do
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7086 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7088 break 2
7089 fi
7090done
81ecdfbb
RW
7091 done
7092IFS=$as_save_IFS
c6b750e1 7093
be01d343
PB
7094fi
7095fi
c6b750e1 7096FLEX=$ac_cv_prog_FLEX
be01d343 7097if test -n "$FLEX"; then
81ecdfbb
RW
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7099$as_echo "$FLEX" >&6; }
be01d343 7100else
81ecdfbb
RW
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102$as_echo "no" >&6; }
be01d343
PB
7103fi
7104
81ecdfbb 7105
c6b750e1 7106 test -n "$FLEX" && break
be01d343
PB
7107done
7108test -n "$FLEX" || FLEX="$MISSING flex"
7109
7110case " $build_configdirs " in
7111 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7112esac
7113
7114for ac_prog in makeinfo
7115do
c6b750e1 7116 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7117set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119$as_echo_n "checking for $ac_word... " >&6; }
7120if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7121 $as_echo_n "(cached) " >&6
be01d343
PB
7122else
7123 if test -n "$MAKEINFO"; then
7124 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7125else
c6b750e1
DJ
7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129 IFS=$as_save_IFS
7130 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7131 for ac_exec_ext in '' $ac_executable_extensions; do
7132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7133 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7135 break 2
7136 fi
7137done
81ecdfbb
RW
7138 done
7139IFS=$as_save_IFS
c6b750e1 7140
be01d343
PB
7141fi
7142fi
c6b750e1 7143MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7144if test -n "$MAKEINFO"; then
81ecdfbb
RW
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7146$as_echo "$MAKEINFO" >&6; }
be01d343 7147else
81ecdfbb
RW
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149$as_echo "no" >&6; }
be01d343
PB
7150fi
7151
81ecdfbb 7152
c6b750e1 7153 test -n "$MAKEINFO" && break
be01d343
PB
7154done
7155test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7156
7157case " $build_configdirs " in
7158 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7159 *)
7160
10ad8ef3 7161 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7162 # higher, else we use the "missing" dummy.
7163 if ${MAKEINFO} --version \
10ad8ef3 7164 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7165 :
7166 else
7167 MAKEINFO="$MISSING makeinfo"
7168 fi
7169 ;;
7170
7171esac
a0da8069 7172
be01d343 7173# FIXME: expect and dejagnu may become build tools?
a0da8069 7174
be01d343
PB
7175for ac_prog in expect
7176do
c6b750e1 7177 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7178set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180$as_echo_n "checking for $ac_word... " >&6; }
7181if test "${ac_cv_prog_EXPECT+set}" = set; then :
7182 $as_echo_n "(cached) " >&6
be01d343
PB
7183else
7184 if test -n "$EXPECT"; then
7185 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7186else
c6b750e1
DJ
7187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7188for as_dir in $PATH
7189do
7190 IFS=$as_save_IFS
7191 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7194 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7196 break 2
7197 fi
7198done
81ecdfbb
RW
7199 done
7200IFS=$as_save_IFS
c6b750e1 7201
be01d343
PB
7202fi
7203fi
c6b750e1 7204EXPECT=$ac_cv_prog_EXPECT
be01d343 7205if test -n "$EXPECT"; then
81ecdfbb
RW
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7207$as_echo "$EXPECT" >&6; }
be01d343 7208else
81ecdfbb
RW
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7210$as_echo "no" >&6; }
be01d343 7211fi
a0da8069 7212
81ecdfbb 7213
c6b750e1 7214 test -n "$EXPECT" && break
be01d343
PB
7215done
7216test -n "$EXPECT" || EXPECT="expect"
a0da8069 7217
be01d343
PB
7218case " $configdirs " in
7219 *" expect "*)
7220 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7221 ;;
7222esac
a0da8069 7223
be01d343
PB
7224for ac_prog in runtest
7225do
c6b750e1 7226 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7227set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229$as_echo_n "checking for $ac_word... " >&6; }
7230if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
be01d343
PB
7232else
7233 if test -n "$RUNTEST"; then
7234 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7235else
c6b750e1
DJ
7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7243 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7245 break 2
7246 fi
7247done
81ecdfbb
RW
7248 done
7249IFS=$as_save_IFS
c6b750e1 7250
be01d343
PB
7251fi
7252fi
c6b750e1 7253RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7254if test -n "$RUNTEST"; then
81ecdfbb
RW
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7256$as_echo "$RUNTEST" >&6; }
be01d343 7257else
81ecdfbb
RW
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259$as_echo "no" >&6; }
be01d343 7260fi
a0da8069 7261
81ecdfbb 7262
c6b750e1 7263 test -n "$RUNTEST" && break
be01d343
PB
7264done
7265test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7266
be01d343
PB
7267case " $configdirs " in
7268 *" dejagnu "*)
6b89cc21 7269 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7270 ;;
7271esac
a0da8069
NN
7272
7273
a0da8069 7274# Host tools.
859789af
AC
7275ncn_tool_prefix=
7276test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7277ncn_target_tool_prefix=
7278test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7279
9a819804
AO
7280
7281
7282if test -n "$AR"; then
7283 ac_cv_prog_AR=$AR
7284elif test -n "$ac_cv_prog_AR"; then
7285 AR=$ac_cv_prog_AR
7286fi
7287
7288if test -n "$ac_cv_prog_AR"; then
7289 for ncn_progname in ar; do
7290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7291set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293$as_echo_n "checking for $ac_word... " >&6; }
7294if test "${ac_cv_prog_AR+set}" = set; then :
7295 $as_echo_n "(cached) " >&6
9a819804
AO
7296else
7297 if test -n "$AR"; then
7298 ac_cv_prog_AR="$AR" # Let the user override the test.
7299else
7300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301for as_dir in $PATH
7302do
7303 IFS=$as_save_IFS
7304 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7305 for ac_exec_ext in '' $ac_executable_extensions; do
7306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7307 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7309 break 2
7310 fi
7311done
81ecdfbb
RW
7312 done
7313IFS=$as_save_IFS
9a819804
AO
7314
7315fi
7316fi
7317AR=$ac_cv_prog_AR
7318if test -n "$AR"; then
81ecdfbb
RW
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7320$as_echo "$AR" >&6; }
9a819804 7321else
81ecdfbb
RW
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323$as_echo "no" >&6; }
9a819804
AO
7324fi
7325
81ecdfbb 7326
9a819804
AO
7327 done
7328fi
7329
7330for ncn_progname in ar; do
05cbd757
PB
7331 if test -n "$ncn_tool_prefix"; then
7332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7333set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7336if test "${ac_cv_prog_AR+set}" = set; then :
7337 $as_echo_n "(cached) " >&6
859789af
AC
7338else
7339 if test -n "$AR"; then
7340 ac_cv_prog_AR="$AR" # Let the user override the test.
7341else
c6b750e1
DJ
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7349 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7351 break 2
7352 fi
7353done
81ecdfbb
RW
7354 done
7355IFS=$as_save_IFS
c6b750e1 7356
859789af
AC
7357fi
7358fi
c6b750e1 7359AR=$ac_cv_prog_AR
859789af 7360if test -n "$AR"; then
81ecdfbb
RW
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7362$as_echo "$AR" >&6; }
859789af 7363else
81ecdfbb
RW
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365$as_echo "no" >&6; }
859789af
AC
7366fi
7367
81ecdfbb 7368
05cbd757
PB
7369 fi
7370 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7372set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374$as_echo_n "checking for $ac_word... " >&6; }
7375if test "${ac_cv_prog_AR+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
859789af 7377else
05cbd757
PB
7378 if test -n "$AR"; then
7379 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 7380else
c6b750e1
DJ
7381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382for as_dir in $PATH
7383do
7384 IFS=$as_save_IFS
7385 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7386 for ac_exec_ext in '' $ac_executable_extensions; do
7387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7388 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7390 break 2
7391 fi
7392done
81ecdfbb
RW
7393 done
7394IFS=$as_save_IFS
c6b750e1 7395
859789af
AC
7396fi
7397fi
c6b750e1 7398AR=$ac_cv_prog_AR
05cbd757 7399if test -n "$AR"; then
81ecdfbb
RW
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7401$as_echo "$AR" >&6; }
859789af 7402else
81ecdfbb
RW
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7404$as_echo "no" >&6; }
859789af 7405fi
c6b750e1 7406
81ecdfbb 7407
05cbd757
PB
7408 fi
7409 test -n "$ac_cv_prog_AR" && break
7410done
7411
7412if test -z "$ac_cv_prog_AR" ; then
7413 set dummy ar
7414 if test $build = $host ; then
7415 AR="$2"
859789af 7416 else
05cbd757 7417 AR="${ncn_tool_prefix}$2"
859789af 7418 fi
859789af
AC
7419fi
7420
9a819804
AO
7421
7422
7423if test -n "$AS"; then
7424 ac_cv_prog_AS=$AS
7425elif test -n "$ac_cv_prog_AS"; then
7426 AS=$ac_cv_prog_AS
7427fi
7428
7429if test -n "$ac_cv_prog_AS"; then
7430 for ncn_progname in as; do
7431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7432set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434$as_echo_n "checking for $ac_word... " >&6; }
7435if test "${ac_cv_prog_AS+set}" = set; then :
7436 $as_echo_n "(cached) " >&6
9a819804
AO
7437else
7438 if test -n "$AS"; then
7439 ac_cv_prog_AS="$AS" # Let the user override the test.
7440else
7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7448 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7450 break 2
7451 fi
7452done
81ecdfbb
RW
7453 done
7454IFS=$as_save_IFS
9a819804
AO
7455
7456fi
7457fi
7458AS=$ac_cv_prog_AS
7459if test -n "$AS"; then
81ecdfbb
RW
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7461$as_echo "$AS" >&6; }
9a819804 7462else
81ecdfbb
RW
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464$as_echo "no" >&6; }
9a819804
AO
7465fi
7466
81ecdfbb 7467
9a819804
AO
7468 done
7469fi
7470
7471for ncn_progname in as; do
05cbd757
PB
7472 if test -n "$ncn_tool_prefix"; then
7473 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7474set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476$as_echo_n "checking for $ac_word... " >&6; }
7477if test "${ac_cv_prog_AS+set}" = set; then :
7478 $as_echo_n "(cached) " >&6
859789af
AC
7479else
7480 if test -n "$AS"; then
7481 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
7482else
7483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484for as_dir in $PATH
7485do
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7490 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7492 break 2
7493 fi
7494done
81ecdfbb
RW
7495 done
7496IFS=$as_save_IFS
c6b750e1 7497
859789af
AC
7498fi
7499fi
c6b750e1 7500AS=$ac_cv_prog_AS
859789af 7501if test -n "$AS"; then
81ecdfbb
RW
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7503$as_echo "$AS" >&6; }
859789af 7504else
81ecdfbb
RW
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506$as_echo "no" >&6; }
859789af
AC
7507fi
7508
81ecdfbb 7509
05cbd757
PB
7510 fi
7511 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7513set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515$as_echo_n "checking for $ac_word... " >&6; }
7516if test "${ac_cv_prog_AS+set}" = set; then :
7517 $as_echo_n "(cached) " >&6
859789af 7518else
05cbd757
PB
7519 if test -n "$AS"; then
7520 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 7521else
c6b750e1
DJ
7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523for as_dir in $PATH
7524do
7525 IFS=$as_save_IFS
7526 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7529 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7531 break 2
7532 fi
7533done
81ecdfbb
RW
7534 done
7535IFS=$as_save_IFS
c6b750e1 7536
859789af
AC
7537fi
7538fi
c6b750e1 7539AS=$ac_cv_prog_AS
05cbd757 7540if test -n "$AS"; then
81ecdfbb
RW
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7542$as_echo "$AS" >&6; }
859789af 7543else
81ecdfbb
RW
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545$as_echo "no" >&6; }
859789af 7546fi
c6b750e1 7547
81ecdfbb 7548
05cbd757
PB
7549 fi
7550 test -n "$ac_cv_prog_AS" && break
7551done
7552
7553if test -z "$ac_cv_prog_AS" ; then
7554 set dummy as
7555 if test $build = $host ; then
7556 AS="$2"
859789af 7557 else
05cbd757 7558 AS="${ncn_tool_prefix}$2"
859789af 7559 fi
859789af
AC
7560fi
7561
9a819804
AO
7562
7563
7564if test -n "$DLLTOOL"; then
7565 ac_cv_prog_DLLTOOL=$DLLTOOL
7566elif test -n "$ac_cv_prog_DLLTOOL"; then
7567 DLLTOOL=$ac_cv_prog_DLLTOOL
7568fi
7569
7570if test -n "$ac_cv_prog_DLLTOOL"; then
7571 for ncn_progname in dlltool; do
7572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7573set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575$as_echo_n "checking for $ac_word... " >&6; }
7576if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7577 $as_echo_n "(cached) " >&6
9a819804
AO
7578else
7579 if test -n "$DLLTOOL"; then
7580 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7581else
7582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583for as_dir in $PATH
7584do
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7587 for ac_exec_ext in '' $ac_executable_extensions; do
7588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7589 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7591 break 2
7592 fi
7593done
81ecdfbb
RW
7594 done
7595IFS=$as_save_IFS
9a819804
AO
7596
7597fi
7598fi
7599DLLTOOL=$ac_cv_prog_DLLTOOL
7600if test -n "$DLLTOOL"; then
81ecdfbb
RW
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7602$as_echo "$DLLTOOL" >&6; }
9a819804 7603else
81ecdfbb
RW
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605$as_echo "no" >&6; }
9a819804
AO
7606fi
7607
81ecdfbb 7608
9a819804
AO
7609 done
7610fi
7611
7612for ncn_progname in dlltool; do
05cbd757
PB
7613 if test -n "$ncn_tool_prefix"; then
7614 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7615set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617$as_echo_n "checking for $ac_word... " >&6; }
7618if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7619 $as_echo_n "(cached) " >&6
859789af
AC
7620else
7621 if test -n "$DLLTOOL"; then
7622 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7623else
c6b750e1
DJ
7624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625for as_dir in $PATH
7626do
7627 IFS=$as_save_IFS
7628 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7629 for ac_exec_ext in '' $ac_executable_extensions; do
7630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7631 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7633 break 2
7634 fi
7635done
81ecdfbb
RW
7636 done
7637IFS=$as_save_IFS
c6b750e1 7638
859789af
AC
7639fi
7640fi
c6b750e1 7641DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 7642if test -n "$DLLTOOL"; then
81ecdfbb
RW
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7644$as_echo "$DLLTOOL" >&6; }
859789af 7645else
81ecdfbb
RW
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647$as_echo "no" >&6; }
859789af
AC
7648fi
7649
81ecdfbb 7650
05cbd757
PB
7651 fi
7652 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
7653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7654set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656$as_echo_n "checking for $ac_word... " >&6; }
7657if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7658 $as_echo_n "(cached) " >&6
859789af 7659else
05cbd757
PB
7660 if test -n "$DLLTOOL"; then
7661 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 7662else
c6b750e1
DJ
7663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664for as_dir in $PATH
7665do
7666 IFS=$as_save_IFS
7667 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7670 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7672 break 2
7673 fi
7674done
81ecdfbb
RW
7675 done
7676IFS=$as_save_IFS
c6b750e1 7677
859789af
AC
7678fi
7679fi
c6b750e1 7680DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 7681if test -n "$DLLTOOL"; then
81ecdfbb
RW
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7683$as_echo "$DLLTOOL" >&6; }
859789af 7684else
81ecdfbb
RW
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686$as_echo "no" >&6; }
859789af 7687fi
c6b750e1 7688
81ecdfbb 7689
05cbd757
PB
7690 fi
7691 test -n "$ac_cv_prog_DLLTOOL" && break
7692done
7693
7694if test -z "$ac_cv_prog_DLLTOOL" ; then
7695 set dummy dlltool
7696 if test $build = $host ; then
7697 DLLTOOL="$2"
859789af 7698 else
05cbd757 7699 DLLTOOL="${ncn_tool_prefix}$2"
859789af 7700 fi
859789af
AC
7701fi
7702
9a819804
AO
7703
7704
7705if test -n "$LD"; then
7706 ac_cv_prog_LD=$LD
7707elif test -n "$ac_cv_prog_LD"; then
7708 LD=$ac_cv_prog_LD
7709fi
7710
7711if test -n "$ac_cv_prog_LD"; then
7712 for ncn_progname in ld; do
7713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7714set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7716$as_echo_n "checking for $ac_word... " >&6; }
7717if test "${ac_cv_prog_LD+set}" = set; then :
7718 $as_echo_n "(cached) " >&6
9a819804
AO
7719else
7720 if test -n "$LD"; then
7721 ac_cv_prog_LD="$LD" # Let the user override the test.
7722else
7723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724for as_dir in $PATH
7725do
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7730 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7732 break 2
7733 fi
7734done
81ecdfbb
RW
7735 done
7736IFS=$as_save_IFS
9a819804
AO
7737
7738fi
7739fi
7740LD=$ac_cv_prog_LD
7741if test -n "$LD"; then
81ecdfbb
RW
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7743$as_echo "$LD" >&6; }
9a819804 7744else
81ecdfbb
RW
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7746$as_echo "no" >&6; }
9a819804
AO
7747fi
7748
81ecdfbb 7749
9a819804
AO
7750 done
7751fi
7752
7753for ncn_progname in ld; do
05cbd757
PB
7754 if test -n "$ncn_tool_prefix"; then
7755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7756set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7758$as_echo_n "checking for $ac_word... " >&6; }
7759if test "${ac_cv_prog_LD+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
859789af
AC
7761else
7762 if test -n "$LD"; then
7763 ac_cv_prog_LD="$LD" # Let the user override the test.
7764else
c6b750e1
DJ
7765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766for as_dir in $PATH
7767do
7768 IFS=$as_save_IFS
7769 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7770 for ac_exec_ext in '' $ac_executable_extensions; do
7771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7772 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7774 break 2
7775 fi
7776done
81ecdfbb
RW
7777 done
7778IFS=$as_save_IFS
c6b750e1 7779
859789af
AC
7780fi
7781fi
c6b750e1 7782LD=$ac_cv_prog_LD
859789af 7783if test -n "$LD"; then
81ecdfbb
RW
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7785$as_echo "$LD" >&6; }
859789af 7786else
81ecdfbb
RW
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7788$as_echo "no" >&6; }
859789af
AC
7789fi
7790
81ecdfbb 7791
05cbd757
PB
7792 fi
7793 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
7794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7795set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797$as_echo_n "checking for $ac_word... " >&6; }
7798if test "${ac_cv_prog_LD+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
859789af 7800else
05cbd757
PB
7801 if test -n "$LD"; then
7802 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 7803else
c6b750e1
DJ
7804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805for as_dir in $PATH
7806do
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7811 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7813 break 2
7814 fi
7815done
81ecdfbb
RW
7816 done
7817IFS=$as_save_IFS
c6b750e1 7818
859789af
AC
7819fi
7820fi
c6b750e1 7821LD=$ac_cv_prog_LD
05cbd757 7822if test -n "$LD"; then
81ecdfbb
RW
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7824$as_echo "$LD" >&6; }
859789af 7825else
81ecdfbb
RW
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827$as_echo "no" >&6; }
859789af 7828fi
c6b750e1 7829
81ecdfbb 7830
05cbd757
PB
7831 fi
7832 test -n "$ac_cv_prog_LD" && break
7833done
7834
7835if test -z "$ac_cv_prog_LD" ; then
7836 set dummy ld
7837 if test $build = $host ; then
7838 LD="$2"
859789af 7839 else
05cbd757 7840 LD="${ncn_tool_prefix}$2"
859789af 7841 fi
859789af
AC
7842fi
7843
9a819804
AO
7844
7845
7846if test -n "$LIPO"; then
7847 ac_cv_prog_LIPO=$LIPO
7848elif test -n "$ac_cv_prog_LIPO"; then
7849 LIPO=$ac_cv_prog_LIPO
7850fi
7851
7852if test -n "$ac_cv_prog_LIPO"; then
7853 for ncn_progname in lipo; do
7854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7855set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7857$as_echo_n "checking for $ac_word... " >&6; }
7858if test "${ac_cv_prog_LIPO+set}" = set; then :
7859 $as_echo_n "(cached) " >&6
9a819804
AO
7860else
7861 if test -n "$LIPO"; then
7862 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7863else
7864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865for as_dir in $PATH
7866do
7867 IFS=$as_save_IFS
7868 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7871 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7873 break 2
7874 fi
7875done
81ecdfbb
RW
7876 done
7877IFS=$as_save_IFS
9a819804
AO
7878
7879fi
7880fi
7881LIPO=$ac_cv_prog_LIPO
7882if test -n "$LIPO"; then
81ecdfbb
RW
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7884$as_echo "$LIPO" >&6; }
9a819804 7885else
81ecdfbb
RW
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7887$as_echo "no" >&6; }
9a819804
AO
7888fi
7889
81ecdfbb 7890
9a819804
AO
7891 done
7892fi
7893
7894for ncn_progname in lipo; do
be01d343
PB
7895 if test -n "$ncn_tool_prefix"; then
7896 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7897set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7899$as_echo_n "checking for $ac_word... " >&6; }
7900if test "${ac_cv_prog_LIPO+set}" = set; then :
7901 $as_echo_n "(cached) " >&6
be01d343
PB
7902else
7903 if test -n "$LIPO"; then
7904 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7905else
c6b750e1
DJ
7906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907for as_dir in $PATH
7908do
7909 IFS=$as_save_IFS
7910 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7911 for ac_exec_ext in '' $ac_executable_extensions; do
7912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7913 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7915 break 2
7916 fi
7917done
81ecdfbb
RW
7918 done
7919IFS=$as_save_IFS
c6b750e1 7920
be01d343
PB
7921fi
7922fi
c6b750e1 7923LIPO=$ac_cv_prog_LIPO
be01d343 7924if test -n "$LIPO"; then
81ecdfbb
RW
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7926$as_echo "$LIPO" >&6; }
be01d343 7927else
81ecdfbb
RW
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929$as_echo "no" >&6; }
be01d343
PB
7930fi
7931
81ecdfbb 7932
be01d343
PB
7933 fi
7934 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
7935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7936set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7938$as_echo_n "checking for $ac_word... " >&6; }
7939if test "${ac_cv_prog_LIPO+set}" = set; then :
7940 $as_echo_n "(cached) " >&6
be01d343
PB
7941else
7942 if test -n "$LIPO"; then
7943 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7944else
c6b750e1
DJ
7945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7946for as_dir in $PATH
7947do
7948 IFS=$as_save_IFS
7949 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7950 for ac_exec_ext in '' $ac_executable_extensions; do
7951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7952 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 7953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7954 break 2
7955 fi
7956done
81ecdfbb
RW
7957 done
7958IFS=$as_save_IFS
c6b750e1 7959
be01d343
PB
7960fi
7961fi
c6b750e1 7962LIPO=$ac_cv_prog_LIPO
be01d343 7963if test -n "$LIPO"; then
81ecdfbb
RW
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7965$as_echo "$LIPO" >&6; }
be01d343 7966else
81ecdfbb
RW
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7968$as_echo "no" >&6; }
be01d343 7969fi
c6b750e1 7970
81ecdfbb 7971
be01d343
PB
7972 fi
7973 test -n "$ac_cv_prog_LIPO" && break
7974done
7975
7976if test -z "$ac_cv_prog_LIPO" ; then
7977 set dummy lipo
7978 if test $build = $host ; then
7979 LIPO="$2"
7980 else
7981 LIPO="${ncn_tool_prefix}$2"
7982 fi
7983fi
7984
9a819804
AO
7985
7986
7987if test -n "$NM"; then
7988 ac_cv_prog_NM=$NM
7989elif test -n "$ac_cv_prog_NM"; then
7990 NM=$ac_cv_prog_NM
7991fi
7992
7993if test -n "$ac_cv_prog_NM"; then
7994 for ncn_progname in nm; do
7995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7996set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7998$as_echo_n "checking for $ac_word... " >&6; }
7999if test "${ac_cv_prog_NM+set}" = set; then :
8000 $as_echo_n "(cached) " >&6
859789af
AC
8001else
8002 if test -n "$NM"; then
8003 ac_cv_prog_NM="$NM" # Let the user override the test.
8004else
c6b750e1
DJ
8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8006for as_dir in $PATH
8007do
8008 IFS=$as_save_IFS
8009 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8010 for ac_exec_ext in '' $ac_executable_extensions; do
8011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8012 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8014 break 2
8015 fi
8016done
81ecdfbb
RW
8017 done
8018IFS=$as_save_IFS
c6b750e1 8019
859789af
AC
8020fi
8021fi
c6b750e1 8022NM=$ac_cv_prog_NM
859789af 8023if test -n "$NM"; then
81ecdfbb
RW
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8025$as_echo "$NM" >&6; }
859789af 8026else
81ecdfbb
RW
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8028$as_echo "no" >&6; }
859789af
AC
8029fi
8030
81ecdfbb 8031
9a819804
AO
8032 done
8033fi
8034
8035for ncn_progname in nm; do
8036 if test -n "$ncn_tool_prefix"; then
8037 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8038set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040$as_echo_n "checking for $ac_word... " >&6; }
8041if test "${ac_cv_prog_NM+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
859789af 8043else
05cbd757
PB
8044 if test -n "$NM"; then
8045 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8046else
c6b750e1
DJ
8047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048for as_dir in $PATH
8049do
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8054 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8056 break 2
8057 fi
8058done
81ecdfbb
RW
8059 done
8060IFS=$as_save_IFS
c6b750e1 8061
859789af
AC
8062fi
8063fi
c6b750e1 8064NM=$ac_cv_prog_NM
05cbd757 8065if test -n "$NM"; then
81ecdfbb
RW
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8067$as_echo "$NM" >&6; }
859789af 8068else
81ecdfbb
RW
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070$as_echo "no" >&6; }
859789af 8071fi
c6b750e1 8072
81ecdfbb 8073
05cbd757 8074 fi
9a819804
AO
8075 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8077set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079$as_echo_n "checking for $ac_word... " >&6; }
8080if test "${ac_cv_prog_NM+set}" = set; then :
8081 $as_echo_n "(cached) " >&6
9a819804
AO
8082else
8083 if test -n "$NM"; then
8084 ac_cv_prog_NM="$NM" # Let the user override the test.
8085else
8086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087for as_dir in $PATH
8088do
8089 IFS=$as_save_IFS
8090 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8093 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8095 break 2
8096 fi
8097done
81ecdfbb
RW
8098 done
8099IFS=$as_save_IFS
9a819804
AO
8100
8101fi
8102fi
8103NM=$ac_cv_prog_NM
8104if test -n "$NM"; then
81ecdfbb
RW
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8106$as_echo "$NM" >&6; }
9a819804 8107else
81ecdfbb
RW
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109$as_echo "no" >&6; }
9a819804
AO
8110fi
8111
81ecdfbb 8112
9a819804
AO
8113 fi
8114 test -n "$ac_cv_prog_NM" && break
8115done
8116
8117if test -z "$ac_cv_prog_NM" ; then
8118 set dummy nm
8119 if test $build = $host ; then
8120 NM="$2"
8121 else
8122 NM="${ncn_tool_prefix}$2"
8123 fi
8124fi
8125
8126
8127
8128if test -n "$RANLIB"; then
8129 ac_cv_prog_RANLIB=$RANLIB
8130elif test -n "$ac_cv_prog_RANLIB"; then
8131 RANLIB=$ac_cv_prog_RANLIB
8132fi
8133
8134if test -n "$ac_cv_prog_RANLIB"; then
8135 for ncn_progname in ranlib; do
8136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8137set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139$as_echo_n "checking for $ac_word... " >&6; }
8140if test "${ac_cv_prog_RANLIB+set}" = set; then :
8141 $as_echo_n "(cached) " >&6
9a819804
AO
8142else
8143 if test -n "$RANLIB"; then
8144 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8145else
8146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8147for as_dir in $PATH
8148do
8149 IFS=$as_save_IFS
8150 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8153 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8155 break 2
8156 fi
8157done
81ecdfbb
RW
8158 done
8159IFS=$as_save_IFS
9a819804
AO
8160
8161fi
8162fi
8163RANLIB=$ac_cv_prog_RANLIB
8164if test -n "$RANLIB"; then
81ecdfbb
RW
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8166$as_echo "$RANLIB" >&6; }
9a819804 8167else
81ecdfbb
RW
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169$as_echo "no" >&6; }
9a819804
AO
8170fi
8171
81ecdfbb 8172
9a819804
AO
8173 done
8174fi
859789af 8175
9a819804 8176for ncn_progname in ranlib; do
05cbd757
PB
8177 if test -n "$ncn_tool_prefix"; then
8178 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8179set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8181$as_echo_n "checking for $ac_word... " >&6; }
8182if test "${ac_cv_prog_RANLIB+set}" = set; then :
8183 $as_echo_n "(cached) " >&6
859789af
AC
8184else
8185 if test -n "$RANLIB"; then
8186 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8187else
c6b750e1
DJ
8188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189for as_dir in $PATH
8190do
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8195 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8197 break 2
8198 fi
8199done
81ecdfbb
RW
8200 done
8201IFS=$as_save_IFS
c6b750e1 8202
859789af
AC
8203fi
8204fi
c6b750e1 8205RANLIB=$ac_cv_prog_RANLIB
859789af 8206if test -n "$RANLIB"; then
81ecdfbb
RW
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8208$as_echo "$RANLIB" >&6; }
859789af 8209else
81ecdfbb
RW
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8211$as_echo "no" >&6; }
859789af
AC
8212fi
8213
81ecdfbb 8214
05cbd757
PB
8215 fi
8216 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8218set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8220$as_echo_n "checking for $ac_word... " >&6; }
8221if test "${ac_cv_prog_RANLIB+set}" = set; then :
8222 $as_echo_n "(cached) " >&6
859789af 8223else
05cbd757
PB
8224 if test -n "$RANLIB"; then
8225 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8226else
c6b750e1
DJ
8227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228for as_dir in $PATH
8229do
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8234 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8236 break 2
8237 fi
8238done
81ecdfbb
RW
8239 done
8240IFS=$as_save_IFS
c6b750e1 8241
859789af
AC
8242fi
8243fi
c6b750e1 8244RANLIB=$ac_cv_prog_RANLIB
05cbd757 8245if test -n "$RANLIB"; then
81ecdfbb
RW
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8247$as_echo "$RANLIB" >&6; }
859789af 8248else
81ecdfbb
RW
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250$as_echo "no" >&6; }
859789af 8251fi
c6b750e1 8252
81ecdfbb 8253
859789af 8254 fi
05cbd757
PB
8255 test -n "$ac_cv_prog_RANLIB" && break
8256done
8257
8258if test -z "$ac_cv_prog_RANLIB" ; then
8259 RANLIB=":"
859789af
AC
8260fi
8261
9a819804
AO
8262
8263
8264if test -n "$STRIP"; then
8265 ac_cv_prog_STRIP=$STRIP
8266elif test -n "$ac_cv_prog_STRIP"; then
8267 STRIP=$ac_cv_prog_STRIP
8268fi
8269
8270if test -n "$ac_cv_prog_STRIP"; then
8271 for ncn_progname in strip; do
8272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8273set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275$as_echo_n "checking for $ac_word... " >&6; }
8276if test "${ac_cv_prog_STRIP+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
9a819804
AO
8278else
8279 if test -n "$STRIP"; then
8280 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8281else
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8289 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8291 break 2
8292 fi
8293done
81ecdfbb
RW
8294 done
8295IFS=$as_save_IFS
9a819804
AO
8296
8297fi
8298fi
8299STRIP=$ac_cv_prog_STRIP
8300if test -n "$STRIP"; then
81ecdfbb
RW
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8302$as_echo "$STRIP" >&6; }
9a819804 8303else
81ecdfbb
RW
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
9a819804
AO
8306fi
8307
81ecdfbb 8308
9a819804
AO
8309 done
8310fi
8311
8312for ncn_progname in strip; do
be01d343
PB
8313 if test -n "$ncn_tool_prefix"; then
8314 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8315set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317$as_echo_n "checking for $ac_word... " >&6; }
8318if test "${ac_cv_prog_STRIP+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
be01d343
PB
8320else
8321 if test -n "$STRIP"; then
8322 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8323else
c6b750e1
DJ
8324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325for as_dir in $PATH
8326do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8331 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8333 break 2
8334 fi
8335done
81ecdfbb
RW
8336 done
8337IFS=$as_save_IFS
c6b750e1 8338
be01d343
PB
8339fi
8340fi
c6b750e1 8341STRIP=$ac_cv_prog_STRIP
be01d343 8342if test -n "$STRIP"; then
81ecdfbb
RW
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8344$as_echo "$STRIP" >&6; }
be01d343 8345else
81ecdfbb
RW
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347$as_echo "no" >&6; }
be01d343
PB
8348fi
8349
81ecdfbb 8350
be01d343
PB
8351 fi
8352 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8354set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356$as_echo_n "checking for $ac_word... " >&6; }
8357if test "${ac_cv_prog_STRIP+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
be01d343
PB
8359else
8360 if test -n "$STRIP"; then
8361 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8362else
c6b750e1
DJ
8363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
8365do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8370 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8372 break 2
8373 fi
8374done
81ecdfbb
RW
8375 done
8376IFS=$as_save_IFS
c6b750e1 8377
be01d343
PB
8378fi
8379fi
c6b750e1 8380STRIP=$ac_cv_prog_STRIP
be01d343 8381if test -n "$STRIP"; then
81ecdfbb
RW
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8383$as_echo "$STRIP" >&6; }
be01d343 8384else
81ecdfbb
RW
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386$as_echo "no" >&6; }
be01d343 8387fi
c6b750e1 8388
81ecdfbb 8389
be01d343
PB
8390 fi
8391 test -n "$ac_cv_prog_STRIP" && break
8392done
8393
8394if test -z "$ac_cv_prog_STRIP" ; then
8395 STRIP=":"
8396fi
8397
9a819804
AO
8398
8399
8400if test -n "$WINDRES"; then
8401 ac_cv_prog_WINDRES=$WINDRES
8402elif test -n "$ac_cv_prog_WINDRES"; then
8403 WINDRES=$ac_cv_prog_WINDRES
8404fi
8405
8406if test -n "$ac_cv_prog_WINDRES"; then
8407 for ncn_progname in windres; do
8408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8409set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8411$as_echo_n "checking for $ac_word... " >&6; }
8412if test "${ac_cv_prog_WINDRES+set}" = set; then :
8413 $as_echo_n "(cached) " >&6
9a819804
AO
8414else
8415 if test -n "$WINDRES"; then
8416 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8417else
8418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8419for as_dir in $PATH
8420do
8421 IFS=$as_save_IFS
8422 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8423 for ac_exec_ext in '' $ac_executable_extensions; do
8424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8425 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8427 break 2
8428 fi
8429done
81ecdfbb
RW
8430 done
8431IFS=$as_save_IFS
9a819804
AO
8432
8433fi
8434fi
8435WINDRES=$ac_cv_prog_WINDRES
8436if test -n "$WINDRES"; then
81ecdfbb
RW
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8438$as_echo "$WINDRES" >&6; }
9a819804 8439else
81ecdfbb
RW
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8441$as_echo "no" >&6; }
9a819804
AO
8442fi
8443
81ecdfbb 8444
9a819804
AO
8445 done
8446fi
8447
8448for ncn_progname in windres; do
05cbd757
PB
8449 if test -n "$ncn_tool_prefix"; then
8450 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8451set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453$as_echo_n "checking for $ac_word... " >&6; }
8454if test "${ac_cv_prog_WINDRES+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
859789af
AC
8456else
8457 if test -n "$WINDRES"; then
8458 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8459else
c6b750e1
DJ
8460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461for as_dir in $PATH
8462do
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8467 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8469 break 2
8470 fi
8471done
81ecdfbb
RW
8472 done
8473IFS=$as_save_IFS
c6b750e1 8474
859789af
AC
8475fi
8476fi
c6b750e1 8477WINDRES=$ac_cv_prog_WINDRES
859789af 8478if test -n "$WINDRES"; then
81ecdfbb
RW
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8480$as_echo "$WINDRES" >&6; }
859789af 8481else
81ecdfbb
RW
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483$as_echo "no" >&6; }
859789af
AC
8484fi
8485
81ecdfbb 8486
05cbd757
PB
8487 fi
8488 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8490set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8492$as_echo_n "checking for $ac_word... " >&6; }
8493if test "${ac_cv_prog_WINDRES+set}" = set; then :
8494 $as_echo_n "(cached) " >&6
859789af 8495else
05cbd757
PB
8496 if test -n "$WINDRES"; then
8497 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 8498else
c6b750e1
DJ
8499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8500for as_dir in $PATH
8501do
8502 IFS=$as_save_IFS
8503 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8506 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8508 break 2
8509 fi
8510done
81ecdfbb
RW
8511 done
8512IFS=$as_save_IFS
c6b750e1 8513
859789af
AC
8514fi
8515fi
c6b750e1 8516WINDRES=$ac_cv_prog_WINDRES
05cbd757 8517if test -n "$WINDRES"; then
81ecdfbb
RW
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8519$as_echo "$WINDRES" >&6; }
859789af 8520else
81ecdfbb
RW
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8522$as_echo "no" >&6; }
859789af 8523fi
c6b750e1 8524
81ecdfbb 8525
05cbd757
PB
8526 fi
8527 test -n "$ac_cv_prog_WINDRES" && break
8528done
8529
8530if test -z "$ac_cv_prog_WINDRES" ; then
8531 set dummy windres
8532 if test $build = $host ; then
8533 WINDRES="$2"
859789af 8534 else
05cbd757 8535 WINDRES="${ncn_tool_prefix}$2"
859789af 8536 fi
859789af
AC
8537fi
8538
9a819804
AO
8539
8540
0c24b341
NC
8541if test -n "$WINDMC"; then
8542 ac_cv_prog_WINDMC=$WINDMC
8543elif test -n "$ac_cv_prog_WINDMC"; then
8544 WINDMC=$ac_cv_prog_WINDMC
8545fi
8546
8547if test -n "$ac_cv_prog_WINDMC"; then
8548 for ncn_progname in windmc; do
8549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8550set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552$as_echo_n "checking for $ac_word... " >&6; }
8553if test "${ac_cv_prog_WINDMC+set}" = set; then :
8554 $as_echo_n "(cached) " >&6
0c24b341
NC
8555else
8556 if test -n "$WINDMC"; then
8557 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8558else
8559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560for as_dir in $PATH
8561do
8562 IFS=$as_save_IFS
8563 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8564 for ac_exec_ext in '' $ac_executable_extensions; do
8565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 8566 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 8567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
8568 break 2
8569 fi
8570done
81ecdfbb
RW
8571 done
8572IFS=$as_save_IFS
0c24b341
NC
8573
8574fi
8575fi
8576WINDMC=$ac_cv_prog_WINDMC
8577if test -n "$WINDMC"; then
81ecdfbb
RW
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8579$as_echo "$WINDMC" >&6; }
0c24b341 8580else
81ecdfbb
RW
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582$as_echo "no" >&6; }
0c24b341
NC
8583fi
8584
81ecdfbb 8585
0c24b341
NC
8586 done
8587fi
8588
8589for ncn_progname in windmc; do
8590 if test -n "$ncn_tool_prefix"; then
8591 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8592set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594$as_echo_n "checking for $ac_word... " >&6; }
8595if test "${ac_cv_prog_WINDMC+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
0c24b341
NC
8597else
8598 if test -n "$WINDMC"; then
8599 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8600else
8601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 8608 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
8610 break 2
8611 fi
8612done
81ecdfbb
RW
8613 done
8614IFS=$as_save_IFS
0c24b341
NC
8615
8616fi
8617fi
8618WINDMC=$ac_cv_prog_WINDMC
8619if test -n "$WINDMC"; then
81ecdfbb
RW
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8621$as_echo "$WINDMC" >&6; }
0c24b341 8622else
81ecdfbb
RW
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624$as_echo "no" >&6; }
0c24b341
NC
8625fi
8626
81ecdfbb 8627
0c24b341
NC
8628 fi
8629 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
8630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8631set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633$as_echo_n "checking for $ac_word... " >&6; }
8634if test "${ac_cv_prog_WINDMC+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
0c24b341
NC
8636else
8637 if test -n "$WINDMC"; then
8638 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8639else
8640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641for as_dir in $PATH
8642do
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 8647 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
8649 break 2
8650 fi
8651done
81ecdfbb
RW
8652 done
8653IFS=$as_save_IFS
0c24b341
NC
8654
8655fi
8656fi
8657WINDMC=$ac_cv_prog_WINDMC
8658if test -n "$WINDMC"; then
81ecdfbb
RW
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8660$as_echo "$WINDMC" >&6; }
0c24b341 8661else
81ecdfbb
RW
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663$as_echo "no" >&6; }
0c24b341
NC
8664fi
8665
81ecdfbb 8666
0c24b341
NC
8667 fi
8668 test -n "$ac_cv_prog_WINDMC" && break
8669done
8670
8671if test -z "$ac_cv_prog_WINDMC" ; then
8672 set dummy windmc
8673 if test $build = $host ; then
8674 WINDMC="$2"
8675 else
8676 WINDMC="${ncn_tool_prefix}$2"
8677 fi
8678fi
8679
8680
8681
9a819804
AO
8682if test -n "$OBJCOPY"; then
8683 ac_cv_prog_OBJCOPY=$OBJCOPY
8684elif test -n "$ac_cv_prog_OBJCOPY"; then
8685 OBJCOPY=$ac_cv_prog_OBJCOPY
8686fi
8687
8688if test -n "$ac_cv_prog_OBJCOPY"; then
8689 for ncn_progname in objcopy; do
8690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8691set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693$as_echo_n "checking for $ac_word... " >&6; }
8694if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8695 $as_echo_n "(cached) " >&6
9a819804
AO
8696else
8697 if test -n "$OBJCOPY"; then
8698 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8699else
8700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701for as_dir in $PATH
8702do
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8707 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8709 break 2
8710 fi
8711done
81ecdfbb
RW
8712 done
8713IFS=$as_save_IFS
9a819804
AO
8714
8715fi
8716fi
8717OBJCOPY=$ac_cv_prog_OBJCOPY
8718if test -n "$OBJCOPY"; then
81ecdfbb
RW
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8720$as_echo "$OBJCOPY" >&6; }
9a819804 8721else
81ecdfbb
RW
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723$as_echo "no" >&6; }
9a819804
AO
8724fi
8725
81ecdfbb 8726
9a819804
AO
8727 done
8728fi
8729
8730for ncn_progname in objcopy; do
05cbd757
PB
8731 if test -n "$ncn_tool_prefix"; then
8732 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8733set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735$as_echo_n "checking for $ac_word... " >&6; }
8736if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
859789af
AC
8738else
8739 if test -n "$OBJCOPY"; then
8740 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
8741else
c6b750e1
DJ
8742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743for as_dir in $PATH
8744do
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8749 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8751 break 2
8752 fi
8753done
81ecdfbb
RW
8754 done
8755IFS=$as_save_IFS
c6b750e1 8756
859789af
AC
8757fi
8758fi
c6b750e1 8759OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 8760if test -n "$OBJCOPY"; then
81ecdfbb
RW
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8762$as_echo "$OBJCOPY" >&6; }
859789af 8763else
81ecdfbb
RW
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765$as_echo "no" >&6; }
859789af
AC
8766fi
8767
81ecdfbb 8768
05cbd757
PB
8769 fi
8770 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
8771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8772set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8774$as_echo_n "checking for $ac_word... " >&6; }
8775if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
8776 $as_echo_n "(cached) " >&6
859789af 8777else
05cbd757
PB
8778 if test -n "$OBJCOPY"; then
8779 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 8780else
c6b750e1
DJ
8781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8782for as_dir in $PATH
8783do
8784 IFS=$as_save_IFS
8785 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8786 for ac_exec_ext in '' $ac_executable_extensions; do
8787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8788 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 8789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8790 break 2
8791 fi
8792done
81ecdfbb
RW
8793 done
8794IFS=$as_save_IFS
c6b750e1 8795
859789af
AC
8796fi
8797fi
c6b750e1 8798OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 8799if test -n "$OBJCOPY"; then
81ecdfbb
RW
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
8801$as_echo "$OBJCOPY" >&6; }
859789af 8802else
81ecdfbb
RW
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804$as_echo "no" >&6; }
859789af 8805fi
c6b750e1 8806
81ecdfbb 8807
05cbd757
PB
8808 fi
8809 test -n "$ac_cv_prog_OBJCOPY" && break
8810done
8811
8812if test -z "$ac_cv_prog_OBJCOPY" ; then
8813 set dummy objcopy
8814 if test $build = $host ; then
8815 OBJCOPY="$2"
859789af 8816 else
05cbd757 8817 OBJCOPY="${ncn_tool_prefix}$2"
859789af 8818 fi
859789af
AC
8819fi
8820
9a819804
AO
8821
8822
8823if test -n "$OBJDUMP"; then
8824 ac_cv_prog_OBJDUMP=$OBJDUMP
8825elif test -n "$ac_cv_prog_OBJDUMP"; then
8826 OBJDUMP=$ac_cv_prog_OBJDUMP
8827fi
8828
8829if test -n "$ac_cv_prog_OBJDUMP"; then
8830 for ncn_progname in objdump; do
8831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8832set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834$as_echo_n "checking for $ac_word... " >&6; }
8835if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
9a819804
AO
8837else
8838 if test -n "$OBJDUMP"; then
8839 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8840else
8841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842for as_dir in $PATH
8843do
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8848 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8850 break 2
8851 fi
8852done
81ecdfbb
RW
8853 done
8854IFS=$as_save_IFS
9a819804
AO
8855
8856fi
8857fi
8858OBJDUMP=$ac_cv_prog_OBJDUMP
8859if test -n "$OBJDUMP"; then
81ecdfbb
RW
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8861$as_echo "$OBJDUMP" >&6; }
9a819804 8862else
81ecdfbb
RW
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864$as_echo "no" >&6; }
9a819804
AO
8865fi
8866
81ecdfbb 8867
9a819804
AO
8868 done
8869fi
8870
8871for ncn_progname in objdump; do
05cbd757
PB
8872 if test -n "$ncn_tool_prefix"; then
8873 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8874set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876$as_echo_n "checking for $ac_word... " >&6; }
8877if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
859789af
AC
8879else
8880 if test -n "$OBJDUMP"; then
8881 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8882else
c6b750e1
DJ
8883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884for as_dir in $PATH
8885do
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8890 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8892 break 2
8893 fi
8894done
81ecdfbb
RW
8895 done
8896IFS=$as_save_IFS
c6b750e1 8897
859789af
AC
8898fi
8899fi
c6b750e1 8900OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 8901if test -n "$OBJDUMP"; then
81ecdfbb
RW
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8903$as_echo "$OBJDUMP" >&6; }
859789af 8904else
81ecdfbb
RW
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906$as_echo "no" >&6; }
859789af
AC
8907fi
8908
81ecdfbb 8909
05cbd757
PB
8910 fi
8911 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
8912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8913set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8915$as_echo_n "checking for $ac_word... " >&6; }
8916if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8917 $as_echo_n "(cached) " >&6
859789af 8918else
05cbd757
PB
8919 if test -n "$OBJDUMP"; then
8920 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 8921else
c6b750e1
DJ
8922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8923for as_dir in $PATH
8924do
8925 IFS=$as_save_IFS
8926 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8927 for ac_exec_ext in '' $ac_executable_extensions; do
8928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8929 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 8930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8931 break 2
8932 fi
8933done
81ecdfbb
RW
8934 done
8935IFS=$as_save_IFS
c6b750e1 8936
859789af
AC
8937fi
8938fi
c6b750e1 8939OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 8940if test -n "$OBJDUMP"; then
81ecdfbb
RW
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8942$as_echo "$OBJDUMP" >&6; }
859789af 8943else
81ecdfbb
RW
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8945$as_echo "no" >&6; }
859789af 8946fi
c6b750e1 8947
81ecdfbb 8948
05cbd757
PB
8949 fi
8950 test -n "$ac_cv_prog_OBJDUMP" && break
8951done
8952
8953if test -z "$ac_cv_prog_OBJDUMP" ; then
8954 set dummy objdump
8955 if test $build = $host ; then
8956 OBJDUMP="$2"
859789af 8957 else
05cbd757 8958 OBJDUMP="${ncn_tool_prefix}$2"
859789af 8959 fi
859789af
AC
8960fi
8961
a0da8069
NN
8962
8963
8964
8965
8966
be01d343 8967# Target tools.
c6b750e1 8968
81ecdfbb
RW
8969# Check whether --with-build-time-tools was given.
8970if test "${with_build_time_tools+set}" = set; then :
8971 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
8972 x/*) ;;
8973 *)
8974 with_build_time_tools=
81ecdfbb
RW
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
8976$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
8977 ;;
8978 esac
859789af 8979else
2429c060 8980 with_build_time_tools=
81ecdfbb
RW
8981fi
8982
859789af 8983
9a819804
AO
8984
8985
8986if test -n "$CC_FOR_TARGET"; then
8987 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
8988elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8989 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
8990fi
8991
8992if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
8993 for ncn_progname in cc gcc; do
8994 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8995set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8997$as_echo_n "checking for $ac_word... " >&6; }
8998if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
8999 $as_echo_n "(cached) " >&6
9a819804
AO
9000else
9001 if test -n "$CC_FOR_TARGET"; then
9002 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9003else
9004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005for as_dir in $PATH
9006do
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9011 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9013 break 2
9014 fi
9015done
81ecdfbb
RW
9016 done
9017IFS=$as_save_IFS
9a819804
AO
9018
9019fi
9020fi
9021CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9022if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9024$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9025else
81ecdfbb
RW
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027$as_echo "no" >&6; }
9a819804
AO
9028fi
9029
81ecdfbb 9030
9a819804
AO
9031 done
9032fi
9033
9034if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9035 for ncn_progname in cc gcc; do
81ecdfbb
RW
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9037$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9038 if test -x $with_build_time_tools/${ncn_progname}; then
9039 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9041$as_echo "yes" >&6; }
cac3d6c4 9042 break
2429c060 9043 else
81ecdfbb
RW
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045$as_echo "no" >&6; }
cac3d6c4
CM
9046 fi
9047 done
55db4b87
PB
9048fi
9049
2429c060
PB
9050if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9051 for ncn_progname in cc gcc; do
9052 if test -n "$ncn_target_tool_prefix"; then
9053 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9054set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9056$as_echo_n "checking for $ac_word... " >&6; }
9057if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9058 $as_echo_n "(cached) " >&6
55db4b87
PB
9059else
9060 if test -n "$CC_FOR_TARGET"; then
9061 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9062else
c6b750e1
DJ
9063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064for as_dir in $PATH
9065do
9066 IFS=$as_save_IFS
9067 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9068 for ac_exec_ext in '' $ac_executable_extensions; do
9069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9070 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9072 break 2
9073 fi
9074done
81ecdfbb
RW
9075 done
9076IFS=$as_save_IFS
c6b750e1 9077
55db4b87
PB
9078fi
9079fi
c6b750e1 9080CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9081if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9083$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9084else
81ecdfbb
RW
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9086$as_echo "no" >&6; }
55db4b87
PB
9087fi
9088
81ecdfbb 9089
2429c060
PB
9090 fi
9091 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9093set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9095$as_echo_n "checking for $ac_word... " >&6; }
9096if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
55db4b87 9098else
05cbd757
PB
9099 if test -n "$CC_FOR_TARGET"; then
9100 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9101else
c6b750e1
DJ
9102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103for as_dir in $PATH
9104do
9105 IFS=$as_save_IFS
9106 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9107 for ac_exec_ext in '' $ac_executable_extensions; do
9108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9109 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9111 break 2
9112 fi
9113done
81ecdfbb
RW
9114 done
9115IFS=$as_save_IFS
c6b750e1 9116
55db4b87
PB
9117fi
9118fi
c6b750e1 9119CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9120if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9122$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9123else
81ecdfbb
RW
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125$as_echo "no" >&6; }
55db4b87 9126fi
c6b750e1 9127
81ecdfbb 9128
2429c060
PB
9129 fi
9130 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9131 done
9132fi
c6b750e1 9133
05cbd757
PB
9134if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9135 set dummy cc gcc
9136 if test $build = $target ; then
9137 CC_FOR_TARGET="$2"
55db4b87 9138 else
05cbd757 9139 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9140 fi
d3f5afc4
MS
9141else
9142 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9143fi
9144
9a819804
AO
9145
9146
9147if test -n "$CXX_FOR_TARGET"; then
9148 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9149elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9150 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9151fi
9152
9153if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9154 for ncn_progname in c++ g++ cxx gxx; do
9155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9156set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158$as_echo_n "checking for $ac_word... " >&6; }
9159if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
9a819804
AO
9161else
9162 if test -n "$CXX_FOR_TARGET"; then
9163 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9164else
9165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166for as_dir in $PATH
9167do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9172 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9174 break 2
9175 fi
9176done
81ecdfbb
RW
9177 done
9178IFS=$as_save_IFS
9a819804
AO
9179
9180fi
9181fi
9182CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9183if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9185$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9186else
81ecdfbb
RW
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188$as_echo "no" >&6; }
9a819804
AO
9189fi
9190
81ecdfbb 9191
9a819804
AO
9192 done
9193fi
9194
9195if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9196 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9198$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9199 if test -x $with_build_time_tools/${ncn_progname}; then
9200 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9202$as_echo "yes" >&6; }
2429c060
PB
9203 break
9204 else
81ecdfbb
RW
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206$as_echo "no" >&6; }
2429c060
PB
9207 fi
9208 done
9209fi
9210
9211if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9212 for ncn_progname in c++ g++ cxx gxx; do
9213 if test -n "$ncn_target_tool_prefix"; then
9214 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9215set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217$as_echo_n "checking for $ac_word... " >&6; }
9218if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9219 $as_echo_n "(cached) " >&6
55db4b87
PB
9220else
9221 if test -n "$CXX_FOR_TARGET"; then
9222 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9223else
c6b750e1
DJ
9224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225for as_dir in $PATH
9226do
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9231 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9233 break 2
9234 fi
9235done
81ecdfbb
RW
9236 done
9237IFS=$as_save_IFS
c6b750e1 9238
55db4b87
PB
9239fi
9240fi
c6b750e1 9241CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9242if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9244$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9245else
81ecdfbb
RW
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247$as_echo "no" >&6; }
55db4b87
PB
9248fi
9249
81ecdfbb 9250
2429c060
PB
9251 fi
9252 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9254set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9256$as_echo_n "checking for $ac_word... " >&6; }
9257if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9258 $as_echo_n "(cached) " >&6
55db4b87 9259else
05cbd757
PB
9260 if test -n "$CXX_FOR_TARGET"; then
9261 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9262else
c6b750e1
DJ
9263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9264for as_dir in $PATH
9265do
9266 IFS=$as_save_IFS
9267 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9268 for ac_exec_ext in '' $ac_executable_extensions; do
9269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9270 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9272 break 2
9273 fi
9274done
81ecdfbb
RW
9275 done
9276IFS=$as_save_IFS
c6b750e1 9277
55db4b87
PB
9278fi
9279fi
c6b750e1 9280CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9281if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9283$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9284else
81ecdfbb
RW
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286$as_echo "no" >&6; }
55db4b87 9287fi
c6b750e1 9288
81ecdfbb 9289
2429c060
PB
9290 fi
9291 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9292 done
9293fi
c6b750e1 9294
05cbd757
PB
9295if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9296 set dummy c++ g++ cxx gxx
9297 if test $build = $target ; then
9298 CXX_FOR_TARGET="$2"
55db4b87 9299 else
05cbd757 9300 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9301 fi
d3f5afc4
MS
9302else
9303 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9304fi
9305
9a819804
AO
9306
9307
9308if test -n "$GCC_FOR_TARGET"; then
9309 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9310elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9311 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9312fi
9313
9314if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9315 for ncn_progname in gcc; do
9316 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9317set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319$as_echo_n "checking for $ac_word... " >&6; }
9320if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9321 $as_echo_n "(cached) " >&6
9a819804
AO
9322else
9323 if test -n "$GCC_FOR_TARGET"; then
9324 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9325else
9326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327for as_dir in $PATH
9328do
9329 IFS=$as_save_IFS
9330 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9331 for ac_exec_ext in '' $ac_executable_extensions; do
9332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9333 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9335 break 2
9336 fi
9337done
81ecdfbb
RW
9338 done
9339IFS=$as_save_IFS
9a819804
AO
9340
9341fi
9342fi
9343GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9344if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9346$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 9347else
81ecdfbb
RW
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349$as_echo "no" >&6; }
9a819804
AO
9350fi
9351
81ecdfbb 9352
9a819804
AO
9353 done
9354fi
9355
9356if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9357 for ncn_progname in gcc; do
81ecdfbb
RW
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9359$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9360 if test -x $with_build_time_tools/${ncn_progname}; then
9361 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9363$as_echo "yes" >&6; }
2429c060
PB
9364 break
9365 else
81ecdfbb
RW
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9367$as_echo "no" >&6; }
2429c060
PB
9368 fi
9369 done
9370fi
9371
9372if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9373 for ncn_progname in gcc; do
9374 if test -n "$ncn_target_tool_prefix"; then
9375 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9376set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9378$as_echo_n "checking for $ac_word... " >&6; }
9379if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9380 $as_echo_n "(cached) " >&6
859789af 9381else
2429c060
PB
9382 if test -n "$GCC_FOR_TARGET"; then
9383 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9384else
c6b750e1
DJ
9385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9386for as_dir in $PATH
9387do
9388 IFS=$as_save_IFS
9389 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9390 for ac_exec_ext in '' $ac_executable_extensions; do
9391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9392 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9394 break 2
9395 fi
9396done
81ecdfbb
RW
9397 done
9398IFS=$as_save_IFS
c6b750e1 9399
55db4b87
PB
9400fi
9401fi
c6b750e1 9402GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 9403if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9405$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 9406else
81ecdfbb
RW
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9408$as_echo "no" >&6; }
55db4b87
PB
9409fi
9410
81ecdfbb 9411
2429c060
PB
9412 fi
9413 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9414 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9415set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417$as_echo_n "checking for $ac_word... " >&6; }
9418if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9419 $as_echo_n "(cached) " >&6
55db4b87 9420else
05cbd757
PB
9421 if test -n "$GCC_FOR_TARGET"; then
9422 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9423else
c6b750e1
DJ
9424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9425for as_dir in $PATH
9426do
9427 IFS=$as_save_IFS
9428 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9429 for ac_exec_ext in '' $ac_executable_extensions; do
9430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9431 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9433 break 2
9434 fi
9435done
81ecdfbb
RW
9436 done
9437IFS=$as_save_IFS
c6b750e1 9438
55db4b87
PB
9439fi
9440fi
c6b750e1 9441GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 9442if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9444$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 9445else
81ecdfbb
RW
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447$as_echo "no" >&6; }
55db4b87 9448fi
c6b750e1 9449
81ecdfbb 9450
2429c060
PB
9451 fi
9452 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9453 done
9454fi
c6b750e1 9455
05cbd757
PB
9456if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9457 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
9458else
9459 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
9460fi
9461
9a819804
AO
9462
9463
9464if test -n "$GCJ_FOR_TARGET"; then
9465 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9466elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9467 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9468fi
9469
9470if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9471 for ncn_progname in gcj; do
9472 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9473set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9475$as_echo_n "checking for $ac_word... " >&6; }
9476if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9a819804
AO
9478else
9479 if test -n "$GCJ_FOR_TARGET"; then
9480 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9481else
9482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9483for as_dir in $PATH
9484do
9485 IFS=$as_save_IFS
9486 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9487 for ac_exec_ext in '' $ac_executable_extensions; do
9488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9489 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 9490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9491 break 2
9492 fi
9493done
81ecdfbb
RW
9494 done
9495IFS=$as_save_IFS
9a819804
AO
9496
9497fi
9498fi
9499GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9500if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9502$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9503else
81ecdfbb
RW
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9505$as_echo "no" >&6; }
9a819804
AO
9506fi
9507
81ecdfbb 9508
9a819804
AO
9509 done
9510fi
9511
9512if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9513 for ncn_progname in gcj; do
81ecdfbb
RW
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9515$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9516 if test -x $with_build_time_tools/${ncn_progname}; then
9517 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9519$as_echo "yes" >&6; }
2429c060
PB
9520 break
9521 else
81ecdfbb
RW
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523$as_echo "no" >&6; }
2429c060
PB
9524 fi
9525 done
9526fi
9527
9528if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9529 for ncn_progname in gcj; do
9530 if test -n "$ncn_target_tool_prefix"; then
9531 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9532set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534$as_echo_n "checking for $ac_word... " >&6; }
9535if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
55db4b87
PB
9537else
9538 if test -n "$GCJ_FOR_TARGET"; then
9539 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9540else
c6b750e1
DJ
9541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542for as_dir in $PATH
9543do
9544 IFS=$as_save_IFS
9545 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9548 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9550 break 2
9551 fi
9552done
81ecdfbb
RW
9553 done
9554IFS=$as_save_IFS
c6b750e1 9555
55db4b87
PB
9556fi
9557fi
9a819804
AO
9558GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9559if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9561$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9562else
81ecdfbb
RW
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564$as_echo "no" >&6; }
9a819804
AO
9565fi
9566
81ecdfbb 9567
9a819804
AO
9568 fi
9569 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9570 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9571set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9573$as_echo_n "checking for $ac_word... " >&6; }
9574if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9575 $as_echo_n "(cached) " >&6
9a819804
AO
9576else
9577 if test -n "$GCJ_FOR_TARGET"; then
9578 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9579else
9580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581for as_dir in $PATH
9582do
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9587 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 9588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9589 break 2
9590 fi
9591done
81ecdfbb
RW
9592 done
9593IFS=$as_save_IFS
9a819804
AO
9594
9595fi
9596fi
9597GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9598if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9600$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9601else
81ecdfbb
RW
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9603$as_echo "no" >&6; }
9a819804
AO
9604fi
9605
81ecdfbb 9606
9a819804
AO
9607 fi
9608 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
9609 done
9610fi
9611
9612if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
9613 set dummy gcj
9614 if test $build = $target ; then
9615 GCJ_FOR_TARGET="$2"
9616 else
9617 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
9618 fi
d3f5afc4
MS
9619else
9620 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
9621fi
9622
9623
9624
9625if test -n "$GFORTRAN_FOR_TARGET"; then
9626 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
9627elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9628 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
9629fi
9630
9a819804
AO
9631if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9632 for ncn_progname in gfortran; do
9633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9634set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636$as_echo_n "checking for $ac_word... " >&6; }
9637if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9638 $as_echo_n "(cached) " >&6
55db4b87 9639else
9a819804
AO
9640 if test -n "$GFORTRAN_FOR_TARGET"; then
9641 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 9642else
c6b750e1
DJ
9643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644for as_dir in $PATH
9645do
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9650 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9652 break 2
9653 fi
9654done
81ecdfbb
RW
9655 done
9656IFS=$as_save_IFS
c6b750e1 9657
55db4b87
PB
9658fi
9659fi
9a819804
AO
9660GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
9661if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9663$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 9664else
81ecdfbb
RW
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9666$as_echo "no" >&6; }
55db4b87 9667fi
c6b750e1 9668
81ecdfbb 9669
2429c060
PB
9670 done
9671fi
c6b750e1 9672
9a819804 9673if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9674 for ncn_progname in gfortran; do
81ecdfbb
RW
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9676$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9677 if test -x $with_build_time_tools/${ncn_progname}; then
9678 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9680$as_echo "yes" >&6; }
2429c060
PB
9681 break
9682 else
81ecdfbb
RW
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684$as_echo "no" >&6; }
2429c060
PB
9685 fi
9686 done
9687fi
9688
9689if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
9690 for ncn_progname in gfortran; do
9691 if test -n "$ncn_target_tool_prefix"; then
9692 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9693set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9695$as_echo_n "checking for $ac_word... " >&6; }
9696if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9697 $as_echo_n "(cached) " >&6
55db4b87
PB
9698else
9699 if test -n "$GFORTRAN_FOR_TARGET"; then
9700 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9701else
c6b750e1
DJ
9702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703for as_dir in $PATH
9704do
9705 IFS=$as_save_IFS
9706 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9707 for ac_exec_ext in '' $ac_executable_extensions; do
9708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9709 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9711 break 2
9712 fi
9713done
81ecdfbb
RW
9714 done
9715IFS=$as_save_IFS
c6b750e1 9716
55db4b87
PB
9717fi
9718fi
c6b750e1 9719GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 9720if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9722$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 9723else
81ecdfbb
RW
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9725$as_echo "no" >&6; }
55db4b87
PB
9726fi
9727
81ecdfbb 9728
2429c060
PB
9729 fi
9730 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
9731 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9732set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734$as_echo_n "checking for $ac_word... " >&6; }
9735if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
55db4b87 9737else
05cbd757 9738 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
9739 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
9740else
9741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9742for as_dir in $PATH
9743do
9744 IFS=$as_save_IFS
9745 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9748 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9750 break 2
9751 fi
9752done
81ecdfbb
RW
9753 done
9754IFS=$as_save_IFS
c6b750e1 9755
55db4b87
PB
9756fi
9757fi
c6b750e1 9758GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 9759if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
9761$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 9762else
81ecdfbb
RW
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764$as_echo "no" >&6; }
55db4b87 9765fi
c6b750e1 9766
81ecdfbb 9767
2429c060
PB
9768 fi
9769 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
9770 done
9771fi
c6b750e1 9772
05cbd757
PB
9773if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
9774 set dummy gfortran
9775 if test $build = $target ; then
9776 GFORTRAN_FOR_TARGET="$2"
55db4b87 9777 else
05cbd757 9778 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9779 fi
d3f5afc4
MS
9780else
9781 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
9782fi
9783
2429c060
PB
9784
9785
2429c060
PB
9786cat > conftest.c << \EOF
9787#ifdef __GNUC__
9788 gcc_yay;
9789#endif
9790EOF
9791if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
9792 have_gcc_for_target=yes
859789af 9793else
2429c060
PB
9794 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
9795 have_gcc_for_target=no
859789af 9796fi
2429c060
PB
9797rm conftest.c
9798
9799
9800
859789af 9801
2429c060
PB
9802if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9803 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
9805$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9806 if test -x $with_build_time_tools/ar; then
9807 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
9808 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
9810$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 9811 else
81ecdfbb
RW
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813$as_echo "no" >&6; }
3a35eeb3 9814 fi
2429c060
PB
9815 elif test $build != $host && test $have_gcc_for_target = yes; then
9816 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
9817 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
9818 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 9819 fi
2429c060 9820fi
c6b750e1 9821if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
9822 # Extract the first word of "ar", so it can be a program name with args.
9823set dummy ar; ac_word=$2
81ecdfbb
RW
9824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825$as_echo_n "checking for $ac_word... " >&6; }
9826if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
9827 $as_echo_n "(cached) " >&6
859789af 9828else
c6b750e1
DJ
9829 case $AR_FOR_TARGET in
9830 [\\/]* | ?:[\\/]*)
2429c060
PB
9831 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
9832 ;;
2429c060 9833 *)
c6b750e1
DJ
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9835for as_dir in $gcc_cv_tool_dirs
9836do
9837 IFS=$as_save_IFS
9838 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9841 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9843 break 2
9844 fi
9845done
81ecdfbb
RW
9846 done
9847IFS=$as_save_IFS
c6b750e1 9848
2429c060
PB
9849 ;;
9850esac
859789af 9851fi
c6b750e1 9852AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 9853if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9855$as_echo "$AR_FOR_TARGET" >&6; }
859789af 9856else
81ecdfbb
RW
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9858$as_echo "no" >&6; }
859789af 9859fi
05cbd757 9860
81ecdfbb 9861
2429c060
PB
9862fi
9863if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
9864
9865
9866if test -n "$AR_FOR_TARGET"; then
9867 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
9868elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9869 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9870fi
9871
9872if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
9873 for ncn_progname in ar; do
9874 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9875set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9877$as_echo_n "checking for $ac_word... " >&6; }
9878if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9879 $as_echo_n "(cached) " >&6
9a819804
AO
9880else
9881 if test -n "$AR_FOR_TARGET"; then
9882 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
9883else
9884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9885for as_dir in $PATH
9886do
9887 IFS=$as_save_IFS
9888 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9889 for ac_exec_ext in '' $ac_executable_extensions; do
9890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9891 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 9892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9893 break 2
9894 fi
9895done
81ecdfbb
RW
9896 done
9897IFS=$as_save_IFS
9a819804
AO
9898
9899fi
9900fi
9901AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
9902if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9904$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 9905else
81ecdfbb
RW
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907$as_echo "no" >&6; }
9a819804
AO
9908fi
9909
81ecdfbb 9910
9a819804
AO
9911 done
9912fi
9913
9914if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9915 for ncn_progname in ar; do
81ecdfbb
RW
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9917$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9918 if test -x $with_build_time_tools/${ncn_progname}; then
9919 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9921$as_echo "yes" >&6; }
2429c060
PB
9922 break
9923 else
81ecdfbb
RW
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925$as_echo "no" >&6; }
2429c060
PB
9926 fi
9927 done
859789af
AC
9928fi
9929
2429c060
PB
9930if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
9931 for ncn_progname in ar; do
9932 if test -n "$ncn_target_tool_prefix"; then
9933 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9934set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936$as_echo_n "checking for $ac_word... " >&6; }
9937if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
7e0f7140 9939else
2429c060
PB
9940 if test -n "$AR_FOR_TARGET"; then
9941 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 9942else
c6b750e1
DJ
9943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944for as_dir in $PATH
9945do
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9950 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9952 break 2
9953 fi
9954done
81ecdfbb
RW
9955 done
9956IFS=$as_save_IFS
c6b750e1 9957
7e0f7140
GK
9958fi
9959fi
c6b750e1 9960AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 9961if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
9963$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 9964else
81ecdfbb
RW
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966$as_echo "no" >&6; }
7e0f7140
GK
9967fi
9968
81ecdfbb 9969
2429c060
PB
9970 fi
9971 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
9972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 9973set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975$as_echo_n "checking for $ac_word... " >&6; }
9976if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
7e0f7140 9978else
2429c060
PB
9979 if test -n "$AR_FOR_TARGET"; then
9980 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 9981else
c6b750e1
DJ
9982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in $PATH
9984do
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9989 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 9990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9991 break 2
9992 fi
9993done
81ecdfbb
RW
9994 done
9995IFS=$as_save_IFS
c6b750e1 9996
7e0f7140
GK
9997fi
9998fi
c6b750e1 9999AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10000if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10002$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10003else
81ecdfbb
RW
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005$as_echo "no" >&6; }
7e0f7140 10006fi
c6b750e1 10007
81ecdfbb 10008
2429c060
PB
10009 fi
10010 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10011 done
10012fi
c6b750e1 10013
2429c060
PB
10014if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10015 set dummy ar
7e0f7140 10016 if test $build = $target ; then
2429c060 10017 AR_FOR_TARGET="$2"
7e0f7140 10018 else
2429c060 10019 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10020 fi
d3f5afc4
MS
10021else
10022 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10023fi
10024
3a35eeb3
PB
10025else
10026 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10027fi
10028
10029
10030
10031
10032if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10033 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10035$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10036 if test -x $with_build_time_tools/as; then
10037 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10038 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10040$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10041 else
81ecdfbb
RW
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043$as_echo "no" >&6; }
3a35eeb3 10044 fi
2429c060
PB
10045 elif test $build != $host && test $have_gcc_for_target = yes; then
10046 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10047 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10048 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10049 fi
10050fi
c6b750e1 10051if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10052 # Extract the first word of "as", so it can be a program name with args.
10053set dummy as; ac_word=$2
81ecdfbb
RW
10054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055$as_echo_n "checking for $ac_word... " >&6; }
10056if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10057 $as_echo_n "(cached) " >&6
2429c060 10058else
c6b750e1
DJ
10059 case $AS_FOR_TARGET in
10060 [\\/]* | ?:[\\/]*)
2429c060
PB
10061 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10062 ;;
2429c060 10063 *)
c6b750e1
DJ
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065for as_dir in $gcc_cv_tool_dirs
10066do
10067 IFS=$as_save_IFS
10068 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10071 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10073 break 2
10074 fi
10075done
81ecdfbb
RW
10076 done
10077IFS=$as_save_IFS
c6b750e1 10078
2429c060
PB
10079 ;;
10080esac
10081fi
c6b750e1 10082AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10083if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10085$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10086else
81ecdfbb
RW
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088$as_echo "no" >&6; }
2429c060
PB
10089fi
10090
81ecdfbb 10091
2429c060
PB
10092fi
10093if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10094
10095
10096if test -n "$AS_FOR_TARGET"; then
10097 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10098elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10099 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10100fi
10101
10102if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10103 for ncn_progname in as; do
10104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10105set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10107$as_echo_n "checking for $ac_word... " >&6; }
10108if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10109 $as_echo_n "(cached) " >&6
9a819804
AO
10110else
10111 if test -n "$AS_FOR_TARGET"; then
10112 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10113else
10114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10115for as_dir in $PATH
10116do
10117 IFS=$as_save_IFS
10118 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10119 for ac_exec_ext in '' $ac_executable_extensions; do
10120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10121 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10123 break 2
10124 fi
10125done
81ecdfbb
RW
10126 done
10127IFS=$as_save_IFS
9a819804
AO
10128
10129fi
10130fi
10131AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10132if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10134$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10135else
81ecdfbb
RW
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10137$as_echo "no" >&6; }
9a819804
AO
10138fi
10139
81ecdfbb 10140
9a819804
AO
10141 done
10142fi
10143
10144if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10145 for ncn_progname in as; do
81ecdfbb
RW
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10147$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10148 if test -x $with_build_time_tools/${ncn_progname}; then
10149 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10151$as_echo "yes" >&6; }
2429c060
PB
10152 break
10153 else
81ecdfbb
RW
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10155$as_echo "no" >&6; }
2429c060
PB
10156 fi
10157 done
10158fi
10159
10160if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10161 for ncn_progname in as; do
10162 if test -n "$ncn_target_tool_prefix"; then
10163 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10164set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166$as_echo_n "checking for $ac_word... " >&6; }
10167if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10168 $as_echo_n "(cached) " >&6
2429c060
PB
10169else
10170 if test -n "$AS_FOR_TARGET"; then
10171 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10172else
c6b750e1
DJ
10173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174for as_dir in $PATH
10175do
10176 IFS=$as_save_IFS
10177 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10178 for ac_exec_ext in '' $ac_executable_extensions; do
10179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10180 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10182 break 2
10183 fi
10184done
81ecdfbb
RW
10185 done
10186IFS=$as_save_IFS
c6b750e1 10187
2429c060
PB
10188fi
10189fi
c6b750e1 10190AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10191if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10193$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10194else
81ecdfbb
RW
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196$as_echo "no" >&6; }
2429c060
PB
10197fi
10198
81ecdfbb 10199
2429c060
PB
10200 fi
10201 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10203set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10205$as_echo_n "checking for $ac_word... " >&6; }
10206if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10207 $as_echo_n "(cached) " >&6
2429c060
PB
10208else
10209 if test -n "$AS_FOR_TARGET"; then
10210 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10211else
c6b750e1
DJ
10212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213for as_dir in $PATH
10214do
10215 IFS=$as_save_IFS
10216 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10217 for ac_exec_ext in '' $ac_executable_extensions; do
10218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10219 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10221 break 2
10222 fi
10223done
81ecdfbb
RW
10224 done
10225IFS=$as_save_IFS
c6b750e1 10226
2429c060
PB
10227fi
10228fi
c6b750e1 10229AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10230if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10232$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10233else
81ecdfbb
RW
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235$as_echo "no" >&6; }
2429c060 10236fi
c6b750e1 10237
81ecdfbb 10238
2429c060
PB
10239 fi
10240 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10241 done
10242fi
c6b750e1 10243
2429c060
PB
10244if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10245 set dummy as
10246 if test $build = $target ; then
10247 AS_FOR_TARGET="$2"
10248 else
10249 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10250 fi
d3f5afc4
MS
10251else
10252 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
10253fi
10254
3a35eeb3
PB
10255else
10256 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
10257fi
10258
10259
10260
10261
10262if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10263 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10265$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10266 if test -x $with_build_time_tools/dlltool; then
10267 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10268 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10270$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 10271 else
81ecdfbb
RW
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10273$as_echo "no" >&6; }
3a35eeb3 10274 fi
2429c060
PB
10275 elif test $build != $host && test $have_gcc_for_target = yes; then
10276 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
10277 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10278 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
10279 fi
10280fi
c6b750e1 10281if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10282 # Extract the first word of "dlltool", so it can be a program name with args.
10283set dummy dlltool; ac_word=$2
81ecdfbb
RW
10284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10285$as_echo_n "checking for $ac_word... " >&6; }
10286if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
2429c060 10288else
c6b750e1
DJ
10289 case $DLLTOOL_FOR_TARGET in
10290 [\\/]* | ?:[\\/]*)
2429c060
PB
10291 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10292 ;;
2429c060 10293 *)
c6b750e1
DJ
10294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10295for as_dir in $gcc_cv_tool_dirs
10296do
10297 IFS=$as_save_IFS
10298 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10299 for ac_exec_ext in '' $ac_executable_extensions; do
10300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10301 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10303 break 2
10304 fi
10305done
81ecdfbb
RW
10306 done
10307IFS=$as_save_IFS
c6b750e1 10308
2429c060
PB
10309 ;;
10310esac
10311fi
c6b750e1 10312DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 10313if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10315$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10316else
81ecdfbb
RW
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318$as_echo "no" >&6; }
2429c060
PB
10319fi
10320
81ecdfbb 10321
2429c060
PB
10322fi
10323if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
10324
10325
10326if test -n "$DLLTOOL_FOR_TARGET"; then
10327 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10328elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10329 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10330fi
10331
10332if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10333 for ncn_progname in dlltool; do
10334 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10335set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10337$as_echo_n "checking for $ac_word... " >&6; }
10338if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10339 $as_echo_n "(cached) " >&6
9a819804
AO
10340else
10341 if test -n "$DLLTOOL_FOR_TARGET"; then
10342 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10343else
10344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345for as_dir in $PATH
10346do
10347 IFS=$as_save_IFS
10348 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10349 for ac_exec_ext in '' $ac_executable_extensions; do
10350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10351 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 10352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10353 break 2
10354 fi
10355done
81ecdfbb
RW
10356 done
10357IFS=$as_save_IFS
9a819804
AO
10358
10359fi
10360fi
10361DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10362if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10364$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 10365else
81ecdfbb
RW
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10367$as_echo "no" >&6; }
9a819804
AO
10368fi
10369
81ecdfbb 10370
9a819804
AO
10371 done
10372fi
10373
10374if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10375 for ncn_progname in dlltool; do
81ecdfbb
RW
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10377$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10378 if test -x $with_build_time_tools/${ncn_progname}; then
10379 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10381$as_echo "yes" >&6; }
2429c060
PB
10382 break
10383 else
81ecdfbb
RW
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385$as_echo "no" >&6; }
2429c060
PB
10386 fi
10387 done
10388fi
10389
10390if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10391 for ncn_progname in dlltool; do
10392 if test -n "$ncn_target_tool_prefix"; then
10393 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10394set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10396$as_echo_n "checking for $ac_word... " >&6; }
10397if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
2429c060
PB
10399else
10400 if test -n "$DLLTOOL_FOR_TARGET"; then
10401 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10402else
c6b750e1
DJ
10403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404for as_dir in $PATH
10405do
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10410 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10412 break 2
10413 fi
10414done
81ecdfbb
RW
10415 done
10416IFS=$as_save_IFS
c6b750e1 10417
2429c060
PB
10418fi
10419fi
c6b750e1 10420DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10421if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10423$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10424else
81ecdfbb
RW
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426$as_echo "no" >&6; }
2429c060
PB
10427fi
10428
81ecdfbb 10429
2429c060
PB
10430 fi
10431 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10433set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10435$as_echo_n "checking for $ac_word... " >&6; }
10436if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10437 $as_echo_n "(cached) " >&6
2429c060
PB
10438else
10439 if test -n "$DLLTOOL_FOR_TARGET"; then
10440 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10441else
c6b750e1
DJ
10442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10443for as_dir in $PATH
10444do
10445 IFS=$as_save_IFS
10446 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10447 for ac_exec_ext in '' $ac_executable_extensions; do
10448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10449 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 10450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10451 break 2
10452 fi
10453done
81ecdfbb
RW
10454 done
10455IFS=$as_save_IFS
c6b750e1 10456
2429c060
PB
10457fi
10458fi
c6b750e1 10459DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10460if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10462$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10463else
81ecdfbb
RW
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10465$as_echo "no" >&6; }
2429c060 10466fi
c6b750e1 10467
81ecdfbb 10468
2429c060
PB
10469 fi
10470 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10471 done
10472fi
c6b750e1 10473
2429c060
PB
10474if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10475 set dummy dlltool
10476 if test $build = $target ; then
10477 DLLTOOL_FOR_TARGET="$2"
10478 else
10479 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10480 fi
d3f5afc4
MS
10481else
10482 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
10483fi
10484
3a35eeb3
PB
10485else
10486 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
10487fi
10488
10489
10490
10491
10492if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10493 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
10495$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10496 if test -x $with_build_time_tools/ld; then
10497 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10498 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
10500$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 10501 else
81ecdfbb
RW
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503$as_echo "no" >&6; }
3a35eeb3 10504 fi
2429c060
PB
10505 elif test $build != $host && test $have_gcc_for_target = yes; then
10506 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
10507 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10508 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
10509 fi
10510fi
c6b750e1 10511if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10512 # Extract the first word of "ld", so it can be a program name with args.
10513set dummy ld; ac_word=$2
81ecdfbb
RW
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10515$as_echo_n "checking for $ac_word... " >&6; }
10516if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
10517 $as_echo_n "(cached) " >&6
2429c060 10518else
c6b750e1
DJ
10519 case $LD_FOR_TARGET in
10520 [\\/]* | ?:[\\/]*)
2429c060
PB
10521 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10522 ;;
2429c060 10523 *)
c6b750e1
DJ
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525for as_dir in $gcc_cv_tool_dirs
10526do
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10531 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10533 break 2
10534 fi
10535done
81ecdfbb
RW
10536 done
10537IFS=$as_save_IFS
c6b750e1 10538
2429c060
PB
10539 ;;
10540esac
10541fi
c6b750e1 10542LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 10543if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10545$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 10546else
81ecdfbb
RW
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548$as_echo "no" >&6; }
2429c060
PB
10549fi
10550
81ecdfbb 10551
2429c060
PB
10552fi
10553if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
10554
10555
10556if test -n "$LD_FOR_TARGET"; then
10557 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10558elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10559 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10560fi
10561
10562if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10563 for ncn_progname in ld; do
10564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10565set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10567$as_echo_n "checking for $ac_word... " >&6; }
10568if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10569 $as_echo_n "(cached) " >&6
9a819804
AO
10570else
10571 if test -n "$LD_FOR_TARGET"; then
10572 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10573else
10574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575for as_dir in $PATH
10576do
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10581 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 10582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10583 break 2
10584 fi
10585done
81ecdfbb
RW
10586 done
10587IFS=$as_save_IFS
9a819804
AO
10588
10589fi
10590fi
10591LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10592if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10594$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 10595else
81ecdfbb
RW
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10597$as_echo "no" >&6; }
9a819804
AO
10598fi
10599
81ecdfbb 10600
9a819804
AO
10601 done
10602fi
10603
10604if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10605 for ncn_progname in ld; do
81ecdfbb
RW
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10607$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10608 if test -x $with_build_time_tools/${ncn_progname}; then
10609 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10611$as_echo "yes" >&6; }
2429c060
PB
10612 break
10613 else
81ecdfbb
RW
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615$as_echo "no" >&6; }
2429c060
PB
10616 fi
10617 done
10618fi
10619
10620if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
10621 for ncn_progname in ld; do
10622 if test -n "$ncn_target_tool_prefix"; then
10623 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10624set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10626$as_echo_n "checking for $ac_word... " >&6; }
10627if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10628 $as_echo_n "(cached) " >&6
2429c060
PB
10629else
10630 if test -n "$LD_FOR_TARGET"; then
10631 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10632else
c6b750e1
DJ
10633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634for as_dir in $PATH
10635do
10636 IFS=$as_save_IFS
10637 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10640 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10642 break 2
10643 fi
10644done
81ecdfbb
RW
10645 done
10646IFS=$as_save_IFS
c6b750e1 10647
2429c060
PB
10648fi
10649fi
c6b750e1 10650LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10651if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10653$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 10654else
81ecdfbb
RW
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10656$as_echo "no" >&6; }
2429c060
PB
10657fi
10658
81ecdfbb 10659
2429c060
PB
10660 fi
10661 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
10662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10663set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10665$as_echo_n "checking for $ac_word... " >&6; }
10666if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10667 $as_echo_n "(cached) " >&6
2429c060
PB
10668else
10669 if test -n "$LD_FOR_TARGET"; then
10670 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10671else
c6b750e1
DJ
10672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10673for as_dir in $PATH
10674do
10675 IFS=$as_save_IFS
10676 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10677 for ac_exec_ext in '' $ac_executable_extensions; do
10678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10679 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 10680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10681 break 2
10682 fi
10683done
81ecdfbb
RW
10684 done
10685IFS=$as_save_IFS
c6b750e1 10686
2429c060
PB
10687fi
10688fi
c6b750e1 10689LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 10690if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10692$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 10693else
81ecdfbb
RW
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10695$as_echo "no" >&6; }
2429c060 10696fi
c6b750e1 10697
81ecdfbb 10698
2429c060
PB
10699 fi
10700 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
10701 done
10702fi
c6b750e1 10703
2429c060
PB
10704if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
10705 set dummy ld
10706 if test $build = $target ; then
10707 LD_FOR_TARGET="$2"
10708 else
10709 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
10710 fi
d3f5afc4
MS
10711else
10712 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
10713fi
10714
3a35eeb3
PB
10715else
10716 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
10717fi
10718
10719
10720
10721
10722if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10723 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
10725$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10726 if test -x $with_build_time_tools/lipo; then
10727 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
10728 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
10730$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 10731 else
81ecdfbb
RW
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733$as_echo "no" >&6; }
3a35eeb3 10734 fi
2429c060
PB
10735 elif test $build != $host && test $have_gcc_for_target = yes; then
10736 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
10737 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
10738 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
10739 fi
10740fi
9a819804
AO
10741if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
10742 # Extract the first word of "lipo", so it can be a program name with args.
10743set dummy lipo; ac_word=$2
81ecdfbb
RW
10744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10745$as_echo_n "checking for $ac_word... " >&6; }
10746if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
10747 $as_echo_n "(cached) " >&6
9a819804
AO
10748else
10749 case $LIPO_FOR_TARGET in
10750 [\\/]* | ?:[\\/]*)
10751 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
10752 ;;
10753 *)
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755for as_dir in $gcc_cv_tool_dirs
10756do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10761 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10763 break 2
10764 fi
10765done
81ecdfbb
RW
10766 done
10767IFS=$as_save_IFS
9a819804
AO
10768
10769 ;;
10770esac
10771fi
10772LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 10773if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10775$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 10776else
81ecdfbb
RW
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10778$as_echo "no" >&6; }
9a819804
AO
10779fi
10780
81ecdfbb 10781
9a819804
AO
10782fi
10783if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
10784
10785
10786if test -n "$LIPO_FOR_TARGET"; then
10787 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
10788elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10789 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
10790fi
10791
10792if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
10793 for ncn_progname in lipo; do
10794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10795set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10797$as_echo_n "checking for $ac_word... " >&6; }
10798if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10799 $as_echo_n "(cached) " >&6
2429c060 10800else
9a819804
AO
10801 if test -n "$LIPO_FOR_TARGET"; then
10802 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10803else
10804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805for as_dir in $PATH
c6b750e1
DJ
10806do
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10811 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 10812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10813 break 2
10814 fi
10815done
81ecdfbb
RW
10816 done
10817IFS=$as_save_IFS
c6b750e1 10818
2429c060 10819fi
9a819804
AO
10820fi
10821LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10822if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10824$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 10825else
81ecdfbb
RW
10826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10827$as_echo "no" >&6; }
2429c060
PB
10828fi
10829
81ecdfbb 10830
9a819804 10831 done
2429c060 10832fi
9a819804
AO
10833
10834if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10835 for ncn_progname in lipo; do
81ecdfbb
RW
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10837$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10838 if test -x $with_build_time_tools/${ncn_progname}; then
10839 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10841$as_echo "yes" >&6; }
2429c060
PB
10842 break
10843 else
81ecdfbb
RW
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845$as_echo "no" >&6; }
2429c060
PB
10846 fi
10847 done
10848fi
10849
10850if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
10851 for ncn_progname in lipo; do
10852 if test -n "$ncn_target_tool_prefix"; then
10853 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10854set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10856$as_echo_n "checking for $ac_word... " >&6; }
10857if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10858 $as_echo_n "(cached) " >&6
2429c060
PB
10859else
10860 if test -n "$LIPO_FOR_TARGET"; then
10861 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10862else
c6b750e1
DJ
10863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864for as_dir in $PATH
10865do
10866 IFS=$as_save_IFS
10867 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10870 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10872 break 2
10873 fi
10874done
81ecdfbb
RW
10875 done
10876IFS=$as_save_IFS
c6b750e1 10877
2429c060
PB
10878fi
10879fi
c6b750e1 10880LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10881if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10883$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 10884else
81ecdfbb
RW
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10886$as_echo "no" >&6; }
2429c060
PB
10887fi
10888
81ecdfbb 10889
2429c060
PB
10890 fi
10891 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
10892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10893set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10895$as_echo_n "checking for $ac_word... " >&6; }
10896if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
10897 $as_echo_n "(cached) " >&6
2429c060
PB
10898else
10899 if test -n "$LIPO_FOR_TARGET"; then
10900 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
10901else
c6b750e1
DJ
10902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903for as_dir in $PATH
10904do
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10909 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 10910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10911 break 2
10912 fi
10913done
81ecdfbb
RW
10914 done
10915IFS=$as_save_IFS
c6b750e1 10916
2429c060
PB
10917fi
10918fi
c6b750e1 10919LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 10920if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
10922$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 10923else
81ecdfbb
RW
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925$as_echo "no" >&6; }
2429c060 10926fi
c6b750e1 10927
81ecdfbb 10928
2429c060
PB
10929 fi
10930 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
10931 done
10932fi
c6b750e1 10933
2429c060
PB
10934if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
10935 set dummy lipo
10936 if test $build = $target ; then
10937 LIPO_FOR_TARGET="$2"
10938 else
10939 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
10940 fi
d3f5afc4
MS
10941else
10942 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
10943fi
10944
3a35eeb3
PB
10945else
10946 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
10947fi
10948
10949
10950
10951
10952if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
10953 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
10955$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10956 if test -x $with_build_time_tools/nm; then
10957 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
10958 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
10960$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 10961 else
81ecdfbb
RW
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963$as_echo "no" >&6; }
3a35eeb3 10964 fi
2429c060
PB
10965 elif test $build != $host && test $have_gcc_for_target = yes; then
10966 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
10967 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
10968 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
10969 fi
10970fi
c6b750e1 10971if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10972 # Extract the first word of "nm", so it can be a program name with args.
10973set dummy nm; ac_word=$2
81ecdfbb
RW
10974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975$as_echo_n "checking for $ac_word... " >&6; }
10976if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
2429c060 10978else
c6b750e1
DJ
10979 case $NM_FOR_TARGET in
10980 [\\/]* | ?:[\\/]*)
2429c060
PB
10981 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
10982 ;;
2429c060 10983 *)
c6b750e1
DJ
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985for as_dir in $gcc_cv_tool_dirs
10986do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10991 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10993 break 2
10994 fi
10995done
81ecdfbb
RW
10996 done
10997IFS=$as_save_IFS
c6b750e1 10998
2429c060
PB
10999 ;;
11000esac
11001fi
c6b750e1 11002NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11003if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11005$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11006else
81ecdfbb
RW
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008$as_echo "no" >&6; }
2429c060
PB
11009fi
11010
81ecdfbb 11011
2429c060
PB
11012fi
11013if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11014
11015
11016if test -n "$NM_FOR_TARGET"; then
11017 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11018elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11019 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11020fi
11021
11022if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11023 for ncn_progname in nm; do
11024 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11025set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11027$as_echo_n "checking for $ac_word... " >&6; }
11028if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11029 $as_echo_n "(cached) " >&6
9a819804
AO
11030else
11031 if test -n "$NM_FOR_TARGET"; then
11032 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11033else
11034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11035for as_dir in $PATH
11036do
11037 IFS=$as_save_IFS
11038 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11039 for ac_exec_ext in '' $ac_executable_extensions; do
11040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11041 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11043 break 2
11044 fi
11045done
81ecdfbb
RW
11046 done
11047IFS=$as_save_IFS
9a819804
AO
11048
11049fi
11050fi
11051NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11052if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11054$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11055else
81ecdfbb
RW
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11057$as_echo "no" >&6; }
9a819804
AO
11058fi
11059
81ecdfbb 11060
9a819804
AO
11061 done
11062fi
11063
11064if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11065 for ncn_progname in nm; do
81ecdfbb
RW
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11067$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11068 if test -x $with_build_time_tools/${ncn_progname}; then
11069 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11071$as_echo "yes" >&6; }
2429c060
PB
11072 break
11073 else
81ecdfbb
RW
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075$as_echo "no" >&6; }
2429c060
PB
11076 fi
11077 done
11078fi
11079
11080if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11081 for ncn_progname in nm; do
11082 if test -n "$ncn_target_tool_prefix"; then
11083 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11084set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086$as_echo_n "checking for $ac_word... " >&6; }
11087if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11088 $as_echo_n "(cached) " >&6
859789af 11089else
55db4b87
PB
11090 if test -n "$NM_FOR_TARGET"; then
11091 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11092else
c6b750e1
DJ
11093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094for as_dir in $PATH
11095do
11096 IFS=$as_save_IFS
11097 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11100 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11102 break 2
11103 fi
11104done
81ecdfbb
RW
11105 done
11106IFS=$as_save_IFS
c6b750e1 11107
859789af
AC
11108fi
11109fi
c6b750e1 11110NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11111if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11113$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11114else
81ecdfbb
RW
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116$as_echo "no" >&6; }
859789af
AC
11117fi
11118
81ecdfbb 11119
2429c060
PB
11120 fi
11121 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11122 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11123set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11125$as_echo_n "checking for $ac_word... " >&6; }
11126if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11127 $as_echo_n "(cached) " >&6
859789af 11128else
05cbd757
PB
11129 if test -n "$NM_FOR_TARGET"; then
11130 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11131else
c6b750e1
DJ
11132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11133for as_dir in $PATH
11134do
11135 IFS=$as_save_IFS
11136 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11137 for ac_exec_ext in '' $ac_executable_extensions; do
11138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11139 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11141 break 2
11142 fi
11143done
81ecdfbb
RW
11144 done
11145IFS=$as_save_IFS
c6b750e1 11146
859789af
AC
11147fi
11148fi
c6b750e1 11149NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11150if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11152$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11153else
81ecdfbb
RW
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11155$as_echo "no" >&6; }
859789af 11156fi
c6b750e1 11157
81ecdfbb 11158
2429c060
PB
11159 fi
11160 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11161 done
11162fi
c6b750e1 11163
05cbd757
PB
11164if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11165 set dummy nm
11166 if test $build = $target ; then
11167 NM_FOR_TARGET="$2"
859789af 11168 else
05cbd757 11169 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11170 fi
d3f5afc4
MS
11171else
11172 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
11173fi
11174
3a35eeb3
PB
11175else
11176 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
11177fi
11178
11179
11180
11181
11182if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11183 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11185$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11186 if test -x $with_build_time_tools/objdump; then
11187 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11188 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11190$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 11191 else
81ecdfbb
RW
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193$as_echo "no" >&6; }
3a35eeb3 11194 fi
2429c060
PB
11195 elif test $build != $host && test $have_gcc_for_target = yes; then
11196 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
11197 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11198 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
11199 fi
11200fi
c6b750e1 11201if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11202 # Extract the first word of "objdump", so it can be a program name with args.
11203set dummy objdump; ac_word=$2
81ecdfbb
RW
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11205$as_echo_n "checking for $ac_word... " >&6; }
11206if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11207 $as_echo_n "(cached) " >&6
2429c060 11208else
c6b750e1
DJ
11209 case $OBJDUMP_FOR_TARGET in
11210 [\\/]* | ?:[\\/]*)
2429c060
PB
11211 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11212 ;;
2429c060 11213 *)
c6b750e1
DJ
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215for as_dir in $gcc_cv_tool_dirs
11216do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11221 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11223 break 2
11224 fi
11225done
81ecdfbb
RW
11226 done
11227IFS=$as_save_IFS
c6b750e1 11228
2429c060
PB
11229 ;;
11230esac
11231fi
c6b750e1 11232OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 11233if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11235$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 11236else
81ecdfbb
RW
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11238$as_echo "no" >&6; }
2429c060
PB
11239fi
11240
81ecdfbb 11241
2429c060
PB
11242fi
11243if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
11244
11245
11246if test -n "$OBJDUMP_FOR_TARGET"; then
11247 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11248elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11249 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11250fi
11251
11252if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11253 for ncn_progname in objdump; do
11254 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11255set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257$as_echo_n "checking for $ac_word... " >&6; }
11258if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11259 $as_echo_n "(cached) " >&6
9a819804
AO
11260else
11261 if test -n "$OBJDUMP_FOR_TARGET"; then
11262 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11263else
11264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265for as_dir in $PATH
11266do
11267 IFS=$as_save_IFS
11268 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11269 for ac_exec_ext in '' $ac_executable_extensions; do
11270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11271 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11273 break 2
11274 fi
11275done
81ecdfbb
RW
11276 done
11277IFS=$as_save_IFS
9a819804
AO
11278
11279fi
11280fi
11281OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11282if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11284$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 11285else
81ecdfbb
RW
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287$as_echo "no" >&6; }
9a819804
AO
11288fi
11289
81ecdfbb 11290
9a819804
AO
11291 done
11292fi
11293
11294if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11295 for ncn_progname in objdump; do
81ecdfbb
RW
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11297$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11298 if test -x $with_build_time_tools/${ncn_progname}; then
11299 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11301$as_echo "yes" >&6; }
2429c060
PB
11302 break
11303 else
81ecdfbb
RW
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305$as_echo "no" >&6; }
2429c060
PB
11306 fi
11307 done
11308fi
11309
11310if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11311 for ncn_progname in objdump; do
11312 if test -n "$ncn_target_tool_prefix"; then
11313 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11314set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316$as_echo_n "checking for $ac_word... " >&6; }
11317if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11318 $as_echo_n "(cached) " >&6
5ae72758
DJ
11319else
11320 if test -n "$OBJDUMP_FOR_TARGET"; then
11321 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11322else
c6b750e1
DJ
11323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324for as_dir in $PATH
11325do
11326 IFS=$as_save_IFS
11327 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11330 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11332 break 2
11333 fi
11334done
81ecdfbb
RW
11335 done
11336IFS=$as_save_IFS
c6b750e1 11337
5ae72758
DJ
11338fi
11339fi
c6b750e1 11340OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11341if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11343$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 11344else
81ecdfbb
RW
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346$as_echo "no" >&6; }
5ae72758
DJ
11347fi
11348
81ecdfbb 11349
2429c060
PB
11350 fi
11351 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 11353set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11355$as_echo_n "checking for $ac_word... " >&6; }
11356if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11357 $as_echo_n "(cached) " >&6
5ae72758
DJ
11358else
11359 if test -n "$OBJDUMP_FOR_TARGET"; then
11360 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11361else
c6b750e1
DJ
11362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11363for as_dir in $PATH
11364do
11365 IFS=$as_save_IFS
11366 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11367 for ac_exec_ext in '' $ac_executable_extensions; do
11368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11369 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11371 break 2
11372 fi
11373done
81ecdfbb
RW
11374 done
11375IFS=$as_save_IFS
c6b750e1 11376
5ae72758
DJ
11377fi
11378fi
c6b750e1 11379OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11380if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11382$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 11383else
81ecdfbb
RW
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385$as_echo "no" >&6; }
5ae72758 11386fi
c6b750e1 11387
81ecdfbb 11388
2429c060
PB
11389 fi
11390 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11391 done
11392fi
c6b750e1 11393
5ae72758
DJ
11394if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11395 set dummy objdump
11396 if test $build = $target ; then
11397 OBJDUMP_FOR_TARGET="$2"
11398 else
11399 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11400 fi
d3f5afc4
MS
11401else
11402 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
11403fi
11404
3a35eeb3
PB
11405else
11406 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
11407fi
11408
11409
11410
11411
11412if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11413 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
11415$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11416 if test -x $with_build_time_tools/ranlib; then
11417 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11418 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11420$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 11421 else
81ecdfbb
RW
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423$as_echo "no" >&6; }
3a35eeb3 11424 fi
2429c060
PB
11425 elif test $build != $host && test $have_gcc_for_target = yes; then
11426 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
11427 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11428 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
11429 fi
11430fi
c6b750e1 11431if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11432 # Extract the first word of "ranlib", so it can be a program name with args.
11433set dummy ranlib; ac_word=$2
81ecdfbb
RW
11434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11435$as_echo_n "checking for $ac_word... " >&6; }
11436if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
11437 $as_echo_n "(cached) " >&6
2429c060 11438else
c6b750e1
DJ
11439 case $RANLIB_FOR_TARGET in
11440 [\\/]* | ?:[\\/]*)
2429c060
PB
11441 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11442 ;;
2429c060 11443 *)
c6b750e1
DJ
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445for as_dir in $gcc_cv_tool_dirs
11446do
11447 IFS=$as_save_IFS
11448 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11451 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11453 break 2
11454 fi
11455done
81ecdfbb
RW
11456 done
11457IFS=$as_save_IFS
c6b750e1 11458
2429c060
PB
11459 ;;
11460esac
11461fi
c6b750e1 11462RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 11463if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11465$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 11466else
81ecdfbb
RW
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468$as_echo "no" >&6; }
2429c060
PB
11469fi
11470
81ecdfbb 11471
2429c060
PB
11472fi
11473if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
11474
11475
11476if test -n "$RANLIB_FOR_TARGET"; then
11477 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11478elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11479 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11480fi
11481
11482if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11483 for ncn_progname in ranlib; do
11484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11485set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11487$as_echo_n "checking for $ac_word... " >&6; }
11488if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11489 $as_echo_n "(cached) " >&6
9a819804
AO
11490else
11491 if test -n "$RANLIB_FOR_TARGET"; then
11492 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11493else
11494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495for as_dir in $PATH
11496do
11497 IFS=$as_save_IFS
11498 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11499 for ac_exec_ext in '' $ac_executable_extensions; do
11500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11501 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 11502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11503 break 2
11504 fi
11505done
81ecdfbb
RW
11506 done
11507IFS=$as_save_IFS
9a819804
AO
11508
11509fi
11510fi
11511RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11512if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11514$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 11515else
81ecdfbb
RW
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517$as_echo "no" >&6; }
9a819804
AO
11518fi
11519
81ecdfbb 11520
9a819804
AO
11521 done
11522fi
11523
11524if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11525 for ncn_progname in ranlib; do
81ecdfbb
RW
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11527$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11528 if test -x $with_build_time_tools/${ncn_progname}; then
11529 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11531$as_echo "yes" >&6; }
2429c060
PB
11532 break
11533 else
81ecdfbb
RW
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535$as_echo "no" >&6; }
2429c060
PB
11536 fi
11537 done
11538fi
11539
11540if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11541 for ncn_progname in ranlib; do
11542 if test -n "$ncn_target_tool_prefix"; then
11543 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 11544set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11546$as_echo_n "checking for $ac_word... " >&6; }
11547if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11548 $as_echo_n "(cached) " >&6
859789af 11549else
55db4b87
PB
11550 if test -n "$RANLIB_FOR_TARGET"; then
11551 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11552else
c6b750e1
DJ
11553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11554for as_dir in $PATH
11555do
11556 IFS=$as_save_IFS
11557 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11558 for ac_exec_ext in '' $ac_executable_extensions; do
11559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11560 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11562 break 2
11563 fi
11564done
81ecdfbb
RW
11565 done
11566IFS=$as_save_IFS
c6b750e1 11567
859789af
AC
11568fi
11569fi
c6b750e1 11570RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 11571if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11573$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 11574else
81ecdfbb
RW
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576$as_echo "no" >&6; }
859789af
AC
11577fi
11578
81ecdfbb 11579
2429c060
PB
11580 fi
11581 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11583set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11585$as_echo_n "checking for $ac_word... " >&6; }
11586if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11587 $as_echo_n "(cached) " >&6
859789af 11588else
05cbd757
PB
11589 if test -n "$RANLIB_FOR_TARGET"; then
11590 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11591else
c6b750e1
DJ
11592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11593for as_dir in $PATH
11594do
11595 IFS=$as_save_IFS
11596 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11597 for ac_exec_ext in '' $ac_executable_extensions; do
11598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11599 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 11600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11601 break 2
11602 fi
11603done
81ecdfbb
RW
11604 done
11605IFS=$as_save_IFS
c6b750e1 11606
859789af
AC
11607fi
11608fi
c6b750e1 11609RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 11610if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11612$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 11613else
81ecdfbb
RW
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615$as_echo "no" >&6; }
859789af 11616fi
c6b750e1 11617
81ecdfbb 11618
2429c060
PB
11619 fi
11620 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
11621 done
11622fi
c6b750e1 11623
2429c060
PB
11624if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
11625 set dummy ranlib
11626 if test $build = $target ; then
11627 RANLIB_FOR_TARGET="$2"
11628 else
11629 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11630 fi
d3f5afc4
MS
11631else
11632 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 11633fi
05cbd757 11634
3a35eeb3
PB
11635else
11636 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
11637fi
11638
2429c060
PB
11639
11640
11641
11642if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
11643 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
11645$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11646 if test -x $with_build_time_tools/strip; then
11647 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
11648 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
11650$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 11651 else
81ecdfbb
RW
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653$as_echo "no" >&6; }
3a35eeb3 11654 fi
2429c060
PB
11655 elif test $build != $host && test $have_gcc_for_target = yes; then
11656 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
11657 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
11658 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
11659 fi
11660fi
c6b750e1 11661if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11662 # Extract the first word of "strip", so it can be a program name with args.
11663set dummy strip; ac_word=$2
81ecdfbb
RW
11664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11665$as_echo_n "checking for $ac_word... " >&6; }
11666if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
11667 $as_echo_n "(cached) " >&6
2429c060 11668else
c6b750e1
DJ
11669 case $STRIP_FOR_TARGET in
11670 [\\/]* | ?:[\\/]*)
2429c060
PB
11671 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
11672 ;;
2429c060 11673 *)
c6b750e1
DJ
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675for as_dir in $gcc_cv_tool_dirs
11676do
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11681 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11683 break 2
11684 fi
11685done
81ecdfbb
RW
11686 done
11687IFS=$as_save_IFS
c6b750e1 11688
2429c060
PB
11689 ;;
11690esac
11691fi
c6b750e1 11692STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 11693if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11695$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 11696else
81ecdfbb
RW
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11698$as_echo "no" >&6; }
2429c060
PB
11699fi
11700
81ecdfbb 11701
2429c060
PB
11702fi
11703if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
11704
11705
11706if test -n "$STRIP_FOR_TARGET"; then
11707 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
11708elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11709 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11710fi
11711
11712if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
11713 for ncn_progname in strip; do
11714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11715set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11717$as_echo_n "checking for $ac_word... " >&6; }
11718if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11719 $as_echo_n "(cached) " >&6
9a819804
AO
11720else
11721 if test -n "$STRIP_FOR_TARGET"; then
11722 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11723else
11724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725for as_dir in $PATH
11726do
11727 IFS=$as_save_IFS
11728 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11731 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11733 break 2
11734 fi
11735done
81ecdfbb
RW
11736 done
11737IFS=$as_save_IFS
9a819804
AO
11738
11739fi
11740fi
11741STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
11742if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11744$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 11745else
81ecdfbb
RW
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11747$as_echo "no" >&6; }
9a819804
AO
11748fi
11749
81ecdfbb 11750
9a819804
AO
11751 done
11752fi
11753
11754if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11755 for ncn_progname in strip; do
81ecdfbb
RW
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11757$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11758 if test -x $with_build_time_tools/${ncn_progname}; then
11759 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761$as_echo "yes" >&6; }
2429c060
PB
11762 break
11763 else
81ecdfbb
RW
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11765$as_echo "no" >&6; }
2429c060
PB
11766 fi
11767 done
11768fi
11769
11770if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
11771 for ncn_progname in strip; do
11772 if test -n "$ncn_target_tool_prefix"; then
11773 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11774set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776$as_echo_n "checking for $ac_word... " >&6; }
11777if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11778 $as_echo_n "(cached) " >&6
7e0f7140
GK
11779else
11780 if test -n "$STRIP_FOR_TARGET"; then
11781 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
11782else
11783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784for as_dir in $PATH
11785do
11786 IFS=$as_save_IFS
11787 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11788 for ac_exec_ext in '' $ac_executable_extensions; do
11789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11790 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11792 break 2
11793 fi
11794done
81ecdfbb
RW
11795 done
11796IFS=$as_save_IFS
c6b750e1 11797
7e0f7140
GK
11798fi
11799fi
c6b750e1 11800STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11801if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11803$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 11804else
81ecdfbb
RW
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806$as_echo "no" >&6; }
7e0f7140
GK
11807fi
11808
81ecdfbb 11809
2429c060
PB
11810 fi
11811 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
11812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 11813set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815$as_echo_n "checking for $ac_word... " >&6; }
11816if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
11817 $as_echo_n "(cached) " >&6
7e0f7140
GK
11818else
11819 if test -n "$STRIP_FOR_TARGET"; then
11820 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
11821else
c6b750e1
DJ
11822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823for as_dir in $PATH
11824do
11825 IFS=$as_save_IFS
11826 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11827 for ac_exec_ext in '' $ac_executable_extensions; do
11828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11829 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11831 break 2
11832 fi
11833done
81ecdfbb
RW
11834 done
11835IFS=$as_save_IFS
c6b750e1 11836
7e0f7140
GK
11837fi
11838fi
c6b750e1 11839STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 11840if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
11842$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 11843else
81ecdfbb
RW
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845$as_echo "no" >&6; }
7e0f7140 11846fi
c6b750e1 11847
81ecdfbb 11848
2429c060
PB
11849 fi
11850 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
11851 done
11852fi
c6b750e1 11853
7e0f7140
GK
11854if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
11855 set dummy strip
11856 if test $build = $target ; then
11857 STRIP_FOR_TARGET="$2"
11858 else
11859 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11860 fi
d3f5afc4
MS
11861else
11862 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
11863fi
11864
3a35eeb3
PB
11865else
11866 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
11867fi
11868
11869
11870
11871
11872if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
11873 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
11875$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11876 if test -x $with_build_time_tools/windres; then
11877 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
11878 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
11880$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 11881 else
81ecdfbb
RW
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883$as_echo "no" >&6; }
3a35eeb3 11884 fi
2429c060
PB
11885 elif test $build != $host && test $have_gcc_for_target = yes; then
11886 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
11887 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
11888 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
11889 fi
11890fi
c6b750e1 11891if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11892 # Extract the first word of "windres", so it can be a program name with args.
11893set dummy windres; ac_word=$2
81ecdfbb
RW
11894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11895$as_echo_n "checking for $ac_word... " >&6; }
11896if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
11897 $as_echo_n "(cached) " >&6
2429c060 11898else
c6b750e1
DJ
11899 case $WINDRES_FOR_TARGET in
11900 [\\/]* | ?:[\\/]*)
2429c060
PB
11901 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
11902 ;;
2429c060 11903 *)
c6b750e1
DJ
11904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905for as_dir in $gcc_cv_tool_dirs
11906do
11907 IFS=$as_save_IFS
11908 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11911 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11913 break 2
11914 fi
11915done
81ecdfbb
RW
11916 done
11917IFS=$as_save_IFS
c6b750e1 11918
2429c060
PB
11919 ;;
11920esac
11921fi
c6b750e1 11922WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 11923if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
11925$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 11926else
81ecdfbb
RW
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928$as_echo "no" >&6; }
2429c060
PB
11929fi
11930
81ecdfbb 11931
2429c060
PB
11932fi
11933if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
11934
11935
11936if test -n "$WINDRES_FOR_TARGET"; then
11937 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
11938elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11939 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11940fi
11941
11942if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
11943 for ncn_progname in windres; do
11944 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11945set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947$as_echo_n "checking for $ac_word... " >&6; }
11948if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
11949 $as_echo_n "(cached) " >&6
9a819804
AO
11950else
11951 if test -n "$WINDRES_FOR_TARGET"; then
11952 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
11953else
11954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955for as_dir in $PATH
11956do
11957 IFS=$as_save_IFS
11958 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11959 for ac_exec_ext in '' $ac_executable_extensions; do
11960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11961 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11963 break 2
11964 fi
11965done
81ecdfbb
RW
11966 done
11967IFS=$as_save_IFS
9a819804
AO
11968
11969fi
11970fi
11971WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
11972if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
11974$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 11975else
81ecdfbb
RW
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977$as_echo "no" >&6; }
9a819804
AO
11978fi
11979
81ecdfbb 11980
9a819804
AO
11981 done
11982fi
11983
11984if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11985 for ncn_progname in windres; do
81ecdfbb
RW
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11987$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11988 if test -x $with_build_time_tools/${ncn_progname}; then
11989 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11991$as_echo "yes" >&6; }
2429c060
PB
11992 break
11993 else
81ecdfbb
RW
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11995$as_echo "no" >&6; }
2429c060
PB
11996 fi
11997 done
11998fi
11999
12000if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12001 for ncn_progname in windres; do
12002 if test -n "$ncn_target_tool_prefix"; then
12003 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12004set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12006$as_echo_n "checking for $ac_word... " >&6; }
12007if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
859789af 12009else
55db4b87
PB
12010 if test -n "$WINDRES_FOR_TARGET"; then
12011 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12012else
c6b750e1
DJ
12013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12014for as_dir in $PATH
12015do
12016 IFS=$as_save_IFS
12017 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12018 for ac_exec_ext in '' $ac_executable_extensions; do
12019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12020 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12022 break 2
12023 fi
12024done
81ecdfbb
RW
12025 done
12026IFS=$as_save_IFS
c6b750e1 12027
859789af
AC
12028fi
12029fi
c6b750e1 12030WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12031if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12033$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12034else
81ecdfbb
RW
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12036$as_echo "no" >&6; }
859789af
AC
12037fi
12038
81ecdfbb 12039
2429c060
PB
12040 fi
12041 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12042 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12043set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12045$as_echo_n "checking for $ac_word... " >&6; }
12046if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
859789af 12048else
05cbd757
PB
12049 if test -n "$WINDRES_FOR_TARGET"; then
12050 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12051else
c6b750e1
DJ
12052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12053for as_dir in $PATH
12054do
12055 IFS=$as_save_IFS
12056 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12057 for ac_exec_ext in '' $ac_executable_extensions; do
12058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12059 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12061 break 2
12062 fi
12063done
81ecdfbb
RW
12064 done
12065IFS=$as_save_IFS
c6b750e1 12066
859789af
AC
12067fi
12068fi
c6b750e1 12069WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12070if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12072$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12073else
81ecdfbb
RW
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075$as_echo "no" >&6; }
859789af 12076fi
c6b750e1 12077
81ecdfbb 12078
2429c060
PB
12079 fi
12080 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12081 done
12082fi
c6b750e1 12083
05cbd757
PB
12084if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12085 set dummy windres
12086 if test $build = $target ; then
12087 WINDRES_FOR_TARGET="$2"
859789af 12088 else
05cbd757 12089 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12090 fi
d3f5afc4
MS
12091else
12092 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12093fi
12094
3a35eeb3
PB
12095else
12096 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12097fi
12098
852e5f18 12099
0c24b341
NC
12100
12101
12102if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12103 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12105$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12106 if test -x $with_build_time_tools/windmc; then
12107 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12108 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12110$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12111 else
81ecdfbb
RW
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113$as_echo "no" >&6; }
0c24b341
NC
12114 fi
12115 elif test $build != $host && test $have_gcc_for_target = yes; then
12116 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12117 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12118 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12119 fi
12120fi
12121if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12122 # Extract the first word of "windmc", so it can be a program name with args.
12123set dummy windmc; ac_word=$2
81ecdfbb
RW
12124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125$as_echo_n "checking for $ac_word... " >&6; }
12126if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12127 $as_echo_n "(cached) " >&6
0c24b341
NC
12128else
12129 case $WINDMC_FOR_TARGET in
12130 [\\/]* | ?:[\\/]*)
12131 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12132 ;;
12133 *)
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135for as_dir in $gcc_cv_tool_dirs
12136do
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12141 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12143 break 2
12144 fi
12145done
81ecdfbb
RW
12146 done
12147IFS=$as_save_IFS
0c24b341
NC
12148
12149 ;;
12150esac
12151fi
12152WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 12153if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12155$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12156else
81ecdfbb
RW
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12158$as_echo "no" >&6; }
0c24b341
NC
12159fi
12160
81ecdfbb 12161
0c24b341
NC
12162fi
12163if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12164
12165
12166if test -n "$WINDMC_FOR_TARGET"; then
12167 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12168elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12169 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12170fi
12171
12172if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12173 for ncn_progname in windmc; do
12174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12175set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12177$as_echo_n "checking for $ac_word... " >&6; }
12178if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12179 $as_echo_n "(cached) " >&6
0c24b341
NC
12180else
12181 if test -n "$WINDMC_FOR_TARGET"; then
12182 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12183else
12184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185for as_dir in $PATH
12186do
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12189 for ac_exec_ext in '' $ac_executable_extensions; do
12190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12191 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 12192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12193 break 2
12194 fi
12195done
81ecdfbb
RW
12196 done
12197IFS=$as_save_IFS
0c24b341
NC
12198
12199fi
12200fi
12201WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12202if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12204$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12205else
81ecdfbb
RW
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12207$as_echo "no" >&6; }
0c24b341
NC
12208fi
12209
81ecdfbb 12210
0c24b341
NC
12211 done
12212fi
12213
12214if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12215 for ncn_progname in windmc; do
81ecdfbb
RW
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12217$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
12218 if test -x $with_build_time_tools/${ncn_progname}; then
12219 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12221$as_echo "yes" >&6; }
0c24b341
NC
12222 break
12223 else
81ecdfbb
RW
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225$as_echo "no" >&6; }
0c24b341
NC
12226 fi
12227 done
12228fi
12229
12230if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12231 for ncn_progname in windmc; do
12232 if test -n "$ncn_target_tool_prefix"; then
12233 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12234set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236$as_echo_n "checking for $ac_word... " >&6; }
12237if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12238 $as_echo_n "(cached) " >&6
0c24b341
NC
12239else
12240 if test -n "$WINDMC_FOR_TARGET"; then
12241 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12242else
12243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244for as_dir in $PATH
12245do
12246 IFS=$as_save_IFS
12247 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12250 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12252 break 2
12253 fi
12254done
81ecdfbb
RW
12255 done
12256IFS=$as_save_IFS
0c24b341
NC
12257
12258fi
12259fi
12260WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12261if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12263$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12264else
81ecdfbb
RW
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266$as_echo "no" >&6; }
0c24b341
NC
12267fi
12268
81ecdfbb 12269
0c24b341
NC
12270 fi
12271 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12273set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275$as_echo_n "checking for $ac_word... " >&6; }
12276if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12277 $as_echo_n "(cached) " >&6
0c24b341
NC
12278else
12279 if test -n "$WINDMC_FOR_TARGET"; then
12280 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12281else
12282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283for as_dir in $PATH
12284do
12285 IFS=$as_save_IFS
12286 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12287 for ac_exec_ext in '' $ac_executable_extensions; do
12288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12289 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 12290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12291 break 2
12292 fi
12293done
81ecdfbb
RW
12294 done
12295IFS=$as_save_IFS
0c24b341
NC
12296
12297fi
12298fi
12299WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12300if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12302$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12303else
81ecdfbb
RW
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305$as_echo "no" >&6; }
0c24b341
NC
12306fi
12307
81ecdfbb 12308
0c24b341
NC
12309 fi
12310 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12311 done
12312fi
12313
12314if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12315 set dummy windmc
12316 if test $build = $target ; then
12317 WINDMC_FOR_TARGET="$2"
12318 else
12319 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12320 fi
12321else
12322 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12323fi
12324
12325else
12326 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12327fi
12328
12329
be01d343
PB
12330RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12331
81ecdfbb
RW
12332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12333$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 12334if test "x${build}" != "x${host}" ; then
2429c060
PB
12335 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12336 # We already found the complete path
b8025f34 12337 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12339$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12340 else
12341 # Canadian cross, just use what we found
81ecdfbb
RW
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12343$as_echo "pre-installed" >&6; }
2429c060 12344 fi
be01d343
PB
12345else
12346 ok=yes
12347 case " ${configdirs} " in
12348 *" binutils "*) ;;
12349 *) ok=no ;;
12350 esac
c6b750e1 12351
be01d343
PB
12352 if test $ok = yes; then
12353 # An in-tree tool is available and we can use it
12354 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12356$as_echo "just compiled" >&6; }
2429c060
PB
12357 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12358 # We already found the complete path
b8025f34 12359 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12361$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12362 elif test "x$target" = "x$host"; then
12363 # We can use an host tool
12364 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12366$as_echo "host tool" >&6; }
be01d343
PB
12367 else
12368 # We need a cross tool
81ecdfbb
RW
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12370$as_echo "pre-installed" >&6; }
be01d343
PB
12371 fi
12372fi
4b900473 12373
81ecdfbb
RW
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12375$as_echo_n "checking where to find the target as... " >&6; }
be01d343 12376if test "x${build}" != "x${host}" ; then
2429c060
PB
12377 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12378 # We already found the complete path
b8025f34 12379 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12381$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12382 else
12383 # Canadian cross, just use what we found
81ecdfbb
RW
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12385$as_echo "pre-installed" >&6; }
2429c060 12386 fi
be01d343
PB
12387else
12388 ok=yes
12389 case " ${configdirs} " in
12390 *" gas "*) ;;
12391 *) ok=no ;;
12392 esac
c6b750e1 12393
be01d343
PB
12394 if test $ok = yes; then
12395 # An in-tree tool is available and we can use it
12396 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12398$as_echo "just compiled" >&6; }
2429c060
PB
12399 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12400 # We already found the complete path
b8025f34 12401 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12403$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12404 elif test "x$target" = "x$host"; then
12405 # We can use an host tool
12406 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12408$as_echo "host tool" >&6; }
be01d343
PB
12409 else
12410 # We need a cross tool
81ecdfbb
RW
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12412$as_echo "pre-installed" >&6; }
be01d343
PB
12413 fi
12414fi
4b900473 12415
81ecdfbb
RW
12416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
12417$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 12418if test "x${build}" != "x${host}" ; then
2429c060
PB
12419 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12420 # We already found the complete path
b8025f34 12421 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12423$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12424 else
12425 # Canadian cross, just use what we found
81ecdfbb
RW
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12427$as_echo "pre-installed" >&6; }
2429c060 12428 fi
be01d343
PB
12429else
12430 ok=yes
12431 case " ${configdirs} " in
12432 *" gcc "*) ;;
12433 *) ok=no ;;
12434 esac
c6b750e1 12435
be01d343
PB
12436 if test $ok = yes; then
12437 # An in-tree tool is available and we can use it
12438 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12440$as_echo "just compiled" >&6; }
2429c060
PB
12441 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12442 # We already found the complete path
b8025f34 12443 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12445$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12446 elif test "x$target" = "x$host"; then
12447 # We can use an host tool
12448 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12450$as_echo "host tool" >&6; }
be01d343
PB
12451 else
12452 # We need a cross tool
81ecdfbb
RW
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12454$as_echo "pre-installed" >&6; }
be01d343
PB
12455 fi
12456fi
4b900473 12457
81ecdfbb
RW
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
12459$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 12460if test "x${build}" != "x${host}" ; then
2429c060
PB
12461 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12462 # We already found the complete path
b8025f34 12463 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12465$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12466 else
12467 # Canadian cross, just use what we found
81ecdfbb
RW
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12469$as_echo "pre-installed" >&6; }
2429c060 12470 fi
be01d343
PB
12471else
12472 ok=yes
12473 case " ${configdirs} " in
12474 *" gcc "*) ;;
12475 *) ok=no ;;
12476 esac
12477 case ,${enable_languages}, in
12478 *,c++,*) ;;
12479 *) ok=no ;;
12480 esac
12481 if test $ok = yes; then
12482 # An in-tree tool is available and we can use it
12483 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
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12485$as_echo "just compiled" >&6; }
2429c060
PB
12486 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12487 # We already found the complete path
b8025f34 12488 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12490$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12491 elif test "x$target" = "x$host"; then
12492 # We can use an host tool
12493 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12495$as_echo "host tool" >&6; }
be01d343
PB
12496 else
12497 # We need a cross tool
81ecdfbb
RW
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12499$as_echo "pre-installed" >&6; }
be01d343
PB
12500 fi
12501fi
4b900473 12502
81ecdfbb
RW
12503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
12504$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 12505if test "x${build}" != "x${host}" ; then
2429c060
PB
12506 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12507 # We already found the complete path
b8025f34 12508 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12510$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12511 else
12512 # Canadian cross, just use what we found
81ecdfbb
RW
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12514$as_echo "pre-installed" >&6; }
2429c060 12515 fi
be01d343
PB
12516else
12517 ok=yes
12518 case " ${configdirs} " in
12519 *" gcc "*) ;;
12520 *) ok=no ;;
12521 esac
12522 case ,${enable_languages}, in
12523 *,c++,*) ;;
12524 *) ok=no ;;
12525 esac
12526 if test $ok = yes; then
12527 # An in-tree tool is available and we can use it
12528 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
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12530$as_echo "just compiled" >&6; }
2429c060
PB
12531 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12532 # We already found the complete path
b8025f34 12533 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12535$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12536 elif test "x$target" = "x$host"; then
12537 # We can use an host tool
12538 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12540$as_echo "host tool" >&6; }
be01d343
PB
12541 else
12542 # We need a cross tool
81ecdfbb
RW
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12544$as_echo "pre-installed" >&6; }
be01d343
PB
12545 fi
12546fi
4b900473 12547
81ecdfbb
RW
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
12549$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 12550if test "x${build}" != "x${host}" ; then
2429c060
PB
12551 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12552 # We already found the complete path
b8025f34 12553 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12555$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12556 else
12557 # Canadian cross, just use what we found
81ecdfbb
RW
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12559$as_echo "pre-installed" >&6; }
2429c060 12560 fi
be01d343
PB
12561else
12562 ok=yes
12563 case " ${configdirs} " in
12564 *" binutils "*) ;;
12565 *) ok=no ;;
12566 esac
c6b750e1 12567
be01d343
PB
12568 if test $ok = yes; then
12569 # An in-tree tool is available and we can use it
12570 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12572$as_echo "just compiled" >&6; }
2429c060
PB
12573 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12574 # We already found the complete path
b8025f34 12575 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12577$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12578 elif test "x$target" = "x$host"; then
12579 # We can use an host tool
12580 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12582$as_echo "host tool" >&6; }
be01d343
PB
12583 else
12584 # We need a cross tool
81ecdfbb
RW
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12586$as_echo "pre-installed" >&6; }
be01d343
PB
12587 fi
12588fi
4b900473 12589
81ecdfbb
RW
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
12591$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 12592if test "x${build}" != "x${host}" ; then
2429c060
PB
12593 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12594 # We already found the complete path
b8025f34 12595 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12597$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12598 else
12599 # Canadian cross, just use what we found
81ecdfbb
RW
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12601$as_echo "pre-installed" >&6; }
2429c060 12602 fi
be01d343
PB
12603else
12604 ok=yes
12605 case " ${configdirs} " in
12606 *" gcc "*) ;;
12607 *) ok=no ;;
12608 esac
c6b750e1 12609
be01d343
PB
12610 if test $ok = yes; then
12611 # An in-tree tool is available and we can use it
12612 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12614$as_echo "just compiled" >&6; }
2429c060
PB
12615 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12616 # We already found the complete path
b8025f34 12617 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12619$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12620 elif test "x$target" = "x$host"; then
12621 # We can use an host tool
12622 GCC_FOR_TARGET='$()'
81ecdfbb
RW
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12624$as_echo "host tool" >&6; }
be01d343
PB
12625 else
12626 # We need a cross tool
81ecdfbb
RW
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12628$as_echo "pre-installed" >&6; }
be01d343
PB
12629 fi
12630fi
4b900473 12631
81ecdfbb
RW
12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
12633$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 12634if test "x${build}" != "x${host}" ; then
2429c060
PB
12635 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12636 # We already found the complete path
b8025f34 12637 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12639$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12640 else
12641 # Canadian cross, just use what we found
81ecdfbb
RW
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12643$as_echo "pre-installed" >&6; }
2429c060 12644 fi
be01d343
PB
12645else
12646 ok=yes
12647 case " ${configdirs} " in
12648 *" gcc "*) ;;
12649 *) ok=no ;;
12650 esac
12651 case ,${enable_languages}, in
12652 *,java,*) ;;
12653 *) ok=no ;;
12654 esac
12655 if test $ok = yes; then
12656 # An in-tree tool is available and we can use it
12657 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12659$as_echo "just compiled" >&6; }
2429c060
PB
12660 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
12661 # We already found the complete path
b8025f34 12662 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12664$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12665 elif test "x$target" = "x$host"; then
12666 # We can use an host tool
12667 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12669$as_echo "host tool" >&6; }
be01d343
PB
12670 else
12671 # We need a cross tool
81ecdfbb
RW
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12673$as_echo "pre-installed" >&6; }
be01d343
PB
12674 fi
12675fi
4b900473 12676
81ecdfbb
RW
12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
12678$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 12679if test "x${build}" != "x${host}" ; then
2429c060
PB
12680 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12681 # We already found the complete path
b8025f34 12682 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12684$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12685 else
12686 # Canadian cross, just use what we found
81ecdfbb
RW
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12688$as_echo "pre-installed" >&6; }
2429c060 12689 fi
be01d343
PB
12690else
12691 ok=yes
12692 case " ${configdirs} " in
12693 *" gcc "*) ;;
12694 *) ok=no ;;
12695 esac
12696 case ,${enable_languages}, in
12697 *,fortran,*) ;;
12698 *) ok=no ;;
12699 esac
12700 if test $ok = yes; then
12701 # An in-tree tool is available and we can use it
12702 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12704$as_echo "just compiled" >&6; }
2429c060
PB
12705 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
12706 # We already found the complete path
b8025f34 12707 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12709$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12710 elif test "x$target" = "x$host"; then
12711 # We can use an host tool
12712 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12714$as_echo "host tool" >&6; }
be01d343
PB
12715 else
12716 # We need a cross tool
81ecdfbb
RW
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12718$as_echo "pre-installed" >&6; }
be01d343
PB
12719 fi
12720fi
4b900473 12721
81ecdfbb
RW
12722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
12723$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 12724if test "x${build}" != "x${host}" ; then
2429c060
PB
12725 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12726 # We already found the complete path
b8025f34 12727 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12729$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12730 else
12731 # Canadian cross, just use what we found
81ecdfbb
RW
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12733$as_echo "pre-installed" >&6; }
2429c060 12734 fi
be01d343
PB
12735else
12736 ok=yes
12737 case " ${configdirs} " in
12738 *" ld "*) ;;
12739 *) ok=no ;;
12740 esac
c6b750e1 12741
be01d343
PB
12742 if test $ok = yes; then
12743 # An in-tree tool is available and we can use it
12744 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12746$as_echo "just compiled" >&6; }
2429c060
PB
12747 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
12748 # We already found the complete path
b8025f34 12749 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12751$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12752 elif test "x$target" = "x$host"; then
12753 # We can use an host tool
12754 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12756$as_echo "host tool" >&6; }
be01d343
PB
12757 else
12758 # We need a cross tool
81ecdfbb
RW
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12760$as_echo "pre-installed" >&6; }
be01d343
PB
12761 fi
12762fi
4b900473 12763
81ecdfbb
RW
12764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
12765$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 12766if test "x${build}" != "x${host}" ; then
2429c060
PB
12767 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12768 # We already found the complete path
b8025f34 12769 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12771$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12772 else
12773 # Canadian cross, just use what we found
81ecdfbb
RW
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12775$as_echo "pre-installed" >&6; }
2429c060 12776 fi
be01d343 12777else
2429c060
PB
12778 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
12779 # We already found the complete path
b8025f34 12780 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12782$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 12783 elif test "x$target" = "x$host"; then
be01d343
PB
12784 # We can use an host tool
12785 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12787$as_echo "host tool" >&6; }
be01d343
PB
12788 else
12789 # We need a cross tool
81ecdfbb
RW
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12791$as_echo "pre-installed" >&6; }
be01d343
PB
12792 fi
12793fi
4b900473 12794
81ecdfbb
RW
12795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
12796$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 12797if test "x${build}" != "x${host}" ; then
2429c060
PB
12798 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12799 # We already found the complete path
b8025f34 12800 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12802$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12803 else
12804 # Canadian cross, just use what we found
81ecdfbb
RW
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12806$as_echo "pre-installed" >&6; }
2429c060 12807 fi
be01d343
PB
12808else
12809 ok=yes
12810 case " ${configdirs} " in
12811 *" binutils "*) ;;
12812 *) ok=no ;;
12813 esac
c6b750e1 12814
be01d343
PB
12815 if test $ok = yes; then
12816 # An in-tree tool is available and we can use it
12817 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12819$as_echo "just compiled" >&6; }
2429c060
PB
12820 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
12821 # We already found the complete path
b8025f34 12822 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12824$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12825 elif test "x$target" = "x$host"; then
12826 # We can use an host tool
12827 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12829$as_echo "host tool" >&6; }
be01d343
PB
12830 else
12831 # We need a cross tool
81ecdfbb
RW
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12833$as_echo "pre-installed" >&6; }
be01d343
PB
12834 fi
12835fi
4b900473 12836
81ecdfbb
RW
12837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
12838$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 12839if test "x${build}" != "x${host}" ; then
2429c060
PB
12840 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12841 # We already found the complete path
b8025f34 12842 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12844$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12845 else
12846 # Canadian cross, just use what we found
81ecdfbb
RW
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12848$as_echo "pre-installed" >&6; }
2429c060 12849 fi
be01d343
PB
12850else
12851 ok=yes
12852 case " ${configdirs} " in
12853 *" binutils "*) ;;
12854 *) ok=no ;;
12855 esac
c6b750e1 12856
be01d343
PB
12857 if test $ok = yes; then
12858 # An in-tree tool is available and we can use it
12859 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12861$as_echo "just compiled" >&6; }
2429c060
PB
12862 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
12863 # We already found the complete path
b8025f34 12864 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12866$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12867 elif test "x$target" = "x$host"; then
12868 # We can use an host tool
12869 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12871$as_echo "host tool" >&6; }
be01d343
PB
12872 else
12873 # We need a cross tool
81ecdfbb
RW
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12875$as_echo "pre-installed" >&6; }
be01d343
PB
12876 fi
12877fi
4b900473 12878
81ecdfbb
RW
12879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
12880$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 12881if test "x${build}" != "x${host}" ; then
2429c060
PB
12882 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12883 # We already found the complete path
b8025f34 12884 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12886$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12887 else
12888 # Canadian cross, just use what we found
81ecdfbb
RW
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12890$as_echo "pre-installed" >&6; }
2429c060 12891 fi
be01d343
PB
12892else
12893 ok=yes
12894 case " ${configdirs} " in
12895 *" binutils "*) ;;
12896 *) ok=no ;;
12897 esac
c6b750e1 12898
be01d343
PB
12899 if test $ok = yes; then
12900 # An in-tree tool is available and we can use it
12901 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12903$as_echo "just compiled" >&6; }
2429c060
PB
12904 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
12905 # We already found the complete path
b8025f34 12906 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12908$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12909 elif test "x$target" = "x$host"; then
12910 # We can use an host tool
12911 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12913$as_echo "host tool" >&6; }
be01d343
PB
12914 else
12915 # We need a cross tool
81ecdfbb
RW
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12917$as_echo "pre-installed" >&6; }
be01d343
PB
12918 fi
12919fi
4b900473 12920
81ecdfbb
RW
12921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
12922$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 12923if test "x${build}" != "x${host}" ; then
2429c060
PB
12924 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12925 # We already found the complete path
b8025f34 12926 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12928$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12929 else
12930 # Canadian cross, just use what we found
81ecdfbb
RW
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12932$as_echo "pre-installed" >&6; }
2429c060 12933 fi
be01d343
PB
12934else
12935 ok=yes
12936 case " ${configdirs} " in
12937 *" binutils "*) ;;
12938 *) ok=no ;;
12939 esac
c6b750e1 12940
be01d343
PB
12941 if test $ok = yes; then
12942 # An in-tree tool is available and we can use it
12943 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
81ecdfbb
RW
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12945$as_echo "just compiled" >&6; }
2429c060
PB
12946 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
12947 # We already found the complete path
b8025f34 12948 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12950$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12951 elif test "x$target" = "x$host"; then
12952 # We can use an host tool
12953 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12955$as_echo "host tool" >&6; }
be01d343
PB
12956 else
12957 # We need a cross tool
81ecdfbb
RW
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12959$as_echo "pre-installed" >&6; }
be01d343
PB
12960 fi
12961fi
4b900473 12962
81ecdfbb
RW
12963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
12964$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 12965if test "x${build}" != "x${host}" ; then
2429c060
PB
12966 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12967 # We already found the complete path
b8025f34 12968 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12970$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12971 else
12972 # Canadian cross, just use what we found
81ecdfbb
RW
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12974$as_echo "pre-installed" >&6; }
2429c060 12975 fi
be01d343
PB
12976else
12977 ok=yes
12978 case " ${configdirs} " in
12979 *" binutils "*) ;;
12980 *) ok=no ;;
12981 esac
c6b750e1 12982
be01d343
PB
12983 if test $ok = yes; then
12984 # An in-tree tool is available and we can use it
12985 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12987$as_echo "just compiled" >&6; }
2429c060
PB
12988 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
12989 # We already found the complete path
b8025f34 12990 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12992$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12993 elif test "x$target" = "x$host"; then
12994 # We can use an host tool
12995 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12997$as_echo "host tool" >&6; }
be01d343
PB
12998 else
12999 # We need a cross tool
81ecdfbb
RW
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13001$as_echo "pre-installed" >&6; }
be01d343 13002 fi
a0da8069 13003fi
54752a6b 13004
81ecdfbb
RW
13005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13006$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13007if test "x${build}" != "x${host}" ; then
13008 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13009 # We already found the complete path
13010 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13012$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13013 else
13014 # Canadian cross, just use what we found
81ecdfbb
RW
13015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13016$as_echo "pre-installed" >&6; }
0c24b341
NC
13017 fi
13018else
13019 ok=yes
13020 case " ${configdirs} " in
13021 *" binutils "*) ;;
13022 *) ok=no ;;
13023 esac
13024
13025 if test $ok = yes; then
13026 # An in-tree tool is available and we can use it
13027 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13029$as_echo "just compiled" >&6; }
0c24b341
NC
13030 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13031 # We already found the complete path
13032 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13034$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13035 elif test "x$target" = "x$host"; then
13036 # We can use an host tool
13037 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13039$as_echo "host tool" >&6; }
0c24b341
NC
13040 else
13041 # We need a cross tool
81ecdfbb
RW
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13043$as_echo "pre-installed" >&6; }
0c24b341
NC
13044 fi
13045fi
13046
54752a6b
NN
13047
13048
be01d343 13049
4b900473 13050
a0da8069
NN
13051# Certain tools may need extra flags.
13052AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13053RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13054NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13055
be01d343
PB
13056# When building target libraries, except in a Canadian cross, we use
13057# the same toolchain as the compiler we just built.
13058COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13059COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13060COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13061if test $host = $build; then
13062 case " $configdirs " in
13063 *" gcc "*)
13064 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13065 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13066 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13067 ;;
13068 esac
13069fi
13070
13071
13072
13073
13074
81ecdfbb
RW
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13076$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13077# Check whether --enable-maintainer-mode was given.
13078if test "${enable_maintainer_mode+set}" = set; then :
13079 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13080else
13081 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13082fi
13083
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13085$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13086
13087
13088if test "$USE_MAINTAINER_MODE" = yes; then
13089 MAINTAINER_MODE_TRUE=
13090 MAINTAINER_MODE_FALSE='#'
13091else
13092 MAINTAINER_MODE_TRUE='#'
13093 MAINTAINER_MODE_FALSE=
c6b750e1 13094fi
3d5e36ae
AO
13095MAINT=$MAINTAINER_MODE_TRUE
13096
1d39f329
NN
13097# ---------------------
13098# GCC bootstrap support
13099# ---------------------
13100
13101# Stage specific cflags for build.
13102stage1_cflags="-g"
13103case $build in
13104 vax-*-*)
13105 case ${GCC} in
13106 yes) stage1_cflags="-g -Wa,-J" ;;
13107 *) stage1_cflags="-g -J" ;;
13108 esac ;;
1d39f329
NN
13109esac
13110
1d89b610 13111# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 13112if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
13113 saved_CFLAGS="$CFLAGS"
13114
13115 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13116 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13118$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
13120/* end confdefs.h. */
13121
2038f525
PB
13122#if (__GNUC__ < 3) \
13123 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13124 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13125#error http://gcc.gnu.org/PR29382
13126#endif
13127
c6b750e1
DJ
13128int
13129main ()
13130{
13131
13132 ;
13133 return 0;
13134}
13135_ACEOF
81ecdfbb
RW
13136if ac_fn_c_try_compile "$LINENO"; then :
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13138$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 13139else
81ecdfbb
RW
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13141$as_echo "no" >&6; }
c6b750e1 13142fi
81ecdfbb 13143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
13144
13145 CFLAGS="$saved_CFLAGS"
13146fi
13147
13148
1d39f329 13149
8a0d8a5c 13150# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
13151# Check whether --enable-stage1-checking was given.
13152if test "${enable_stage1_checking+set}" = set; then :
13153 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 13154else
5566c1fa 13155 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 13156 stage1_checking=--enable-checking=yes,types
8a0d8a5c 13157else
5566c1fa 13158 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 13159fi
81ecdfbb 13160fi
8a0d8a5c
PB
13161
13162
c6b750e1 13163
81ecdfbb
RW
13164# Enable -Werror in bootstrap stage2 and later.
13165# Check whether --enable-werror was given.
13166if test "${enable_werror+set}" = set; then :
13167 enableval=$enable_werror;
1d39f329 13168else
a0323144 13169 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 13170 enable_werror=yes
79fcd0ec
PB
13171else
13172 enable_werror=no
13173fi
81ecdfbb
RW
13174fi
13175
1a6f2dc7
NN
13176case ${enable_werror} in
13177 yes) stage2_werror_flag="--enable-werror-always" ;;
13178 *) stage2_werror_flag="" ;;
1d39f329
NN
13179esac
13180
13181
e8a5fa9c
RW
13182# Specify what files to not compare during bootstrap.
13183
13184compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13185case "$target" in
13186 hppa*64*-*-hpux*) ;;
13187 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13188esac
13189
13190
81ecdfbb
RW
13191ac_config_files="$ac_config_files Makefile"
13192
c6b750e1 13193cat >confcache <<\_ACEOF
a0da8069
NN
13194# This file is a shell script that caches the results of configure
13195# tests run on this system so they can be shared between configure
c6b750e1
DJ
13196# scripts and configure runs, see configure's option --config-cache.
13197# It is not useful on other systems. If it contains results you don't
13198# want to keep, you may remove or edit it.
a0da8069 13199#
c6b750e1
DJ
13200# config.status only pays attention to the cache file if you give it
13201# the --recheck option to rerun configure.
a0da8069 13202#
c6b750e1
DJ
13203# `ac_cv_env_foo' variables (set or unset) will be overridden when
13204# loading this file, other *unset* `ac_cv_foo' will be assigned the
13205# following values.
13206
13207_ACEOF
13208
a0da8069
NN
13209# The following way of writing the cache mishandles newlines in values,
13210# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13211# So, we kill variables containing newlines.
a0da8069
NN
13212# Ultrix sh set writes to stderr and can't be redirected directly,
13213# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13214(
13215 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13216 eval ac_val=\$$ac_var
13217 case $ac_val in #(
13218 *${as_nl}*)
13219 case $ac_var in #(
13220 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13221$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13222 esac
13223 case $ac_var in #(
13224 _ | IFS | as_nl) ;; #(
13225 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13226 *) { eval $ac_var=; unset $ac_var;} ;;
13227 esac ;;
13228 esac
13229 done
13230
c6b750e1 13231 (set) 2>&1 |
81ecdfbb
RW
13232 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13233 *${as_nl}ac_space=\ *)
13234 # `set' does not quote correctly, so add quotes: double-quote
13235 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
13236 sed -n \
13237 "s/'/'\\\\''/g;
13238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 13239 ;; #(
c6b750e1
DJ
13240 *)
13241 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 13242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 13243 ;;
81ecdfbb
RW
13244 esac |
13245 sort
13246) |
c6b750e1 13247 sed '
81ecdfbb 13248 /^ac_cv_env_/b end
c6b750e1 13249 t clear
81ecdfbb 13250 :clear
c6b750e1
DJ
13251 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13252 t end
81ecdfbb
RW
13253 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13254 :end' >>confcache
13255if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13256 if test -w "$cache_file"; then
13257 test "x$cache_file" != "x/dev/null" &&
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13259$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 13260 cat confcache >$cache_file
a0da8069 13261 else
81ecdfbb
RW
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13263$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 13264 fi
852e5f18 13265fi
a0da8069 13266rm -f confcache
852e5f18 13267
a0da8069
NN
13268test "x$prefix" = xNONE && prefix=$ac_default_prefix
13269# Let make expand exec_prefix.
13270test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 13271
a0da8069
NN
13272# Transform confdefs.h into DEFS.
13273# Protect against shell expansion while executing Makefile rules.
13274# Protect against Makefile macro expansion.
c6b750e1
DJ
13275#
13276# If the first sed substitution is executed (which looks for macros that
81ecdfbb 13277# take arguments), then branch to the quote section. Otherwise,
c6b750e1 13278# look for a macro that doesn't take arguments.
81ecdfbb
RW
13279ac_script='
13280:mline
13281/\\$/{
13282 N
13283 s,\\\n,,
13284 b mline
13285}
c6b750e1 13286t clear
81ecdfbb
RW
13287:clear
13288s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 13289t quote
81ecdfbb 13290s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 13291t quote
81ecdfbb
RW
13292b any
13293:quote
13294s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13295s/\[/\\&/g
13296s/\]/\\&/g
13297s/\$/$$/g
13298H
13299:any
13300${
13301 g
13302 s/^\n//
13303 s/\n/ /g
13304 p
13305}
13306'
13307DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
13308
13309
13310ac_libobjs=
13311ac_ltlibobjs=
13312for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13313 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
13314 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13315 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13316 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13317 # will be set to the directory where LIBOBJS objects are built.
13318 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13319 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
13320done
13321LIBOBJS=$ac_libobjs
852e5f18 13322
c6b750e1 13323LTLIBOBJS=$ac_ltlibobjs
376a0e54 13324
cac3d6c4 13325
c6b750e1
DJ
13326
13327: ${CONFIG_STATUS=./config.status}
81ecdfbb 13328ac_write_fail=0
c6b750e1
DJ
13329ac_clean_files_save=$ac_clean_files
13330ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13332$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13333as_write_fail=0
13334cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
13335#! $SHELL
13336# Generated by $as_me.
a0da8069 13337# Run this file to recreate the current configuration.
a0da8069 13338# Compiler output produced by configure, useful for debugging
c6b750e1 13339# configure, is in config.log if it exists.
376a0e54 13340
c6b750e1
DJ
13341debug=false
13342ac_cs_recheck=false
13343ac_cs_silent=false
c6b750e1 13344
81ecdfbb
RW
13345SHELL=\${CONFIG_SHELL-$SHELL}
13346export SHELL
13347_ASEOF
13348cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13349## -------------------- ##
13350## M4sh Initialization. ##
13351## -------------------- ##
13352
13353# Be more Bourne compatible
13354DUALCASE=1; export DUALCASE # for MKS sh
13355if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
13356 emulate sh
13357 NULLCMD=:
81ecdfbb 13358 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
13359 # is contrary to our usage. Disable this feature.
13360 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
13361 setopt NO_GLOB_SUBST
13362else
13363 case `(set -o) 2>/dev/null` in #(
13364 *posix*) :
13365 set -o posix ;; #(
13366 *) :
13367 ;;
13368esac
c6b750e1 13369fi
c6b750e1 13370
81ecdfbb
RW
13371
13372as_nl='
13373'
13374export as_nl
13375# Printing a long string crashes Solaris 7 /usr/bin/printf.
13376as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13377as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13378as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13379# Prefer a ksh shell builtin over an external printf program on Solaris,
13380# but without wasting forks for bash or zsh.
13381if test -z "$BASH_VERSION$ZSH_VERSION" \
13382 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13383 as_echo='print -r --'
13384 as_echo_n='print -rn --'
13385elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13386 as_echo='printf %s\n'
13387 as_echo_n='printf %s'
13388else
13389 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13390 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13391 as_echo_n='/usr/ucb/echo -n'
13392 else
13393 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13394 as_echo_n_body='eval
13395 arg=$1;
13396 case $arg in #(
13397 *"$as_nl"*)
13398 expr "X$arg" : "X\\(.*\\)$as_nl";
13399 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13400 esac;
13401 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13402 '
13403 export as_echo_n_body
13404 as_echo_n='sh -c $as_echo_n_body as_echo'
13405 fi
13406 export as_echo_body
13407 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
13408fi
13409
81ecdfbb
RW
13410# The user is always right.
13411if test "${PATH_SEPARATOR+set}" != set; then
13412 PATH_SEPARATOR=:
13413 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13414 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13415 PATH_SEPARATOR=';'
13416 }
13417fi
13418
13419
13420# IFS
13421# We need space, tab and new line, in precisely that order. Quoting is
13422# there to prevent editors from complaining about space-tab.
13423# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13424# splitting by setting IFS to empty value.)
13425IFS=" "" $as_nl"
13426
13427# Find who we are. Look in the path if we contain no directory separator.
13428case $0 in #((
13429 *[\\/]* ) as_myself=$0 ;;
13430 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13431for as_dir in $PATH
13432do
13433 IFS=$as_save_IFS
13434 test -z "$as_dir" && as_dir=.
13435 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13436 done
13437IFS=$as_save_IFS
13438
13439 ;;
13440esac
13441# We did not find ourselves, most probably we were run as `sh COMMAND'
13442# in which case we are not to be found in the path.
13443if test "x$as_myself" = x; then
13444 as_myself=$0
13445fi
13446if test ! -f "$as_myself"; then
13447 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13448 exit 1
13449fi
c6b750e1 13450
81ecdfbb
RW
13451# Unset variables that we do not need and which cause bugs (e.g. in
13452# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13453# suppresses any "Segmentation fault" message there. '((' could
13454# trigger a bug in pdksh 5.2.14.
13455for as_var in BASH_ENV ENV MAIL MAILPATH
13456do eval test x\${$as_var+set} = xset \
13457 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13458done
c6b750e1
DJ
13459PS1='$ '
13460PS2='> '
13461PS4='+ '
13462
13463# NLS nuisances.
81ecdfbb
RW
13464LC_ALL=C
13465export LC_ALL
13466LANGUAGE=C
13467export LANGUAGE
13468
13469# CDPATH.
13470(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13471
13472
13473# as_fn_error ERROR [LINENO LOG_FD]
13474# ---------------------------------
13475# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13476# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13477# script with status $?, using 1 if that was 0.
13478as_fn_error ()
13479{
13480 as_status=$?; test $as_status -eq 0 && as_status=1
13481 if test "$3"; then
13482 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13483 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 13484 fi
81ecdfbb
RW
13485 $as_echo "$as_me: error: $1" >&2
13486 as_fn_exit $as_status
13487} # as_fn_error
13488
13489
13490# as_fn_set_status STATUS
13491# -----------------------
13492# Set $? to STATUS, without forking.
13493as_fn_set_status ()
13494{
13495 return $1
13496} # as_fn_set_status
13497
13498# as_fn_exit STATUS
13499# -----------------
13500# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13501as_fn_exit ()
13502{
13503 set +e
13504 as_fn_set_status $1
13505 exit $1
13506} # as_fn_exit
13507
13508# as_fn_unset VAR
13509# ---------------
13510# Portably unset VAR.
13511as_fn_unset ()
13512{
13513 { eval $1=; unset $1;}
13514}
13515as_unset=as_fn_unset
13516# as_fn_append VAR VALUE
13517# ----------------------
13518# Append the text in VALUE to the end of the definition contained in VAR. Take
13519# advantage of any shell optimizations that allow amortized linear growth over
13520# repeated appends, instead of the typical quadratic growth present in naive
13521# implementations.
13522if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13523 eval 'as_fn_append ()
13524 {
13525 eval $1+=\$2
13526 }'
13527else
13528 as_fn_append ()
13529 {
13530 eval $1=\$$1\$2
13531 }
13532fi # as_fn_append
13533
13534# as_fn_arith ARG...
13535# ------------------
13536# Perform arithmetic evaluation on the ARGs, and store the result in the
13537# global $as_val. Take advantage of shells that can avoid forks. The arguments
13538# must be portable across $(()) and expr.
13539if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13540 eval 'as_fn_arith ()
13541 {
13542 as_val=$(( $* ))
13543 }'
13544else
13545 as_fn_arith ()
13546 {
13547 as_val=`expr "$@" || test $? -eq 1`
13548 }
13549fi # as_fn_arith
13550
c6b750e1 13551
81ecdfbb
RW
13552if expr a : '\(a\)' >/dev/null 2>&1 &&
13553 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
13554 as_expr=expr
13555else
13556 as_expr=false
13557fi
13558
81ecdfbb 13559if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
13560 as_basename=basename
13561else
13562 as_basename=false
13563fi
13564
81ecdfbb
RW
13565if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13566 as_dirname=dirname
13567else
13568 as_dirname=false
13569fi
c6b750e1 13570
81ecdfbb 13571as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
13572$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13573 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
13574 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13575$as_echo X/"$0" |
13576 sed '/^.*\/\([^/][^/]*\)\/*$/{
13577 s//\1/
13578 q
13579 }
13580 /^X\/\(\/\/\)$/{
13581 s//\1/
13582 q
13583 }
13584 /^X\/\(\/\).*/{
13585 s//\1/
13586 q
13587 }
13588 s/.*/./; q'`
c6b750e1 13589
c6b750e1
DJ
13590# Avoid depending upon Character Ranges.
13591as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13592as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13593as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13594as_cr_digits='0123456789'
13595as_cr_alnum=$as_cr_Letters$as_cr_digits
13596
81ecdfbb
RW
13597ECHO_C= ECHO_N= ECHO_T=
13598case `echo -n x` in #(((((
13599-n*)
13600 case `echo 'xy\c'` in
13601 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13602 xy) ECHO_C='\c';;
13603 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13604 ECHO_T=' ';;
13605 esac;;
13606*)
13607 ECHO_N='-n';;
c6b750e1
DJ
13608esac
13609
81ecdfbb
RW
13610rm -f conf$$ conf$$.exe conf$$.file
13611if test -d conf$$.dir; then
13612 rm -f conf$$.dir/conf$$.file
c6b750e1 13613else
81ecdfbb
RW
13614 rm -f conf$$.dir
13615 mkdir conf$$.dir 2>/dev/null
c6b750e1 13616fi
81ecdfbb
RW
13617if (echo >conf$$.file) 2>/dev/null; then
13618 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 13619 as_ln_s='ln -s'
81ecdfbb
RW
13620 # ... but there are two gotchas:
13621 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13622 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13623 # In both cases, we have to default to `cp -p'.
13624 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13625 as_ln_s='cp -p'
13626 elif ln conf$$.file conf$$ 2>/dev/null; then
13627 as_ln_s=ln
13628 else
13629 as_ln_s='cp -p'
c6b750e1 13630 fi
c6b750e1
DJ
13631else
13632 as_ln_s='cp -p'
13633fi
81ecdfbb
RW
13634rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13635rmdir conf$$.dir 2>/dev/null
13636
13637
13638# as_fn_mkdir_p
13639# -------------
13640# Create "$as_dir" as a directory, including parents if necessary.
13641as_fn_mkdir_p ()
13642{
13643
13644 case $as_dir in #(
13645 -*) as_dir=./$as_dir;;
13646 esac
13647 test -d "$as_dir" || eval $as_mkdir_p || {
13648 as_dirs=
13649 while :; do
13650 case $as_dir in #(
13651 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13652 *) as_qdir=$as_dir;;
13653 esac
13654 as_dirs="'$as_qdir' $as_dirs"
13655 as_dir=`$as_dirname -- "$as_dir" ||
13656$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13657 X"$as_dir" : 'X\(//\)[^/]' \| \
13658 X"$as_dir" : 'X\(//\)$' \| \
13659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13660$as_echo X"$as_dir" |
13661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13662 s//\1/
13663 q
13664 }
13665 /^X\(\/\/\)[^/].*/{
13666 s//\1/
13667 q
13668 }
13669 /^X\(\/\/\)$/{
13670 s//\1/
13671 q
13672 }
13673 /^X\(\/\).*/{
13674 s//\1/
13675 q
13676 }
13677 s/.*/./; q'`
13678 test -d "$as_dir" && break
13679 done
13680 test -z "$as_dirs" || eval "mkdir $as_dirs"
13681 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13682
c6b750e1 13683
81ecdfbb 13684} # as_fn_mkdir_p
c6b750e1 13685if mkdir -p . 2>/dev/null; then
81ecdfbb 13686 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
13687else
13688 test -d ./-p && rmdir ./-p
13689 as_mkdir_p=false
13690fi
13691
81ecdfbb
RW
13692if test -x / >/dev/null 2>&1; then
13693 as_test_x='test -x'
13694else
13695 if ls -dL / >/dev/null 2>&1; then
13696 as_ls_L_option=L
13697 else
13698 as_ls_L_option=
13699 fi
13700 as_test_x='
13701 eval sh -c '\''
13702 if test -d "$1"; then
13703 test -d "$1/.";
13704 else
13705 case $1 in #(
13706 -*)set "./$1";;
13707 esac;
13708 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13709 ???[sx]*):;;*)false;;esac;fi
13710 '\'' sh
13711 '
13712fi
13713as_executable_p=$as_test_x
c6b750e1
DJ
13714
13715# Sed expression to map a string onto a valid CPP name.
13716as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13717
13718# Sed expression to map a string onto a valid variable name.
13719as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13720
13721
c6b750e1 13722exec 6>&1
81ecdfbb
RW
13723## ----------------------------------- ##
13724## Main body of $CONFIG_STATUS script. ##
13725## ----------------------------------- ##
13726_ASEOF
13727test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13728
13729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13730# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 13731# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
13732# values after options handling.
13733ac_log="
c6b750e1 13734This file was extended by $as_me, which was
81ecdfbb 13735generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
13736
13737 CONFIG_FILES = $CONFIG_FILES
13738 CONFIG_HEADERS = $CONFIG_HEADERS
13739 CONFIG_LINKS = $CONFIG_LINKS
13740 CONFIG_COMMANDS = $CONFIG_COMMANDS
13741 $ $0 $@
13742
81ecdfbb
RW
13743on `(hostname || uname -n) 2>/dev/null | sed 1q`
13744"
13745
c6b750e1
DJ
13746_ACEOF
13747
81ecdfbb
RW
13748case $ac_config_files in *"
13749"*) set x $ac_config_files; shift; ac_config_files=$*;;
13750esac
c6b750e1 13751
c6b750e1 13752
c6b750e1 13753
81ecdfbb
RW
13754cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13755# Files that config.status was made for.
13756config_files="$ac_config_files"
c6b750e1 13757
81ecdfbb 13758_ACEOF
c6b750e1 13759
81ecdfbb 13760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 13761ac_cs_usage="\
81ecdfbb
RW
13762\`$as_me' instantiates files and other configuration actions
13763from templates according to the current configuration. Unless the files
13764and actions are specified as TAGs, all are instantiated by default.
c6b750e1 13765
81ecdfbb 13766Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
13767
13768 -h, --help print this help, then exit
81ecdfbb
RW
13769 -V, --version print version number and configuration settings, then exit
13770 -q, --quiet, --silent
13771 do not print progress messages
c6b750e1
DJ
13772 -d, --debug don't remove temporary files
13773 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
13774 --file=FILE[:TEMPLATE]
13775 instantiate the configuration file FILE
c6b750e1
DJ
13776
13777Configuration files:
13778$config_files
13779
81ecdfbb 13780Report bugs to the package provider."
c6b750e1 13781
81ecdfbb
RW
13782_ACEOF
13783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
13784ac_cs_version="\\
13785config.status
81ecdfbb
RW
13786configured by $0, generated by GNU Autoconf 2.64,
13787 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 13788
81ecdfbb 13789Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
13790This config.status script is free software; the Free Software Foundation
13791gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13792
13793ac_pwd='$ac_pwd'
13794srcdir='$srcdir'
13795INSTALL='$INSTALL'
13796test -n "\$AWK" || AWK=awk
c6b750e1
DJ
13797_ACEOF
13798
81ecdfbb
RW
13799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13800# The default lists apply if the user does not specify any file.
c6b750e1
DJ
13801ac_need_defaults=:
13802while test $# != 0
a0da8069 13803do
c6b750e1
DJ
13804 case $1 in
13805 --*=*)
81ecdfbb
RW
13806 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13807 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
13808 ac_shift=:
13809 ;;
81ecdfbb 13810 *)
c6b750e1
DJ
13811 ac_option=$1
13812 ac_optarg=$2
13813 ac_shift=shift
13814 ;;
c6b750e1
DJ
13815 esac
13816
13817 case $ac_option in
13818 # Handling of the options.
a0da8069 13819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 13820 ac_cs_recheck=: ;;
81ecdfbb
RW
13821 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13822 $as_echo "$ac_cs_version"; exit ;;
13823 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
13824 debug=: ;;
13825 --file | --fil | --fi | --f )
13826 $ac_shift
81ecdfbb
RW
13827 case $ac_optarg in
13828 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13829 esac
13830 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 13831 ac_need_defaults=false;;
81ecdfbb
RW
13832 --he | --h | --help | --hel | -h )
13833 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
13834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13835 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13836 ac_cs_silent=: ;;
13837
13838 # This is an error.
81ecdfbb
RW
13839 -*) as_fn_error "unrecognized option: \`$1'
13840Try \`$0 --help' for more information." ;;
c6b750e1 13841
81ecdfbb
RW
13842 *) as_fn_append ac_config_targets " $1"
13843 ac_need_defaults=false ;;
c6b750e1 13844
376a0e54 13845 esac
c6b750e1 13846 shift
376a0e54
CM
13847done
13848
c6b750e1 13849ac_configure_extra_args=
376a0e54 13850
c6b750e1
DJ
13851if $ac_cs_silent; then
13852 exec 6>/dev/null
13853 ac_configure_extra_args="$ac_configure_extra_args --silent"
13854fi
376a0e54 13855
c6b750e1 13856_ACEOF
81ecdfbb 13857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 13858if \$ac_cs_recheck; then
81ecdfbb
RW
13859 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13860 shift
13861 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13862 CONFIG_SHELL='$SHELL'
13863 export CONFIG_SHELL
13864 exec "\$@"
c6b750e1
DJ
13865fi
13866
13867_ACEOF
81ecdfbb
RW
13868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13869exec 5>>config.log
13870{
13871 echo
13872 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13873## Running $as_me. ##
13874_ASBOX
13875 $as_echo "$ac_log"
13876} >&5
c6b750e1 13877
81ecdfbb
RW
13878_ACEOF
13879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13880_ACEOF
c6b750e1 13881
81ecdfbb 13882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 13883
81ecdfbb 13884# Handling of arguments.
c6b750e1
DJ
13885for ac_config_target in $ac_config_targets
13886do
81ecdfbb
RW
13887 case $ac_config_target in
13888 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13889
13890 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
13891 esac
13892done
13893
81ecdfbb 13894
c6b750e1
DJ
13895# If the user did not use the arguments to specify the items to instantiate,
13896# then the envvar interface is used. Set only those that are not.
13897# We use the long form for the default assignment because of an extremely
13898# bizarre bug on SunOS 4.1.3.
13899if $ac_need_defaults; then
13900 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13901fi
13902
13903# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13904# simply because there is no reason against having it here, and in addition,
c6b750e1 13905# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13906# Hook for its removal unless debugging.
13907# Note that there is a small window in which the directory will not be cleaned:
13908# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
13909$debug ||
13910{
81ecdfbb
RW
13911 tmp=
13912 trap 'exit_status=$?
13913 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13914' 0
13915 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 13916}
c6b750e1
DJ
13917# Create a (secure) tmp directory for tmp files.
13918
13919{
81ecdfbb 13920 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
13921 test -n "$tmp" && test -d "$tmp"
13922} ||
13923{
81ecdfbb
RW
13924 tmp=./conf$$-$RANDOM
13925 (umask 077 && mkdir "$tmp")
13926} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13927
13928# Set up the scripts for CONFIG_FILES section.
13929# No need to generate them if there are no CONFIG_FILES.
13930# This happens for instance with `./config.status config.h'.
13931if test -n "$CONFIG_FILES"; then
13932
13933if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13934 ac_cs_awk_getline=:
13935 ac_cs_awk_pipe_init=
13936 ac_cs_awk_read_file='
13937 while ((getline aline < (F[key])) > 0)
13938 print(aline)
13939 close(F[key])'
13940 ac_cs_awk_pipe_fini=
13941else
13942 ac_cs_awk_getline=false
13943 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13944 ac_cs_awk_read_file='
13945 print "|#_!!_#|"
13946 print "cat " F[key] " &&"
13947 '$ac_cs_awk_pipe_init
13948 # The final `:' finishes the AND list.
13949 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
13950fi
13951ac_cr=`echo X | tr X '\015'`
13952# On cygwin, bash can eat \r inside `` if the user requested igncr.
13953# But we know of no other shell where ac_cr would be empty at this
13954# point, so we can use a bashism as a fallback.
13955if test "x$ac_cr" = x; then
13956 eval ac_cr=\$\'\\r\'
13957fi
13958ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13959if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13960 ac_cs_awk_cr='\r'
13961else
13962 ac_cs_awk_cr=$ac_cr
13963fi
13964
13965echo 'BEGIN {' >"$tmp/subs1.awk" &&
13966_ACEOF
13967
13968# Create commands to substitute file output variables.
c6b750e1 13969{
81ecdfbb
RW
13970 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
13971 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
13972 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
13973 echo "_ACAWK" &&
13974 echo "_ACEOF"
13975} >conf$$files.sh &&
13976. ./conf$$files.sh ||
13977 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13978rm -f conf$$files.sh
c6b750e1 13979
81ecdfbb
RW
13980{
13981 echo "cat >conf$$subs.awk <<_ACEOF" &&
13982 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13983 echo "_ACEOF"
13984} >conf$$subs.sh ||
13985 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13986ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13987ac_delim='%!_!# '
13988for ac_last_try in false false false false false :; do
13989 . ./conf$$subs.sh ||
13990 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13991
13992 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13993 if test $ac_delim_n = $ac_delim_num; then
13994 break
13995 elif $ac_last_try; then
13996 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13997 else
13998 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13999 fi
14000done
14001rm -f conf$$subs.sh
14002
14003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14004cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14005_ACEOF
81ecdfbb
RW
14006sed -n '
14007h
14008s/^/S["/; s/!.*/"]=/
14009p
14010g
14011s/^[^!]*!//
14012:repl
14013t repl
14014s/'"$ac_delim"'$//
14015t delim
14016:nl
14017h
14018s/\(.\{148\}\).*/\1/
14019t more1
14020s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14021p
14022n
14023b repl
14024:more1
14025s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14026p
14027g
14028s/.\{148\}//
14029t nl
14030:delim
14031h
14032s/\(.\{148\}\).*/\1/
14033t more2
14034s/["\\]/\\&/g; s/^/"/; s/$/"/
14035p
14036b
14037:more2
14038s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14039p
14040g
14041s/.\{148\}//
14042t delim
14043' <conf$$subs.awk | sed '
14044/^[^""]/{
14045 N
14046 s/\n//
14047}
14048' >>$CONFIG_STATUS || ac_write_fail=1
14049rm -f conf$$subs.awk
14050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14051_ACAWK
14052cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14053 for (key in S) S_is_set[key] = 1
14054 FS = "\a"
14055 \$ac_cs_awk_pipe_init
14056}
14057{
14058 line = $ 0
14059 nfields = split(line, field, "@")
14060 substed = 0
14061 len = length(field[1])
14062 for (i = 2; i < nfields; i++) {
14063 key = field[i]
14064 keylen = length(key)
14065 if (S_is_set[key]) {
14066 value = S[key]
14067 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14068 len += length(value) + length(field[++i])
14069 substed = 1
14070 } else
14071 len += 1 + keylen
14072 }
14073 if (nfields == 3 && !substed) {
14074 key = field[2]
14075 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14076 \$ac_cs_awk_read_file
14077 next
14078 }
14079 }
14080 print line
14081}
14082\$ac_cs_awk_pipe_fini
14083_ACAWK
14084_ACEOF
14085cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14086if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14087 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14088else
14089 cat
14090fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14091 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14092_ACEOF
14093
14094# VPATH may cause trouble with some makes, so we remove $(srcdir),
14095# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14096# trailing colons and then remove the whole line if VPATH becomes empty
14097# (actually we leave an empty line to preserve line numbers).
14098if test "x$srcdir" = x.; then
14099 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14100s/:*\$(srcdir):*/:/
14101s/:*\${srcdir}:*/:/
14102s/:*@srcdir@:*/:/
14103s/^\([^=]*=[ ]*\):*/\1/
14104s/:*$//
14105s/^[^=]*=[ ]*$//
14106}'
14107fi
c6b750e1 14108
81ecdfbb
RW
14109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14110fi # test -n "$CONFIG_FILES"
c6b750e1 14111
c6b750e1 14112
81ecdfbb
RW
14113eval set X " :F $CONFIG_FILES "
14114shift
14115for ac_tag
14116do
14117 case $ac_tag in
14118 :[FHLC]) ac_mode=$ac_tag; continue;;
14119 esac
14120 case $ac_mode$ac_tag in
14121 :[FHL]*:*);;
14122 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14123 :[FH]-) ac_tag=-:-;;
14124 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14125 esac
14126 ac_save_IFS=$IFS
14127 IFS=:
14128 set x $ac_tag
14129 IFS=$ac_save_IFS
14130 shift
14131 ac_file=$1
14132 shift
252b5132 14133
81ecdfbb
RW
14134 case $ac_mode in
14135 :L) ac_source=$1;;
14136 :[FH])
14137 ac_file_inputs=
14138 for ac_f
14139 do
14140 case $ac_f in
14141 -) ac_f="$tmp/stdin";;
14142 *) # Look for the file first in the build tree, then in the source tree
14143 # (if the path is not absolute). The absolute path cannot be DOS-style,
14144 # because $ac_f cannot contain `:'.
14145 test -f "$ac_f" ||
14146 case $ac_f in
14147 [\\/$]*) false;;
14148 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14149 esac ||
14150 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14151 esac
14152 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14153 as_fn_append ac_file_inputs " '$ac_f'"
14154 done
c6b750e1 14155
81ecdfbb
RW
14156 # Let's still pretend it is `configure' which instantiates (i.e., don't
14157 # use $as_me), people would be surprised to read:
14158 # /* config.h. Generated by config.status. */
14159 configure_input='Generated from '`
14160 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14161 `' by configure.'
14162 if test x"$ac_file" != x-; then
14163 configure_input="$ac_file. $configure_input"
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14165$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 14166 fi
81ecdfbb
RW
14167 # Neutralize special characters interpreted by sed in replacement strings.
14168 case $configure_input in #(
14169 *\&* | *\|* | *\\* )
14170 ac_sed_conf_input=`$as_echo "$configure_input" |
14171 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14172 *) ac_sed_conf_input=$configure_input;;
14173 esac
cac3d6c4 14174
81ecdfbb
RW
14175 case $ac_tag in
14176 *:-:* | *:-) cat >"$tmp/stdin" \
14177 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14178 esac
14179 ;;
a0da8069 14180 esac
252b5132 14181
81ecdfbb 14182 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
14183$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14184 X"$ac_file" : 'X\(//\)[^/]' \| \
14185 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
14186 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14187$as_echo X"$ac_file" |
14188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14189 s//\1/
14190 q
14191 }
14192 /^X\(\/\/\)[^/].*/{
14193 s//\1/
14194 q
14195 }
14196 /^X\(\/\/\)$/{
14197 s//\1/
14198 q
14199 }
14200 /^X\(\/\).*/{
14201 s//\1/
14202 q
14203 }
14204 s/.*/./; q'`
14205 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 14206 ac_builddir=.
252b5132 14207
81ecdfbb
RW
14208case "$ac_dir" in
14209.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14210*)
14211 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14212 # A ".." for each directory in $ac_dir_suffix.
14213 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14214 case $ac_top_builddir_sub in
14215 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14216 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14217 esac ;;
14218esac
14219ac_abs_top_builddir=$ac_pwd
14220ac_abs_builddir=$ac_pwd$ac_dir_suffix
14221# for backward compatibility:
14222ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
14223
14224case $srcdir in
81ecdfbb 14225 .) # We are building in place.
c6b750e1 14226 ac_srcdir=.
81ecdfbb
RW
14227 ac_top_srcdir=$ac_top_builddir_sub
14228 ac_abs_top_srcdir=$ac_pwd ;;
14229 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 14230 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
14231 ac_top_srcdir=$srcdir
14232 ac_abs_top_srcdir=$srcdir ;;
14233 *) # Relative name.
14234 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14235 ac_top_srcdir=$ac_top_build_prefix$srcdir
14236 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 14237esac
81ecdfbb 14238ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 14239
252b5132 14240
81ecdfbb
RW
14241 case $ac_mode in
14242 :F)
14243 #
14244 # CONFIG_FILE
14245 #
c6b750e1
DJ
14246
14247 case $INSTALL in
14248 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 14249 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 14250 esac
81ecdfbb 14251_ACEOF
252b5132 14252
81ecdfbb
RW
14253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14254# If the template does not know about datarootdir, expand it.
14255# FIXME: This hack should be removed a few years after 2.60.
14256ac_datarootdir_hack=; ac_datarootdir_seen=
14257ac_sed_dataroot='
14258/datarootdir/ {
14259 p
14260 q
14261}
14262/@datadir@/p
14263/@docdir@/p
14264/@infodir@/p
14265/@localedir@/p
14266/@mandir@/p'
14267case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14268*datarootdir*) ac_datarootdir_seen=yes;;
14269*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14271$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 14272_ACEOF
81ecdfbb
RW
14273cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14274 ac_datarootdir_hack='
14275 s&@datadir@&$datadir&g
14276 s&@docdir@&$docdir&g
14277 s&@infodir@&$infodir&g
14278 s&@localedir@&$localedir&g
14279 s&@mandir@&$mandir&g
14280 s&\\\${datarootdir}&$datarootdir&g' ;;
14281esac
14282_ACEOF
14283
14284# Neutralize VPATH when `$srcdir' = `.'.
14285# Shell code in configure.ac might set extrasub.
14286# FIXME: do we really want to maintain this feature?
14287cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14288ac_sed_extra="$ac_vpsub
c6b750e1
DJ
14289$extrasub
14290_ACEOF
81ecdfbb 14291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
14292:t
14293/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
14294s|@configure_input@|$ac_sed_conf_input|;t t
14295s&@top_builddir@&$ac_top_builddir_sub&;t t
14296s&@top_build_prefix@&$ac_top_build_prefix&;t t
14297s&@srcdir@&$ac_srcdir&;t t
14298s&@abs_srcdir@&$ac_abs_srcdir&;t t
14299s&@top_srcdir@&$ac_top_srcdir&;t t
14300s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14301s&@builddir@&$ac_builddir&;t t
14302s&@abs_builddir@&$ac_abs_builddir&;t t
14303s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14304s&@INSTALL@&$ac_INSTALL&;t t
14305$ac_datarootdir_hack
14306"
14307eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14308if $ac_cs_awk_getline; then
14309 $AWK -f "$tmp/subs.awk"
14310else
14311 $AWK -f "$tmp/subs.awk" | $SHELL
14312fi >$tmp/out \
14313 || as_fn_error "could not create $ac_file" "$LINENO" 5
14314
14315test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14316 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14317 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14319which seems to be undefined. Please make sure it is defined." >&5
14320$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14321which seems to be undefined. Please make sure it is defined." >&2;}
14322
14323 rm -f "$tmp/stdin"
14324 case $ac_file in
14325 -) cat "$tmp/out" && rm -f "$tmp/out";;
14326 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14327 esac \
14328 || as_fn_error "could not create $ac_file" "$LINENO" 5
14329 ;;
c148b4cb 14330
c148b4cb 14331
c148b4cb 14332
81ecdfbb
RW
14333 esac
14334
14335done # for ac_tag
14336
14337
14338as_fn_exit 0
c6b750e1 14339_ACEOF
c6b750e1
DJ
14340ac_clean_files=$ac_clean_files_save
14341
81ecdfbb
RW
14342test $ac_write_fail = 0 ||
14343 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14344
c6b750e1
DJ
14345
14346# configure is writing to config.log, and then calls config.status.
14347# config.status does its own redirection, appending to config.log.
14348# Unfortunately, on DOS this fails, as config.log is still kept open
14349# by configure, so config.status won't be able to write to it; its
14350# output is simply discarded. So we exec the FD to /dev/null,
14351# effectively closing config.log, so it can be properly (re)opened and
14352# appended to by config.status. When coming back to configure, we
14353# need to make the FD available again.
14354if test "$no_create" != yes; then
14355 ac_cs_success=:
14356 ac_config_status_args=
14357 test "$silent" = yes &&
14358 ac_config_status_args="$ac_config_status_args --quiet"
14359 exec 5>/dev/null
14360 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14361 exec 5>>config.log
14362 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14363 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14364 $ac_cs_success || as_fn_exit $?
14365fi
14366if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14368$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 14369fi
c148b4cb 14370
This page took 1.432335 seconds and 4 git commands to generate.