]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
tree-inline.c (expand_call_inline): Do not check that destination node is analyzed.
[thirdparty/gcc.git] / configure
CommitLineData
671aa708 1#! /bin/sh
671aa708 2# Guess values for system-dependent variables and create Makefiles.
5213506e
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.
671aa708
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
5213506e
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
1c710c3c 14
5213506e
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 :
1c710c3c
DJ
18 emulate sh
19 NULLCMD=:
5213506e 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
1c710c3c 31fi
1c710c3c 32
5213506e
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 }
1c710c3c
DJ
79fi
80
81
5213506e
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
1c710c3c
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
5213506e
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'\" &&
87264276
PB
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
5213506e
RW
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else
176 as_have_required=no
177fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
1c710c3c 184do
5213506e
RW
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;;
201 esac
202 as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
1c710c3c 228 else
5213506e
RW
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
1c710c3c 233 fi
5213506e
RW
234 exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261 return $1
262} # as_fn_set_status
1c710c3c 263
5213506e
RW
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269 set +e
270 as_fn_set_status $1
271 exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
5213506e 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
5213506e
RW
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388else
389 as_dirname=false
390fi
1c710c3c 391
5213506e 392as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
5213506e
RW
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
1c710c3c 410
2aeb72e9
DD
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
11a67599 417
1c710c3c 418
5213506e
RW
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
1c710c3c 428 sed '
5213506e
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
1c710c3c 433 N
5213506e
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1c710c3c 436 t loop
5213506e 437 s/-\n.*//
1c710c3c 438 ' >$as_me.lineno &&
5213506e
RW
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
1c710c3c
DJ
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
5213506e
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
1c710c3c
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
5213506e
RW
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459*)
460 ECHO_N='-n';;
1c710c3c
DJ
461esac
462
5213506e
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
1c710c3c 466else
5213506e
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
1c710c3c 469fi
5213506e
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 472 as_ln_s='ln -s'
5213506e
RW
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
2aeb72e9 483 fi
1c710c3c
DJ
484else
485 as_ln_s='cp -p'
486fi
5213506e
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
1c710c3c
DJ
489
490if mkdir -p . 2>/dev/null; then
5213506e 491 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
5213506e
RW
497if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517fi
518as_executable_p=$as_test_x
0b0dc272 519
1c710c3c
DJ
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
5213506e 527exec 7<&0 </dev/null 6>&1
1c710c3c
DJ
528
529# Name of the host.
530# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531# so uname gets run too.
532ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
1c710c3c
DJ
534#
535# Initializations.
536#
671aa708 537ac_default_prefix=/usr/local
5213506e 538ac_clean_files=
1c710c3c 539ac_config_libobj_dir=.
5213506e 540LIBOBJS=
1c710c3c
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
2aeb72e9 545
1c710c3c
DJ
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
5213506e 552PACKAGE_URL=
1c710c3c
DJ
553
554ac_unique_file="move-if-change"
5213506e
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
632e2a07 581GOC_FOR_TARGET
5213506e
RW
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
607config_shell
608WINDRES_FOR_BUILD
609WINDMC_FOR_BUILD
610RANLIB_FOR_BUILD
611NM_FOR_BUILD
612LD_FOR_BUILD
613LDFLAGS_FOR_BUILD
632e2a07 614GOC_FOR_BUILD
5213506e
RW
615GFORTRAN_FOR_BUILD
616GCJ_FOR_BUILD
617DLLTOOL_FOR_BUILD
618CXX_FOR_BUILD
619CXXFLAGS_FOR_BUILD
620CFLAGS_FOR_BUILD
621CC_FOR_BUILD
622AS_FOR_BUILD
623AR_FOR_BUILD
aae29963 624target_configdirs
5213506e 625configdirs
5213506e 626build_configdirs
5213506e
RW
627INSTALL_GDB_TK
628GDB_TK
629CONFIGURE_GDB_TK
630build_tooldir
631tooldir
632GCC_SHLIB_SUBDIR
633RPATH_ENVVAR
ffedf511
RW
634target_configargs
635host_configargs
636build_configargs
e12c4094 637BUILD_CONFIG
5213506e
RW
638CXXFLAGS_FOR_TARGET
639CFLAGS_FOR_TARGET
640DEBUG_PREFIX_CFLAGS_FOR_TARGET
641SYSROOT_CFLAGS_FOR_TARGET
642stage1_languages
d7f09764 643extra_host_libiberty_configure_flags
5213506e
RW
644clooginc
645clooglibs
646pplinc
647ppllibs
5213506e 648poststage1_ldflags
ed2eaa9f 649poststage1_libs
5213506e
RW
650stage1_libs
651stage1_ldflags
652extra_mpc_mpfr_configure_flags
653extra_mpc_gmp_configure_flags
654extra_mpfr_configure_flags
655gmpinc
656gmplibs
657do_compare
658GNATMAKE
659GNATBIND
660ac_ct_CXX
661CXXFLAGS
662CXX
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670target_subdir
671host_subdir
672build_subdir
673build_libsubdir
87264276
PB
674AWK
675SED
5213506e
RW
676LN_S
677LN
678INSTALL_DATA
679INSTALL_SCRIPT
680INSTALL_PROGRAM
681target_os
682target_vendor
683target_cpu
684target
685host_os
686host_vendor
687host_cpu
688host
689target_noncanonical
690host_noncanonical
691build_noncanonical
692build_os
693build_vendor
694build_cpu
695build
696TOPLEVEL_CONFIGURE_ARGUMENTS
697target_alias
698host_alias
699build_alias
700LIBS
701ECHO_T
702ECHO_N
703ECHO_C
704DEFS
705mandir
706localedir
707libdir
708psdir
709pdfdir
710dvidir
711htmldir
712infodir
713docdir
714oldincludedir
715includedir
716localstatedir
717sharedstatedir
718sysconfdir
719datadir
720datarootdir
721libexecdir
722sbindir
723bindir
724program_transform_name
725prefix
726exec_prefix
727PACKAGE_URL
728PACKAGE_BUGREPORT
729PACKAGE_STRING
730PACKAGE_VERSION
731PACKAGE_TARNAME
732PACKAGE_NAME
733PATH_SEPARATOR
734SHELL'
735ac_subst_files='serialization_dependencies
736host_makefile_frag
737target_makefile_frag
738alphaieee_frag
739ospace_frag'
740ac_user_opts='
741enable_option_checking
742with_build_libsubdir
743enable_gold
21539e2e 744enable_ld
87e6d9dc
TB
745enable_libquadmath
746enable_libquadmath_support
5213506e
RW
747enable_libada
748enable_libssp
749enable_build_with_cxx
750with_mpc
751with_mpc_include
752with_mpc_lib
753with_mpfr_dir
754with_mpfr
755with_mpfr_include
756with_mpfr_lib
757with_gmp_dir
758with_gmp
759with_gmp_include
760with_gmp_lib
761with_host_libstdcxx
762with_stage1_ldflags
763with_stage1_libs
5213506e 764with_boot_libs
ed2eaa9f 765with_boot_ldflags
5213506e
RW
766with_ppl
767with_ppl_include
768with_ppl_lib
769enable_ppl_version_check
770with_cloog
771with_cloog_include
772with_cloog_lib
f16e2237 773enable_cloog_backend
5213506e 774enable_cloog_version_check
d7f09764 775enable_lto
5213506e
RW
776enable_stage1_languages
777enable_objc_gc
778with_build_sysroot
779with_debug_prefix_map
780enable_bootstrap
5646b7b9 781with_build_config
5213506e
RW
782enable_serial_configure
783with_build_time_tools
784enable_maintainer_mode
785enable_stage1_checking
786enable_werror
5213506e
RW
787'
788 ac_precious_vars='build_alias
789host_alias
790target_alias
791CC
792CFLAGS
793LDFLAGS
794LIBS
795CPPFLAGS
796CXX
797CXXFLAGS
798CCC
ffedf511
RW
799build_configargs
800host_configargs
801target_configargs
5213506e
RW
802AR
803AS
804DLLTOOL
805LD
806LIPO
807NM
808RANLIB
809STRIP
810WINDRES
811WINDMC
812OBJCOPY
813OBJDUMP
814CC_FOR_TARGET
815CXX_FOR_TARGET
816GCC_FOR_TARGET
817GCJ_FOR_TARGET
818GFORTRAN_FOR_TARGET
632e2a07 819GOC_FOR_TARGET
5213506e
RW
820AR_FOR_TARGET
821AS_FOR_TARGET
822DLLTOOL_FOR_TARGET
823LD_FOR_TARGET
824LIPO_FOR_TARGET
825NM_FOR_TARGET
826OBJDUMP_FOR_TARGET
827RANLIB_FOR_TARGET
828STRIP_FOR_TARGET
829WINDRES_FOR_TARGET
830WINDMC_FOR_TARGET'
831
671aa708
NN
832
833# Initialize some variables set by options.
1c710c3c
DJ
834ac_init_help=
835ac_init_version=false
5213506e
RW
836ac_unrecognized_opts=
837ac_unrecognized_sep=
671aa708
NN
838# The variables have the same names as the options, with
839# dashes changed to underlines.
1c710c3c 840cache_file=/dev/null
671aa708 841exec_prefix=NONE
671aa708 842no_create=
671aa708
NN
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
671aa708
NN
851verbose=
852x_includes=NONE
853x_libraries=NONE
1c710c3c
DJ
854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 860# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
5213506e
RW
864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
671aa708
NN
866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
671aa708
NN
869includedir='${prefix}/include'
870oldincludedir='/usr/include'
5213506e
RW
871docdir='${datarootdir}/doc/${PACKAGE}'
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
79c06341 880
671aa708 881ac_prev=
5213506e 882ac_dashdash=
671aa708
NN
883for ac_option
884do
671aa708
NN
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
5213506e 887 eval $ac_prev=\$ac_option
671aa708
NN
888 ac_prev=
889 continue
890 fi
79c06341 891
5213506e
RW
892 case $ac_option in
893 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *) ac_optarg=yes ;;
895 esac
671aa708
NN
896
897 # Accept the important Cygnus configure options, so we can diagnose typos.
898
5213506e
RW
899 case $ac_dashdash$ac_option in
900 --)
901 ac_dashdash=yes ;;
671aa708
NN
902
903 -bindir | --bindir | --bindi | --bind | --bin | --bi)
904 ac_prev=bindir ;;
905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 906 bindir=$ac_optarg ;;
671aa708
NN
907
908 -build | --build | --buil | --bui | --bu)
1c710c3c 909 ac_prev=build_alias ;;
671aa708 910 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 911 build_alias=$ac_optarg ;;
671aa708
NN
912
913 -cache-file | --cache-file | --cache-fil | --cache-fi \
914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
915 ac_prev=cache_file ;;
916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
918 cache_file=$ac_optarg ;;
919
920 --config-cache | -C)
921 cache_file=config.cache ;;
671aa708 922
5213506e 923 -datadir | --datadir | --datadi | --datad)
671aa708 924 ac_prev=datadir ;;
5213506e 925 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 926 datadir=$ac_optarg ;;
671aa708 927
5213506e
RW
928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
929 | --dataroo | --dataro | --datar)
930 ac_prev=datarootdir ;;
931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
933 datarootdir=$ac_optarg ;;
934
671aa708 935 -disable-* | --disable-*)
5213506e 936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 937 # Reject names that are not valid shell variable names.
5213506e
RW
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error "invalid feature name: $ac_useropt"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944"enable_$ac_useropt"
945"*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=no ;;
950
951 -docdir | --docdir | --docdi | --doc | --do)
952 ac_prev=docdir ;;
953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
954 docdir=$ac_optarg ;;
955
956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
957 ac_prev=dvidir ;;
958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
959 dvidir=$ac_optarg ;;
671aa708
NN
960
961 -enable-* | --enable-*)
5213506e 962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 963 # Reject names that are not valid shell variable names.
5213506e
RW
964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
965 as_fn_error "invalid feature name: $ac_useropt"
966 ac_useropt_orig=$ac_useropt
967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
968 case $ac_user_opts in
969 *"
970"enable_$ac_useropt"
971"*) ;;
972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
973 ac_unrecognized_sep=', ';;
2aeb72e9 974 esac
5213506e 975 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
976
977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
979 | --exec | --exe | --ex)
980 ac_prev=exec_prefix ;;
981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
983 | --exec=* | --exe=* | --ex=*)
1c710c3c 984 exec_prefix=$ac_optarg ;;
671aa708
NN
985
986 -gas | --gas | --ga | --g)
987 # Obsolete; use --with-gas.
988 with_gas=yes ;;
989
1c710c3c
DJ
990 -help | --help | --hel | --he | -h)
991 ac_init_help=long ;;
992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
993 ac_init_help=recursive ;;
994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
995 ac_init_help=short ;;
671aa708
NN
996
997 -host | --host | --hos | --ho)
1c710c3c 998 ac_prev=host_alias ;;
671aa708 999 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1000 host_alias=$ac_optarg ;;
671aa708 1001
5213506e
RW
1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1003 ac_prev=htmldir ;;
1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1005 | --ht=*)
1006 htmldir=$ac_optarg ;;
1007
671aa708
NN
1008 -includedir | --includedir | --includedi | --included | --include \
1009 | --includ | --inclu | --incl | --inc)
1010 ac_prev=includedir ;;
1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1012 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1013 includedir=$ac_optarg ;;
671aa708
NN
1014
1015 -infodir | --infodir | --infodi | --infod | --info | --inf)
1016 ac_prev=infodir ;;
1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1018 infodir=$ac_optarg ;;
671aa708
NN
1019
1020 -libdir | --libdir | --libdi | --libd)
1021 ac_prev=libdir ;;
1022 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1023 libdir=$ac_optarg ;;
671aa708
NN
1024
1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1026 | --libexe | --libex | --libe)
1027 ac_prev=libexecdir ;;
1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1029 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1030 libexecdir=$ac_optarg ;;
671aa708 1031
5213506e
RW
1032 -localedir | --localedir | --localedi | --localed | --locale)
1033 ac_prev=localedir ;;
1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1035 localedir=$ac_optarg ;;
1036
671aa708 1037 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1038 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1039 ac_prev=localstatedir ;;
1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1042 localstatedir=$ac_optarg ;;
671aa708
NN
1043
1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1045 ac_prev=mandir ;;
1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1047 mandir=$ac_optarg ;;
671aa708
NN
1048
1049 -nfp | --nfp | --nf)
1050 # Obsolete; use --without-fp.
1051 with_fp=no ;;
1052
1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1054 | --no-cr | --no-c | -n)
671aa708
NN
1055 no_create=yes ;;
1056
1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1059 no_recursion=yes ;;
1060
1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1063 | --oldin | --oldi | --old | --ol | --o)
1064 ac_prev=oldincludedir ;;
1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1068 oldincludedir=$ac_optarg ;;
671aa708
NN
1069
1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1071 ac_prev=prefix ;;
1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1073 prefix=$ac_optarg ;;
671aa708
NN
1074
1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1076 | --program-pre | --program-pr | --program-p)
1077 ac_prev=program_prefix ;;
1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1080 program_prefix=$ac_optarg ;;
671aa708
NN
1081
1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1083 | --program-suf | --program-su | --program-s)
1084 ac_prev=program_suffix ;;
1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1087 program_suffix=$ac_optarg ;;
671aa708
NN
1088
1089 -program-transform-name | --program-transform-name \
1090 | --program-transform-nam | --program-transform-na \
1091 | --program-transform-n | --program-transform- \
1092 | --program-transform | --program-transfor \
1093 | --program-transfo | --program-transf \
1094 | --program-trans | --program-tran \
1095 | --progr-tra | --program-tr | --program-t)
1096 ac_prev=program_transform_name ;;
1097 -program-transform-name=* | --program-transform-name=* \
1098 | --program-transform-nam=* | --program-transform-na=* \
1099 | --program-transform-n=* | --program-transform-=* \
1100 | --program-transform=* | --program-transfor=* \
1101 | --program-transfo=* | --program-transf=* \
1102 | --program-trans=* | --program-tran=* \
1103 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1104 program_transform_name=$ac_optarg ;;
671aa708 1105
5213506e
RW
1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1107 ac_prev=pdfdir ;;
1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1109 pdfdir=$ac_optarg ;;
1110
1111 -psdir | --psdir | --psdi | --psd | --ps)
1112 ac_prev=psdir ;;
1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1114 psdir=$ac_optarg ;;
1115
671aa708
NN
1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1117 | -silent | --silent | --silen | --sile | --sil)
1118 silent=yes ;;
1119
1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1121 ac_prev=sbindir ;;
1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1123 | --sbi=* | --sb=*)
1c710c3c 1124 sbindir=$ac_optarg ;;
671aa708
NN
1125
1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1128 | --sharedst | --shareds | --shared | --share | --shar \
1129 | --sha | --sh)
1130 ac_prev=sharedstatedir ;;
1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1134 | --sha=* | --sh=*)
1c710c3c 1135 sharedstatedir=$ac_optarg ;;
671aa708
NN
1136
1137 -site | --site | --sit)
1138 ac_prev=site ;;
1139 -site=* | --site=* | --sit=*)
1c710c3c 1140 site=$ac_optarg ;;
671aa708
NN
1141
1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1143 ac_prev=srcdir ;;
1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1145 srcdir=$ac_optarg ;;
671aa708
NN
1146
1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1148 | --syscon | --sysco | --sysc | --sys | --sy)
1149 ac_prev=sysconfdir ;;
1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1152 sysconfdir=$ac_optarg ;;
671aa708
NN
1153
1154 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1155 ac_prev=target_alias ;;
671aa708 1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1157 target_alias=$ac_optarg ;;
671aa708
NN
1158
1159 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1160 verbose=yes ;;
1161
1c710c3c
DJ
1162 -version | --version | --versio | --versi | --vers | -V)
1163 ac_init_version=: ;;
671aa708
NN
1164
1165 -with-* | --with-*)
5213506e 1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1167 # Reject names that are not valid shell variable names.
5213506e
RW
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error "invalid package name: $ac_useropt"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174"with_$ac_useropt"
1175"*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
2aeb72e9 1178 esac
5213506e 1179 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1180
1181 -without-* | --without-*)
5213506e 1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1183 # Reject names that are not valid shell variable names.
5213506e
RW
1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1185 as_fn_error "invalid package name: $ac_useropt"
1186 ac_useropt_orig=$ac_useropt
1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1188 case $ac_user_opts in
1189 *"
1190"with_$ac_useropt"
1191"*) ;;
1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1193 ac_unrecognized_sep=', ';;
1194 esac
1195 eval with_$ac_useropt=no ;;
671aa708
NN
1196
1197 --x)
1198 # Obsolete; use --with-x.
1199 with_x=yes ;;
1200
1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1202 | --x-incl | --x-inc | --x-in | --x-i)
1203 ac_prev=x_includes ;;
1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1206 x_includes=$ac_optarg ;;
671aa708
NN
1207
1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1210 ac_prev=x_libraries ;;
1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1213 x_libraries=$ac_optarg ;;
671aa708 1214
5213506e
RW
1215 -*) as_fn_error "unrecognized option: \`$ac_option'
1216Try \`$0 --help' for more information."
671aa708
NN
1217 ;;
1218
1c710c3c
DJ
1219 *=*)
1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1221 # Reject names that are not valid shell variable names.
5213506e
RW
1222 case $ac_envvar in #(
1223 '' | [0-9]* | *[!_$as_cr_alnum]* )
1224 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1225 esac
1226 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1227 export $ac_envvar ;;
1228
671aa708 1229 *)
1c710c3c 1230 # FIXME: should be removed in autoconf 3.0.
5213506e 1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1234 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1235 ;;
1236
1237 esac
1238done
1239
1240if test -n "$ac_prev"; then
1c710c3c 1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1242 as_fn_error "missing argument to $ac_option"
af71363e 1243fi
af71363e 1244
5213506e
RW
1245if test -n "$ac_unrecognized_opts"; then
1246 case $enable_option_checking in
1247 no) ;;
1248 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1250 esac
5213506e 1251fi
2aeb72e9 1252
5213506e
RW
1253# Check all directory arguments for consistency.
1254for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1255 datadir sysconfdir sharedstatedir localstatedir includedir \
1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1257 libdir localedir mandir
2aeb72e9 1258do
5213506e
RW
1259 eval ac_val=\$$ac_var
1260 # Remove trailing slashes.
1261 case $ac_val in
1262 */ )
1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1264 eval $ac_var=\$ac_val;;
1265 esac
1266 # Be sure to have absolute directory names.
2aeb72e9 1267 case $ac_val in
5213506e
RW
1268 [\\/$]* | ?:[\\/]* ) continue;;
1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1270 esac
5213506e 1271 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1272done
1273
1c710c3c
DJ
1274# There might be people who depend on the old broken behavior: `$host'
1275# used to hold the argument of --host etc.
1276# FIXME: To remove some day.
1277build=$build_alias
1278host=$host_alias
1279target=$target_alias
0b0dc272 1280
1c710c3c
DJ
1281# FIXME: To remove some day.
1282if test "x$host_alias" != x; then
1283 if test "x$build_alias" = x; then
1284 cross_compiling=maybe
5213506e 1285 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1286 If a cross compiler is detected then cross compile mode will be used." >&2
1287 elif test "x$build_alias" != "x$host_alias"; then
1288 cross_compiling=yes
1289 fi
1290fi
1291
1292ac_tool_prefix=
1293test -n "$host_alias" && ac_tool_prefix=$host_alias-
1294
1295test "$silent" = yes && exec 6>/dev/null
671aa708 1296
671aa708 1297
5213506e
RW
1298ac_pwd=`pwd` && test -n "$ac_pwd" &&
1299ac_ls_di=`ls -di .` &&
1300ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1301 as_fn_error "working directory cannot be determined"
1302test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1303 as_fn_error "pwd does not report name of working directory"
1304
1305
671aa708
NN
1306# Find the source files, if location was not specified.
1307if test -z "$srcdir"; then
1308 ac_srcdir_defaulted=yes
5213506e
RW
1309 # Try the directory containing this script, then the parent directory.
1310 ac_confdir=`$as_dirname -- "$as_myself" ||
1311$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1312 X"$as_myself" : 'X\(//\)[^/]' \| \
1313 X"$as_myself" : 'X\(//\)$' \| \
1314 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1315$as_echo X"$as_myself" |
1316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)[^/].*/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)$/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\).*/{
1329 s//\1/
1330 q
1331 }
1332 s/.*/./; q'`
671aa708 1333 srcdir=$ac_confdir
5213506e 1334 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1335 srcdir=..
1336 fi
1337else
1338 ac_srcdir_defaulted=no
1339fi
5213506e
RW
1340if test ! -r "$srcdir/$ac_unique_file"; then
1341 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1342 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1343fi
1344ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1345ac_abs_confdir=`(
1346 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1347 pwd)`
1348# When building in place, set srcdir=.
1349if test "$ac_abs_confdir" = "$ac_pwd"; then
1350 srcdir=.
1351fi
1352# Remove unnecessary trailing slashes from srcdir.
1353# Double slashes in file names in object file debugging info
1354# mess up M-x gdb in Emacs.
1355case $srcdir in
1356*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1357esac
87841584
AM
1358case $srcdir in
1359 *" "*)
1360 as_fn_error "path to source, $srcdir, contains spaces"
1361 ;;
1362esac
ac9e6043
RW
1363ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1364
5213506e
RW
1365for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370done
1c710c3c
DJ
1371
1372#
1373# Report the --help message.
1374#
1375if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379\`configure' configures this package to adapt to many kinds of systems.
1380
1381Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386Defaults for the options are specified in brackets.
1387
1388Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
1c710c3c
DJ
1399Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1401 [$ac_default_prefix]
1c710c3c 1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1403 [PREFIX]
1c710c3c
DJ
1404
1405By default, \`make install' will install all the files in
1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408for instance \`--prefix=\$HOME'.
1409
1410For better control, use the options below.
1411
1412Fine tuning of the installation directories:
5213506e
RW
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1432_ACEOF
1433
1434 cat <<\_ACEOF
1435
1436Program names:
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1440
1441System types:
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1445_ACEOF
1446fi
1447
1448if test -n "$ac_init_help"; then
1449
1450 cat <<\_ACEOF
1451
1452Optional Features:
5213506e 1453 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1454 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1455 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e 1456 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1457 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1458 --disable-libquadmath do not build libquadmath directory
1459 --disable-libquadmath-support
1460 disable libquadmath support for Fortran
30b74385
RW
1461 --enable-libada build libada directory
1462 --enable-libssp build libssp directory
00020c16 1463 --enable-build-with-cxx build with C++ compiler instead of C compiler
33e39b66
AS
1464 --disable-ppl-version-check
1465 disable check for PPL version
39986460
TG
1466 --enable-cloog-backend[=BACKEND]
1467 set the CLooG BACKEND used to either isl, ppl or
1468 ppl-legacy (default)
d32ef397
AS
1469 --disable-cloog-version-check
1470 disable check for CLooG version
d7f09764 1471 --enable-lto enable link time optimization support
33e39b66
AS
1472 --enable-stage1-languages[=all]
1473 choose additional languages to build during stage1.
1474 Mostly useful for compiler development
1475 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1476 Objective-C runtime
30b74385
RW
1477 --enable-bootstrap enable bootstrapping [yes if native build]
1478 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1479 force sequential configuration of sub-packages for
1480 the host, target or build machine, or all
1481 sub-packages
1482 --enable-maintainer-mode
1483 enable make rules and dependencies not useful (and
1484 sometimes confusing) to the casual installer
1485 --enable-stage1-checking[=all]
1486 choose additional checking for stage1 of the
1487 compiler
1c710c3c
DJ
1488 --enable-werror enable -Werror in bootstrap stage2 and later
1489
1490Optional Packages:
1491 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1492 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1493 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1494 --with-mpc=PATH specify prefix directory for installed MPC package.
1495 Equivalent to --with-mpc-include=PATH/include plus
1496 --with-mpc-lib=PATH/lib
1497 --with-mpc-include=PATH specify directory for installed MPC include files
1498 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1499 --with-mpfr-dir=PATH this option has been REMOVED
1500 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1501 Equivalent to --with-mpfr-include=PATH/include plus
1502 --with-mpfr-lib=PATH/lib
1c710c3c 1503 --with-mpfr-include=PATH
30b74385
RW
1504 specify directory for installed MPFR include files
1505 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1506 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1507 --with-gmp=PATH specify prefix directory for the installed GMP
1508 package. Equivalent to
1509 --with-gmp-include=PATH/include plus
1510 --with-gmp-lib=PATH/lib
30b74385
RW
1511 --with-gmp-include=PATH specify directory for installed GMP include files
1512 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1513 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1514 linking with PPL
1515 --with-stage1-ldflags=FLAGS
1516 linker flags for stage1
1517 --with-stage1-libs=LIBS libraries for stage1
1518 --with-boot-libs=LIBS libraries for stage2 and later
1519 --with-boot-ldflags=FLAGS
1520 linker flags for stage2 and later
1521 --with-ppl=PATH specify prefix directory for the installed PPL
1522 package. Equivalent to
1523 --with-ppl-include=PATH/include plus
1524 --with-ppl-lib=PATH/lib
1525 --with-ppl-include=PATH specify directory for installed PPL include files
1526 --with-ppl-lib=PATH specify directory for the installed PPL library
d32ef397
AS
1527 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1528 package. Equivalent to
1529 --with-cloog-include=PATH/include plus
1530 --with-cloog-lib=PATH/lib
1531 --with-cloog-include=PATH
1532 Specify directory for installed CLooG include files
1533 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1534 library
30b74385 1535 --with-build-sysroot=SYSROOT
1c710c3c 1536 use sysroot as the system root during the build
c8aea42c 1537 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1538 map A to B, C to D ... in debug information
1539 --with-build-config='NAME NAME2...'
1540 use config/NAME.mk build configuration
30b74385 1541 --with-build-time-tools=PATH
1c710c3c 1542 use given path to find target tools during the build
1c710c3c
DJ
1543
1544Some influential environment variables:
1545 CC C compiler command
1546 CFLAGS C compiler flags
1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1548 nonstandard directory <lib dir>
5213506e
RW
1549 LIBS libraries to pass to the linker, e.g. -l<library>
1550 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1551 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1552 CXX C++ compiler command
1553 CXXFLAGS C++ compiler flags
ffedf511
RW
1554 build_configargs
1555 additional configure arguments for build directories
1556 host_configargs
1557 additional configure arguments for host directories
1558 target_configargs
1559 additional configure arguments for target directories
278a7a38
AO
1560 AR AR for the host
1561 AS AS for the host
1562 DLLTOOL DLLTOOL for the host
1563 LD LD for the host
1564 LIPO LIPO for the host
1565 NM NM for the host
1566 RANLIB RANLIB for the host
1567 STRIP STRIP for the host
1568 WINDRES WINDRES for the host
901119ae 1569 WINDMC WINDMC for the host
278a7a38
AO
1570 OBJCOPY OBJCOPY for the host
1571 OBJDUMP OBJDUMP for the host
1572 CC_FOR_TARGET
1573 CC for the target
1574 CXX_FOR_TARGET
1575 CXX for the target
1576 GCC_FOR_TARGET
1577 GCC for the target
1578 GCJ_FOR_TARGET
1579 GCJ for the target
1580 GFORTRAN_FOR_TARGET
1581 GFORTRAN for the target
632e2a07
ILT
1582 GOC_FOR_TARGET
1583 GOC for the target
278a7a38
AO
1584 AR_FOR_TARGET
1585 AR for the target
1586 AS_FOR_TARGET
1587 AS for the target
1588 DLLTOOL_FOR_TARGET
1589 DLLTOOL for the target
1590 LD_FOR_TARGET
1591 LD for the target
1592 LIPO_FOR_TARGET
1593 LIPO for the target
1594 NM_FOR_TARGET
1595 NM for the target
1596 OBJDUMP_FOR_TARGET
1597 OBJDUMP for the target
1598 RANLIB_FOR_TARGET
1599 RANLIB for the target
1600 STRIP_FOR_TARGET
1601 STRIP for the target
1602 WINDRES_FOR_TARGET
1603 WINDRES for the target
901119ae
KT
1604 WINDMC_FOR_TARGET
1605 WINDMC for the target
1c710c3c
DJ
1606
1607Use these variables to override the choices made by `configure' or to help
1608it to find libraries and programs with nonstandard names/locations.
1609
5213506e 1610Report bugs to the package provider.
1c710c3c 1611_ACEOF
5213506e 1612ac_status=$?
1c710c3c
DJ
1613fi
1614
1615if test "$ac_init_help" = "recursive"; then
1616 # If there are subdirs, report their specific --help.
1c710c3c 1617 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1618 test -d "$ac_dir" ||
1619 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620 continue
1c710c3c
DJ
1621 ac_builddir=.
1622
5213506e
RW
1623case "$ac_dir" in
1624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625*)
1626 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627 # A ".." for each directory in $ac_dir_suffix.
1628 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629 case $ac_top_builddir_sub in
1630 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632 esac ;;
1633esac
1634ac_abs_top_builddir=$ac_pwd
1635ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636# for backward compatibility:
1637ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1638
1639case $srcdir in
5213506e 1640 .) # We are building in place.
1c710c3c 1641 ac_srcdir=.
5213506e
RW
1642 ac_top_srcdir=$ac_top_builddir_sub
1643 ac_abs_top_srcdir=$ac_pwd ;;
1644 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1645 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1646 ac_top_srcdir=$srcdir
1647 ac_abs_top_srcdir=$srcdir ;;
1648 *) # Relative name.
1649 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650 ac_top_srcdir=$ac_top_build_prefix$srcdir
1651 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1652esac
5213506e
RW
1653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655 cd "$ac_dir" || { ac_status=$?; continue; }
1656 # Check for guested configure.
1657 if test -f "$ac_srcdir/configure.gnu"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660 elif test -f "$ac_srcdir/configure"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1663 else
5213506e
RW
1664 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665 fi || ac_status=$?
1666 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1667 done
1668fi
1669
5213506e 1670test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1671if $ac_init_version; then
1672 cat <<\_ACEOF
5213506e
RW
1673configure
1674generated by GNU Autoconf 2.64
1c710c3c 1675
5213506e 1676Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1677This configure script is free software; the Free Software Foundation
1678gives unlimited permission to copy, distribute and modify it.
1679_ACEOF
5213506e 1680 exit
0b0dc272 1681fi
5213506e
RW
1682
1683## ------------------------ ##
1684## Autoconf initialization. ##
1685## ------------------------ ##
1686
1687# ac_fn_c_try_compile LINENO
1688# --------------------------
1689# Try to compile conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_c_try_compile ()
1691{
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext
1694 if { { ac_try="$ac_compile"
1695case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701 (eval "$ac_compile") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest.$ac_objext; then :
1713 ac_retval=0
1714else
1715 $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718 ac_retval=1
1719fi
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721 return $ac_retval
1722
1723} # ac_fn_c_try_compile
1724
1725# ac_fn_cxx_try_compile LINENO
1726# ----------------------------
1727# Try to compile conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_cxx_try_compile ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_cxx_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757fi
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759 return $ac_retval
1760
1761} # ac_fn_cxx_try_compile
1762
1763# ac_fn_c_try_link LINENO
1764# -----------------------
1765# Try to link conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_link ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1771case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 $as_test_x conftest$ac_exeext
1791 }; then :
1792 ac_retval=0
1793else
1794 $as_echo "$as_me: failed program was:" >&5
1795sed 's/^/| /' conftest.$ac_ext >&5
1796
1797 ac_retval=1
1798fi
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 return $ac_retval
1806
1807} # ac_fn_c_try_link
1808cat >config.log <<_ACEOF
1c710c3c
DJ
1809This file contains any messages produced by compilers while
1810running configure, to aid debugging if configure makes a mistake.
1811
1812It was created by $as_me, which was
5213506e 1813generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1814
1815 $ $0 $@
1816
1817_ACEOF
5213506e 1818exec 5>>config.log
1c710c3c
DJ
1819{
1820cat <<_ASUNAME
1821## --------- ##
1822## Platform. ##
1823## --------- ##
1824
1825hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1826uname -m = `(uname -m) 2>/dev/null || echo unknown`
1827uname -r = `(uname -r) 2>/dev/null || echo unknown`
1828uname -s = `(uname -s) 2>/dev/null || echo unknown`
1829uname -v = `(uname -v) 2>/dev/null || echo unknown`
1830
1831/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1832/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1833
1834/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1835/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1836/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1837/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1838/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1839/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1840/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1841
1842_ASUNAME
1843
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
5213506e
RW
1849 $as_echo "PATH: $as_dir"
1850 done
1851IFS=$as_save_IFS
1c710c3c
DJ
1852
1853} >&5
1854
1855cat >&5 <<_ACEOF
1856
1857
1858## ----------- ##
1859## Core tests. ##
1860## ----------- ##
1861
1862_ACEOF
1863
1864
1865# Keep a trace of the command line.
1866# Strip out --no-create and --no-recursion so they do not pile up.
1867# Strip out --silent because we don't want to record it for future runs.
1868# Also quote any args containing shell meta-characters.
1869# Make two passes to allow for proper duplicate-argument suppression.
1870ac_configure_args=
1871ac_configure_args0=
1872ac_configure_args1=
1c710c3c
DJ
1873ac_must_keep_next=false
1874for ac_pass in 1 2
1875do
1876 for ac_arg
1877 do
1878 case $ac_arg in
1879 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881 | -silent | --silent | --silen | --sile | --sil)
1882 continue ;;
5213506e
RW
1883 *\'*)
1884 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1885 esac
1886 case $ac_pass in
5213506e 1887 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1888 2)
5213506e 1889 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1890 if test $ac_must_keep_next = true; then
1891 ac_must_keep_next=false # Got value, back to normal.
1892 else
1893 case $ac_arg in
1894 *=* | --config-cache | -C | -disable-* | --disable-* \
1895 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897 | -with-* | --with-* | -without-* | --without-* | --x)
1898 case "$ac_configure_args0 " in
1899 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1900 esac
1901 ;;
1902 -* ) ac_must_keep_next=true ;;
1903 esac
1904 fi
5213506e 1905 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1906 ;;
1907 esac
1908 done
1909done
5213506e
RW
1910{ ac_configure_args0=; unset ac_configure_args0;}
1911{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1912
1913# When interrupted or exit'd, cleanup temporary files, and complete
1914# config.log. We remove comments because anyway the quotes in there
1915# would cause problems or look ugly.
5213506e
RW
1916# WARNING: Use '\'' to represent an apostrophe within the trap.
1917# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1918trap 'exit_status=$?
1919 # Save into config.log some information that might help in debugging.
1920 {
1921 echo
1922
1923 cat <<\_ASBOX
1924## ---------------- ##
1925## Cache variables. ##
1926## ---------------- ##
1927_ASBOX
1928 echo
1929 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1930(
1931 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932 eval ac_val=\$$ac_var
1933 case $ac_val in #(
1934 *${as_nl}*)
1935 case $ac_var in #(
1936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1938 esac
1939 case $ac_var in #(
1940 _ | IFS | as_nl) ;; #(
1941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942 *) { eval $ac_var=; unset $ac_var;} ;;
1943 esac ;;
1944 esac
1945 done
1c710c3c 1946 (set) 2>&1 |
5213506e
RW
1947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948 *${as_nl}ac_space=\ *)
1c710c3c 1949 sed -n \
5213506e
RW
1950 "s/'\''/'\''\\\\'\'''\''/g;
1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1952 ;; #(
1c710c3c 1953 *)
5213506e 1954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 1955 ;;
5213506e
RW
1956 esac |
1957 sort
1958)
1c710c3c
DJ
1959 echo
1960
1961 cat <<\_ASBOX
1962## ----------------- ##
1963## Output variables. ##
1964## ----------------- ##
1965_ASBOX
1966 echo
1967 for ac_var in $ac_subst_vars
1968 do
5213506e
RW
1969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1974 done | sort
1975 echo
1976
1977 if test -n "$ac_subst_files"; then
1978 cat <<\_ASBOX
5213506e
RW
1979## ------------------- ##
1980## File substitutions. ##
1981## ------------------- ##
1c710c3c
DJ
1982_ASBOX
1983 echo
1984 for ac_var in $ac_subst_files
1985 do
5213506e
RW
1986 eval ac_val=\$$ac_var
1987 case $ac_val in
1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989 esac
1990 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1991 done | sort
1992 echo
1993 fi
1994
1995 if test -s confdefs.h; then
1996 cat <<\_ASBOX
1997## ----------- ##
1998## confdefs.h. ##
1999## ----------- ##
2000_ASBOX
2001 echo
5213506e 2002 cat confdefs.h
1c710c3c
DJ
2003 echo
2004 fi
2005 test "$ac_signal" != 0 &&
5213506e
RW
2006 $as_echo "$as_me: caught signal $ac_signal"
2007 $as_echo "$as_me: exit $exit_status"
1c710c3c 2008 } >&5
5213506e
RW
2009 rm -f core *.core core.conftest.* &&
2010 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2011 exit $exit_status
5213506e 2012' 0
1c710c3c 2013for ac_signal in 1 2 13 15; do
5213506e 2014 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2015done
2016ac_signal=0
2017
2018# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2019rm -f -r conftest* confdefs.h
2020
2021$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2022
2023# Predefined preprocessor variables.
2024
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_NAME "$PACKAGE_NAME"
2027_ACEOF
2028
1c710c3c
DJ
2029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2031_ACEOF
2032
1c710c3c
DJ
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_VERSION "$PACKAGE_VERSION"
2035_ACEOF
0b0dc272 2036
1c710c3c
DJ
2037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_STRING "$PACKAGE_STRING"
2039_ACEOF
2040
1c710c3c
DJ
2041cat >>confdefs.h <<_ACEOF
2042#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2043_ACEOF
2044
5213506e
RW
2045cat >>confdefs.h <<_ACEOF
2046#define PACKAGE_URL "$PACKAGE_URL"
2047_ACEOF
2048
1c710c3c
DJ
2049
2050# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2051# Prefer an explicitly selected file to automatically selected ones.
2052ac_site_file1=NONE
2053ac_site_file2=NONE
2054if test -n "$CONFIG_SITE"; then
2055 ac_site_file1=$CONFIG_SITE
2056elif test "x$prefix" != xNONE; then
2057 ac_site_file1=$prefix/share/config.site
2058 ac_site_file2=$prefix/etc/config.site
2059else
2060 ac_site_file1=$ac_default_prefix/share/config.site
2061 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2062fi
5213506e
RW
2063for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2064do
2065 test "x$ac_site_file" = xNONE && continue
671aa708 2066 if test -r "$ac_site_file"; then
5213506e
RW
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2068$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2069 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2070 . "$ac_site_file"
2071 fi
2072done
2073
2074if test -r "$cache_file"; then
1c710c3c
DJ
2075 # Some versions of bash will fail to source /dev/null (special
2076 # files actually), so we avoid doing that.
2077 if test -f "$cache_file"; then
5213506e
RW
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2080 case $cache_file in
5213506e
RW
2081 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082 *) . "./$cache_file";;
1c710c3c
DJ
2083 esac
2084 fi
671aa708 2085else
5213506e
RW
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2088 >$cache_file
2089fi
2090
2091# Check that the precious variables saved in the cache have kept the same
2092# value.
2093ac_cache_corrupted=false
5213506e 2094for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2095 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2096 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2097 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2098 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2099 case $ac_old_set,$ac_new_set in
2100 set,)
5213506e
RW
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2102$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2103 ac_cache_corrupted=: ;;
2104 ,set)
5213506e
RW
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2106$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2107 ac_cache_corrupted=: ;;
2108 ,);;
2109 *)
2110 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2111 # differences in whitespace do not lead to failure.
2112 ac_old_val_w=`echo x $ac_old_val`
2113 ac_new_val_w=`echo x $ac_new_val`
2114 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2116$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2117 ac_cache_corrupted=:
2118 else
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2120$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2121 eval $ac_var=\$ac_old_val
2122 fi
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2124$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2126$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2127 fi;;
2128 esac
2129 # Pass precious variables to config.status.
2130 if test "$ac_new_set" = set; then
2131 case $ac_new_val in
5213506e 2132 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2133 *) ac_arg=$ac_var=$ac_new_val ;;
2134 esac
2135 case " $ac_configure_args " in
2136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2137 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2138 esac
2139 fi
2140done
2141if $ac_cache_corrupted; then
5213506e
RW
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2145$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2146 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2147fi
5213506e
RW
2148## -------------------- ##
2149## Main body of script. ##
2150## -------------------- ##
671aa708 2151
2aeb72e9
DD
2152ac_ext=c
2153ac_cpp='$CPP $CPPFLAGS'
2154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157
1c710c3c
DJ
2158
2159
2160
1c710c3c
DJ
2161
2162
0115d4a3 2163
1c710c3c 2164
ad33ff57
RW
2165
2166progname=$0
2167# if PWD already has a value, it is probably wrong.
2168if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2169
2170# Export original configure arguments for use by sub-configures.
2171# Quote arguments with shell meta charatcers.
2172TOPLEVEL_CONFIGURE_ARGUMENTS=
2173set -- "$progname" "$@"
2174for ac_arg
2175do
2176 case "$ac_arg" in
2177 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2178 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2179 # if the argument is of the form -foo=baz, quote the baz part only
2180 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2181 *) ;;
2182 esac
2183 # Add the quoted argument to the list.
2184 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2185done
2186if test "$silent" = yes; then
2187 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2188fi
2189# Remove the initial space we just introduced and, as these will be
2190# expanded by make, quote '$'.
2191TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2192
1c710c3c
DJ
2193
2194# Find the build, host, and target systems.
671aa708 2195ac_aux_dir=
5213506e
RW
2196for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2197 for ac_t in install-sh install.sh shtool; do
2198 if test -f "$ac_dir/$ac_t"; then
2199 ac_aux_dir=$ac_dir
2200 ac_install_sh="$ac_aux_dir/$ac_t -c"
2201 break 2
2202 fi
2203 done
671aa708
NN
2204done
2205if test -z "$ac_aux_dir"; then
5213506e 2206 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2207fi
5213506e
RW
2208
2209# These three variables are undocumented and unsupported,
2210# and are intended to be withdrawn in a future Autoconf release.
2211# They can cause serious problems if a builder's source tree is in a directory
2212# whose full name contains unusual characters.
2213ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2214ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2215ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2216
671aa708 2217
1c710c3c 2218# Make sure we can run config.sub.
5213506e
RW
2219$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2220 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2221
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2223$as_echo_n "checking build system type... " >&6; }
2224if test "${ac_cv_build+set}" = set; then :
2225 $as_echo_n "(cached) " >&6
2226else
2227 ac_build_alias=$build_alias
2228test "x$ac_build_alias" = x &&
2229 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2230test "x$ac_build_alias" = x &&
2231 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2232ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2233 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2234
2235fi
2236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2237$as_echo "$ac_cv_build" >&6; }
2238case $ac_cv_build in
2239*-*-*) ;;
2240*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2241esac
1c710c3c 2242build=$ac_cv_build
5213506e
RW
2243ac_save_IFS=$IFS; IFS='-'
2244set x $ac_cv_build
2245shift
2246build_cpu=$1
2247build_vendor=$2
2248shift; shift
2249# Remember, the first character of IFS is used to create $*,
2250# except with old shells:
2251build_os=$*
2252IFS=$ac_save_IFS
2253case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2254
671aa708 2255
1c710c3c
DJ
2256 case ${build_alias} in
2257 "") build_noncanonical=${build} ;;
2258 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2259esac
2260
2261
af71363e 2262
1c710c3c
DJ
2263 case ${host_alias} in
2264 "") host_noncanonical=${build_noncanonical} ;;
2265 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2266esac
2267
af71363e 2268
1c710c3c
DJ
2269
2270 case ${target_alias} in
2271 "") target_noncanonical=${host_noncanonical} ;;
2272 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2273esac
2274
af71363e 2275
1c710c3c
DJ
2276
2277
2278test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2279 test "$program_prefix$program_suffix$program_transform_name" = \
2280 NONENONEs,x,x, &&
1c710c3c 2281 program_transform_name=s,y,y,
af71363e 2282
5213506e
RW
2283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2284$as_echo_n "checking host system type... " >&6; }
2285if test "${ac_cv_host+set}" = set; then :
2286 $as_echo_n "(cached) " >&6
af71363e 2287else
5213506e
RW
2288 if test "x$host_alias" = x; then
2289 ac_cv_host=$ac_cv_build
2290else
2291 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2292 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2293fi
1c710c3c 2294
af71363e 2295fi
5213506e
RW
2296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2297$as_echo "$ac_cv_host" >&6; }
2298case $ac_cv_host in
2299*-*-*) ;;
2300*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2301esac
1c710c3c 2302host=$ac_cv_host
5213506e
RW
2303ac_save_IFS=$IFS; IFS='-'
2304set x $ac_cv_host
2305shift
2306host_cpu=$1
2307host_vendor=$2
2308shift; shift
2309# Remember, the first character of IFS is used to create $*,
2310# except with old shells:
2311host_os=$*
2312IFS=$ac_save_IFS
2313case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2314
2315
5213506e
RW
2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2317$as_echo_n "checking target system type... " >&6; }
2318if test "${ac_cv_target+set}" = set; then :
2319 $as_echo_n "(cached) " >&6
1c710c3c 2320else
5213506e
RW
2321 if test "x$target_alias" = x; then
2322 ac_cv_target=$ac_cv_host
2323else
2324 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2325 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2326fi
1c710c3c
DJ
2327
2328fi
5213506e
RW
2329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2330$as_echo "$ac_cv_target" >&6; }
2331case $ac_cv_target in
2332*-*-*) ;;
2333*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2334esac
1c710c3c 2335target=$ac_cv_target
5213506e
RW
2336ac_save_IFS=$IFS; IFS='-'
2337set x $ac_cv_target
2338shift
2339target_cpu=$1
2340target_vendor=$2
2341shift; shift
2342# Remember, the first character of IFS is used to create $*,
2343# except with old shells:
2344target_os=$*
2345IFS=$ac_save_IFS
2346case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2347
2348
2349# The aliases save the names the user supplied, while $host etc.
2350# will get canonicalized.
2351test -n "$target_alias" &&
2352 test "$program_prefix$program_suffix$program_transform_name" = \
2353 NONENONEs,x,x, &&
2354 program_prefix=${target_alias}-
5213506e 2355
671aa708 2356test "$program_prefix" != NONE &&
5213506e 2357 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2358# Use a double $ so make ignores it.
2359test "$program_suffix" != NONE &&
5213506e
RW
2360 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2361# Double any \ or $.
1c710c3c 2362# By default was `s,x,x', remove it if useless.
5213506e
RW
2363ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2364program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2365
671aa708
NN
2366
2367
775956d0
NN
2368# Get 'install' or 'install-sh' and its variants.
2369# Find a good install program. We prefer a C program (faster),
2370# so one script is as good as another. But avoid the broken or
2371# incompatible versions:
2372# SysV /etc/install, /usr/sbin/install
2373# SunOS /usr/etc/install
2374# IRIX /sbin/install
2375# AIX /bin/install
1c710c3c 2376# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2377# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2378# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2379# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2380# OS/2's system install, which has a completely different semantic
775956d0 2381# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2382# Reject install programs that cannot install multiple files.
5213506e
RW
2383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2384$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2385if test -z "$INSTALL"; then
5213506e
RW
2386if test "${ac_cv_path_install+set}" = set; then :
2387 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2388else
2389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2390for as_dir in $PATH
2391do
2392 IFS=$as_save_IFS
2393 test -z "$as_dir" && as_dir=.
5213506e
RW
2394 # Account for people who put trailing slashes in PATH elements.
2395case $as_dir/ in #((
2396 ./ | .// | /[cC]/* | \
1c710c3c 2397 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2398 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2399 /usr/ucb/* ) ;;
2400 *)
2401 # OSF1 and SCO ODT 3.0 have their own names for install.
2402 # Don't use installbsd from OSF since it installs stuff as root
2403 # by default.
2404 for ac_prog in ginstall scoinst install; do
2405 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2406 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2407 if test $ac_prog = install &&
1c710c3c 2408 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2409 # AIX install. It has an incompatible calling convention.
2410 :
1c710c3c
DJ
2411 elif test $ac_prog = install &&
2412 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2413 # program-specific install script used by HP pwplus--don't use.
2414 :
775956d0 2415 else
38d24731
RW
2416 rm -rf conftest.one conftest.two conftest.dir
2417 echo one > conftest.one
2418 echo two > conftest.two
2419 mkdir conftest.dir
2420 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2421 test -s conftest.one && test -s conftest.two &&
2422 test -s conftest.dir/conftest.one &&
2423 test -s conftest.dir/conftest.two
2424 then
2425 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2426 break 3
2427 fi
775956d0
NN
2428 fi
2429 fi
2430 done
1c710c3c
DJ
2431 done
2432 ;;
2433esac
5213506e
RW
2434
2435 done
2436IFS=$as_save_IFS
1c710c3c 2437
38d24731 2438rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2439
2440fi
2441 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2442 INSTALL=$ac_cv_path_install
775956d0 2443 else
38d24731
RW
2444 # As a last resort, use the slow shell script. Don't cache a
2445 # value for INSTALL within a source directory, because that will
775956d0 2446 # break other packages using the cache if that directory is
38d24731 2447 # removed, or if the value is a relative name.
1c710c3c 2448 INSTALL=$ac_install_sh
775956d0
NN
2449 fi
2450fi
5213506e
RW
2451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2452$as_echo "$INSTALL" >&6; }
775956d0
NN
2453
2454# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2455# It thinks the first close brace ends the variable substitution.
2456test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2457
1c710c3c 2458test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2459
2460test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2461
5213506e
RW
2462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2463$as_echo_n "checking whether ln works... " >&6; }
2464if test "${acx_cv_prog_LN+set}" = set; then :
2465 $as_echo_n "(cached) " >&6
ad6717df
PB
2466else
2467 rm -f conftestdata_t
2468echo >conftestdata_f
2469if ln conftestdata_f conftestdata_t 2>/dev/null
2470then
2471 acx_cv_prog_LN=ln
2472else
2473 acx_cv_prog_LN=no
2474fi
2475rm -f conftestdata_f conftestdata_t
2476
2477fi
2478if test $acx_cv_prog_LN = no; then
2479 LN="cp"
5213506e
RW
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2481$as_echo "no, using $LN" >&6; }
ad6717df
PB
2482else
2483 LN="$acx_cv_prog_LN"
5213506e
RW
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2485$as_echo "yes" >&6; }
ad6717df
PB
2486fi
2487
5213506e
RW
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2489$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2490LN_S=$as_ln_s
2491if test "$LN_S" = "ln -s"; then
5213506e
RW
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493$as_echo "yes" >&6; }
fb0103e5 2494else
5213506e
RW
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2496$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2497fi
2498
87264276
PB
2499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2500$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2501if test "${ac_cv_path_SED+set}" = set; then :
2502 $as_echo_n "(cached) " >&6
2503else
2504 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2505 for ac_i in 1 2 3 4 5 6 7; do
2506 ac_script="$ac_script$as_nl$ac_script"
2507 done
2508 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2509 { ac_script=; unset ac_script;}
2510 if test -z "$SED"; then
2511 ac_path_SED_found=false
2512 # Loop through the user's path and test for each of PROGNAME-LIST
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 for ac_prog in sed gsed; do
2519 for ac_exec_ext in '' $ac_executable_extensions; do
2520 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2521 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2522# Check for GNU ac_path_SED and select it if it is found.
2523 # Check for GNU $ac_path_SED
2524case `"$ac_path_SED" --version 2>&1` in
2525*GNU*)
2526 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2527*)
2528 ac_count=0
2529 $as_echo_n 0123456789 >"conftest.in"
2530 while :
2531 do
2532 cat "conftest.in" "conftest.in" >"conftest.tmp"
2533 mv "conftest.tmp" "conftest.in"
2534 cp "conftest.in" "conftest.nl"
2535 $as_echo '' >> "conftest.nl"
2536 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2538 as_fn_arith $ac_count + 1 && ac_count=$as_val
2539 if test $ac_count -gt ${ac_path_SED_max-0}; then
2540 # Best one so far, save it but keep looking for a better one
2541 ac_cv_path_SED="$ac_path_SED"
2542 ac_path_SED_max=$ac_count
2543 fi
2544 # 10*(2^10) chars as input seems more than enough
2545 test $ac_count -gt 10 && break
2546 done
2547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2548esac
2549
2550 $ac_path_SED_found && break 3
2551 done
2552 done
2553 done
2554IFS=$as_save_IFS
2555 if test -z "$ac_cv_path_SED"; then
2556 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2557 fi
2558else
2559 ac_cv_path_SED=$SED
2560fi
2561
2562fi
2563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2564$as_echo "$ac_cv_path_SED" >&6; }
2565 SED="$ac_cv_path_SED"
2566 rm -f conftest.sed
2567
2568for ac_prog in gawk mawk nawk awk
2569do
2570 # Extract the first word of "$ac_prog", so it can be a program name with args.
2571set dummy $ac_prog; ac_word=$2
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573$as_echo_n "checking for $ac_word... " >&6; }
2574if test "${ac_cv_prog_AWK+set}" = set; then :
2575 $as_echo_n "(cached) " >&6
2576else
2577 if test -n "$AWK"; then
2578 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2579else
2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
2585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587 ac_cv_prog_AWK="$ac_prog"
2588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589 break 2
2590 fi
2591done
2592 done
2593IFS=$as_save_IFS
2594
2595fi
2596fi
2597AWK=$ac_cv_prog_AWK
2598if test -n "$AWK"; then
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2600$as_echo "$AWK" >&6; }
2601else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603$as_echo "no" >&6; }
2604fi
2605
2606
2607 test -n "$AWK" && break
2608done
2609
775956d0 2610
79c06341 2611### we might need to use some other shell than /bin/sh for running subshells
79c06341
JL
2612### If we are on Windows, search for the shell. This will permit people
2613### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2614### without also having to set CONFIG_SHELL. This code will work when
2615### using bash, which sets OSTYPE.
2616case "${OSTYPE}" in
2617*win32*)
671aa708
NN
2618 if test x${CONFIG_SHELL} = x ; then
2619 if test ! -f /bin/sh ; then
2620 if test x${SHELL} != x && test -f ${SHELL} ; then
79c06341
JL
2621 CONFIG_SHELL=${SHELL}
2622 export CONFIG_SHELL
2623 else
2624 for prog in sh sh.exe bash bash.exe; do
2625 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2626 for dir in $PATH; do
2627 test -z "$dir" && dir=.
2628 if test -f $dir/$prog; then
2629 CONFIG_SHELL=$dir/$prog
2630 export CONFIG_SHELL
2631 break
2632 fi
2633 done
2634 IFS="$save_ifs"
2635 test -n "${CONFIG_SHELL}" && break
2636 done
2637 fi
2638 fi
2639 fi
2640 ;;
2641esac
2642
2643config_shell=${CONFIG_SHELL-/bin/sh}
2644
671aa708 2645moveifchange=${srcdir}/move-if-change
79c06341 2646
ee6a22df
L
2647srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2648
2649# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2650# a relative path.
2651if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2652 INSTALL="${srcpwd}/install-sh -c"
2653fi
2654
671aa708
NN
2655# Set srcdir to "." if that's what it is.
2656# This is important for multilib support.
2657pwd=`${PWDCMD-pwd}`
671aa708
NN
2658if test "${pwd}" = "${srcpwd}" ; then
2659 srcdir=.
79c06341
JL
2660fi
2661
671aa708 2662topsrcdir=$srcpwd
5d4a5ee6 2663
671aa708 2664extra_host_args=
afabd8e6 2665
671aa708
NN
2666### To add a new directory to the tree, first choose whether it is a target
2667### or a host dependent tool. Then put it into the appropriate list
2668### (library or tools, host or target), doing a dependency sort.
79c06341 2669
1c710c3c 2670# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2671# configdirs, or target_configdirs; see the serialization section below.
79c06341 2672
1c710c3c
DJ
2673# Dependency sorting is only needed when *configuration* must be done in
2674# a particular order. In all cases a dependency should be specified in
671aa708 2675# the Makefile, whether or not it's implicitly specified here.
79c06341 2676
671aa708
NN
2677# Double entries in build_configdirs, configdirs, or target_configdirs may
2678# cause circular dependencies and break everything horribly.
79c06341 2679
23f6b2f9
PB
2680# these library is used by various programs built for the build
2681# environment
2682#
2683build_libs="build-libiberty"
2684
2685# these tools are built for the build environment
71b5d516 2686build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2687
671aa708
NN
2688# these libraries are used by various programs built for the host environment
2689#
f61428ed 2690host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
671aa708 2691
671aa708
NN
2692# these tools are built for the host environment
2693# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2694# know that we are building the simulator.
2695# binutils, gas and ld appear in that order because it makes sense to run
2696# "make check" in that particular order.
38e3d868 2697# If --enable-gold is used, "gold" may replace "ld".
8c32c9f0 2698host_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"
671aa708
NN
2699
2700# libgcj represents the runtime libraries only used by gcj.
2701libgcj="target-libffi \
671aa708
NN
2702 target-zlib \
2703 target-qthreads \
2704 target-libjava"
2705
2706# these libraries are built for the target environment, and are built after
2707# the host libraries and the host tools (which may be a cross compiler)
2708#
291f172e
DJ
2709target_libraries="target-libgcc \
2710 target-libiberty \
671aa708
NN
2711 target-libgloss \
2712 target-newlib \
6d3b5aea 2713 target-libgomp \
cb543528 2714 target-libstdc++-v3 \
6de9cd9a 2715 target-libmudflap \
77008252 2716 target-libssp \
1ec601bf 2717 target-libquadmath \
6de9cd9a 2718 target-libgfortran \
7cd0cf9c 2719 target-boehm-gc \
77d187bc 2720 ${libgcj} \
d9cdb878 2721 target-libobjc \
632e2a07
ILT
2722 target-libada \
2723 target-libgo"
671aa708 2724
4dbda6f0
NN
2725# these tools are built using the target libraries, and are intended to
2726# run only in the target environment
671aa708 2727#
4dbda6f0 2728# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2729# list belongs in this list.
671aa708 2730#
8d4c5ac6 2731target_tools="target-examples target-gperf target-rda"
79c06341 2732
671aa708 2733################################################################################
79c06341 2734
671aa708
NN
2735## All tools belong in one of the four categories, and are assigned above
2736## We assign ${configdirs} this way to remove all embedded newlines. This
2737## is important because configure will choke if they ever get through.
2738## ${configdirs} is directories we build using the host tools.
2739## ${target_configdirs} is directories we build using the target tools.
671aa708 2740configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2741target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2742build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2743
ac9e6043
RW
2744
2745
671aa708 2746################################################################################
79c06341 2747
671aa708 2748srcname="gnu development package"
79c06341 2749
671aa708
NN
2750# This gets set non-empty for some net releases of packages.
2751appdirs=""
79c06341 2752
671aa708
NN
2753# Define is_cross_compiler to save on calls to 'test'.
2754is_cross_compiler=
2755if test x"${host}" = x"${target}" ; then
2756 is_cross_compiler=no
79c06341 2757else
671aa708 2758 is_cross_compiler=yes
1c710c3c 2759fi
79c06341 2760
b4acb5ef 2761# Find the build and target subdir names.
8b87bb96 2762
2e9e6f68
DJ
2763# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2764# have matching libraries, they should use host libraries: Makefile.tpl
2765# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2766# However, they still use the build modules, because the corresponding
2767# host modules (e.g. bison) are only built for the host when bootstrap
2768# finishes. So:
2769# - build_subdir is where we find build modules, and never changes.
2770# - build_libsubdir is where we find build libraries, and can be overridden.
2771
2772# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2773build_subdir="build-${build_noncanonical}"
1c710c3c 2774
5213506e
RW
2775# Check whether --with-build-libsubdir was given.
2776if test "${with_build_libsubdir+set}" = set; then :
2777 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2778else
2779 build_libsubdir="$build_subdir"
5213506e
RW
2780fi
2781
215c351a
PB
2782# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2783if ( test $srcdir = . && test -d gcc ) \
2784 || test -d $srcdir/../host-${host_noncanonical}; then
2785 host_subdir="host-${host_noncanonical}"
2786else
2787 host_subdir=.
2788fi
8b87bb96
NN
2789# No prefix.
2790target_subdir=${target_noncanonical}
1c710c3c 2791
0db770bd
RW
2792# Be sure to cover against remnants of an in-tree build.
2793if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2794 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2795Use a pristine source tree when building in a separate tree" "$LINENO" 5
2796fi
79c06341 2797
671aa708
NN
2798# Skipdirs are removed silently.
2799skipdirs=
2800# Noconfigdirs are removed loudly.
2801noconfigdirs=""
79c06341 2802
671aa708
NN
2803use_gnu_ld=
2804# Make sure we don't let GNU ld be added if we didn't want it.
2805if test x$with_gnu_ld = xno ; then
2806 use_gnu_ld=no
5afab7ad 2807 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2808fi
2809
671aa708
NN
2810use_gnu_as=
2811# Make sure we don't let GNU as be added if we didn't want it.
2812if test x$with_gnu_as = xno ; then
2813 use_gnu_as=no
2814 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2815fi
2816
d7f09764
DN
2817use_included_zlib=
2818# Make sure we don't let ZLIB be added if we didn't want it.
2819if test x$with_system_zlib = xyes ; then
2820 use_included_zlib=no
2821 noconfigdirs="$noconfigdirs zlib"
2822fi
2823
1c710c3c 2824# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2825# it's not even worth trying to configure, much less build, that tool.
79c06341 2826
671aa708
NN
2827case ${with_x} in
2828 yes | "") ;; # the default value for this tree is that X11 is available
2829 no)
b4f96efe 2830 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2831 # We won't be able to build gdbtk without X.
1c710c3c 2832 enable_gdbtk=no
671aa708
NN
2833 ;;
2834 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2835esac
79c06341 2836
1bcce263 2837# Some are only suitable for cross toolchains.
671aa708
NN
2838# Remove these if host=target.
2839cross_only="target-libgloss target-newlib target-opcodes"
2840
2841case $is_cross_compiler in
2842 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2843esac
79c06341 2844
671aa708
NN
2845# If both --with-headers and --with-libs are specified, default to
2846# --without-newlib.
ee6a22df
L
2847if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2848 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2849 if test x"${with_newlib}" = x ; then
2850 with_newlib=no
2851 fi
79c06341
JL
2852fi
2853
671aa708
NN
2854# Recognize --with-newlib/--without-newlib.
2855case ${with_newlib} in
2856 no) skipdirs="${skipdirs} target-newlib" ;;
2857 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2858esac
79c06341 2859
21539e2e
MK
2860# Handle --enable-gold, --enable-ld.
2861# --disable-gold [--enable-ld]
2862# Build only ld. Default option.
9580395f
L
2863# --enable-gold [--enable-ld]
2864# Build both gold and ld. Install gold as "ld.gold", install ld
2865# as "ld.bfd" and "ld".
2866# --enable-gold=default [--enable-ld]
21539e2e
MK
2867# Build both gold and ld. Install gold as "ld.gold" and "ld",
2868# install ld as "ld.bfd".
2869# --enable-gold[=default] --disable-ld
2870# Build only gold, which is then installed as both "ld.gold" and "ld".
2871# --enable-gold --enable-ld=default
9580395f
L
2872# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2873# and ld.bfd).
21539e2e
MK
2874# In other words, ld is default
2875# --enable-gold=default --enable-ld=default
2876# Error.
2877
2878default_ld=
5213506e
RW
2879# Check whether --enable-gold was given.
2880if test "${enable_gold+set}" = set; then :
2881 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2882else
2883 ENABLE_GOLD=no
5213506e
RW
2884fi
2885
21539e2e
MK
2886case "${ENABLE_GOLD}" in
2887 yes|default)
38e3d868
RM
2888 # Check for ELF target.
2889 is_elf=no
2890 case "${target}" in
2891 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2892 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a
JM
2893 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2894 | *-*-solaris2* | *-*-nto*)
38e3d868
RM
2895 case "${target}" in
2896 *-*-linux*aout* | *-*-linux*oldld*)
2897 ;;
2898 *)
2899 is_elf=yes
2900 ;;
2901 esac
2902 esac
2903
2904 if test "$is_elf" = "yes"; then
2905 # Check for target supported by gold.
5afab7ad 2906 case "${target}" in
38e3d868 2907 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
21539e2e
MK
2908 configdirs="$configdirs gold"
2909 if test x${ENABLE_GOLD} = xdefault; then
2910 default_ld=gold
2911 fi
38e3d868 2912 ENABLE_GOLD=yes
5afab7ad
ILT
2913 ;;
2914 esac
38e3d868
RM
2915 fi
2916 ;;
2917 no)
2918 ;;
2919 *)
2920 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2921 ;;
21539e2e
MK
2922esac
2923
2924# Check whether --enable-ld was given.
2925if test "${enable_ld+set}" = set; then :
2926 enableval=$enable_ld; ENABLE_LD=$enableval
2927else
2928 ENABLE_LD=yes
2929fi
2930
2931
2932case "${ENABLE_LD}" in
2933 default)
9580395f 2934 if test x${default_ld} != x; then
21539e2e
MK
2935 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2936 fi
2937 ;;
2938 yes)
2939 ;;
2940 no)
2941 if test x${ENABLE_GOLD} != xyes; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2943$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2944 fi
2945 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2946 ;;
2947 *)
2948 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2949 ;;
2950esac
5afab7ad 2951
671aa708 2952# Configure extra directories which are host specific
79c06341 2953
671aa708
NN
2954case "${host}" in
2955 *-cygwin*)
2956 configdirs="$configdirs libtermcap" ;;
2957esac
79c06341 2958
4fab7234
HPN
2959# A target can indicate whether a language isn't supported for some reason.
2960# Only spaces may be used in this macro; not newlines or tabs.
2961unsupported_languages=
2962
1c710c3c 2963# Remove more programs from consideration, based on the host or
671aa708
NN
2964# target this usually means that a port of the program doesn't
2965# exist yet.
ec8d6ddc 2966
671aa708 2967case "${host}" in
111eeb6e 2968 i[3456789]86-*-msdosdjgpp*)
1bcce263 2969 noconfigdirs="$noconfigdirs tcl tk itcl libffi"
3aa83176 2970 ;;
95af8923 2971 x86_64-*-mingw*)
1bcce263 2972 noconfigdirs="$noconfigdirs newlib"
95af8923 2973 ;;
f2a0e225 2974 i[3456789]86-*-mingw32*)
1bcce263 2975 noconfigdirs="$noconfigdirs newlib"
671aa708 2976 ;;
671aa708 2977esac
ec8d6ddc 2978
6de9cd9a 2979
87e6d9dc
TB
2980# Check whether --enable-libquadmath was given.
2981if test "${enable_libquadmath+set}" = set; then :
2982 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2983else
2984 ENABLE_LIBQUADMATH=yes
2985fi
2986
2987if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2988 noconfigdirs="$noconfigdirs target-libquadmath"
2989fi
2990
2991
2992# Check whether --enable-libquadmath-support was given.
2993if test "${enable_libquadmath_support+set}" = set; then :
2994 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2995else
2996 ENABLE_LIBQUADMATH_SUPPORT=yes
2997fi
2998
2999enable_libquadmath_support=
3000if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3001 enable_libquadmath_support=no
3002fi
3003
3004
5213506e
RW
3005# Check whether --enable-libada was given.
3006if test "${enable_libada+set}" = set; then :
3007 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3008else
3009 ENABLE_LIBADA=yes
5213506e
RW
3010fi
3011
d9cdb878 3012if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3013 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3014fi
3015
5213506e
RW
3016# Check whether --enable-libssp was given.
3017if test "${enable_libssp+set}" = set; then :
3018 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3019else
3020 ENABLE_LIBSSP=yes
5213506e
RW
3021fi
3022
ef0087a7 3023
671aa708
NN
3024# Save it here so that, even in case of --enable-libgcj, if the Java
3025# front-end isn't enabled, we still get libgcj disabled.
3026libgcj_saved=$libgcj
3027case $enable_libgcj in
3028yes)
3029 # If we reset it here, it won't get added to noconfigdirs in the
3030 # target-specific build rules, so it will be forcibly enabled
3031 # (unless the Java language itself isn't enabled).
3032 libgcj=
3033 ;;
3034no)
3035 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3036 # Don't disable libffi, though, other languages use it.
3037 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3038 # Clear libgcj_saved so that even if java is enabled libffi won't be
3039 # built.
3040 libgcj_saved=
671aa708
NN
3041 ;;
3042esac
ec8d6ddc 3043
6de9cd9a 3044
27079765
AH
3045# Disable libmudflap on some systems.
3046if test x$enable_libmudflap = x ; then
dfcada9a 3047 case "${target}" in
416ac4d4 3048 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3049 # Enable libmudflap by default in GNU and friends.
dfcada9a 3050 ;;
a3e8d8b4
LR
3051 *-*-freebsd*)
3052 # Enable libmudflap by default in FreeBSD.
3053 ;;
dfcada9a
MM
3054 *)
3055 # Disable it by default everywhere else.
3056 noconfigdirs="$noconfigdirs target-libmudflap"
3057 ;;
3058 esac
27079765 3059fi
6de9cd9a 3060
27079765
AH
3061# Disable libgomp on non POSIX hosted systems.
3062if test x$enable_libgomp = x ; then
953ff289
DN
3063 # Enable libgomp by default on hosted POSIX systems.
3064 case "${target}" in
416ac4d4 3065 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3066 ;;
8c6d158a 3067 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3068 ;;
04879af3 3069 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 3070 ;;
cac90078 3071 *-*-darwin* | *-*-aix*)
953ff289
DN
3072 ;;
3073 *)
3074 noconfigdirs="$noconfigdirs target-libgomp"
3075 ;;
3076 esac
27079765 3077fi
953ff289 3078
c03353e2
RIL
3079# Default libgloss CPU subdirectory.
3080libgloss_dir="$target_cpu"
6de9cd9a 3081
671aa708
NN
3082case "${target}" in
3083 *-*-chorusos)
cb253473 3084 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3085 ;;
75eeae1a 3086 powerpc-*-darwin*)
e1514c3f 3087 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3088 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3089 ;;
354ebf88
RW
3090 i[3456789]86-*-darwin*)
3091 noconfigdirs="$noconfigdirs ld gprof"
3092 noconfigdirs="$noconfigdirs sim target-rda"
3093 ;;
3094 x86_64-*-darwin[912]*)
0db3a858
TG
3095 noconfigdirs="$noconfigdirs ld gas gprof"
3096 noconfigdirs="$noconfigdirs sim target-rda"
3097 ;;
42c1cd8a
AT
3098 *-*-darwin*)
3099 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3100 noconfigdirs="$noconfigdirs sim target-rda"
3101 noconfigdirs="$noconfigdirs ${libgcj}"
3102 ;;
8c6d158a
JM
3103 *-*-dragonfly*)
3104 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3105 ;;
671aa708 3106 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 3107 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3108 ;;
c3f84f61 3109 *-*-freebsd*)
6de9cd9a
DN
3110 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3111 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3112 && test -f /usr/local/include/gmp.h; then
3113 with_gmp=/usr/local
3114 fi
3115
3116 # Skip some stuff that's unsupported on some FreeBSD configurations.
3117 case "${target}" in
3118 i*86-*-*) ;;
3119 alpha*-*-*) ;;
f3f623ae 3120 x86_64-*-*) ;;
6de9cd9a 3121 *)
cb253473 3122 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
3123 ;;
3124 esac
3125 ;;
ef4e7569
US
3126 *-*-kaos*)
3127 # Remove unsupported stuff on all kaOS configurations.
8d4c5ac6 3128 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3"
1bcce263 3129 skipdirs="$skipdirs target-libobjc"
ef4e7569
US
3130 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3131 noconfigdirs="$noconfigdirs target-libgloss"
3132 ;;
671aa708
NN
3133 *-*-netbsd*)
3134 # Skip some stuff on all NetBSD configurations.
3135 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3136
3137 # Skip some stuff that's unsupported on some NetBSD configurations.
3138 case "${target}" in
3139 i*86-*-netbsdelf*) ;;
0590b963 3140 arm*-*-netbsdelf*) ;;
671aa708 3141 *)
cb253473 3142 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3143 ;;
3144 esac
3145 ;;
61fec9ff 3146 *-*-netware*)
8d4c5ac6 3147 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj}"
671aa708
NN
3148 ;;
3149 *-*-rtems*)
e4522f78 3150 skipdirs="${skipdirs} target-libiberty"
cb253473 3151 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3152 ;;
a8ba31f2
EC
3153 # The tpf target doesn't support gdb yet.
3154 *-*-tpf*)
8d4c5ac6 3155 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} gdb tcl tk libgui itcl"
a8ba31f2 3156 ;;
5785c0ed 3157 *-*-uclinux*)
cb253473 3158 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 3159 ;;
671aa708 3160 *-*-vxworks*)
cb253473 3161 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
3162 ;;
3163 alpha*-dec-osf*)
3164 # ld works, but does not support shared libraries.
1bcce263 3165 # newlib is not 64 bit ready.
671aa708 3166 # gas doesn't generate exception information.
1bcce263 3167 noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
671aa708
NN
3168 ;;
3169 alpha*-*-*vms*)
8406cb62 3170 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708
NN
3171 ;;
3172 alpha*-*-linux*)
3173 # newlib is not 64 bit ready
3174 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3175 ;;
671aa708
NN
3176 alpha*-*-*)
3177 # newlib is not 64 bit ready
cb253473 3178 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3179 ;;
33952f6f 3180 am33_2.0-*-linux*)
cb253473 3181 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 3182 ;;
671aa708 3183 sh-*-linux*)
cb253473 3184 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 3185 ;;
671aa708 3186 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 3187 noconfigdirs="$noconfigdirs ${libgcj}"
1bcce263 3188 noconfigdirs="$noconfigdirs target-libiberty"
b4f96efe 3189 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3190 # the C++ libraries don't build on top of CE's C libraries
cb543528 3191 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708 3192 noconfigdirs="$noconfigdirs target-newlib"
c03353e2 3193 libgloss_dir=wince
671aa708
NN
3194 ;;
3195 arc-*-*)
ebb9f8b0 3196 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3197 ;;
4569f85e 3198 arm-*-coff)
cb253473 3199 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3200 libgloss_dir=arm
671aa708 3201 ;;
4569f85e 3202 arm-*-elf* | arm*-*-eabi* )
1bcce263 3203 noconfigdirs="$noconfigdirs target-libffi"
c03353e2 3204 libgloss_dir=arm
671aa708 3205 ;;
077fc835 3206 arm*-*-linux-gnueabi)
1bcce263 3207 noconfigdirs="$noconfigdirs"
1c00b503
PB
3208 case ${with_newlib} in
3209 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3210 esac
c03353e2 3211 libgloss_dir=arm
077fc835 3212 ;;
972974fc 3213 arm*-*-symbianelf*)
cb253473 3214 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 3215 libgloss_dir=arm
972974fc 3216 ;;
671aa708 3217 arm-*-pe*)
cb253473 3218 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3219 ;;
671aa708 3220 arm-*-riscix*)
cb253473 3221 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
3222 ;;
3223 avr-*-*)
ac3949d9 3224 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 3225 ;;
6b65a26d 3226 bfin-*-*)
1c3c9f12 3227 unsupported_languages="$unsupported_languages java"
fb701687 3228 noconfigdirs="$noconfigdirs target-boehm-gc"
61efc800 3229 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
3230 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3231 fi
3232 ;;
671aa708 3233 c4x-*-* | tic4x-*-*)
cb253473 3234 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3235 ;;
3236 c54x*-*-* | tic54x-*-*)
cb253473 3237 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 3238 ;;
c993ae60
SR
3239 cr16-*-*)
3240 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3241 ;;
40d64b5a 3242 cris-*-* | crisv32-*-*)
4fab7234 3243 unsupported_languages="$unsupported_languages java"
40d64b5a 3244 case "${target}" in
c2e0d3a9 3245 *-*-aout)
7f26dfa3 3246 unsupported_languages="$unsupported_languages fortran"
4fab7234 3247 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
d062cd48
HPN
3248 *-*-elf) # See PR46792 regarding target-libffi.
3249 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 3250 *-*-linux*)
789ec619 3251 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 3252 *)
7f26dfa3 3253 unsupported_languages="$unsupported_languages fortran"
cb253473 3254 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 3255 esac
c03353e2 3256 libgloss_dir=cris
671aa708
NN
3257 ;;
3258 d10v-*-*)
cb253473 3259 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3260 ;;
3261 d30v-*-*)
cb253473 3262 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
3263 ;;
3264 fr30-*-elf*)
cb253473 3265 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
3266 ;;
3267 frv-*-*)
cb253473 3268 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3269 ;;
55f2d967
AG
3270 moxie-*-*)
3271 noconfigdirs="$noconfigdirs ${libgcj}"
3272 noconfigdirs="$noconfigdirs gprof"
3273 ;;
671aa708 3274 h8300*-*-*)
cb253473 3275 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3276 ;;
3277 h8500-*-*)
cb253473 3278 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3279 ;;
ee6a22df 3280 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3281 ;;
4569f85e 3282 hppa*64*-*-linux*)
671aa708
NN
3283 # In this case, it's because the hppa64-linux target is for
3284 # the kernel only at this point and has no libc, and thus no
3285 # headers, crt*.o, etc., all of which are needed by these.
3286 noconfigdirs="$noconfigdirs target-zlib"
3287 ;;
56f8587a 3288 hppa*-*-linux*)
3e732ba0 3289 ;;
671aa708 3290 hppa*-*-*elf* | \
671aa708
NN
3291 hppa*-*-lites* | \
3292 hppa*-*-openbsd* | \
3293 hppa*64*-*-*)
cb253473 3294 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3295 ;;
2a332582 3296 hppa*-hp-hpux11*)
1bcce263 3297 noconfigdirs="$noconfigdirs ld"
2a332582 3298 ;;
c03353e2
RIL
3299 hppa*-*-pro*)
3300 libgloss_dir=pa
3301 ;;
671aa708
NN
3302 hppa*-*-*)
3303 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3304 # build on HP-UX 10.20.
1bcce263 3305 noconfigdirs="$noconfigdirs ld ${libgcj}"
671aa708 3306 ;;
fb87ad5d 3307 i960-*-*)
cb253473 3308 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 3309 ;;
671aa708
NN
3310 ia64*-*-elf*)
3311 # No gdb support yet.
1bcce263 3312 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3313 ;;
3314 ia64*-**-hpux*)
5a2931d1
JB
3315 # No ld support yet.
3316 noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
671aa708 3317 ;;
52535a64
DR
3318 ia64*-*-*vms*)
3319 # No gdb or ld support yet.
1bcce263 3320 noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld"
52535a64 3321 ;;
f2a0e225 3322 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 3323 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3324 libgloss_dir=i386
671aa708 3325 ;;
f2a0e225 3326 i[3456789]86-*-linux*)
671aa708
NN
3327 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3328 # not build java stuff by default.
3329 case "${target}" in
3330 *-*-*libc1*)
cb253473 3331 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
3332 esac
3333
3334 # This section makes it possible to build newlib natively on linux.
3335 # If we are using a cross compiler then don't configure newlib.
3336 if test x${is_cross_compiler} != xno ; then
3aa83176 3337 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
3338 fi
3339 noconfigdirs="$noconfigdirs target-libgloss"
3340 # If we are not using a cross compiler, do configure newlib.
3341 # Note however, that newlib will only be configured in this situation
3342 # if the --with-newlib option has been given, because otherwise
3343 # 'target-newlib' will appear in skipdirs.
3344 ;;
ef4c4300 3345 i[3456789]86-w64-mingw*)
1bcce263 3346 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
ef4c4300
KT
3347 ;;
3348 i[3456789]86-*-mingw*)
b91f0a41 3349 target_configdirs="$target_configdirs target-winsup"
1bcce263 3350 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
1c710c3c 3351 ;;
95af8923 3352 x86_64-*-mingw*)
1bcce263 3353 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
1c710c3c 3354 ;;
671aa708
NN
3355 *-*-cygwin*)
3356 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3357 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3358 # always build newlib if winsup directory is present.
b91f0a41 3359 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3360 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3361 elif test -d "$srcdir/newlib"; then
b91f0a41 3362 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3363 fi
1c710c3c 3364 ;;
56f8587a 3365 i[3456789]86-*-interix* )
ee6a22df 3366 ;;
f2a0e225 3367 i[3456789]86-*-pe)
ebb9f8b0 3368 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3369 ;;
f2a0e225 3370 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3371 # The linker does not yet know about weak symbols in COFF,
3372 # and is not configured to handle mixed ELF and COFF.
cb253473 3373 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 3374 ;;
f2a0e225 3375 i[3456789]86-*-sco*)
cb253473 3376 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3377 ;;
f2a0e225 3378 i[3456789]86-*-solaris2*)
671aa708
NN
3379 noconfigdirs="$noconfigdirs target-libgloss"
3380 ;;
f2a0e225 3381 i[3456789]86-*-sysv4*)
cb253473 3382 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3383 ;;
f2a0e225 3384 i[3456789]86-*-beos*)
cb253473 3385 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 3386 ;;
d1f8db0c
PB
3387 i[3456789]86-*-rdos*)
3388 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3389 ;;
fb87ad5d 3390 m32r-*-*)
cb253473 3391 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 3392 ;;
671aa708 3393 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
ebb9f8b0 3394 noconfigdirs="$noconfigdirs target-libiberty"
c03353e2 3395 libgloss_dir=m68hc11
671aa708
NN
3396 ;;
3397 m68k-*-elf*)
cb253473 3398 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3399 ;;
3400 m68k-*-coff*)
cb253473 3401 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3402 ;;
c03353e2
RIL
3403 m68*-*-* | fido-*-*)
3404 libgloss_dir=m68k
3405 ;;
671aa708 3406 mmix-*-*)
4fab7234 3407 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 3408 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
3409 ;;
3410 mn10200-*-*)
cb253473 3411 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3412 ;;
3413 mn10300-*-*)
cb253473 3414 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3415 ;;
ab34901f 3416 mt-*-*)
79dd769c
AH
3417 noconfigdirs="$noconfigdirs sim"
3418 ;;
539b4d11
HS
3419 picochip-*-*)
3420 noconfigdirs="$noconfigdirs target-libiberty"
3421 ;;
671aa708
NN
3422 powerpc-*-aix*)
3423 # copied from rs6000-*-* entry
a891a473 3424 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708 3425 ;;
4569f85e 3426 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3427 target_configdirs="$target_configdirs target-winsup"
1bcce263 3428 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl ${libgcj}"
671aa708
NN
3429 # always build newlib.
3430 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3431 ;;
3432 # This is temporary until we can link against shared libraries
3433 powerpcle-*-solaris*)
1bcce263 3434 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl ${libgcj}"
c03353e2 3435 libgloss_dir=rs6000
671aa708
NN
3436 ;;
3437 powerpc-*-beos*)
cb253473 3438 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 3439 ;;
671aa708 3440 powerpc-*-eabi)
cb253473 3441 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3442 libgloss_dir=rs6000
ee6a22df
L
3443 ;;
3444 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 3445 libgloss_dir=rs6000
671aa708 3446 ;;
671aa708 3447 rs6000-*-lynxos*)
cb253473 3448 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
3449 ;;
3450 rs6000-*-aix*)
a891a473 3451 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3452 ;;
3453 rs6000-*-*)
cb253473 3454 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
3455 ;;
3456 m68k-apollo-*)
cb253473 3457 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 3458 ;;
ca9fe997 3459 microblaze*)
80920132 3460 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
ca9fe997 3461 ;;
d9dced13
RS
3462 mips*-sde-elf*)
3463 skipdirs="$skipdirs target-libiberty"
3464 noconfigdirs="$noconfigdirs ${libgcj}"
3465 if test x$with_newlib = xyes; then
3466 noconfigdirs="$noconfigdirs gprof"
3467 fi
3468 libgloss_dir=mips
3469 ;;
671aa708 3470 mips*-*-irix5*)
cb253473 3471 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
3472 ;;
3473 mips*-*-irix6*)
671aa708
NN
3474 # Linking libjava exceeds command-line length limits on at least
3475 # IRIX 6.2, but not on IRIX 6.5.
3476 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3477 # <oldham@codesourcery.com>
cb253473 3478 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3479 ;;
671aa708 3480 mips*-*-bsd*)
cb253473 3481 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3482 ;;
671aa708
NN
3483 mips*-*-linux*)
3484 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3485 ;;
3486 mips*-*-*)
cb253473 3487 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 3488 libgloss_dir=mips
671aa708
NN
3489 ;;
3490 romp-*-*)
cb253473 3491 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 3492 ;;
669f01d8 3493 sh-*-* | sh64-*-*)
ea2002ba
CB
3494 case "${target}" in
3495 sh*-*-elf)
3496 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3497 *)
3498 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3499 esac
671aa708 3500 ;;
c03353e2
RIL
3501 sparclet-*-aout* | sparc86x-*-*)
3502 libgloss_dir=sparc
3503 ;;
671aa708 3504 sparc-*-elf*)
cb253473 3505 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3506 ;;
3507 sparc64-*-elf*)
cb253473 3508 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3509 libgloss_dir=sparc
671aa708
NN
3510 ;;
3511 sparclite-*-*)
cb253473 3512 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3513 libgloss_dir=sparc
671aa708
NN
3514 ;;
3515 sparc-*-sunos4*)
cb253473 3516 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3517 if test x${is_cross_compiler} != xno ; then
3518 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3519 else
3520 use_gnu_ld=no
3521 fi
3522 ;;
bba5e0ca 3523 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 3524 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 3525 ;;
671aa708
NN
3526 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3527 ;;
b42f0d7e
JM
3528 tic6x-*-*)
3529 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3530 ;;
671aa708 3531 v810-*-*)
cb253473 3532 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708 3533 ;;
223a9d64 3534 v850*-*-*)
d4c1abb3 3535 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3536 ;;
3537 vax-*-vms)
cb253473 3538 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
3539 ;;
3540 vax-*-*)
cb253473 3541 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3542 ;;
aa12a573 3543 xtensa*-*-*)
cb253473 3544 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 3545 ;;
671aa708 3546 ip2k-*-*)
cb253473 3547 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 3548 ;;
416ac4d4 3549 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
3550 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3551 ;;
3552 *-*-lynxos*)
cb253473 3553 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 3554 ;;
671aa708 3555 *-*-*)
cb253473 3556 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3557 ;;
3558esac
79c06341 3559
671aa708
NN
3560# If we aren't building newlib, then don't build libgloss, since libgloss
3561# depends upon some newlib header files.
3562case "${noconfigdirs}" in
3563 *target-libgloss*) ;;
3564 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3565esac
3566
671aa708 3567# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3568host_makefile_frag=/dev/null
3569if test -d ${srcdir}/config ; then
3570case "${host}" in
f2a0e225 3571 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3572 host_makefile_frag="config/mh-djgpp"
3573 ;;
3574 *-cygwin*)
2a79c47f 3575
5213506e
RW
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3577$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3578echo a >cygwin-cat-check
e25a8c82 3579if test `cat cygwin-cat-check` = a ; then
2a79c47f 3580 rm cygwin-cat-check
5213506e
RW
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3582$as_echo "yes" >&6; }
2a79c47f
NC
3583else
3584 rm cygwin-cat-check
5213506e
RW
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3586$as_echo "no" >&6; }
3587 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3588 Please either mount the build directory in binary mode or run the following
3589 commands before running any configure script:
3590set -o igncr
3591export SHELLOPTS
5213506e 3592 " "$LINENO" 5
2a79c47f
NC
3593fi
3594
671aa708
NN
3595 host_makefile_frag="config/mh-cygwin"
3596 ;;
c53a18d3 3597 *-mingw*)
1f5a6b84 3598 host_makefile_frag="config/mh-mingw"
95af8923 3599 ;;
671aa708
NN
3600 *-interix*)
3601 host_makefile_frag="config/mh-interix"
3602 ;;
efd41714 3603 hppa*-hp-hpux10*)
efd41714 3604 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3605 ;;
111eeb6e 3606 hppa*-hp-hpux*)
efd41714
PB
3607 host_makefile_frag="config/mh-pa"
3608 ;;
3609 hppa*-*)
3610 host_makefile_frag="config/mh-pa"
3611 ;;
d8ed14ce
IS
3612 *-*-darwin*)
3613 host_makefile_frag="config/mh-darwin"
be8fff81 3614 ;;
d19bca38
PB
3615 powerpc-*-aix*)
3616 host_makefile_frag="config/mh-ppc-aix"
3617 ;;
3618 rs6000-*-aix*)
3619 host_makefile_frag="config/mh-ppc-aix"
3620 ;;
671aa708
NN
3621esac
3622fi
3623
55ffb5ed 3624if test "${build}" != "${host}" ; then
0999159b
PB
3625 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3626 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3627 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3628 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3629 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3630 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3631 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3632 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3633 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3634 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3635 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3636 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3637 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3638else
3639 AR_FOR_BUILD="\$(AR)"
3640 AS_FOR_BUILD="\$(AS)"
fb0103e5 3641 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3642 CXX_FOR_BUILD="\$(CXX)"
3643 GCJ_FOR_BUILD="\$(GCJ)"
3644 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3645 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3646 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3647 LD_FOR_BUILD="\$(LD)"
3648 NM_FOR_BUILD="\$(NM)"
3649 RANLIB_FOR_BUILD="\$(RANLIB)"
3650 WINDRES_FOR_BUILD="\$(WINDRES)"
3651 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3652fi
3653
3654ac_ext=c
1c710c3c
DJ
3655ac_cpp='$CPP $CPPFLAGS'
3656ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3657ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3658ac_compiler_gnu=$ac_cv_c_compiler_gnu
3659if test -n "$ac_tool_prefix"; then
3660 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3661set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663$as_echo_n "checking for $ac_word... " >&6; }
3664if test "${ac_cv_prog_CC+set}" = set; then :
3665 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3666else
3667 if test -n "$CC"; then
3668 ac_cv_prog_CC="$CC" # Let the user override the test.
3669else
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
5213506e
RW
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3677 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3679 break 2
3680 fi
3681done
5213506e
RW
3682 done
3683IFS=$as_save_IFS
1c710c3c
DJ
3684
3685fi
3686fi
3687CC=$ac_cv_prog_CC
3688if test -n "$CC"; then
5213506e
RW
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3690$as_echo "$CC" >&6; }
1c710c3c 3691else
5213506e
RW
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693$as_echo "no" >&6; }
1c710c3c
DJ
3694fi
3695
5213506e 3696
1c710c3c
DJ
3697fi
3698if test -z "$ac_cv_prog_CC"; then
3699 ac_ct_CC=$CC
fb0103e5
RG
3700 # Extract the first word of "gcc", so it can be a program name with args.
3701set dummy gcc; ac_word=$2
5213506e
RW
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703$as_echo_n "checking for $ac_word... " >&6; }
3704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3706else
3707 if test -n "$ac_ct_CC"; then
3708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
3712do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
5213506e
RW
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3717 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3719 break 2
3720 fi
3721done
5213506e
RW
3722 done
3723IFS=$as_save_IFS
1c710c3c
DJ
3724
3725fi
3726fi
3727ac_ct_CC=$ac_cv_prog_ac_ct_CC
3728if test -n "$ac_ct_CC"; then
5213506e
RW
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3730$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3731else
5213506e
RW
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733$as_echo "no" >&6; }
1c710c3c
DJ
3734fi
3735
5213506e
RW
3736 if test "x$ac_ct_CC" = x; then
3737 CC=""
3738 else
3739 case $cross_compiling:$ac_tool_warned in
3740yes:)
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3743ac_tool_warned=yes ;;
3744esac
3745 CC=$ac_ct_CC
3746 fi
1c710c3c
DJ
3747else
3748 CC="$ac_cv_prog_CC"
3749fi
3750
3751if test -z "$CC"; then
5213506e
RW
3752 if test -n "$ac_tool_prefix"; then
3753 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3754set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756$as_echo_n "checking for $ac_word... " >&6; }
3757if test "${ac_cv_prog_CC+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3759else
3760 if test -n "$CC"; then
3761 ac_cv_prog_CC="$CC" # Let the user override the test.
3762else
1c710c3c
DJ
3763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH
3765do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
5213506e
RW
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3770 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3772 break 2
3773 fi
3774done
5213506e
RW
3775 done
3776IFS=$as_save_IFS
1c710c3c 3777
0b0dc272 3778fi
0b0dc272 3779fi
1c710c3c 3780CC=$ac_cv_prog_CC
af71363e 3781if test -n "$CC"; then
5213506e
RW
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3783$as_echo "$CC" >&6; }
2aeb72e9 3784else
5213506e
RW
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786$as_echo "no" >&6; }
2aeb72e9
DD
3787fi
3788
2aeb72e9 3789
5213506e 3790 fi
1c710c3c 3791fi
55ffb5ed
NN
3792if test -z "$CC"; then
3793 # Extract the first word of "cc", so it can be a program name with args.
3794set dummy cc; ac_word=$2
5213506e
RW
3795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796$as_echo_n "checking for $ac_word... " >&6; }
3797if test "${ac_cv_prog_CC+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3799else
3800 if test -n "$CC"; then
3801 ac_cv_prog_CC="$CC" # Let the user override the test.
3802else
0b0dc272 3803 ac_prog_rejected=no
1c710c3c
DJ
3804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3805for as_dir in $PATH
3806do
3807 IFS=$as_save_IFS
3808 test -z "$as_dir" && as_dir=.
5213506e
RW
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3811 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3812 ac_prog_rejected=yes
3813 continue
3814 fi
3815 ac_cv_prog_CC="cc"
5213506e 3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3817 break 2
3818 fi
3819done
5213506e
RW
3820 done
3821IFS=$as_save_IFS
1c710c3c 3822
55ffb5ed
NN
3823if test $ac_prog_rejected = yes; then
3824 # We found a bogon in the path, so make sure we never use it.
3825 set dummy $ac_cv_prog_CC
3826 shift
1c710c3c 3827 if test $# != 0; then
55ffb5ed
NN
3828 # We chose a different compiler from the bogus one.
3829 # However, it has the same basename, so the bogon will be chosen
3830 # first if we set CC to just the basename; use the full file name.
3831 shift
1c710c3c 3832 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3833 fi
3834fi
3835fi
3836fi
1c710c3c 3837CC=$ac_cv_prog_CC
55ffb5ed 3838if test -n "$CC"; then
5213506e
RW
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3840$as_echo "$CC" >&6; }
55ffb5ed 3841else
5213506e
RW
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843$as_echo "no" >&6; }
55ffb5ed
NN
3844fi
3845
5213506e 3846
1c710c3c
DJ
3847fi
3848if test -z "$CC"; then
3849 if test -n "$ac_tool_prefix"; then
5213506e 3850 for ac_prog in cl.exe
1c710c3c
DJ
3851 do
3852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3853set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855$as_echo_n "checking for $ac_word... " >&6; }
3856if test "${ac_cv_prog_CC+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3858else
3859 if test -n "$CC"; then
3860 ac_cv_prog_CC="$CC" # Let the user override the test.
3861else
1c710c3c
DJ
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
5213506e
RW
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3871 break 2
3872 fi
3873done
5213506e
RW
3874 done
3875IFS=$as_save_IFS
1c710c3c 3876
55ffb5ed
NN
3877fi
3878fi
1c710c3c 3879CC=$ac_cv_prog_CC
55ffb5ed 3880if test -n "$CC"; then
5213506e
RW
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882$as_echo "$CC" >&6; }
a4b9e93e 3883else
5213506e
RW
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
fb0103e5 3886fi
af71363e 3887
5213506e 3888
1c710c3c
DJ
3889 test -n "$CC" && break
3890 done
af71363e 3891fi
1c710c3c
DJ
3892if test -z "$CC"; then
3893 ac_ct_CC=$CC
5213506e 3894 for ac_prog in cl.exe
1c710c3c
DJ
3895do
3896 # Extract the first word of "$ac_prog", so it can be a program name with args.
3897set dummy $ac_prog; ac_word=$2
5213506e
RW
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3899$as_echo_n "checking for $ac_word... " >&6; }
3900if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
0b0dc272 3902else
1c710c3c
DJ
3903 if test -n "$ac_ct_CC"; then
3904 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3905else
1c710c3c
DJ
3906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH
3908do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
5213506e
RW
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3913 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3915 break 2
3916 fi
3917done
5213506e
RW
3918 done
3919IFS=$as_save_IFS
1c710c3c 3920
af71363e
AS
3921fi
3922fi
1c710c3c
DJ
3923ac_ct_CC=$ac_cv_prog_ac_ct_CC
3924if test -n "$ac_ct_CC"; then
5213506e
RW
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3926$as_echo "$ac_ct_CC" >&6; }
fb0103e5 3927else
5213506e
RW
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3929$as_echo "no" >&6; }
af71363e 3930fi
0b0dc272 3931
5213506e 3932
1c710c3c
DJ
3933 test -n "$ac_ct_CC" && break
3934done
3935
5213506e
RW
3936 if test "x$ac_ct_CC" = x; then
3937 CC=""
3938 else
3939 case $cross_compiling:$ac_tool_warned in
3940yes:)
3941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3943ac_tool_warned=yes ;;
3944esac
3945 CC=$ac_ct_CC
3946 fi
1c710c3c
DJ
3947fi
3948
3949fi
3950
3951
5213506e
RW
3952test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3954as_fn_error "no acceptable C compiler found in \$PATH
3955See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
3956
3957# Provide some information about the compiler.
5213506e
RW
3958$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3959set X $ac_compile
3960ac_compiler=$2
3961for ac_option in --version -v -V -qversion; do
3962 { { ac_try="$ac_compiler $ac_option >&5"
3963case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966esac
3967eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968$as_echo "$ac_try_echo"; } >&5
3969 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 3970 ac_status=$?
5213506e
RW
3971 if test -s conftest.err; then
3972 sed '10a\
3973... rest of stderr output deleted ...
3974 10q' conftest.err >conftest.er1
3975 cat conftest.er1 >&5
3976 rm -f conftest.er1 conftest.err
3977 fi
3978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 test $ac_status = 0; }
3980done
1c710c3c 3981
5213506e 3982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
3983/* end confdefs.h. */
3984
3985int
3986main ()
3987{
3988
3989 ;
3990 return 0;
3991}
3992_ACEOF
3993ac_clean_files_save=$ac_clean_files
5213506e 3994ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
3995# Try to create an executable without -o first, disregard a.out.
3996# It will help us diagnose broken compilers, and finding out an intuition
3997# of exeext.
5213506e
RW
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3999$as_echo_n "checking for C compiler default output file name... " >&6; }
4000ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4001
4002# The possible output files:
4003ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4004
4005ac_rmfiles=
4006for ac_file in $ac_files
4007do
4008 case $ac_file in
4009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4010 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4011 esac
4012done
4013rm -f $ac_rmfiles
4014
4015if { { ac_try="$ac_link_default"
4016case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019esac
4020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021$as_echo "$ac_try_echo"; } >&5
4022 (eval "$ac_link_default") 2>&5
1c710c3c 4023 ac_status=$?
5213506e
RW
4024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025 test $ac_status = 0; }; then :
4026 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4027# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4028# in a Makefile. We should not override ac_cv_exeext if it was cached,
4029# so that the user can short-circuit this test for compilers unknown to
4030# Autoconf.
4031for ac_file in $ac_files ''
1c710c3c
DJ
4032do
4033 test -f "$ac_file" || continue
4034 case $ac_file in
5213506e 4035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4036 ;;
4037 [ab].out )
4038 # We found the default executable, but exeext='' is most
4039 # certainly right.
4040 break;;
4041 *.* )
5213506e
RW
4042 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4043 then :; else
4044 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4045 fi
4046 # We set ac_cv_exeext here because the later test for it is not
4047 # safe: cross compilers may not add the suffix if given an `-o'
4048 # argument, so we may need to know it at that point already.
4049 # Even if this section looks crufty: it has the advantage of
4050 # actually working.
1c710c3c
DJ
4051 break;;
4052 * )
4053 break;;
4054 esac
4055done
5213506e
RW
4056test "$ac_cv_exeext" = no && ac_cv_exeext=
4057
1c710c3c 4058else
5213506e
RW
4059 ac_file=''
4060fi
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4062$as_echo "$ac_file" >&6; }
4063if test -z "$ac_file"; then :
4064 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4065sed 's/^/| /' conftest.$ac_ext >&5
4066
5213506e
RW
4067{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4069{ as_fn_set_status 77
4070as_fn_error "C compiler cannot create executables
4071See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4072fi
1c710c3c 4073ac_exeext=$ac_cv_exeext
1c710c3c 4074
5213506e 4075# Check that the compiler produces executables we can run. If not, either
1c710c3c 4076# the compiler is broken, or we cross compile.
5213506e
RW
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4078$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4079# If not cross compiling, check that we can run a simple program.
4080if test "$cross_compiling" != yes; then
4081 if { ac_try='./$ac_file'
5213506e
RW
4082 { { case "(($ac_try" in
4083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4084 *) ac_try_echo=$ac_try;;
4085esac
4086eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4087$as_echo "$ac_try_echo"; } >&5
4088 (eval "$ac_try") 2>&5
1c710c3c 4089 ac_status=$?
5213506e
RW
4090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4091 test $ac_status = 0; }; }; then
1c710c3c
DJ
4092 cross_compiling=no
4093 else
4094 if test "$cross_compiling" = maybe; then
4095 cross_compiling=yes
4096 else
5213506e
RW
4097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099as_fn_error "cannot run C compiled programs.
1c710c3c 4100If you meant to cross compile, use \`--host'.
5213506e 4101See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4102 fi
4103 fi
4104fi
5213506e
RW
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4106$as_echo "yes" >&6; }
1c710c3c 4107
5213506e 4108rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4109ac_clean_files=$ac_clean_files_save
5213506e 4110# Check that the compiler produces executables we can run. If not, either
1c710c3c 4111# the compiler is broken, or we cross compile.
5213506e
RW
4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4113$as_echo_n "checking whether we are cross compiling... " >&6; }
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4115$as_echo "$cross_compiling" >&6; }
4116
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4118$as_echo_n "checking for suffix of executables... " >&6; }
4119if { { ac_try="$ac_link"
4120case "(($ac_try" in
4121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4122 *) ac_try_echo=$ac_try;;
4123esac
4124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4125$as_echo "$ac_try_echo"; } >&5
4126 (eval "$ac_link") 2>&5
1c710c3c 4127 ac_status=$?
5213506e
RW
4128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4129 test $ac_status = 0; }; then :
1c710c3c
DJ
4130 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4131# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4132# work properly (i.e., refer to `conftest.exe'), while it won't with
4133# `rm'.
4134for ac_file in conftest.exe conftest conftest.*; do
4135 test -f "$ac_file" || continue
4136 case $ac_file in
5213506e 4137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4138 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4139 break;;
4140 * ) break;;
4141 esac
4142done
af71363e 4143else
5213506e
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 executables: cannot compile and link
4147See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4148fi
1c710c3c 4149rm -f conftest$ac_cv_exeext
5213506e
RW
4150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4151$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4152
4153rm -f conftest.$ac_ext
4154EXEEXT=$ac_cv_exeext
4155ac_exeext=$EXEEXT
5213506e
RW
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4157$as_echo_n "checking for suffix of object files... " >&6; }
4158if test "${ac_cv_objext+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
1c710c3c 4160else
5213506e 4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4162/* end confdefs.h. */
4163
4164int
4165main ()
4166{
4167
4168 ;
4169 return 0;
4170}
4171_ACEOF
4172rm -f conftest.o conftest.obj
5213506e
RW
4173if { { ac_try="$ac_compile"
4174case "(($ac_try" in
4175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176 *) ac_try_echo=$ac_try;;
4177esac
4178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4179$as_echo "$ac_try_echo"; } >&5
4180 (eval "$ac_compile") 2>&5
1c710c3c 4181 ac_status=$?
5213506e
RW
4182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183 test $ac_status = 0; }; then :
4184 for ac_file in conftest.o conftest.obj conftest.*; do
4185 test -f "$ac_file" || continue;
1c710c3c 4186 case $ac_file in
5213506e 4187 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4188 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4189 break;;
4190 esac
4191done
4192else
5213506e 4193 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4194sed 's/^/| /' conftest.$ac_ext >&5
4195
5213506e
RW
4196{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4198as_fn_error "cannot compute suffix of object files: cannot compile
4199See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4200fi
1c710c3c
DJ
4201rm -f conftest.$ac_cv_objext conftest.$ac_ext
4202fi
5213506e
RW
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4204$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4205OBJEXT=$ac_cv_objext
4206ac_objext=$OBJEXT
5213506e
RW
4207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4208$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4209if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4210 $as_echo_n "(cached) " >&6
1c710c3c 4211else
5213506e 4212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4213/* end confdefs.h. */
4214
4215int
4216main ()
4217{
4218#ifndef __GNUC__
4219 choke me
4220#endif
4221
4222 ;
4223 return 0;
4224}
4225_ACEOF
5213506e 4226if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4227 ac_compiler_gnu=yes
4228else
5213506e 4229 ac_compiler_gnu=no
1c710c3c 4230fi
5213506e 4231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4232ac_cv_c_compiler_gnu=$ac_compiler_gnu
4233
4234fi
5213506e
RW
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4236$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4237if test $ac_compiler_gnu = yes; then
4238 GCC=yes
4239else
4240 GCC=
4241fi
1c710c3c
DJ
4242ac_test_CFLAGS=${CFLAGS+set}
4243ac_save_CFLAGS=$CFLAGS
5213506e
RW
4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4245$as_echo_n "checking whether $CC accepts -g... " >&6; }
4246if test "${ac_cv_prog_cc_g+set}" = set; then :
4247 $as_echo_n "(cached) " >&6
4248else
4249 ac_save_c_werror_flag=$ac_c_werror_flag
4250 ac_c_werror_flag=yes
4251 ac_cv_prog_cc_g=no
4252 CFLAGS="-g"
4253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4254/* end confdefs.h. */
4255
4256int
4257main ()
4258{
4259
4260 ;
4261 return 0;
4262}
4263_ACEOF
5213506e 4264if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4265 ac_cv_prog_cc_g=yes
4266else
5213506e
RW
4267 CFLAGS=""
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269/* end confdefs.h. */
4270
4271int
4272main ()
4273{
4274
4275 ;
4276 return 0;
4277}
4278_ACEOF
4279if ac_fn_c_try_compile "$LINENO"; then :
4280
4281else
4282 ac_c_werror_flag=$ac_save_c_werror_flag
4283 CFLAGS="-g"
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h. */
af71363e 4286
5213506e
RW
4287int
4288main ()
4289{
4290
4291 ;
4292 return 0;
4293}
4294_ACEOF
4295if ac_fn_c_try_compile "$LINENO"; then :
4296 ac_cv_prog_cc_g=yes
4297fi
4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4299fi
5213506e 4300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4301fi
5213506e
RW
4302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 ac_c_werror_flag=$ac_save_c_werror_flag
4304fi
4305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4306$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4307if test "$ac_test_CFLAGS" = set; then
1c710c3c 4308 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4309elif test $ac_cv_prog_cc_g = yes; then
4310 if test "$GCC" = yes; then
4311 CFLAGS="-g -O2"
4312 else
4313 CFLAGS="-g"
4314 fi
4315else
4316 if test "$GCC" = yes; then
4317 CFLAGS="-O2"
4318 else
4319 CFLAGS=
4320 fi
4321fi
5213506e
RW
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4323$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4324if test "${ac_cv_prog_cc_c89+set}" = set; then :
4325 $as_echo_n "(cached) " >&6
1c710c3c 4326else
5213506e 4327 ac_cv_prog_cc_c89=no
1c710c3c 4328ac_save_CC=$CC
5213506e 4329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4330/* end confdefs.h. */
4331#include <stdarg.h>
4332#include <stdio.h>
4333#include <sys/types.h>
4334#include <sys/stat.h>
4335/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4336struct buf { int x; };
4337FILE * (*rcsopen) (struct buf *, struct stat *, int);
4338static char *e (p, i)
4339 char **p;
4340 int i;
4341{
4342 return p[i];
4343}
4344static char *f (char * (*g) (char **, int), char **p, ...)
4345{
4346 char *s;
4347 va_list v;
4348 va_start (v,p);
4349 s = g (p, va_arg (v,int));
4350 va_end (v);
4351 return s;
4352}
4353
4354/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4355 function prototypes and stuff, but not '\xHH' hex character constants.
4356 These don't provoke an error unfortunately, instead are silently treated
5213506e 4357 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4358 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4359 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4360 that's true only with -std. */
1c710c3c
DJ
4361int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4362
5213506e
RW
4363/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4364 inside strings and character constants. */
4365#define FOO(x) 'x'
4366int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4367
1c710c3c
DJ
4368int test (int i, double x);
4369struct s1 {int (*f) (int a);};
4370struct s2 {int (*f) (double a);};
4371int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4372int argc;
4373char **argv;
4374int
4375main ()
4376{
4377return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4378 ;
4379 return 0;
4380}
4381_ACEOF
5213506e
RW
4382for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4383 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4384do
4385 CC="$ac_save_CC $ac_arg"
5213506e
RW
4386 if ac_fn_c_try_compile "$LINENO"; then :
4387 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4388fi
5213506e
RW
4389rm -f core conftest.err conftest.$ac_objext
4390 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4391done
5213506e 4392rm -f conftest.$ac_ext
1c710c3c
DJ
4393CC=$ac_save_CC
4394
4395fi
5213506e
RW
4396# AC_CACHE_VAL
4397case "x$ac_cv_prog_cc_c89" in
4398 x)
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4400$as_echo "none needed" >&6; } ;;
4401 xno)
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4403$as_echo "unsupported" >&6; } ;;
1c710c3c 4404 *)
5213506e
RW
4405 CC="$CC $ac_cv_prog_cc_c89"
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4407$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4408esac
5213506e 4409if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4410
2aeb72e9
DD
4411fi
4412
2aeb72e9
DD
4413ac_ext=c
4414ac_cpp='$CPP $CPPFLAGS'
4415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418
5213506e 4419ac_ext=cpp
2aeb72e9
DD
4420ac_cpp='$CXXCPP $CPPFLAGS'
4421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4424if test -z "$CXX"; then
4425 if test -n "$CCC"; then
4426 CXX=$CCC
4427 else
4428 if test -n "$ac_tool_prefix"; then
4429 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4430 do
4431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4432set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434$as_echo_n "checking for $ac_word... " >&6; }
4435if test "${ac_cv_prog_CXX+set}" = set; then :
4436 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4437else
4438 if test -n "$CXX"; then
4439 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4440else
4441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442for as_dir in $PATH
4443do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
5213506e
RW
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4448 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4450 break 2
4451 fi
4452done
5213506e
RW
4453 done
4454IFS=$as_save_IFS
55ffb5ed 4455
c3a86da9
DJ
4456fi
4457fi
4458CXX=$ac_cv_prog_CXX
4459if test -n "$CXX"; then
5213506e
RW
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4461$as_echo "$CXX" >&6; }
c3a86da9 4462else
5213506e
RW
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464$as_echo "no" >&6; }
c3a86da9
DJ
4465fi
4466
5213506e 4467
c3a86da9
DJ
4468 test -n "$CXX" && break
4469 done
4470fi
4471if test -z "$CXX"; then
4472 ac_ct_CXX=$CXX
5213506e 4473 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4474do
4475 # Extract the first word of "$ac_prog", so it can be a program name with args.
4476set dummy $ac_prog; ac_word=$2
5213506e
RW
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4478$as_echo_n "checking for $ac_word... " >&6; }
4479if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4480 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4481else
4482 if test -n "$ac_ct_CXX"; then
4483 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4484else
4485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH
4487do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
5213506e
RW
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4492 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4494 break 2
4495 fi
4496done
5213506e
RW
4497 done
4498IFS=$as_save_IFS
c3a86da9
DJ
4499
4500fi
4501fi
4502ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4503if test -n "$ac_ct_CXX"; then
5213506e
RW
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4505$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4506else
5213506e
RW
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4508$as_echo "no" >&6; }
c3a86da9
DJ
4509fi
4510
5213506e 4511
c3a86da9
DJ
4512 test -n "$ac_ct_CXX" && break
4513done
c3a86da9 4514
5213506e
RW
4515 if test "x$ac_ct_CXX" = x; then
4516 CXX="g++"
4517 else
4518 case $cross_compiling:$ac_tool_warned in
4519yes:)
4520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4522ac_tool_warned=yes ;;
4523esac
4524 CXX=$ac_ct_CXX
4525 fi
c3a86da9
DJ
4526fi
4527
5213506e
RW
4528 fi
4529fi
c3a86da9 4530# Provide some information about the compiler.
5213506e
RW
4531$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4532set X $ac_compile
4533ac_compiler=$2
4534for ac_option in --version -v -V -qversion; do
4535 { { ac_try="$ac_compiler $ac_option >&5"
4536case "(($ac_try" in
4537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4538 *) ac_try_echo=$ac_try;;
4539esac
4540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4541$as_echo "$ac_try_echo"; } >&5
4542 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4543 ac_status=$?
5213506e
RW
4544 if test -s conftest.err; then
4545 sed '10a\
4546... rest of stderr output deleted ...
4547 10q' conftest.err >conftest.er1
4548 cat conftest.er1 >&5
4549 rm -f conftest.er1 conftest.err
4550 fi
4551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4552 test $ac_status = 0; }
4553done
c3a86da9 4554
5213506e
RW
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4556$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4557if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
c3a86da9 4559else
5213506e 4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4561/* end confdefs.h. */
4562
4563int
4564main ()
4565{
4566#ifndef __GNUC__
4567 choke me
4568#endif
4569
4570 ;
4571 return 0;
4572}
4573_ACEOF
5213506e 4574if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4575 ac_compiler_gnu=yes
4576else
5213506e 4577 ac_compiler_gnu=no
c3a86da9 4578fi
5213506e 4579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4580ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4581
4582fi
5213506e
RW
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4584$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4585if test $ac_compiler_gnu = yes; then
4586 GXX=yes
4587else
4588 GXX=
4589fi
c3a86da9
DJ
4590ac_test_CXXFLAGS=${CXXFLAGS+set}
4591ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4593$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4594if test "${ac_cv_prog_cxx_g+set}" = set; then :
4595 $as_echo_n "(cached) " >&6
4596else
4597 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4598 ac_cxx_werror_flag=yes
4599 ac_cv_prog_cxx_g=no
4600 CXXFLAGS="-g"
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4602/* end confdefs.h. */
4603
4604int
4605main ()
4606{
4607
4608 ;
4609 return 0;
4610}
4611_ACEOF
5213506e 4612if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4613 ac_cv_prog_cxx_g=yes
4614else
5213506e
RW
4615 CXXFLAGS=""
4616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4617/* end confdefs.h. */
5213506e 4618
c3a86da9
DJ
4619int
4620main ()
4621{
5213506e 4622
c3a86da9
DJ
4623 ;
4624 return 0;
4625}
4626_ACEOF
5213506e 4627if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4628
5213506e
RW
4629else
4630 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4631 CXXFLAGS="-g"
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4633/* end confdefs.h. */
5213506e 4634
c3a86da9
DJ
4635int
4636main ()
4637{
5213506e 4638
c3a86da9
DJ
4639 ;
4640 return 0;
4641}
4642_ACEOF
5213506e
RW
4643if ac_fn_cxx_try_compile "$LINENO"; then :
4644 ac_cv_prog_cxx_g=yes
11a67599 4645fi
5213506e
RW
4646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647fi
4648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649fi
4650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4651 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4652fi
4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4654$as_echo "$ac_cv_prog_cxx_g" >&6; }
4655if test "$ac_test_CXXFLAGS" = set; then
4656 CXXFLAGS=$ac_save_CXXFLAGS
4657elif test $ac_cv_prog_cxx_g = yes; then
4658 if test "$GXX" = yes; then
4659 CXXFLAGS="-g -O2"
4660 else
4661 CXXFLAGS="-g"
4662 fi
4663else
4664 if test "$GXX" = yes; then
4665 CXXFLAGS="-O2"
4666 else
4667 CXXFLAGS=
4668 fi
c3a86da9 4669fi
c3a86da9
DJ
4670ac_ext=c
4671ac_cpp='$CPP $CPPFLAGS'
4672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4674ac_compiler_gnu=$ac_cv_c_compiler_gnu
4675
4676
4677# We must set the default linker to the linker used by gcc for the correct
4678# operation of libtool. If LD is not defined and we are using gcc, try to
4679# set the LD default to the ld used by gcc.
4680if test -z "$LD"; then
4681 if test "$GCC" = yes; then
4682 case $build in
4683 *-*-mingw*)
4684 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4685 *)
4686 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4687 esac
4688 case $gcc_prog_ld in
4689 # Accept absolute paths.
4690 [\\/]* | [A-Za-z]:[\\/]*)
4691 LD="$gcc_prog_ld" ;;
4692 esac
4693 fi
23f6b2f9
PB
4694fi
4695
23f6b2f9
PB
4696
4697
55ffb5ed 4698
1c710c3c
DJ
4699if test -n "$ac_tool_prefix"; then
4700 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4701set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703$as_echo_n "checking for $ac_word... " >&6; }
4704if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4706else
4707 if test -n "$GNATBIND"; then
4708 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4709else
1c710c3c
DJ
4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
5213506e
RW
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4717 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4719 break 2
4720 fi
4721done
5213506e
RW
4722 done
4723IFS=$as_save_IFS
1c710c3c 4724
55ffb5ed
NN
4725fi
4726fi
1c710c3c 4727GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4728if test -n "$GNATBIND"; then
5213506e
RW
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4730$as_echo "$GNATBIND" >&6; }
55ffb5ed 4731else
5213506e
RW
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733$as_echo "no" >&6; }
55ffb5ed
NN
4734fi
4735
5213506e 4736
1c710c3c 4737fi
55ffb5ed 4738if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4739 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4740 # Extract the first word of "gnatbind", so it can be a program name with args.
4741set dummy gnatbind; ac_word=$2
5213506e
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_ac_ct_GNATBIND+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
55ffb5ed 4746else
1c710c3c
DJ
4747 if test -n "$ac_ct_GNATBIND"; then
4748 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4749else
1c710c3c
DJ
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=.
5213506e
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
1c710c3c 4757 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 4758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4759 break 2
4760 fi
4761done
5213506e
RW
4762 done
4763IFS=$as_save_IFS
1c710c3c 4764
55ffb5ed
NN
4765fi
4766fi
1c710c3c
DJ
4767ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4768if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4770$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 4771else
5213506e
RW
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773$as_echo "no" >&6; }
55ffb5ed
NN
4774fi
4775
5213506e
RW
4776 if test "x$ac_ct_GNATBIND" = x; then
4777 GNATBIND="no"
4778 else
4779 case $cross_compiling:$ac_tool_warned in
4780yes:)
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783ac_tool_warned=yes ;;
4784esac
4785 GNATBIND=$ac_ct_GNATBIND
4786 fi
55ffb5ed 4787else
1c710c3c 4788 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4789fi
4790
1c710c3c
DJ
4791if test -n "$ac_tool_prefix"; then
4792 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4793set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4795$as_echo_n "checking for $ac_word... " >&6; }
4796if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4797 $as_echo_n "(cached) " >&6
5305be7e
RG
4798else
4799 if test -n "$GNATMAKE"; then
4800 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4801else
1c710c3c
DJ
4802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803for as_dir in $PATH
4804do
4805 IFS=$as_save_IFS
4806 test -z "$as_dir" && as_dir=.
5213506e
RW
4807 for ac_exec_ext in '' $ac_executable_extensions; do
4808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4809 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 4810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4811 break 2
4812 fi
4813done
5213506e
RW
4814 done
4815IFS=$as_save_IFS
1c710c3c 4816
5305be7e
RG
4817fi
4818fi
1c710c3c 4819GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4820if test -n "$GNATMAKE"; then
5213506e
RW
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4822$as_echo "$GNATMAKE" >&6; }
5305be7e 4823else
5213506e
RW
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4825$as_echo "no" >&6; }
5305be7e
RG
4826fi
4827
5213506e 4828
1c710c3c 4829fi
5305be7e 4830if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4831 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4832 # Extract the first word of "gnatmake", so it can be a program name with args.
4833set dummy gnatmake; ac_word=$2
5213506e
RW
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835$as_echo_n "checking for $ac_word... " >&6; }
4836if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
5305be7e 4838else
1c710c3c
DJ
4839 if test -n "$ac_ct_GNATMAKE"; then
4840 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4841else
1c710c3c
DJ
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
5213506e
RW
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4849 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4851 break 2
4852 fi
4853done
5213506e
RW
4854 done
4855IFS=$as_save_IFS
1c710c3c 4856
5305be7e
RG
4857fi
4858fi
1c710c3c
DJ
4859ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4860if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4862$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 4863else
5213506e
RW
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865$as_echo "no" >&6; }
5305be7e
RG
4866fi
4867
5213506e
RW
4868 if test "x$ac_ct_GNATMAKE" = x; then
4869 GNATMAKE="no"
4870 else
4871 case $cross_compiling:$ac_tool_warned in
4872yes:)
4873{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875ac_tool_warned=yes ;;
4876esac
4877 GNATMAKE=$ac_ct_GNATMAKE
4878 fi
5305be7e 4879else
1c710c3c 4880 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4881fi
4882
5213506e
RW
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4884$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4885if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4887else
4888 cat >conftest.adb <<EOF
4889procedure conftest is begin null; end conftest;
4890EOF
4891acx_cv_cc_gcc_supports_ada=no
4892# There is a bug in old released versions of GCC which causes the
4893# driver to exit successfully when the appropriate language module
4894# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4895# Therefore we must check for the error message as well as an
4896# unsuccessful exit.
1db673ca
RO
4897# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4898# given a .adb file, but produce no object file. So we must check
4899# if an object file was really produced to guard against this.
55ffb5ed 4900errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4901if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4902 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4903fi
4904rm -f conftest.*
4905fi
5213506e
RW
4906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4907$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 4908
5305be7e 4909if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4910 have_gnat=yes
4911else
4912 have_gnat=no
4913fi
4914
5213506e
RW
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4916$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4917if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4918 $as_echo_n "(cached) " >&6
a76494aa
PB
4919else
4920 echo abfoo >t1
4921 echo cdfoo >t2
4922 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4923 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4924 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4925 :
4926 else
4927 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4928 fi
4929 fi
a76494aa
PB
4930 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4931 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4932 :
a76494aa
PB
4933 else
4934 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4935 fi
4936 fi
4937 rm t1 t2
4938
4939fi
5213506e
RW
4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4941$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
4942do_compare="$gcc_cv_prog_cmp_skip"
4943
4944
55ffb5ed 4945
00020c16 4946# See if we are building gcc with C++.
5213506e
RW
4947# Check whether --enable-build-with-cxx was given.
4948if test "${enable_build_with_cxx+set}" = set; then :
4949 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
00020c16
ILT
4950else
4951 ENABLE_BUILD_WITH_CXX=no
5213506e
RW
4952fi
4953
00020c16 4954
592c90ff
KG
4955# Used for setting $lt_cv_objdir
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
4957$as_echo_n "checking for objdir... " >&6; }
4958if test "${lt_cv_objdir+set}" = set; then :
4959 $as_echo_n "(cached) " >&6
4960else
4961 rm -f .libs 2>/dev/null
4962mkdir .libs 2>/dev/null
4963if test -d .libs; then
4964 lt_cv_objdir=.libs
4965else
4966 # MS-DOS does not allow filenames that begin with a dot.
4967 lt_cv_objdir=_libs
4968fi
4969rmdir .libs 2>/dev/null
4970fi
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
4972$as_echo "$lt_cv_objdir" >&6; }
4973objdir=$lt_cv_objdir
4974
4975
4976
4977
4978
4979cat >>confdefs.h <<_ACEOF
4980#define LT_OBJDIR "$lt_cv_objdir/"
4981_ACEOF
4982
4983
4984
acd26225 4985# Check for GMP, MPFR and MPC
3a5729ea 4986gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 4987gmpinc=
e69bf64b 4988have_gmp=no
acd26225
KG
4989
4990# Specify a location for mpc
4991# check for this first so it ends up on the link line before mpfr.
4992
5213506e
RW
4993# Check whether --with-mpc was given.
4994if test "${with_mpc+set}" = set; then :
4995 withval=$with_mpc;
4996fi
acd26225 4997
acd26225 4998
9965e3cd 4999# Check whether --with-mpc-include was given.
5213506e
RW
5000if test "${with_mpc_include+set}" = set; then :
5001 withval=$with_mpc_include;
5002fi
acd26225 5003
acd26225 5004
9965e3cd 5005# Check whether --with-mpc-lib was given.
5213506e
RW
5006if test "${with_mpc_lib+set}" = set; then :
5007 withval=$with_mpc_lib;
5008fi
acd26225 5009
acd26225
KG
5010
5011if test "x$with_mpc" != x; then
3a5729ea
KG
5012 gmplibs="-L$with_mpc/lib $gmplibs"
5013 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5014fi
5015if test "x$with_mpc_include" != x; then
3a5729ea 5016 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5017fi
5018if test "x$with_mpc_lib" != x; then
3a5729ea 5019 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5020fi
5021if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5022 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5023 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5024 # Do not test the mpc version. Assume that it is sufficient, since
5025 # it is in the source tree, and the library has not been built yet
5026 # but it would be included on the link line in the version check below
5027 # hence making the test fail.
3a5729ea 5028 have_gmp=yes
acd26225 5029fi
e69bf64b 5030
bebf829d
PB
5031# Specify a location for mpfr
5032# check for this first so it ends up on the link line before gmp.
1c710c3c 5033
5213506e
RW
5034# Check whether --with-mpfr-dir was given.
5035if test "${with_mpfr_dir+set}" = set; then :
5036 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5037Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5038fi
5039
bebf829d
PB
5040
5041
5213506e
RW
5042# Check whether --with-mpfr was given.
5043if test "${with_mpfr+set}" = set; then :
5044 withval=$with_mpfr;
5045fi
1c710c3c 5046
bebf829d 5047
9965e3cd 5048# Check whether --with-mpfr-include was given.
5213506e
RW
5049if test "${with_mpfr_include+set}" = set; then :
5050 withval=$with_mpfr_include;
5051fi
1c710c3c 5052
8a877c9c 5053
9965e3cd 5054# Check whether --with-mpfr-lib was given.
5213506e
RW
5055if test "${with_mpfr_lib+set}" = set; then :
5056 withval=$with_mpfr_lib;
5057fi
8a877c9c 5058
bebf829d
PB
5059
5060if test "x$with_mpfr" != x; then
5061 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5062 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5063fi
8a877c9c 5064if test "x$with_mpfr_include" != x; then
3a5729ea 5065 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5066fi
5067if test "x$with_mpfr_lib" != x; then
5068 gmplibs="-L$with_mpfr_lib $gmplibs"
5069fi
e69bf64b 5070if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
592c90ff 5071 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
e69bf64b 5072 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
592c90ff 5073 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
e69bf64b
PB
5074 # Do not test the mpfr version. Assume that it is sufficient, since
5075 # it is in the source tree, and the library has not been built yet
5076 # but it would be included on the link line in the version check below
5077 # hence making the test fail.
5078 have_gmp=yes
5079fi
bebf829d 5080
6de9cd9a 5081# Specify a location for gmp
1c710c3c 5082
5213506e
RW
5083# Check whether --with-gmp-dir was given.
5084if test "${with_gmp_dir+set}" = set; then :
5085 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5086Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5087fi
5088
6de9cd9a 5089
6de9cd9a 5090
5213506e
RW
5091# Check whether --with-gmp was given.
5092if test "${with_gmp+set}" = set; then :
5093 withval=$with_gmp;
5094fi
1c710c3c 5095
6de9cd9a 5096
9965e3cd 5097# Check whether --with-gmp-include was given.
5213506e
RW
5098if test "${with_gmp_include+set}" = set; then :
5099 withval=$with_gmp_include;
5100fi
1c710c3c 5101
8a877c9c 5102
9965e3cd 5103# Check whether --with-gmp-lib was given.
5213506e
RW
5104if test "${with_gmp_lib+set}" = set; then :
5105 withval=$with_gmp_lib;
5106fi
8a877c9c
KG
5107
5108
6de9cd9a 5109
bebf829d
PB
5110if test "x$with_gmp" != x; then
5111 gmplibs="-L$with_gmp/lib $gmplibs"
5112 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5113fi
8a877c9c
KG
5114if test "x$with_gmp_include" != x; then
5115 gmpinc="-I$with_gmp_include $gmpinc"
5116fi
5117if test "x$with_gmp_lib" != x; then
5118 gmplibs="-L$with_gmp_lib $gmplibs"
5119fi
e69bf64b 5120if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5121 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5122 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5123 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5124 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e69bf64b
PB
5125 # Do not test the gmp version. Assume that it is sufficient, since
5126 # it is in the source tree, and the library has not been built yet
5127 # but it would be included on the link line in the version check below
5128 # hence making the test fail.
5129 have_gmp=yes
5130fi
6de9cd9a 5131
d943d7c4 5132if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5133 have_gmp=yes
5134 saved_CFLAGS="$CFLAGS"
5135 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5136 # Check for the recommended and required versions of GMP.
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5138$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5139
5140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5141/* end confdefs.h. */
5142#include "gmp.h"
5143int
5144main ()
5145{
5146
5147 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5148 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5149 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5150 choke me
5151 #endif
5152
5153 ;
5154 return 0;
5155}
5156_ACEOF
5157if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5159/* end confdefs.h. */
362c6d2f 5160#include <gmp.h>
1c710c3c
DJ
5161int
5162main ()
5163{
6de9cd9a 5164
362c6d2f
KG
5165 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5166 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5167 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5168 choke me
5169 #endif
1c710c3c
DJ
5170
5171 ;
5172 return 0;
5173}
5174_ACEOF
5213506e
RW
5175if ac_fn_c_try_compile "$LINENO"; then :
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5177$as_echo "yes" >&6; }
362c6d2f
KG
5178else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5180$as_echo "buggy but acceptable" >&6; }
5181fi
5182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5183else
5213506e
RW
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5185$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5186fi
5213506e 5187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5188
acd26225 5189 # If we have GMP, check the MPFR version.
e69bf64b 5190 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5191 # Check for the recommended and required versions of MPFR.
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5193$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5195/* end confdefs.h. */
70ec446f 5196#include <gmp.h>
e69bf64b 5197 #include <mpfr.h>
1c710c3c
DJ
5198int
5199main ()
5200{
e48d66a9 5201
a3337ea2 5202 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
5203 choke me
5204 #endif
1c710c3c
DJ
5205
5206 ;
5207 return 0;
5208}
5209_ACEOF
5213506e
RW
5210if ac_fn_c_try_compile "$LINENO"; then :
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5212/* end confdefs.h. */
a3993f33 5213#include <gmp.h>
e69bf64b 5214 #include <mpfr.h>
1c710c3c
DJ
5215int
5216main ()
5217{
a3993f33 5218
362c6d2f 5219 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5220 choke me
5221 #endif
acd26225
KG
5222
5223 ;
5224 return 0;
5225}
5226_ACEOF
5213506e
RW
5227if ac_fn_c_try_compile "$LINENO"; then :
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5229$as_echo "yes" >&6; }
acd26225 5230else
5213506e
RW
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5232$as_echo "buggy but acceptable" >&6; }
acd26225 5233fi
5213506e 5234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5235else
5213506e
RW
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237$as_echo "no" >&6; }; have_gmp=no
acd26225 5238fi
5213506e 5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5240 fi
5241
5242 # Check for the MPC header version.
3a5729ea 5243 if test x"$have_gmp" = xyes ; then
362c6d2f 5244 # Check for the recommended and required versions of MPC.
5213506e
RW
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5246$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5248/* end confdefs.h. */
5249#include <mpc.h>
5250int
5251main ()
5252{
5253
362c6d2f
KG
5254 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5255 choke me
5256 #endif
5257
5258 ;
5259 return 0;
5260}
5261_ACEOF
5262if ac_fn_c_try_compile "$LINENO"; then :
5263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5264/* end confdefs.h. */
5265#include <mpc.h>
5266int
5267main ()
5268{
5269
5270 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5271 choke me
5272 #endif
5273
5274 ;
5275 return 0;
5276}
5277_ACEOF
5213506e
RW
5278if ac_fn_c_try_compile "$LINENO"; then :
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5280$as_echo "yes" >&6; }
362c6d2f
KG
5281else
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5283$as_echo "buggy but acceptable" >&6; }
5284fi
5285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5286else
5213506e 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5288$as_echo "no" >&6; }; have_gmp=no
acd26225 5289fi
5213506e 5290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5291 fi
5292
5293 # Now check the MPFR library.
5294 if test x"$have_gmp" = xyes; then
5295 saved_LIBS="$LIBS"
5296 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5298$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5300/* end confdefs.h. */
3a5729ea 5301#include <mpc.h>
acd26225
KG
5302int
5303main ()
5304{
5305
5306 mpfr_t n;
5307 mpfr_t x;
3a5729ea 5308 mpc_t c;
acd26225
KG
5309 int t;
5310 mpfr_init (n);
5311 mpfr_init (x);
5312 mpfr_atan2 (n, n, x, GMP_RNDN);
5313 mpfr_erfc (n, x, GMP_RNDN);
5314 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5315 mpfr_clear(n);
5316 mpfr_clear(x);
5317 mpc_init2 (c, 53);
5318 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5319 mpc_cosh (c, c, MPC_RNDNN);
5320 mpc_pow (c, c, c, MPC_RNDNN);
5321 mpc_acosh (c, c, MPC_RNDNN);
5322 mpc_clear (c);
1c710c3c
DJ
5323
5324 ;
5325 return 0;
5326}
5327_ACEOF
5213506e
RW
5328if ac_fn_c_try_link "$LINENO"; then :
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5330$as_echo "yes" >&6; }
1c710c3c 5331else
5213506e
RW
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5334fi
5213506e
RW
5335rm -f core conftest.err conftest.$ac_objext \
5336 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5337 LIBS="$saved_LIBS"
5338 fi
5339
e69bf64b 5340 CFLAGS="$saved_CFLAGS"
6de9cd9a 5341
362c6d2f
KG
5342# The library versions listed in the error message below should match
5343# the HARD-minimums enforced above.
e69bf64b 5344 if test x$have_gmp != xyes; then
362c6d2f 5345 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
3a5729ea
KG
5346Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5347their locations. Source code for these libraries can be found at
5348their respective hosting sites as well as at
5349ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5350http://gcc.gnu.org/install/prerequisites.html for additional info. If
5351you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5352make sure that you have installed both the libraries and the header
5353files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5354 fi
70ec446f
KG
5355fi
5356
acd26225
KG
5357# Flags needed for both GMP, MPFR and/or MPC.
5358
5359
6de9cd9a
DN
5360
5361
5362
9e3eba15 5363
f38095f3
JM
5364# Allow host libstdc++ to be specified for static linking with PPL.
5365
5213506e
RW
5366# Check whether --with-host-libstdcxx was given.
5367if test "${with_host_libstdcxx+set}" = set; then :
5368 withval=$with_host_libstdcxx;
5369fi
f38095f3 5370
f38095f3
JM
5371
5372case $with_host_libstdcxx in
5373 no|yes)
5213506e 5374 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5375 ;;
5376esac
f8bf9252 5377
00020c16
ILT
5378# Linker flags to use for stage1 or when not boostrapping.
5379
5213506e
RW
5380# Check whether --with-stage1-ldflags was given.
5381if test "${with_stage1_ldflags+set}" = set; then :
5382 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5383 stage1_ldflags=
5384 else
5385 stage1_ldflags=$withval
5386 fi
5387else
5388 stage1_ldflags=
5213506e
RW
5389fi
5390
00020c16
ILT
5391
5392
5393# Libraries to use for stage1 or when not bootstrapping.
5394
5213506e
RW
5395# Check whether --with-stage1-libs was given.
5396if test "${with_stage1_libs+set}" = set; then :
5397 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5398 stage1_libs=
5399 else
5400 stage1_libs=$withval
5401 fi
5402else
5403 stage1_libs=$with_host_libstdcxx
5213506e
RW
5404fi
5405
00020c16
ILT
5406
5407
00020c16
ILT
5408# Libraries to use for stage2 and later builds. This defaults to the
5409# argument passed to --with-host-libstdcxx.
5410
5213506e
RW
5411# Check whether --with-boot-libs was given.
5412if test "${with_boot_libs+set}" = set; then :
5413 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5414 poststage1_libs=
5415 else
5416 poststage1_libs=$withval
5417 fi
5418else
00020c16 5419 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5420fi
5421
00020c16
ILT
5422
5423
ed2eaa9f
ILT
5424# Linker flags to use for stage2 and later builds.
5425
5426# Check whether --with-boot-ldflags was given.
5427if test "${with_boot_ldflags+set}" = set; then :
5428 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5429 poststage1_ldflags=
5430 else
5431 poststage1_ldflags=$withval
5432 fi
5433else
5434 poststage1_ldflags=
bec93d73
ILT
5435 # In stages 2 and 3, default to linking libstdc++ and libgcc
5436 # statically. But if the user explicitly specified the libraries to
5437 # use, trust that they are doing what they want.
5438 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5439 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5440 fi
5441fi
5442
5443
5444
f8bf9252 5445# Check for PPL
7d32a440 5446ppllibs=
f8bf9252 5447pplinc=
7d32a440 5448pwllib=
f8bf9252
SP
5449
5450
5213506e
RW
5451# Check whether --with-ppl was given.
5452if test "${with_ppl+set}" = set; then :
5453 withval=$with_ppl;
5213506e 5454fi
f8bf9252 5455
f8bf9252 5456
9965e3cd 5457# Check whether --with-ppl-include was given.
5213506e
RW
5458if test "${with_ppl_include+set}" = set; then :
5459 withval=$with_ppl_include;
5460fi
5461
f8bf9252 5462
9965e3cd 5463# Check whether --with-ppl-lib was given.
5213506e
RW
5464if test "${with_ppl_lib+set}" = set; then :
5465 withval=$with_ppl_lib;
5466fi
f8bf9252 5467
f8bf9252 5468
7d32a440
SP
5469# Check whether --enable-ppl-version-check was given.
5470if test "${enable_ppl_version_check+set}" = set; then :
5471 enableval=$enable_ppl_version_check;
5472fi
5473
5474
53095c56 5475case $with_ppl in
7d32a440 5476 yes | no | "")
ad0abd3c 5477 ;;
53095c56 5478 *)
7d32a440 5479 ppllibs="-L$with_ppl/lib"
53095c56 5480 pplinc="-I$with_ppl/include $pplinc"
7d32a440
SP
5481 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5482 with_ppl=yes
5483 else
5484 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5485 fi
53095c56
SP
5486 ;;
5487esac
7d32a440
SP
5488
5489if test x"$with_ppl_include" != x; then
f8bf9252 5490 pplinc="-I$with_ppl_include $pplinc"
7d32a440 5491 with_ppl=yes
f8bf9252 5492fi
7d32a440 5493
f8bf9252 5494if test "x$with_ppl_lib" != x; then
7d32a440
SP
5495 ppllibs="-L$with_ppl_lib"
5496 with_ppl=yes
f8bf9252 5497fi
7d32a440
SP
5498
5499if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5500 if test x"$enable_watchdog" = xyes; then
5501 pwllib="-lpwl"
5502 fi
5503 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
f61428ed
AO
5504 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5505 enable_ppl_version_check=no
7d32a440 5506 with_ppl=yes
f8bf9252
SP
5507fi
5508
f158c8d0 5509if test "x$with_ppl" != xno; then
7d32a440 5510 if test "x$pwllib" = x; then
474ee908
RO
5511 saved_LIBS="$LIBS"
5512 LIBS="$LIBS $ppllibs -lstdc++ -lm"
7d32a440
SP
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5514$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5515if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5516 $as_echo_n "(cached) " >&6
5517else
5518 ac_check_lib_save_LIBS=$LIBS
5519LIBS="-lpwl $LIBS"
5520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521/* end confdefs.h. */
5522
5523/* Override any GCC internal prototype to avoid an error.
5524 Use char because int might match the return type of a GCC
5525 builtin and then its argument prototype would still apply. */
5526#ifdef __cplusplus
5527extern "C"
5528#endif
5529char PWL_handle_timeout ();
5530int
5531main ()
5532{
5533return PWL_handle_timeout ();
5534 ;
5535 return 0;
5536}
5537_ACEOF
5538if ac_fn_c_try_link "$LINENO"; then :
5539 ac_cv_lib_pwl_PWL_handle_timeout=yes
d789184e 5540else
7d32a440
SP
5541 ac_cv_lib_pwl_PWL_handle_timeout=no
5542fi
5543rm -f core conftest.err conftest.$ac_objext \
5544 conftest$ac_exeext conftest.$ac_ext
5545LIBS=$ac_check_lib_save_LIBS
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5548$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5549if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5550 pwllib="-lpwl"
5213506e
RW
5551fi
5552
474ee908 5553 LIBS="$saved_LIBS"
7d32a440 5554 fi
f8bf9252 5555
7d32a440
SP
5556 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5557
5558 if test "$enable_ppl_version_check" != no; then
5559 saved_CFLAGS="$CFLAGS"
5560 CFLAGS="$CFLAGS $pplinc $gmpinc"
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5562$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5564/* end confdefs.h. */
5565#include "ppl_c.h"
5566int
5567main ()
5568{
5569
7d32a440
SP
5570 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5571 choke me
5572 #endif
f8bf9252
SP
5573
5574 ;
5575 return 0;
5576}
5577_ACEOF
5213506e
RW
5578if ac_fn_c_try_compile "$LINENO"; then :
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580$as_echo "yes" >&6; }
f8bf9252 5581else
5213506e 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ed3a56f3 5583$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
f8bf9252 5584fi
5213506e 5585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d32a440
SP
5586 CFLAGS="$saved_CFLAGS"
5587 fi
d789184e
SP
5588fi
5589
5590# Flags needed for PPL
5591
5592
f8bf9252 5593
f8bf9252 5594
d789184e 5595# Check for CLOOG
d32ef397 5596
d789184e
SP
5597
5598
5213506e
RW
5599# Check whether --with-cloog was given.
5600if test "${with_cloog+set}" = set; then :
5601 withval=$with_cloog;
5213506e
RW
5602fi
5603
d789184e 5604
9965e3cd 5605# Check whether --with-cloog-include was given.
5213506e
RW
5606if test "${with_cloog_include+set}" = set; then :
5607 withval=$with_cloog_include;
5608fi
d789184e 5609
d789184e 5610
9965e3cd 5611# Check whether --with-cloog-lib was given.
5213506e
RW
5612if test "${with_cloog_lib+set}" = set; then :
5613 withval=$with_cloog_lib;
5614fi
d789184e 5615
d789184e 5616
f16e2237
TG
5617 # Check whether --enable-cloog-backend was given.
5618if test "${enable_cloog_backend+set}" = set; then :
5619 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5620 cloog_backend=isl
5621 elif test "x${enableval}" = "xppl"; then
5622 cloog_backend=ppl
5623 else
5624 cloog_backend=ppl-legacy
5625 fi
5626else
5627 cloog_backend=ppl-legacy
5628fi
5629
d32ef397
AS
5630 # Check whether --enable-cloog-version-check was given.
5631if test "${enable_cloog_version_check+set}" = set; then :
5632 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5633else
5634 ENABLE_CLOOG_CHECK=yes
5635fi
5636
5637
5638 # Initialize clooglibs and clooginc.
5639 case $with_cloog in
5640 no)
5641 clooglibs=
5642 clooginc=
5643 ;;
5644 "" | yes)
5645 ;;
5646 *)
5647 clooglibs="-L$with_cloog/lib"
5648 clooginc="-I$with_cloog/include"
5649 ;;
5650 esac
5651 if test "x${with_cloog_include}" != x ; then
5652 clooginc="-I$with_cloog_include"
5653 fi
5654 if test "x${with_cloog_lib}" != x; then
5655 clooglibs="-L$with_cloog_lib"
5656 fi
5657
5658
5659
5660
5661
17e72e5d 5662if test "x$with_ppl" = "xno"; then
ab4173cf
SP
5663
5664
5665
6be7b668
JJ
5666 if test "x${with_cloog}" = xno; then
5667 graphite_requested=no
5668 elif test "x${with_cloog}" != x \
ab4173cf
SP
5669 || test "x${with_cloog_include}" != x \
5670 || test "x${with_cloog_lib}" != x ; then
5671 graphite_requested=yes
5672 else
5673 graphite_requested=no
5674 fi
5675
5676
5677 if test "${graphite_requested}" = yes; then
f33d8408 5678 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
ab4173cf 5679 fi
6be7b668 5680 with_cloog=no
ad0abd3c 5681fi
d32ef397
AS
5682if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5683 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5684 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5685 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5686fi
5687if test "x$with_cloog" != "xno"; then
ad0abd3c 5688
d32ef397
AS
5689
5690
5691 _cloog_saved_CFLAGS=$CFLAGS
5692 _cloog_saved_CPPFLAGS=$CPPFLAGS
5693 _cloog_saved_LDFLAGS=$LDFLAGS
5694 _cloog_saved_LIBS=$LIBS
5695
d32ef397
AS
5696 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5697
f16e2237 5698 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
0bb52d68 5699 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
f16e2237
TG
5700 LDFLAGS="${LDFLAGS} ${clooglibs}"
5701
5702 case $cloog_backend in
5703 "ppl-legacy")
5704 CFLAGS="${CFLAGS} ${pplinc}"
5705 LDFLAGS="${LDFLAGS} ${ppllibs}"
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5707$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
d32ef397
AS
5708if test "${gcc_cv_cloog_type+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5710else
5711 LIBS="-lcloog ${_cloog_saved_LIBS}"
f16e2237 5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5713/* end confdefs.h. */
0bb52d68 5714#include "cloog/cloog.h"
d32ef397
AS
5715int
5716main ()
5717{
0bb52d68
TG
5718#ifndef CLOOG_PPL_BACKEND
5719 choke me
5720 #endif
d32ef397
AS
5721 ;
5722 return 0;
5723}
5724_ACEOF
5725if ac_fn_c_try_link "$LINENO"; then :
5726 gcc_cv_cloog_type="PPL Legacy"
5727else
f16e2237
TG
5728 gcc_cv_cloog_type=no
5729fi
5730rm -f core conftest.err conftest.$ac_objext \
5731 conftest$ac_exeext conftest.$ac_ext
5732fi
5733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5734$as_echo "$gcc_cv_cloog_type" >&6; }
5735 ;;
5736 "isl")
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5738$as_echo_n "checking for installed CLooG ISL... " >&6; }
5739if test "${gcc_cv_cloog_type+set}" = set; then :
5740 $as_echo_n "(cached) " >&6
5741else
5742 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5744/* end confdefs.h. */
0bb52d68 5745#include "cloog/cloog.h"
d32ef397
AS
5746int
5747main ()
5748{
5749cloog_version ()
5750 ;
5751 return 0;
5752}
5753_ACEOF
5754if ac_fn_c_try_link "$LINENO"; then :
f16e2237
TG
5755 gcc_cv_cloog_type="ISL"
5756else
5757 gcc_cv_cloog_type=no
5758fi
5759rm -f core conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5761fi
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5763$as_echo "$gcc_cv_cloog_type" >&6; }
5764 ;;
5765 "ppl")
5766 CFLAGS="${CFLAGS} ${pplinc}"
5767 LDFLAGS="${LDFLAGS} ${ppllibs}"
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5769$as_echo_n "checking for installed CLooG PPL... " >&6; }
5770if test "${gcc_cv_cloog_type+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
d32ef397
AS
5772else
5773 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
f16e2237 5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5775/* end confdefs.h. */
0bb52d68 5776#include "cloog/cloog.h"
f16e2237 5777 #include "cloog/ppl/cloog.h"
d32ef397
AS
5778int
5779main ()
5780{
5781cloog_version ()
5782 ;
5783 return 0;
5784}
5785_ACEOF
5786if ac_fn_c_try_link "$LINENO"; then :
f16e2237 5787 gcc_cv_cloog_type="PPL"
d32ef397
AS
5788else
5789 gcc_cv_cloog_type=no
d789184e 5790fi
d32ef397
AS
5791rm -f core conftest.err conftest.$ac_objext \
5792 conftest$ac_exeext conftest.$ac_ext
d789184e 5793fi
d32ef397
AS
5794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5795$as_echo "$gcc_cv_cloog_type" >&6; }
f16e2237
TG
5796 ;;
5797 *)
5798 gcc_cv_cloog_type=""
5799 esac
5213506e 5800
d32ef397
AS
5801 case $gcc_cv_cloog_type in
5802 "PPL Legacy")
0bb52d68 5803 clooginc="${clooginc}"
d32ef397
AS
5804 clooglibs="${clooglibs} -lcloog"
5805 cloog_org=no
5806 ;;
5807 "ISL")
5808 clooginc="${clooginc} ${_cloogorginc}"
3d2bc11b 5809 clooglibs="${clooglibs} -lcloog-isl -lisl"
d32ef397
AS
5810 cloog_org=yes
5811 ;;
5812 "PPL")
5813 clooginc="${clooginc} ${_cloogorginc}"
5814 clooglibs="${clooglibs} -lcloog-ppl"
5815 cloog_org=yes
5816 ;;
5817 *)
5818 clooglibs=
5819 clooginc=
5820 cloog_org=
5821 ;;
5822 esac
d789184e 5823
d32ef397
AS
5824 LIBS=$_cloog_saved_LIBS
5825 CFLAGS=$_cloog_saved_CFLAGS
5826 CPPFLAGS=$_cloog_saved_CPPFLAGS
5827 LDFLAGS=$_cloog_saved_LDFLAGS
5828
5829
5830
5831
5832
5833 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5834 _cloog_saved_CFLAGS=$CFLAGS
5835 _cloog_saved_LDFLAGS=$LDFLAGS
5836
5837 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
27882098 5838 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
d32ef397
AS
5839
5840 if test "${cloog_org}" = yes ; then
27b9aa80
TG
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5842$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
d32ef397
AS
5843if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5844 $as_echo_n "(cached) " >&6
5845else
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847/* end confdefs.h. */
5848#include "cloog/cloog.h"
5849int
5850main ()
5851{
5852#if CLOOG_VERSION_MAJOR != 0 \
27b9aa80
TG
5853 || CLOOG_VERSION_MINOR != 16 \
5854 || CLOOG_VERSION_REVISION < 1
d32ef397
AS
5855 choke me
5856 #endif
5857 ;
5858 return 0;
5859}
5860_ACEOF
5861if ac_fn_c_try_compile "$LINENO"; then :
5862 gcc_cv_cloog_ct_0_14_0=yes
5863else
5864 gcc_cv_cloog_ct_0_14_0=no
5865fi
5866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867fi
5868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5869$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5870 elif test "${cloog_org}" = no ; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
f264ed56 5872$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
d32ef397
AS
5873if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5874 $as_echo_n "(cached) " >&6
5875else
5213506e 5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5877/* end confdefs.h. */
5878#include "cloog/cloog.h"
5879int
5880main ()
5881{
d32ef397
AS
5882#if CLOOG_VERSION_MAJOR != 0 \
5883 || CLOOG_VERSION_MINOR != 15 \
5884 || CLOOG_VERSION_REVISION < 5
5885 choke me
5886 #endif
f8bf9252
SP
5887 ;
5888 return 0;
5889}
5890_ACEOF
0333b9a6
SP
5891if ac_fn_c_try_compile "$LINENO"; then :
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893/* end confdefs.h. */
5894#include "cloog/cloog.h"
5895int
5896main ()
5897{
d32ef397
AS
5898#if CLOOG_VERSION_MAJOR != 0 \
5899 || CLOOG_VERSION_MINOR != 15 \
5900 || CLOOG_VERSION_REVISION < 9
5901 choke me
5902 #endif
0333b9a6
SP
5903 ;
5904 return 0;
5905}
5906_ACEOF
5213506e 5907if ac_fn_c_try_compile "$LINENO"; then :
d32ef397 5908 gcc_cv_cloog_ct_0_15_5=yes
0333b9a6 5909else
d32ef397 5910 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
0333b9a6
SP
5911fi
5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f8bf9252 5913else
d32ef397 5914 gcc_cv_cloog_ct_0_15_5=no
f8bf9252 5915fi
5213506e 5916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e 5917fi
d32ef397
AS
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5919$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5920 fi
5921
5922 CFLAGS=$_cloog_saved_CFLAGS
5923 LDFLAGS=$_cloog_saved_LDFLAGS
5924 fi
f8bf9252 5925
f8bf9252
SP
5926
5927
5928
d32ef397
AS
5929
5930
5931
6be7b668
JJ
5932 if test "x${with_cloog}" = xno; then
5933 graphite_requested=no
5934 elif test "x${with_cloog}" != x \
d32ef397
AS
5935 || test "x${with_cloog_include}" != x \
5936 || test "x${with_cloog_lib}" != x ; then
5937 graphite_requested=yes
5938 else
5939 graphite_requested=no
5940 fi
5941
5942
5943
5944 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5945 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5946 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5947 clooglibs=
5948 clooginc=
5949 fi
5950
5951 if test "${graphite_requested}" = yes \
5952 && test "x${clooglibs}" = x \
5953 && test "x${clooginc}" = x ; then
5954
ab4173cf 5955 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
5956 fi
5957
5958
5959fi
5960
d7f09764
DN
5961# Check for LTO support.
5962# Check whether --enable-lto was given.
5963if test "${enable_lto+set}" = set; then :
5964 enableval=$enable_lto; enable_lto=$enableval
5965else
5966 enable_lto=yes; default_enable_lto=yes
5967fi
5968
5969
7413962d 5970
9a02962b
DK
5971
5972
5973target_elf=no
5974case $target in
5975 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5976 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
5977 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5978 target_elf=no
5979 ;;
5980 *)
5981 target_elf=yes
5982 ;;
5983esac
5984
5985if test $target_elf = yes; then :
48215350
DK
5986 # ELF platforms build the lto-plugin always.
5987 build_lto_plugin=yes
9a02962b 5988
9a02962b
DK
5989else
5990 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 5991 case $target in
51fd6b90 5992 *-apple-darwin9 | *-cygwin* | *-mingw*) ;;
48215350 5993 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
5994 *) enable_lto=no ;;
5995 esac
9a02962b 5996 else
db50fe7d
IS
5997 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5998 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
5999 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6000 # warn during gcc/ subconfigure; unless you're bootstrapping with
6001 # -flto it won't be needed until after installation anyway.
6002 case $target in
1cd0b716 6003 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6004 *) if test x"$enable_lto" = x"yes"; then
6005 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6006 fi
6007 ;;
6008 esac
6009 fi
1cd0b716 6010 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6011 # Build it unless LTO was explicitly disabled.
1cd0b716 6012 case $target in
48215350 6013 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6014 *) ;;
6015 esac
48215350 6016
9a02962b
DK
6017fi
6018
d7f09764 6019
f8bf9252 6020
1e0f07d3 6021# By default, C is the only stage 1 language.
e1888513 6022stage1_languages=,c,
2805b53a 6023
00020c16 6024# Target libraries that we bootstrap.
ad1e5170 6025bootstrap_target_libs=,target-libgcc,
00020c16 6026
55ffb5ed
NN
6027# Figure out what language subdirectories are present.
6028# Look if the user specified --enable-languages="..."; if not, use
6029# the environment variable $LANGUAGES if defined. $LANGUAGES might
6030# go away some day.
6031# NB: embedded tabs in this IF block -- do not untabify
6032if test -d ${srcdir}/gcc; then
6033 if test x"${enable_languages+set}" != xset; then
6034 if test x"${LANGUAGES+set}" = xset; then
6035 enable_languages="${LANGUAGES}"
6036 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6037 else
6038 enable_languages=all
6039 fi
6040 else
6041 if test x"${enable_languages}" = x ||
6042 test x"${enable_languages}" = xyes;
6043 then
6044 echo configure.in: --enable-languages needs at least one language argument 1>&2
6045 exit 1
6046 fi
6047 fi
6048 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6049
7f26dfa3
FXC
6050 # 'f95' is the old name for the 'fortran' language. We issue a warning
6051 # and make the substitution.
6052 case ,${enable_languages}, in
6053 *,f95,*)
6054 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6055 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6056 ;;
6057 esac
6058
55ffb5ed
NN
6059 # First scan to see if an enabled language requires some other language.
6060 # We assume that a given config-lang.in will list all the language
6061 # front ends it requires, even if some are required indirectly.
6062 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6063 case ${lang_frag} in
6064 ..) ;;
6065 # The odd quoting in the next line works around
6066 # an apparent bug in bash 1.12 on linux.
6067 ${srcdir}/gcc/[*]/config-lang.in) ;;
6068 *)
69ecd18f
ILT
6069 # From the config-lang.in, get $language, $lang_requires, and
6070 # $lang_requires_boot_languages.
55ffb5ed
NN
6071 language=
6072 lang_requires=
69ecd18f 6073 lang_requires_boot_languages=
55ffb5ed 6074 . ${lang_frag}
69ecd18f 6075 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6076 case ,${enable_languages}, in
6077 *,$other,*) ;;
6078 *,all,*) ;;
6079 *,$language,*)
6080 echo " \`$other' language required by \`$language'; enabling" 1>&2
6081 enable_languages="${enable_languages},${other}"
6082 ;;
6083 esac
6084 done
69ecd18f
ILT
6085 for other in ${lang_requires_boot_languages} ; do
6086 if test "$other" != "c"; then
6087 case ,${enable_stage1_languages}, in
6088 *,$other,*) ;;
6089 *,all,*) ;;
6090 *)
6091 case ,${enable_languages}, in
6092 *,$language,*)
6093 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6094 enable_stage1_languages="$enable_stage1_languages,${other}"
6095 ;;
6096 esac
6097 ;;
6098 esac
6099 fi
6100 done
55ffb5ed
NN
6101 ;;
6102 esac
6103 done
6104
e1888513 6105 new_enable_languages=,c,
d7f09764
DN
6106
6107 # If LTO is enabled, add the LTO front end.
6108 extra_host_libiberty_configure_flags=
6109 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6110 case ,${enable_languages}, in
6111 *,lto,*) ;;
6112 *) enable_languages="${enable_languages},lto" ;;
6113 esac
1cd0b716 6114 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6115 configdirs="$configdirs lto-plugin"
6116 extra_host_libiberty_configure_flags=--enable-shared
6117 fi
6118 fi
6119
6120
55ffb5ed 6121 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6122 potential_languages=,c,
55ffb5ed 6123
4da3b0f8
ILT
6124 enabled_target_libs=
6125 disabled_target_libs=
6126
55ffb5ed
NN
6127 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6128 case ${lang_frag} in
6129 ..) ;;
6130 # The odd quoting in the next line works around
6131 # an apparent bug in bash 1.12 on linux.
6132 ${srcdir}/gcc/[*]/config-lang.in) ;;
6133 *)
1c710c3c 6134 # From the config-lang.in, get $language, $target_libs,
2805b53a 6135 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6136 language=
6137 target_libs=
6138 lang_dirs=
1546bb64 6139 subdir_requires=
e1888513
PB
6140 boot_language=no
6141 build_by_default=yes
55ffb5ed 6142 . ${lang_frag}
e1888513
PB
6143 if test x${language} = x; then
6144 echo "${lang_frag} doesn't set \$language." 1>&2
6145 exit 1
6146 fi
6147
f61428ed
AO
6148 if test "$language" = "c++" \
6149 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
00020c16
ILT
6150 boot_language=yes
6151 fi
6152
e1888513
PB
6153 case ,${enable_languages}, in
6154 *,${language},*)
55ffb5ed
NN
6155 # Language was explicitly selected; include it.
6156 add_this_lang=yes
6157 ;;
e1888513
PB
6158 *,all,*)
6159 # 'all' was selected, select it if it is a default language
6160 add_this_lang=${build_by_default}
55ffb5ed
NN
6161 ;;
6162 *)
6163 add_this_lang=no
6164 ;;
6165 esac
6de9cd9a 6166
1546bb64 6167 # Disable languages that need other directories if these aren't available.
95695ad3 6168 for i in $subdir_requires; do
b6348cb3 6169 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6170 case ,${enable_languages}, in
6171 *,${language},*)
6172 # Specifically requested language; tell them.
5213506e 6173 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6174 ;;
6175 *)
6176 # Silently disable.
e1888513 6177 add_this_lang=unsupported
1546bb64
PB
6178 ;;
6179 esac
6180 done
6181
e1888513
PB
6182 # Disable Ada if no preexisting GNAT is available.
6183 case ,${enable_languages},:${language}:${have_gnat} in
6184 *,${language},*:ada:no)
6185 # Specifically requested language; tell them.
5213506e 6186 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6187 ;;
6188 *:ada:no)
6189 # Silently disable.
6190 add_this_lang=unsupported
6191 ;;
6192 esac
6193
4fab7234
HPN
6194 # Disable a language that is unsupported by the target.
6195 case " $unsupported_languages " in
6196 *" $language "*)
e1888513 6197 add_this_lang=unsupported
4fab7234
HPN
6198 ;;
6199 esac
6200
6de9cd9a 6201 case $add_this_lang in
e1888513 6202 unsupported)
55ffb5ed 6203 # Remove language-dependent dirs.
4da3b0f8
ILT
6204 disabled_target_libs="$disabled_target_libs $target_libs"
6205 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6206 ;;
e1888513
PB
6207 no)
6208 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6209 disabled_target_libs="$disabled_target_libs $target_libs"
6210 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6211 potential_languages="${potential_languages}${language},"
6212 ;;
6213 yes)
6214 new_enable_languages="${new_enable_languages}${language},"
6215 potential_languages="${potential_languages}${language},"
2805b53a 6216 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6217 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6218 case "${boot_language}:,$enable_stage1_languages," in
6219 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6220 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6221 case ",$stage1_languages," in
6222 *,$language,* | ,yes, | ,all,) ;;
6223 *) stage1_languages="${stage1_languages}${language}," ;;
6224 esac
00020c16
ILT
6225 # We need to bootstrap any supporting libraries.
6226 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6227 ;;
6228 esac
6229 ;;
55ffb5ed
NN
6230 esac
6231 ;;
6232 esac
6233 done
6234
4da3b0f8
ILT
6235 # Add target libraries which are only needed for disabled languages
6236 # to noconfigdirs.
6237 if test -n "$disabled_target_libs"; then
6238 for dir in $disabled_target_libs; do
6239 case " $enabled_target_libs " in
6240 *" ${dir} "*) ;;
6241 *) noconfigdirs="$noconfigdirs $dir" ;;
6242 esac
6243 done
6244 fi
6245
5213506e
RW
6246 # Check whether --enable-stage1-languages was given.
6247if test "${enable_stage1_languages+set}" = set; then :
6248 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6249 ,no,|,,)
6250 # Set it to something that will have no effect in the loop below
6251 enable_stage1_languages=c ;;
6252 ,yes,)
6253 enable_stage1_languages=`echo $new_enable_languages | \
6254 sed -e "s/^,//" -e "s/,$//" ` ;;
6255 *,all,*)
6256 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6257 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6258 esac
6259
6260 # Add "good" languages from enable_stage1_languages to stage1_languages,
6261 # while "bad" languages go in missing_languages. Leave no duplicates.
6262 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6263 case $potential_languages in
6264 *,$i,*)
6265 case $stage1_languages in
6266 *,$i,*) ;;
6267 *) stage1_languages="$stage1_languages$i," ;;
6268 esac ;;
6269 *)
6270 case $missing_languages in
6271 *,$i,*) ;;
6272 *) missing_languages="$missing_languages$i," ;;
6273 esac ;;
6274 esac
6275 done
5213506e
RW
6276fi
6277
e1888513
PB
6278
6279 # Remove leading/trailing commas that were added for simplicity
6280 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6281 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6282 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6283 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6284
55ffb5ed 6285 if test "x$missing_languages" != x; then
5213506e 6286 as_fn_error "
0cf085e4 6287The following requested languages could not be built: ${missing_languages}
5213506e 6288Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6289 fi
55ffb5ed
NN
6290 if test "x$new_enable_languages" != "x$enable_languages"; then
6291 echo The following languages will be built: ${new_enable_languages}
e1888513 6292 enable_languages="$new_enable_languages"
55ffb5ed 6293 fi
e1888513 6294
1c710c3c 6295
b2eaac4a 6296 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6297fi
6298
27079765
AH
6299# Handle --disable-<component> generically.
6300for dir in $configdirs $build_configdirs $target_configdirs ; do
6301 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6302 varname=`echo $dirname | sed -e s/+/_/g`
6303 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6304 noconfigdirs="$noconfigdirs $dir"
6305 fi
6306done
6307
7cd0cf9c 6308# Check for Boehm's garbage collector
5213506e
RW
6309# Check whether --enable-objc-gc was given.
6310if test "${enable_objc_gc+set}" = set; then :
6311 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6312 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6313 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6314 ;;
6315esac
5213506e
RW
6316fi
6317
7cd0cf9c
DA
6318
6319# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6320case ,${enable_languages},:${enable_objc_gc} in
6321 *,objc,*:yes)
7cd0cf9c
DA
6322 # Keep target-boehm-gc if requested for Objective-C.
6323 ;;
7cd0cf9c 6324 *)
2a79fd67
DA
6325 # Otherwise remove target-boehm-gc depending on target-libjava.
6326 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6327 noconfigdirs="$noconfigdirs target-boehm-gc"
6328 fi
7cd0cf9c
DA
6329 ;;
6330esac
6331
ee6a22df
L
6332# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6333# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6334# If we have the source for $noconfigdirs entries, add them to $notsupp.
6335
6336notsupp=""
6337for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6338 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6339 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6340 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6341 if test -r $srcdir/$dirname/configure ; then
6342 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6343 true
6344 else
6345 notsupp="$notsupp $dir"
6346 fi
6347 fi
6348 fi
ee6a22df
L
6349 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6350 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6351 if test -r $srcdir/$dirname/configure ; then
6352 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6353 true
6354 else
6355 notsupp="$notsupp $dir"
6356 fi
6357 fi
6358 fi
55ffb5ed
NN
6359 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6360 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6361 if test -r $srcdir/$dirname/configure ; then
6362 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6363 true
6364 else
6365 notsupp="$notsupp $dir"
6366 fi
6367 fi
6368 fi
6369done
6370
6371# Sometimes the tools are distributed with libiberty but with no other
6372# libraries. In that case, we don't want to build target-libiberty.
54fdc474 6373# Don't let libgcc imply libiberty either.
55ffb5ed 6374if test -n "${target_configdirs}" ; then
54fdc474 6375 libgcc=
55ffb5ed
NN
6376 others=
6377 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
6378 if test "$i" = "libgcc"; then
6379 libgcc=target-libgcc
6380 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
6381 if test -r $srcdir/$i/configure ; then
6382 others=yes;
6383 break;
6384 fi
6385 fi
6386 done
6387 if test -z "${others}" ; then
54fdc474 6388 target_configdirs=$libgcc
55ffb5ed
NN
6389 fi
6390fi
6391
6392# Quietly strip out all directories which aren't configurable in this tree.
6393# This relies on all configurable subdirectories being autoconfiscated, which
6394# is now the case.
23f6b2f9
PB
6395build_configdirs_all="$build_configdirs"
6396build_configdirs=
6397for i in ${build_configdirs_all} ; do
1c710c3c 6398 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6399 if test -f ${srcdir}/$j/configure ; then
6400 build_configdirs="${build_configdirs} $i"
6401 fi
6402done
6403
55ffb5ed
NN
6404configdirs_all="$configdirs"
6405configdirs=
6406for i in ${configdirs_all} ; do
6407 if test -f ${srcdir}/$i/configure ; then
6408 configdirs="${configdirs} $i"
6409 fi
6410done
23f6b2f9 6411
55ffb5ed
NN
6412target_configdirs_all="$target_configdirs"
6413target_configdirs=
6414for i in ${target_configdirs_all} ; do
1c710c3c 6415 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6416 if test -f ${srcdir}/$j/configure ; then
6417 target_configdirs="${target_configdirs} $i"
6418 fi
6419done
6420
6421# Produce a warning message for the subdirs we can't configure.
6422# This isn't especially interesting in the Cygnus tree, but in the individual
6423# FSF releases, it's important to let people know when their machine isn't
6424# supported by the one or two programs in a package.
6425
6426if test -n "${notsupp}" && test -z "${norecursion}" ; then
6427 # If $appdirs is non-empty, at least one of those directories must still
6428 # be configured, or we error out. (E.g., if the gas release supports a
6429 # specified target in some subdirs but not the gas subdir, we shouldn't
6430 # pretend that all is well.)
6431 if test -n "$appdirs" ; then
6432 for dir in $appdirs ; do
6433 if test -r $dir/Makefile.in ; then
6434 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6435 appdirs=""
6436 break
6437 fi
23f6b2f9 6438 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6439 appdirs=""
6440 break
6441 fi
6442 fi
6443 done
6444 if test -n "$appdirs" ; then
6445 echo "*** This configuration is not supported by this package." 1>&2
6446 exit 1
6447 fi
6448 fi
6449 # Okay, some application will build, or we don't care to check. Still
6450 # notify of subdirs not getting built.
6451 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6452 echo " ${notsupp}" 1>&2
6453 echo " (Any other directories should still work fine.)" 1>&2
6454fi
6455
6456case "$host" in
6457 *msdosdjgpp*)
6458 enable_gdbtk=no ;;
6459esac
6460
c3a86da9
DJ
6461# To find our prefix, in gcc_cv_tool_prefix.
6462
6463# The user is always right.
6464if test "${PATH_SEPARATOR+set}" != set; then
6465 echo "#! /bin/sh" >conf$$.sh
6466 echo "exit 0" >>conf$$.sh
6467 chmod +x conf$$.sh
6468 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6469 PATH_SEPARATOR=';'
6470 else
6471 PATH_SEPARATOR=:
6472 fi
6473 rm -f conf$$.sh
6474fi
6475
6476
6477
6478if test "x$exec_prefix" = xNONE; then
6479 if test "x$prefix" = xNONE; then
6480 gcc_cv_tool_prefix=$ac_default_prefix
6481 else
6482 gcc_cv_tool_prefix=$prefix
6483 fi
6484else
6485 gcc_cv_tool_prefix=$exec_prefix
6486fi
6487
6488# If there is no compiler in the tree, use the PATH only. In any
6489# case, if there is no compiler in the tree nobody should use
6490# AS_FOR_TARGET and LD_FOR_TARGET.
6491if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6492 gcc_version=`cat $srcdir/gcc/BASE-VER`
6493 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6494 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6495 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6496 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6497 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6498 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6499else
6500 gcc_cv_tool_dirs=
6501fi
6502
6503if test x$build = x$target && test -n "$md_exec_prefix"; then
6504 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6505fi
6506
6507
6508
55ffb5ed
NN
6509copy_dirs=
6510
1c710c3c 6511
5213506e
RW
6512# Check whether --with-build-sysroot was given.
6513if test "${with_build_sysroot+set}" = set; then :
6514 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6515 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6516 fi
6517else
6518 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6519fi
526635cb
MM
6520
6521
c8aea42c 6522
5213506e
RW
6523
6524# Check whether --with-debug-prefix-map was given.
6525if test "${with_debug_prefix_map+set}" = set; then :
6526 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6527 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6528 for debug_map in $withval; do
6529 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6530 done
6531 fi
6532else
6533 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6534fi
6535
c8aea42c
PB
6536
6537
1c8bd6a3
PB
6538# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6539# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6540# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6541# We want to ensure that TARGET libraries (which we know are built with
6542# gcc) are built with "-O2 -g", so include those options when setting
6543# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6544if test "x$CFLAGS_FOR_TARGET" = x; then
6545 CFLAGS_FOR_TARGET=$CFLAGS
6546 case " $CFLAGS " in
6547 *" -O2 "*) ;;
6548 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6549 esac
6550 case " $CFLAGS " in
6551 *" -g "* | *" -g3 "*) ;;
6552 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6553 esac
6554fi
6555
6556
6557if test "x$CXXFLAGS_FOR_TARGET" = x; then
6558 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6559 case " $CXXFLAGS " in
6560 *" -O2 "*) ;;
6561 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6562 esac
6563 case " $CXXFLAGS " in
6564 *" -g "* | *" -g3 "*) ;;
6565 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6566 esac
6567fi
6568
6569
55ffb5ed
NN
6570# Handle --with-headers=XXX. If the value is not "yes", the contents of
6571# the named directory are copied to $(tooldir)/sys-include.
6572if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6573 if test x${is_cross_compiler} = xno ; then
6574 echo 1>&2 '***' --with-headers is only supported when cross compiling
6575 exit 1
6576 fi
6577 if test x"${with_headers}" != xyes ; then
c3a86da9 6578 x=${gcc_cv_tool_prefix}
1c710c3c 6579 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6580 fi
6581fi
6582
6583# Handle --with-libs=XXX. If the value is not "yes", the contents of
6584# the name directories are copied to $(tooldir)/lib. Multiple directories
6585# are permitted.
6586if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6587 if test x${is_cross_compiler} = xno ; then
6588 echo 1>&2 '***' --with-libs is only supported when cross compiling
6589 exit 1
6590 fi
6591 if test x"${with_libs}" != xyes ; then
6592 # Copy the libraries in reverse order, so that files in the first named
6593 # library override files in subsequent libraries.
c3a86da9 6594 x=${gcc_cv_tool_prefix}
55ffb5ed 6595 for l in ${with_libs}; do
1c710c3c 6596 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6597 done
6598 fi
6599fi
6600
d7f09764 6601# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6602#
6603# This is done by determining whether or not the appropriate directory
6604# is available, and by checking whether or not specific configurations
6605# have requested that this magic not happen.
1c710c3c
DJ
6606#
6607# The command line options always override the explicit settings in
e8b05380
PB
6608# configure.in, and the settings in configure.in override this magic.
6609#
1c710c3c 6610# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6611# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6612# --without-gnu-ld options for the configure script. Similarly, if
6613# the default is to use the included zlib and you don't want to do that,
6614# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6615
6616if test x${use_gnu_as} = x &&
6617 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6618 with_gnu_as=yes
6619 extra_host_args="$extra_host_args --with-gnu-as"
6620fi
6621
6622if test x${use_gnu_ld} = x &&
5afab7ad 6623 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6624 with_gnu_ld=yes
6625 extra_host_args="$extra_host_args --with-gnu-ld"
6626fi
6627
d7f09764
DN
6628if test x${use_included_zlib} = x &&
6629 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6630 :
6631else
6632 with_system_zlib=yes
6633 extra_host_args="$extra_host_args --with-system-zlib"
6634fi
6635
e8b05380
PB
6636# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6637# can detect this case.
6638
6639if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6640 with_newlib=yes
6641 extra_host_args="$extra_host_args --with-newlib"
6642fi
6643
55ffb5ed
NN
6644# Handle ${copy_dirs}
6645set fnord ${copy_dirs}
6646shift
6647while test $# != 0 ; do
6648 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6649 :
6650 else
6651 echo Copying $1 to $2
6652
6653 # Use the install script to create the directory and all required
6654 # parent directories.
6655 if test -d $2 ; then
6656 :
6657 else
6658 echo >config.temp
6659 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6660 fi
6661
6662 # Copy the directory, assuming we have tar.
6663 # FIXME: Should we use B in the second tar? Not all systems support it.
6664 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6665
6666 # It is the responsibility of the user to correctly adjust all
6667 # symlinks. If somebody can figure out how to handle them correctly
6668 # here, feel free to add the code.
6669
6670 echo $1 > $2/COPIED
6671 fi
6672 shift; shift
6673done
6674
e8b05380
PB
6675# Determine a target-dependent exec_prefix that the installed
6676# gcc will search in. Keep this list sorted by triplet, with
6677# the *-*-osname triplets last.
6678md_exec_prefix=
6679case "${target}" in
6680 alpha*-*-*vms*)
6681 md_exec_prefix=/gnu/lib/gcc-lib
6682 ;;
30b74385 6683 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6684 md_exec_prefix=/dev/env/DJDIR/bin
6685 ;;
30b74385 6686 i[34567]86-*-sco3.2v5*)
e8b05380
PB
6687 if test $with_gnu_as = yes; then
6688 md_exec_prefix=/usr/gnu/bin
6689 else
6690 md_exec_prefix=/usr/ccs/bin/elf
6691 fi
6692 ;;
6693
6694 mn10300-*-* | \
6695 powerpc-*-chorusos* | \
6696 powerpc*-*-eabi* | \
6697 powerpc*-*-sysv* | \
6698 powerpc*-*-kaos* | \
6699 s390x-ibm-tpf*)
6700 md_exec_prefix=/usr/ccs/bin
6701 ;;
6702 sparc64-*-elf*)
6703 ;;
6704 v850*-*-*)
6705 md_exec_prefix=/usr/ccs/bin
6706 ;;
aa12a573 6707 xtensa*-*-elf*)
e8b05380
PB
6708 ;;
6709
6710 *-*-beos* | \
6711 *-*-elf* | \
6712 *-*-hpux* | \
6713 *-*-netware* | \
6714 *-*-nto-qnx* | \
6715 *-*-rtems* | \
6716 *-*-solaris2* | \
30b74385 6717 *-*-sysv[45]* | \
e8b05380
PB
6718 *-*-vxworks* | \
6719 *-wrs-windiss)
6720 md_exec_prefix=/usr/ccs/bin
6721 ;;
6722esac
6723
671aa708
NN
6724extra_arflags_for_target=
6725extra_nmflags_for_target=
6726extra_ranlibflags_for_target=
6727target_makefile_frag=/dev/null
6728case "${target}" in
58e24147
AM
6729 spu-*-*)
6730 target_makefile_frag="config/mt-spu"
6731 ;;
4bf6c438
RS
6732 mips*-sde-elf*)
6733 target_makefile_frag="config/mt-sde"
6734 ;;
1ec3b87b
RS
6735 mipsisa*-*-elfoabi*)
6736 target_makefile_frag="config/mt-mips-elfoabi"
6737 ;;
08d0963a
RS
6738 mips*-*-*linux* | mips*-*-gnu*)
6739 target_makefile_frag="config/mt-mips-gnu"
6740 ;;
416ac4d4 6741 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6742 target_makefile_frag="config/mt-gnu"
671aa708
NN
6743 ;;
6744 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6745 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6746 # commands to handle both 32-bit and 64-bit objects. These flags are
6747 # harmless if we're using GNU nm or ar.
6748 extra_arflags_for_target=" -X32_64"
6749 extra_nmflags_for_target=" -B -X32_64"
6750 ;;
0aeb3cc6
JH
6751 *-*-darwin[3-9]*)
6752 # ranlib before Darwin10 requires the -c flag to look at common symbols.
671aa708
NN
6753 extra_ranlibflags_for_target=" -c"
6754 ;;
671aa708
NN
6755esac
6756
6757alphaieee_frag=/dev/null
6758case $target in
6759 alpha*-*-*)
6760 # This just makes sure to use the -mieee option to build target libs.
6761 # This should probably be set individually by each library.
6762 alphaieee_frag="config/mt-alphaieee"
6763 ;;
6764esac
6765
6766# If --enable-target-optspace always use -Os instead of -O2 to build
6767# the target libraries, similarly if it is not specified, use -Os
6768# on selected platforms.
6769ospace_frag=/dev/null
6770case "${enable_target_optspace}:${target}" in
6771 yes:*)
6772 ospace_frag="config/mt-ospace"
6773 ;;
6774 :d30v-*)
6775 ospace_frag="config/mt-d30v"
6776 ;;
6777 :m32r-* | :d10v-* | :fr30-*)
6778 ospace_frag="config/mt-ospace"
6779 ;;
6780 no:* | :*)
6781 ;;
6782 *)
6783 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6784 ;;
6785esac
6786
671aa708
NN
6787# Default to using --with-stabs for certain targets.
6788if test x${with_stabs} = x ; then
6789 case "${target}" in
89a95129 6790 mips*-*-irix[56]*)
671aa708
NN
6791 ;;
6792 mips*-*-* | alpha*-*-osf*)
6793 with_stabs=yes;
6794 extra_host_args="${extra_host_args} --with-stabs"
6795 ;;
6796 esac
6797fi
6798
6799# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6800# them automatically.
6801case "${host}" in
1c710c3c 6802 hppa*64*-*-hpux11*)
671aa708
NN
6803 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6804 ;;
6805esac
6806
671aa708
NN
6807# Some systems (e.g., one of the i386-aix systems the gas testers are
6808# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6809tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6810build_tooldir=${tooldir}
6811
671aa708
NN
6812# Create a .gdbinit file which runs the one in srcdir
6813# and tells GDB to look there for source files.
6814
6815if test -r ${srcdir}/.gdbinit ; then
6816 case ${srcdir} in
6817 .) ;;
6818 *) cat > ./.gdbinit <<EOF
6819# ${NO_EDIT}
6820dir ${srcdir}
6821dir .
6822source ${srcdir}/.gdbinit
6823EOF
6824 ;;
6825 esac
6826fi
6827
671aa708
NN
6828# Make sure that the compiler is able to generate an executable. If it
6829# can't, we are probably in trouble. We don't care whether we can run the
6830# executable--we might be using a cross compiler--we only care whether it
6831# can be created. At this point the main configure script has set CC.
6832we_are_ok=no
6833echo "int main () { return 0; }" > conftest.c
6834${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6835if test $? = 0 ; then
6836 if test -s conftest || test -s conftest.exe ; then
6837 we_are_ok=yes
6838 fi
1c710c3c 6839fi
671aa708
NN
6840case $we_are_ok in
6841 no)
6842 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6843 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6844 rm -f conftest*
6845 exit 1
6846 ;;
6847esac
6848rm -f conftest*
6849
6850# The Solaris /usr/ucb/cc compiler does not appear to work.
6851case "${host}" in
6852 sparc-sun-solaris2*)
6853 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6854 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6855 could_use=
6856 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6857 if test -d /opt/cygnus/bin ; then
6858 if test "$could_use" = "" ; then
6859 could_use="/opt/cygnus/bin"
6860 else
6861 could_use="$could_use or /opt/cygnus/bin"
6862 fi
6863 fi
6864 if test "$could_use" = "" ; then
6865 echo "Warning: compilation may fail because you're using"
6866 echo "/usr/ucb/cc. You should change your PATH or CC "
6867 echo "variable and rerun configure."
6868 else
6869 echo "Warning: compilation may fail because you're using"
6870 echo "/usr/ucb/cc, when you should use the C compiler from"
6871 echo "$could_use. You should change your"
6872 echo "PATH or CC variable and rerun configure."
6873 fi
6874 fi
6875 ;;
6876esac
6877
d89f0ad6 6878# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6879case "${host}" in
6880 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6881 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6882 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6883 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6884esac
6885
d89f0ad6
AL
6886# On systems where the dynamic library environment variable is PATH,
6887# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6888# built executables to PATH.
6889if test "$RPATH_ENVVAR" = PATH; then
6890 GCC_SHLIB_SUBDIR=/shlib
6891else
6892 GCC_SHLIB_SUBDIR=
6893fi
6894
671aa708
NN
6895# Record target_configdirs and the configure arguments for target and
6896# build configuration in Makefile.
6897target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6898build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6899
ad1e5170
JR
6900# If we are building libgomp, bootstrap it.
6901if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6902 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6903fi
6904
671aa708
NN
6905# Determine whether gdb needs tk/tcl or not.
6906# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6907# and in that case we want gdb to be built without tk. Ugh!
6908# In fact I believe gdb is the *only* package directly dependent on tk,
6909# so we should be able to put the 'maybe's in unconditionally and
6910# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6911# 100% sure that that's safe though.
e914a571 6912
b4f96efe 6913gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6914case "$enable_gdbtk" in
6915 no)
6916 GDB_TK="" ;;
e914a571
AC
6917 yes)
6918 GDB_TK="${gdb_tk}" ;;
671aa708 6919 *)
e914a571
AC
6920 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6921 # distro. Eventually someone will fix this and move Insight, nee
6922 # gdbtk to a separate directory.
6923 if test -d ${srcdir}/gdb/gdbtk ; then
6924 GDB_TK="${gdb_tk}"
6925 else
6926 GDB_TK=""
6927 fi
6928 ;;
671aa708 6929esac
ef9db8d5
DJ
6930CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6931INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6932
60975492 6933# Strip out unwanted targets.
8b87bb96
NN
6934
6935# While at that, we remove Makefiles if we were started for recursive
6936# configuration, so that the top-level Makefile reconfigures them,
6937# like we used to do when configure itself was recursive.
8b87bb96 6938
3e54529c
RW
6939# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6940# but now we're fixing up the Makefile ourselves with the additional
6941# commands passed to AC_CONFIG_FILES. Use separate variables
6942# extrasub-{build,host,target} not because there is any reason to split
6943# the substitutions up that way, but only to remain below the limit of
6944# 99 commands in a script, for HP-UX sed.
6945# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6946
5213506e
RW
6947# Check whether --enable-bootstrap was given.
6948if test "${enable_bootstrap+set}" = set; then :
6949 enableval=$enable_bootstrap;
f516a7da 6950else
ce521a9c 6951 enable_bootstrap=default
5213506e
RW
6952fi
6953
f516a7da 6954
ce521a9c
PB
6955# Issue errors and warnings for invalid/strange bootstrap combinations.
6956case "$configdirs" in
6957 *gcc*) have_compiler=yes ;;
6958 *) have_compiler=no ;;
6959esac
6960
6961case "$have_compiler:$host:$target:$enable_bootstrap" in
6962 *:*:*:no) ;;
6963
1ca26cd2 6964 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
6965 # and we are in a native configuration.
6966 yes:$build:$build:default)
1ca26cd2 6967 enable_bootstrap=yes ;;
ce521a9c
PB
6968
6969 *:*:*:default)
6970 enable_bootstrap=no ;;
6971
6972 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 6973 yes:$build:$build:yes)
ce521a9c
PB
6974 ;;
6975
6976 # Other configurations, but we have a compiler. Assume the user knows
6977 # what he's doing.
2d309510 6978 yes:*:*:yes)
5213506e
RW
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6980$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
6981 ;;
6982
6983 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 6984 no:*:*:yes)
5213506e 6985 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ce521a9c
PB
6986
6987 # Fail if wrong command line
6988 *)
5213506e 6989 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
ce521a9c
PB
6990 ;;
6991esac
6992
ca6d0d62
RW
6993case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6994 *,c++,*:yes:yes) ;;
6995 *:yes:yes)
6996 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6997 ;;
6998esac
6999
79cd2b23
RW
7000case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7001 yes:yes:*\ gold\ *:*,c++,*) ;;
7002 yes:yes:*\ gold\ *:*)
7003 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7004 ;;
7005esac
7006
ce521a9c 7007# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 7008case $enable_bootstrap in
f516a7da 7009 yes)
e12c4094
AO
7010 bootstrap_suffix=bootstrap
7011 BUILD_CONFIG=bootstrap-debug
7012 ;;
f516a7da 7013 no)
e12c4094
AO
7014 bootstrap_suffix=no-bootstrap
7015 BUILD_CONFIG=
7016 ;;
f516a7da
PB
7017esac
7018
e12c4094
AO
7019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7020$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
7021
7022
7023# Check whether --with-build-config was given.
7024if test "${with_build_config+set}" = set; then :
7025 withval=$with_build_config; case $with_build_config in
7026 yes) with_build_config= ;;
7027 no) with_build_config= BUILD_CONFIG= ;;
7028 esac
7029fi
7030
7031
e12c4094
AO
7032if test "x${with_build_config}" != x; then
7033 BUILD_CONFIG=$with_build_config
7034else
7035 case $BUILD_CONFIG in
7036 bootstrap-debug)
7037 if echo "int f (void) { return 0; }" > conftest.c &&
7038 ${CC} -c conftest.c &&
7039 mv conftest.o conftest.o.g0 &&
7040 ${CC} -c -g conftest.c &&
7041 mv conftest.o conftest.o.g &&
615c8ffa 7042 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
7043 :
7044 else
7045 BUILD_CONFIG=
7046 fi
7047 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7048 ;;
7049 esac
7050fi
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7052$as_echo "$BUILD_CONFIG" >&6; }
7053
7054
3e54529c 7055extrasub_build=
23f6b2f9 7056for module in ${build_configdirs} ; do
5607edfd
PB
7057 if test -z "${no_recursion}" \
7058 && test -f ${build_subdir}/${module}/Makefile; then
7059 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7060 rm -f ${build_subdir}/${module}/Makefile
7061 fi
3e54529c 7062 extrasub_build="$extrasub_build
5607edfd
PB
7063/^@if build-$module\$/d
7064/^@endif build-$module\$/d
7065/^@if build-$module-$bootstrap_suffix\$/d
7066/^@endif build-$module-$bootstrap_suffix\$/d"
7067done
3e54529c 7068extrasub_host=
5607edfd 7069for module in ${configdirs} ; do
a6fbc1e2 7070 if test -z "${no_recursion}"; then
f063a9ed 7071 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7072 if test -f ${file}; then
7073 echo 1>&2 "*** removing ${file} to force reconfigure"
7074 rm -f ${file}
7075 fi
7076 done
5607edfd 7077 fi
3e54529c 7078 extrasub_host="$extrasub_host
5607edfd
PB
7079/^@if $module\$/d
7080/^@endif $module\$/d
7081/^@if $module-$bootstrap_suffix\$/d
7082/^@endif $module-$bootstrap_suffix\$/d"
7083done
3e54529c 7084extrasub_target=
5607edfd
PB
7085for module in ${target_configdirs} ; do
7086 if test -z "${no_recursion}" \
7087 && test -f ${target_subdir}/${module}/Makefile; then
7088 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7089 rm -f ${target_subdir}/${module}/Makefile
7090 fi
00020c16
ILT
7091
7092 # We only bootstrap target libraries listed in bootstrap_target_libs.
7093 case $bootstrap_target_libs in
7094 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7095 *) target_bootstrap_suffix=no-bootstrap ;;
7096 esac
7097
3e54529c 7098 extrasub_target="$extrasub_target
5607edfd
PB
7099/^@if target-$module\$/d
7100/^@endif target-$module\$/d
00020c16
ILT
7101/^@if target-$module-$target_bootstrap_suffix\$/d
7102/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7103done
7104
3e54529c
RW
7105# Do the final fixup along with target modules.
7106extrasub_target="$extrasub_target
60975492 7107/^@if /,/^@endif /d"
671aa708
NN
7108
7109# Create the serialization dependencies. This uses a temporary file.
7110
5213506e
RW
7111# Check whether --enable-serial-configure was given.
7112if test "${enable_serial_configure+set}" = set; then :
7113 enableval=$enable_serial_configure;
7114fi
ade82b16
AO
7115
7116
bf1d3e81
NN
7117case ${enable_serial_configure} in
7118 yes)
7119 enable_serial_build_configure=yes
7120 enable_serial_host_configure=yes
7121 enable_serial_target_configure=yes
7122 ;;
7123esac
7124
671aa708
NN
7125# These force 'configure's to be done one at a time, to avoid problems
7126# with contention over a shared config.cache.
7127rm -f serdep.tmp
ade82b16 7128echo '# serdep.tmp' > serdep.tmp
671aa708 7129olditem=
bf1d3e81 7130test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7131for item in ${build_configdirs} ; do
7132 case ${olditem} in
7133 "") ;;
ade82b16 7134 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7135 esac
7136 olditem=${item}
7137done
7138olditem=
bf1d3e81 7139test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7140for item in ${configdirs} ; do
7141 case ${olditem} in
7142 "") ;;
ade82b16 7143 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7144 esac
7145 olditem=${item}
7146done
7147olditem=
bf1d3e81 7148test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7149for item in ${target_configdirs} ; do
7150 case ${olditem} in
7151 "") ;;
ade82b16 7152 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7153 esac
7154 olditem=${item}
7155done
7156serialization_dependencies=serdep.tmp
7157
7158
ade82b16 7159# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7160# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7161# might not want to pass down to subconfigures. The exception being
7162# --cache-file=/dev/null, which is used to turn off the use of cache
7163# files altogether, and which should be passed on to subconfigures.
7164# Also strip program-prefix, program-suffix, and program-transform-name,
7165# so that we can pass down a consistent program-transform-name.
1c710c3c 7166baseargs=
29a63921 7167tbaseargs=
1c710c3c
DJ
7168keep_next=no
7169skip_next=no
7170eval "set -- $ac_configure_args"
44bfc3ac
DJ
7171for ac_arg
7172do
1c710c3c
DJ
7173 if test X"$skip_next" = X"yes"; then
7174 skip_next=no
7175 continue
7176 fi
7177 if test X"$keep_next" = X"yes"; then
7178 case $ac_arg in
7179 *\'*)
7180 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7181 esac
7182 baseargs="$baseargs '$ac_arg'"
29a63921 7183 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7184 keep_next=no
7185 continue
7186 fi
7187
7188 # Handle separated arguments. Based on the logic generated by
7189 # autoconf 2.59.
7190 case $ac_arg in
7191 *=* | --config-cache | -C | -disable-* | --disable-* \
7192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7194 | -with-* | --with-* | -without-* | --without-* | --x)
7195 separate_arg=no
7196 ;;
7197 -*)
7198 separate_arg=yes
7199 ;;
7200 *)
7201 separate_arg=no
7202 ;;
7203 esac
7204
29a63921
AO
7205 skip_targ=no
7206 case $ac_arg in
7207
7208 --with-* | --without-*)
7209 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7210
7211 case $libopt in
7212 *[-_]include)
7213 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7214 ;;
7215 *[-_]lib)
7216 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7217 ;;
7218 *)
7219 lib=$libopt
7220 ;;
7221 esac
7222
7223
7224 case $lib in
7225 mpc | mpfr | gmp | ppl | cloog)
7226 # If we're processing --with-$lib, --with-$lib-include or
7227 # --with-$lib-lib, for one of the libs above, and target is
7228 # different from host, don't pass the current argument to any
7229 # target library's configure.
7230 if test x$is_cross_compiler = xyes; then
7231 skip_targ=yes
7232 fi
7233 ;;
7234 esac
7235 ;;
7236 esac
7237
1c710c3c 7238 case "$ac_arg" in
f1a036e4
NC
7239 --cache-file=/dev/null | \
7240 -cache-file=/dev/null )
7241 # Handled here to avoid the test to skip args below.
7242 baseargs="$baseargs '$ac_arg'"
29a63921 7243 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7244 # Assert: $separate_arg should always be no.
7245 keep_next=$separate_arg
7246 ;;
1c710c3c
DJ
7247 --no*)
7248 continue
7249 ;;
7250 --c* | \
7251 --sr* | \
7252 --ho* | \
7253 --bu* | \
7254 --t* | \
7255 --program-* | \
7256 -cache_file* | \
7257 -srcdir* | \
7258 -host* | \
7259 -build* | \
7260 -target* | \
7261 -program-prefix* | \
7262 -program-suffix* | \
7263 -program-transform-name* )
7264 skip_next=$separate_arg
7265 continue
7266 ;;
7267 -*)
7268 # An option. Add it.
7269 case $ac_arg in
7270 *\'*)
7271 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7272 esac
7273 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7274 if test X"$skip_targ" = Xno; then
7275 tbaseargs="$tbaseargs '$ac_arg'"
7276 fi
1c710c3c
DJ
7277 keep_next=$separate_arg
7278 ;;
7279 *)
7280 # Either a variable assignment, or a nonopt (triplet). Don't
7281 # pass it down; let the Makefile handle this.
7282 continue
7283 ;;
7284 esac
7285done
7286# Remove the initial space we just introduced and, as these will be
7287# expanded by make, quote '$'.
7288baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7289
43bb47c2
DJ
7290# Add in --program-transform-name, after --program-prefix and
7291# --program-suffix have been applied to it. Autoconf has already
7292# doubled dollar signs and backslashes in program_transform_name; we want
7293# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7294# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7295# Also, because we want to override the logic in subdir configure scripts to
7296# choose program_transform_name, replace any s,x,x, with s,y,y,.
7297sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7298${program_transform_name}
7299EOF_SED
7300gcc_transform_name=`cat conftestsed.out`
7301rm -f conftestsed.out
7302baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7303tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7304if test "$silent" = yes; then
7305 baseargs="$baseargs --silent"
29a63921 7306 tbaseargs="$tbaseargs --silent"
d9acb717 7307fi
0115d4a3 7308baseargs="$baseargs --disable-option-checking"
29a63921 7309tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7310
ffedf511
RW
7311# Record and document user additions to sub configure arguments.
7312
7313
7314
7315
671aa708
NN
7316# For the build-side libraries, we just need to pretend we're native,
7317# and not use the same cache file. Multilibs are neither needed nor
7318# desired.
ffedf511 7319build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7320
7321# For host modules, accept cache file option, or specification as blank.
7322case "${cache_file}" in
7323"") # empty
7324 cache_file_option="" ;;
7325/* | [A-Za-z]:[\\/]* ) # absolute path
7326 cache_file_option="--cache-file=${cache_file}" ;;
7327*) # relative path
7328 cache_file_option="--cache-file=../${cache_file}" ;;
7329esac
7330
09438bde
NN
7331# Host dirs don't like to share a cache file either, horribly enough.
7332# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7333host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7334
29a63921 7335target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7336
7337# Passing a --with-cross-host argument lets the target libraries know
7338# whether they are being built with a cross-compiler or being built
7339# native. However, it would be better to use other mechanisms to make the
7340# sorts of decisions they want to make on this basis. Please consider
7341# this option to be deprecated. FIXME.
7342if test x${is_cross_compiler} = xyes ; then
1c710c3c 7343 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7344fi
7345
dc683a3f
RW
7346# Default to --enable-multilib.
7347if test x${enable_multilib} = x ; then
671aa708 7348 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7349fi
671aa708
NN
7350
7351# Pass --with-newlib if appropriate. Note that target_configdirs has
7352# changed from the earlier setting of with_newlib.
7353if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7354 target_configargs="--with-newlib ${target_configargs}"
7355fi
7356
6b9eb62c
NN
7357# Different target subdirs use different values of certain variables
7358# (notably CXX). Worse, multilibs use *lots* of different values.
7359# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7360# it doesn't automatically accept command-line overrides of them.
7361# This means it's not safe for target subdirs to share a cache file,
7362# which is disgusting, but there you have it. Hopefully this can be
7363# fixed in future. It's still worthwhile to use a cache file for each
7364# directory. I think.
7365
bebcd931
MS
7366# Pass the appropriate --build, --host, --target and --cache-file arguments.
7367# We need to pass --target, as newer autoconf's requires consistency
7368# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7369target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7370
671aa708
NN
7371FLAGS_FOR_TARGET=
7372case " $target_configdirs " in
7373 *" newlib "*)
7374 case " $target_configargs " in
7375 *" --with-newlib "*)
7376 case "$target" in
5d571eaa
OS
7377 *-cygwin*)
7378 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'
7379 ;;
671aa708
NN
7380 esac
7381
7382 # If we're not building GCC, don't discard standard headers.
7383 if test -d ${srcdir}/gcc; then
7384 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7385
7386 if test "${build}" != "${host}"; then
7387 # On Canadian crosses, CC_FOR_TARGET will have already been set
7388 # by `configure', so we won't have an opportunity to add -Bgcc/
7389 # to it. This is right: we don't want to search that directory
7390 # for binaries, but we want the header files in there, so add
7391 # them explicitly.
0463992b 7392 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7393
7394 # Someone might think of using the pre-installed headers on
7395 # Canadian crosses, in case the installed compiler is not fully
7396 # compatible with the compiler being built. In this case, it
7397 # would be better to flag an error than risking having
7398 # incompatible object files being constructed. We can't
7399 # guarantee that an error will be flagged, but let's hope the
7400 # compiler will do it, when presented with incompatible header
7401 # files.
7402 fi
7403 fi
7404
7405 case "${target}-${is_cross_compiler}" in
f2a0e225 7406 i[3456789]86-*-linux*-no)
671aa708
NN
7407 # Here host == target, so we don't need to build gcc,
7408 # so we don't want to discard standard headers.
7409 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7410 ;;
7411 *)
7412 # If we're building newlib, use its generic headers last, but search
7413 # for any libc-related directories first (so make it the last -B
7414 # switch).
7415 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
c03353e2
RIL
7416
7417 # If we're building libgloss, find the startup file, simulator library
7418 # and linker script.
7419 case " $target_configdirs " in
7420 *" libgloss "*)
7421 # Look for startup file, simulator library and maybe linker script.
7422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7423 # Look for libnosys.a in case the target needs it.
7424 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7425 # Most targets have the linker script in the source directory.
7426 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7427 ;;
7428 esac
671aa708
NN
7429 ;;
7430 esac
7431 ;;
7432 esac
7433 ;;
7434esac
5d571eaa 7435
b91f0a41 7436case "$target" in
5d571eaa
OS
7437 x86_64-*mingw* | *-w64-mingw*)
7438 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7439 # however, use a symlink named 'mingw' in ${prefix} .
7440 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7441 ;;
7442 *-mingw*)
7443 # MinGW can't be handled as Cygwin above since it does not use newlib.
7444 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'
7445 ;;
b91f0a41 7446esac
671aa708 7447
6691a79e
ME
7448# Allow the user to override the flags for
7449# our build compiler if desired.
f019adc1
MF
7450if test x"${build}" = x"${host}" ; then
7451 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7452 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7453 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7454fi
6691a79e 7455
671aa708
NN
7456# On Canadian crosses, we'll be searching the right directories for
7457# the previously-installed cross compiler, so don't bother to add
7458# flags for directories within the install tree of the compiler
7459# being built; programs in there won't even run.
7460if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7461 # Search for pre-installed headers if nothing else fits.
9124bc53 7462 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
671aa708
NN
7463fi
7464
7465if test "x${use_gnu_ld}" = x &&
7466 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7467 # Arrange for us to find uninstalled linker scripts.
215c351a 7468 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7469fi
7470
e88a2c09
DD
7471# Search for other target-specific linker scripts and such.
7472case "${target}" in
3e19841a
PB
7473 mep*)
7474 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7475 ;;
e88a2c09
DD
7476esac
7477
671aa708 7478# Makefile fragments.
7b61653a
PE
7479for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7480do
7481 eval fragval=\$$frag
7482 if test $fragval != /dev/null; then
7483 eval $frag=${srcdir}/$fragval
7484 fi
7485done
671aa708
NN
7486
7487
7488
7489
7490
7491# Miscellanea: directories, flags, etc.
7492
7493
7494
7495
7496
7497
7498
d89f0ad6 7499
23f6b2f9 7500# Build module lists & subconfigure args.
671aa708
NN
7501
7502
7503
2abefe3d
PB
7504# Host module lists & subconfigure args.
7505
7506
7507
aae29963 7508
2abefe3d
PB
7509# Target module lists & subconfigure args.
7510
7511
7512
7513# Build tools.
7514
7515
7516
0999159b
PB
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
632e2a07 7531
2abefe3d
PB
7532# Generate default definitions for YACC, M4, LEX and other programs that run
7533# on the build machine. These are used if the Makefile can't locate these
7534# programs in objdir.
7535MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7536
7537for ac_prog in 'bison -y' byacc yacc
7538do
1c710c3c 7539 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7540set dummy $ac_prog; ac_word=$2
5213506e
RW
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542$as_echo_n "checking for $ac_word... " >&6; }
7543if test "${ac_cv_prog_YACC+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
2abefe3d
PB
7545else
7546 if test -n "$YACC"; then
7547 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7548else
1c710c3c
DJ
7549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550for as_dir in $PATH
7551do
7552 IFS=$as_save_IFS
7553 test -z "$as_dir" && as_dir=.
5213506e
RW
7554 for ac_exec_ext in '' $ac_executable_extensions; do
7555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7556 ac_cv_prog_YACC="$ac_prog"
5213506e 7557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7558 break 2
7559 fi
7560done
5213506e
RW
7561 done
7562IFS=$as_save_IFS
1c710c3c 7563
2abefe3d
PB
7564fi
7565fi
1c710c3c 7566YACC=$ac_cv_prog_YACC
2abefe3d 7567if test -n "$YACC"; then
5213506e
RW
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7569$as_echo "$YACC" >&6; }
2abefe3d 7570else
5213506e
RW
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572$as_echo "no" >&6; }
2abefe3d
PB
7573fi
7574
5213506e 7575
1c710c3c 7576 test -n "$YACC" && break
2abefe3d
PB
7577done
7578test -n "$YACC" || YACC="$MISSING bison -y"
7579
7580case " $build_configdirs " in
7581 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7582 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7583esac
7584
7585for ac_prog in bison
7586do
1c710c3c 7587 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7588set dummy $ac_prog; ac_word=$2
5213506e
RW
7589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590$as_echo_n "checking for $ac_word... " >&6; }
7591if test "${ac_cv_prog_BISON+set}" = set; then :
7592 $as_echo_n "(cached) " >&6
2abefe3d
PB
7593else
7594 if test -n "$BISON"; then
7595 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7596else
1c710c3c
DJ
7597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598for as_dir in $PATH
7599do
7600 IFS=$as_save_IFS
7601 test -z "$as_dir" && as_dir=.
5213506e
RW
7602 for ac_exec_ext in '' $ac_executable_extensions; do
7603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7604 ac_cv_prog_BISON="$ac_prog"
5213506e 7605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7606 break 2
7607 fi
7608done
5213506e
RW
7609 done
7610IFS=$as_save_IFS
1c710c3c 7611
2abefe3d
PB
7612fi
7613fi
1c710c3c 7614BISON=$ac_cv_prog_BISON
2abefe3d 7615if test -n "$BISON"; then
5213506e
RW
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7617$as_echo "$BISON" >&6; }
2abefe3d 7618else
5213506e
RW
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620$as_echo "no" >&6; }
2abefe3d
PB
7621fi
7622
5213506e 7623
1c710c3c 7624 test -n "$BISON" && break
2abefe3d
PB
7625done
7626test -n "$BISON" || BISON="$MISSING bison"
7627
7628case " $build_configdirs " in
7629 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7630esac
7631
7632for ac_prog in gm4 gnum4 m4
7633do
1c710c3c 7634 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7635set dummy $ac_prog; ac_word=$2
5213506e
RW
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7637$as_echo_n "checking for $ac_word... " >&6; }
7638if test "${ac_cv_prog_M4+set}" = set; then :
7639 $as_echo_n "(cached) " >&6
2abefe3d
PB
7640else
7641 if test -n "$M4"; then
7642 ac_cv_prog_M4="$M4" # Let the user override the test.
7643else
1c710c3c
DJ
7644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7645for as_dir in $PATH
7646do
7647 IFS=$as_save_IFS
7648 test -z "$as_dir" && as_dir=.
5213506e
RW
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7651 ac_cv_prog_M4="$ac_prog"
5213506e 7652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7653 break 2
7654 fi
7655done
5213506e
RW
7656 done
7657IFS=$as_save_IFS
1c710c3c 7658
2abefe3d
PB
7659fi
7660fi
1c710c3c 7661M4=$ac_cv_prog_M4
2abefe3d 7662if test -n "$M4"; then
5213506e
RW
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7664$as_echo "$M4" >&6; }
2abefe3d 7665else
5213506e
RW
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7667$as_echo "no" >&6; }
2abefe3d
PB
7668fi
7669
5213506e 7670
1c710c3c 7671 test -n "$M4" && break
2abefe3d
PB
7672done
7673test -n "$M4" || M4="$MISSING m4"
7674
7675case " $build_configdirs " in
7676 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7677esac
7678
7679for ac_prog in flex lex
7680do
1c710c3c 7681 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7682set dummy $ac_prog; ac_word=$2
5213506e
RW
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7684$as_echo_n "checking for $ac_word... " >&6; }
7685if test "${ac_cv_prog_LEX+set}" = set; then :
7686 $as_echo_n "(cached) " >&6
2abefe3d
PB
7687else
7688 if test -n "$LEX"; then
7689 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7690else
1c710c3c
DJ
7691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692for as_dir in $PATH
7693do
7694 IFS=$as_save_IFS
7695 test -z "$as_dir" && as_dir=.
5213506e
RW
7696 for ac_exec_ext in '' $ac_executable_extensions; do
7697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7698 ac_cv_prog_LEX="$ac_prog"
5213506e 7699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7700 break 2
7701 fi
7702done
5213506e
RW
7703 done
7704IFS=$as_save_IFS
1c710c3c 7705
2abefe3d
PB
7706fi
7707fi
1c710c3c 7708LEX=$ac_cv_prog_LEX
2abefe3d 7709if test -n "$LEX"; then
5213506e
RW
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7711$as_echo "$LEX" >&6; }
2abefe3d 7712else
5213506e
RW
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7714$as_echo "no" >&6; }
2abefe3d
PB
7715fi
7716
5213506e 7717
1c710c3c 7718 test -n "$LEX" && break
2abefe3d
PB
7719done
7720test -n "$LEX" || LEX="$MISSING flex"
7721
7722case " $build_configdirs " in
7723 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7724 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7725esac
7726
7727for ac_prog in flex
7728do
1c710c3c 7729 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7730set dummy $ac_prog; ac_word=$2
5213506e
RW
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7732$as_echo_n "checking for $ac_word... " >&6; }
7733if test "${ac_cv_prog_FLEX+set}" = set; then :
7734 $as_echo_n "(cached) " >&6
2abefe3d
PB
7735else
7736 if test -n "$FLEX"; then
7737 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7738else
1c710c3c
DJ
7739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740for as_dir in $PATH
7741do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
5213506e
RW
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7746 ac_cv_prog_FLEX="$ac_prog"
5213506e 7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7748 break 2
7749 fi
7750done
5213506e
RW
7751 done
7752IFS=$as_save_IFS
1c710c3c 7753
2abefe3d
PB
7754fi
7755fi
1c710c3c 7756FLEX=$ac_cv_prog_FLEX
2abefe3d 7757if test -n "$FLEX"; then
5213506e
RW
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7759$as_echo "$FLEX" >&6; }
2abefe3d 7760else
5213506e
RW
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762$as_echo "no" >&6; }
2abefe3d
PB
7763fi
7764
5213506e 7765
1c710c3c 7766 test -n "$FLEX" && break
2abefe3d
PB
7767done
7768test -n "$FLEX" || FLEX="$MISSING flex"
7769
7770case " $build_configdirs " in
7771 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7772esac
7773
7774for ac_prog in makeinfo
7775do
1c710c3c 7776 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7777set dummy $ac_prog; ac_word=$2
5213506e
RW
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7779$as_echo_n "checking for $ac_word... " >&6; }
7780if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7781 $as_echo_n "(cached) " >&6
2abefe3d
PB
7782else
7783 if test -n "$MAKEINFO"; then
7784 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7785else
1c710c3c
DJ
7786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7787for as_dir in $PATH
7788do
7789 IFS=$as_save_IFS
7790 test -z "$as_dir" && as_dir=.
5213506e
RW
7791 for ac_exec_ext in '' $ac_executable_extensions; do
7792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7793 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7795 break 2
7796 fi
7797done
5213506e
RW
7798 done
7799IFS=$as_save_IFS
1c710c3c 7800
2abefe3d
PB
7801fi
7802fi
1c710c3c 7803MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7804if test -n "$MAKEINFO"; then
5213506e
RW
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7806$as_echo "$MAKEINFO" >&6; }
2abefe3d 7807else
5213506e
RW
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809$as_echo "no" >&6; }
2abefe3d
PB
7810fi
7811
5213506e 7812
1c710c3c 7813 test -n "$MAKEINFO" && break
2abefe3d
PB
7814done
7815test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7816
7817case " $build_configdirs " in
7818 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7819 *)
7820
d18ff35a 7821 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7822 # higher, else we use the "missing" dummy.
7823 if ${MAKEINFO} --version \
d18ff35a 7824 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7825 :
7826 else
7827 MAKEINFO="$MISSING makeinfo"
7828 fi
7829 ;;
7830
7831esac
671aa708 7832
2abefe3d 7833# FIXME: expect and dejagnu may become build tools?
671aa708 7834
2abefe3d
PB
7835for ac_prog in expect
7836do
1c710c3c 7837 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7838set dummy $ac_prog; ac_word=$2
5213506e
RW
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840$as_echo_n "checking for $ac_word... " >&6; }
7841if test "${ac_cv_prog_EXPECT+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
2abefe3d
PB
7843else
7844 if test -n "$EXPECT"; then
7845 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7846else
1c710c3c
DJ
7847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7848for as_dir in $PATH
7849do
7850 IFS=$as_save_IFS
7851 test -z "$as_dir" && as_dir=.
5213506e
RW
7852 for ac_exec_ext in '' $ac_executable_extensions; do
7853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7854 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7856 break 2
7857 fi
7858done
5213506e
RW
7859 done
7860IFS=$as_save_IFS
1c710c3c 7861
2abefe3d
PB
7862fi
7863fi
1c710c3c 7864EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7865if test -n "$EXPECT"; then
5213506e
RW
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7867$as_echo "$EXPECT" >&6; }
2abefe3d 7868else
5213506e
RW
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870$as_echo "no" >&6; }
2abefe3d 7871fi
671aa708 7872
5213506e 7873
1c710c3c 7874 test -n "$EXPECT" && break
2abefe3d
PB
7875done
7876test -n "$EXPECT" || EXPECT="expect"
671aa708 7877
2abefe3d
PB
7878case " $configdirs " in
7879 *" expect "*)
7880 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7881 ;;
7882esac
671aa708 7883
2abefe3d
PB
7884for ac_prog in runtest
7885do
1c710c3c 7886 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7887set dummy $ac_prog; ac_word=$2
5213506e
RW
7888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889$as_echo_n "checking for $ac_word... " >&6; }
7890if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
2abefe3d
PB
7892else
7893 if test -n "$RUNTEST"; then
7894 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7895else
1c710c3c
DJ
7896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897for as_dir in $PATH
7898do
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
5213506e
RW
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7903 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7905 break 2
7906 fi
7907done
5213506e
RW
7908 done
7909IFS=$as_save_IFS
1c710c3c 7910
2abefe3d
PB
7911fi
7912fi
1c710c3c 7913RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7914if test -n "$RUNTEST"; then
5213506e
RW
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7916$as_echo "$RUNTEST" >&6; }
2abefe3d 7917else
5213506e
RW
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919$as_echo "no" >&6; }
2abefe3d 7920fi
671aa708 7921
5213506e 7922
1c710c3c 7923 test -n "$RUNTEST" && break
2abefe3d
PB
7924done
7925test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7926
2abefe3d
PB
7927case " $configdirs " in
7928 *" dejagnu "*)
c394e891 7929 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7930 ;;
7931esac
671aa708
NN
7932
7933
671aa708 7934# Host tools.
ca9f4b81
AO
7935ncn_tool_prefix=
7936test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7937ncn_target_tool_prefix=
7938test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7939
278a7a38
AO
7940
7941
7942if test -n "$AR"; then
7943 ac_cv_prog_AR=$AR
7944elif test -n "$ac_cv_prog_AR"; then
7945 AR=$ac_cv_prog_AR
7946fi
7947
7948if test -n "$ac_cv_prog_AR"; then
7949 for ncn_progname in ar; do
7950 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7951set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953$as_echo_n "checking for $ac_word... " >&6; }
7954if test "${ac_cv_prog_AR+set}" = set; then :
7955 $as_echo_n "(cached) " >&6
278a7a38
AO
7956else
7957 if test -n "$AR"; then
7958 ac_cv_prog_AR="$AR" # Let the user override the test.
7959else
7960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961for as_dir in $PATH
7962do
7963 IFS=$as_save_IFS
7964 test -z "$as_dir" && as_dir=.
5213506e
RW
7965 for ac_exec_ext in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7967 ac_cv_prog_AR="${ncn_progname}"
5213506e 7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7969 break 2
7970 fi
7971done
5213506e
RW
7972 done
7973IFS=$as_save_IFS
278a7a38
AO
7974
7975fi
7976fi
7977AR=$ac_cv_prog_AR
7978if test -n "$AR"; then
5213506e
RW
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7980$as_echo "$AR" >&6; }
278a7a38 7981else
5213506e
RW
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983$as_echo "no" >&6; }
278a7a38
AO
7984fi
7985
5213506e 7986
278a7a38
AO
7987 done
7988fi
7989
7990for ncn_progname in ar; do
2693c0b0
PB
7991 if test -n "$ncn_tool_prefix"; then
7992 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7993set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7995$as_echo_n "checking for $ac_word... " >&6; }
7996if test "${ac_cv_prog_AR+set}" = set; then :
7997 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7998else
7999 if test -n "$AR"; then
8000 ac_cv_prog_AR="$AR" # Let the user override the test.
8001else
1c710c3c
DJ
8002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003for as_dir in $PATH
8004do
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
5213506e
RW
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8009 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8011 break 2
8012 fi
8013done
5213506e
RW
8014 done
8015IFS=$as_save_IFS
1c710c3c 8016
ca9f4b81
AO
8017fi
8018fi
1c710c3c 8019AR=$ac_cv_prog_AR
ca9f4b81 8020if test -n "$AR"; then
5213506e
RW
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8022$as_echo "$AR" >&6; }
ca9f4b81 8023else
5213506e
RW
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025$as_echo "no" >&6; }
ca9f4b81
AO
8026fi
8027
5213506e 8028
2693c0b0
PB
8029 fi
8030 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8032set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034$as_echo_n "checking for $ac_word... " >&6; }
8035if test "${ac_cv_prog_AR+set}" = set; then :
8036 $as_echo_n "(cached) " >&6
ca9f4b81 8037else
2693c0b0 8038 if test -n "$AR"; then
af71363e
AS
8039 ac_cv_prog_AR="$AR" # Let the user override the test.
8040else
1c710c3c
DJ
8041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042for as_dir in $PATH
8043do
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
5213506e
RW
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8048 ac_cv_prog_AR="${ncn_progname}"
5213506e 8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8050 break 2
8051 fi
8052done
5213506e
RW
8053 done
8054IFS=$as_save_IFS
1c710c3c 8055
ca9f4b81
AO
8056fi
8057fi
1c710c3c 8058AR=$ac_cv_prog_AR
2693c0b0 8059if test -n "$AR"; then
5213506e
RW
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8061$as_echo "$AR" >&6; }
ca9f4b81 8062else
5213506e
RW
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064$as_echo "no" >&6; }
ca9f4b81 8065fi
1c710c3c 8066
5213506e 8067
2693c0b0
PB
8068 fi
8069 test -n "$ac_cv_prog_AR" && break
8070done
8071
8072if test -z "$ac_cv_prog_AR" ; then
8073 set dummy ar
8074 if test $build = $host ; then
8075 AR="$2"
ca9f4b81 8076 else
2693c0b0 8077 AR="${ncn_tool_prefix}$2"
ca9f4b81 8078 fi
ca9f4b81
AO
8079fi
8080
278a7a38
AO
8081
8082
8083if test -n "$AS"; then
8084 ac_cv_prog_AS=$AS
8085elif test -n "$ac_cv_prog_AS"; then
8086 AS=$ac_cv_prog_AS
8087fi
8088
8089if test -n "$ac_cv_prog_AS"; then
8090 for ncn_progname in as; do
8091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8092set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094$as_echo_n "checking for $ac_word... " >&6; }
8095if test "${ac_cv_prog_AS+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
278a7a38
AO
8097else
8098 if test -n "$AS"; then
8099 ac_cv_prog_AS="$AS" # Let the user override the test.
8100else
8101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8102for as_dir in $PATH
8103do
8104 IFS=$as_save_IFS
8105 test -z "$as_dir" && as_dir=.
5213506e
RW
8106 for ac_exec_ext in '' $ac_executable_extensions; do
8107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8108 ac_cv_prog_AS="${ncn_progname}"
5213506e 8109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8110 break 2
8111 fi
8112done
5213506e
RW
8113 done
8114IFS=$as_save_IFS
278a7a38
AO
8115
8116fi
8117fi
8118AS=$ac_cv_prog_AS
8119if test -n "$AS"; then
5213506e
RW
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8121$as_echo "$AS" >&6; }
278a7a38 8122else
5213506e
RW
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8124$as_echo "no" >&6; }
278a7a38
AO
8125fi
8126
5213506e 8127
278a7a38
AO
8128 done
8129fi
8130
8131for ncn_progname in as; do
2693c0b0
PB
8132 if test -n "$ncn_tool_prefix"; then
8133 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8134set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136$as_echo_n "checking for $ac_word... " >&6; }
8137if test "${ac_cv_prog_AS+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8139else
8140 if test -n "$AS"; then
8141 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8142else
1c710c3c
DJ
8143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144for as_dir in $PATH
8145do
8146 IFS=$as_save_IFS
8147 test -z "$as_dir" && as_dir=.
5213506e
RW
8148 for ac_exec_ext in '' $ac_executable_extensions; do
8149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8150 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8152 break 2
8153 fi
8154done
5213506e
RW
8155 done
8156IFS=$as_save_IFS
1c710c3c 8157
ca9f4b81
AO
8158fi
8159fi
1c710c3c 8160AS=$ac_cv_prog_AS
ca9f4b81 8161if test -n "$AS"; then
5213506e
RW
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8163$as_echo "$AS" >&6; }
ca9f4b81 8164else
5213506e
RW
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8166$as_echo "no" >&6; }
ca9f4b81
AO
8167fi
8168
5213506e 8169
2693c0b0
PB
8170 fi
8171 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8172 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8173set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175$as_echo_n "checking for $ac_word... " >&6; }
8176if test "${ac_cv_prog_AS+set}" = set; then :
8177 $as_echo_n "(cached) " >&6
ca9f4b81 8178else
2693c0b0
PB
8179 if test -n "$AS"; then
8180 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8181else
1c710c3c
DJ
8182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8183for as_dir in $PATH
8184do
8185 IFS=$as_save_IFS
8186 test -z "$as_dir" && as_dir=.
5213506e
RW
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8189 ac_cv_prog_AS="${ncn_progname}"
5213506e 8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8191 break 2
8192 fi
8193done
5213506e
RW
8194 done
8195IFS=$as_save_IFS
1c710c3c 8196
ca9f4b81
AO
8197fi
8198fi
1c710c3c 8199AS=$ac_cv_prog_AS
2693c0b0 8200if test -n "$AS"; then
5213506e
RW
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8202$as_echo "$AS" >&6; }
ca9f4b81 8203else
5213506e
RW
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205$as_echo "no" >&6; }
ca9f4b81 8206fi
1c710c3c 8207
5213506e 8208
2693c0b0
PB
8209 fi
8210 test -n "$ac_cv_prog_AS" && break
8211done
8212
8213if test -z "$ac_cv_prog_AS" ; then
8214 set dummy as
8215 if test $build = $host ; then
8216 AS="$2"
ca9f4b81 8217 else
2693c0b0 8218 AS="${ncn_tool_prefix}$2"
ca9f4b81 8219 fi
ca9f4b81
AO
8220fi
8221
278a7a38
AO
8222
8223
8224if test -n "$DLLTOOL"; then
8225 ac_cv_prog_DLLTOOL=$DLLTOOL
8226elif test -n "$ac_cv_prog_DLLTOOL"; then
8227 DLLTOOL=$ac_cv_prog_DLLTOOL
8228fi
8229
8230if test -n "$ac_cv_prog_DLLTOOL"; then
8231 for ncn_progname in dlltool; do
8232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8233set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235$as_echo_n "checking for $ac_word... " >&6; }
8236if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
278a7a38
AO
8238else
8239 if test -n "$DLLTOOL"; then
8240 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8241else
8242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243for as_dir in $PATH
8244do
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
5213506e
RW
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8249 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8251 break 2
8252 fi
8253done
5213506e
RW
8254 done
8255IFS=$as_save_IFS
278a7a38
AO
8256
8257fi
8258fi
8259DLLTOOL=$ac_cv_prog_DLLTOOL
8260if test -n "$DLLTOOL"; then
5213506e
RW
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8262$as_echo "$DLLTOOL" >&6; }
278a7a38 8263else
5213506e
RW
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265$as_echo "no" >&6; }
278a7a38
AO
8266fi
8267
5213506e 8268
278a7a38
AO
8269 done
8270fi
8271
8272for ncn_progname in dlltool; do
2693c0b0
PB
8273 if test -n "$ncn_tool_prefix"; then
8274 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8275set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277$as_echo_n "checking for $ac_word... " >&6; }
8278if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8280else
8281 if test -n "$DLLTOOL"; then
8282 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8283else
1c710c3c
DJ
8284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8285for as_dir in $PATH
8286do
8287 IFS=$as_save_IFS
8288 test -z "$as_dir" && as_dir=.
5213506e
RW
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8291 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8293 break 2
8294 fi
8295done
5213506e
RW
8296 done
8297IFS=$as_save_IFS
1c710c3c 8298
ca9f4b81
AO
8299fi
8300fi
1c710c3c 8301DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8302if test -n "$DLLTOOL"; then
5213506e
RW
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8304$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8305else
5213506e
RW
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8307$as_echo "no" >&6; }
ca9f4b81
AO
8308fi
8309
5213506e 8310
2693c0b0
PB
8311 fi
8312 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8314set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316$as_echo_n "checking for $ac_word... " >&6; }
8317if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8318 $as_echo_n "(cached) " >&6
ca9f4b81 8319else
2693c0b0
PB
8320 if test -n "$DLLTOOL"; then
8321 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8322else
1c710c3c
DJ
8323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8324for as_dir in $PATH
8325do
8326 IFS=$as_save_IFS
8327 test -z "$as_dir" && as_dir=.
5213506e
RW
8328 for ac_exec_ext in '' $ac_executable_extensions; do
8329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8330 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8332 break 2
8333 fi
8334done
5213506e
RW
8335 done
8336IFS=$as_save_IFS
1c710c3c 8337
ca9f4b81
AO
8338fi
8339fi
1c710c3c 8340DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8341if test -n "$DLLTOOL"; then
5213506e
RW
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8343$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8344else
5213506e
RW
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8346$as_echo "no" >&6; }
ca9f4b81 8347fi
1c710c3c 8348
5213506e 8349
2693c0b0
PB
8350 fi
8351 test -n "$ac_cv_prog_DLLTOOL" && break
8352done
8353
8354if test -z "$ac_cv_prog_DLLTOOL" ; then
8355 set dummy dlltool
8356 if test $build = $host ; then
8357 DLLTOOL="$2"
ca9f4b81 8358 else
2693c0b0 8359 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8360 fi
ca9f4b81
AO
8361fi
8362
278a7a38
AO
8363
8364
8365if test -n "$LD"; then
8366 ac_cv_prog_LD=$LD
8367elif test -n "$ac_cv_prog_LD"; then
8368 LD=$ac_cv_prog_LD
8369fi
8370
8371if test -n "$ac_cv_prog_LD"; then
8372 for ncn_progname in ld; do
8373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8374set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376$as_echo_n "checking for $ac_word... " >&6; }
8377if test "${ac_cv_prog_LD+set}" = set; then :
8378 $as_echo_n "(cached) " >&6
278a7a38
AO
8379else
8380 if test -n "$LD"; then
8381 ac_cv_prog_LD="$LD" # Let the user override the test.
8382else
8383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384for as_dir in $PATH
8385do
8386 IFS=$as_save_IFS
8387 test -z "$as_dir" && as_dir=.
5213506e
RW
8388 for ac_exec_ext in '' $ac_executable_extensions; do
8389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8390 ac_cv_prog_LD="${ncn_progname}"
5213506e 8391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8392 break 2
8393 fi
8394done
5213506e
RW
8395 done
8396IFS=$as_save_IFS
278a7a38
AO
8397
8398fi
8399fi
8400LD=$ac_cv_prog_LD
8401if test -n "$LD"; then
5213506e
RW
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8403$as_echo "$LD" >&6; }
278a7a38 8404else
5213506e
RW
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406$as_echo "no" >&6; }
278a7a38
AO
8407fi
8408
5213506e 8409
278a7a38
AO
8410 done
8411fi
8412
8413for ncn_progname in ld; do
2693c0b0
PB
8414 if test -n "$ncn_tool_prefix"; then
8415 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8416set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8418$as_echo_n "checking for $ac_word... " >&6; }
8419if test "${ac_cv_prog_LD+set}" = set; then :
8420 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8421else
8422 if test -n "$LD"; then
8423 ac_cv_prog_LD="$LD" # Let the user override the test.
8424else
1c710c3c
DJ
8425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426for as_dir in $PATH
8427do
8428 IFS=$as_save_IFS
8429 test -z "$as_dir" && as_dir=.
5213506e
RW
8430 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8432 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8434 break 2
8435 fi
8436done
5213506e
RW
8437 done
8438IFS=$as_save_IFS
1c710c3c 8439
ca9f4b81
AO
8440fi
8441fi
1c710c3c 8442LD=$ac_cv_prog_LD
ca9f4b81 8443if test -n "$LD"; then
5213506e
RW
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8445$as_echo "$LD" >&6; }
ca9f4b81 8446else
5213506e
RW
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448$as_echo "no" >&6; }
ca9f4b81
AO
8449fi
8450
5213506e 8451
2693c0b0
PB
8452 fi
8453 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8455set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457$as_echo_n "checking for $ac_word... " >&6; }
8458if test "${ac_cv_prog_LD+set}" = set; then :
8459 $as_echo_n "(cached) " >&6
ca9f4b81 8460else
2693c0b0
PB
8461 if test -n "$LD"; then
8462 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8463else
1c710c3c
DJ
8464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465for as_dir in $PATH
8466do
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
5213506e
RW
8469 for ac_exec_ext in '' $ac_executable_extensions; do
8470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8471 ac_cv_prog_LD="${ncn_progname}"
5213506e 8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8473 break 2
8474 fi
8475done
5213506e
RW
8476 done
8477IFS=$as_save_IFS
1c710c3c 8478
ca9f4b81
AO
8479fi
8480fi
1c710c3c 8481LD=$ac_cv_prog_LD
2693c0b0 8482if test -n "$LD"; then
5213506e
RW
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8484$as_echo "$LD" >&6; }
ca9f4b81 8485else
5213506e
RW
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487$as_echo "no" >&6; }
ca9f4b81 8488fi
1c710c3c 8489
5213506e 8490
2693c0b0
PB
8491 fi
8492 test -n "$ac_cv_prog_LD" && break
8493done
8494
8495if test -z "$ac_cv_prog_LD" ; then
8496 set dummy ld
8497 if test $build = $host ; then
8498 LD="$2"
ca9f4b81 8499 else
2693c0b0 8500 LD="${ncn_tool_prefix}$2"
ca9f4b81 8501 fi
ca9f4b81
AO
8502fi
8503
278a7a38
AO
8504
8505
8506if test -n "$LIPO"; then
8507 ac_cv_prog_LIPO=$LIPO
8508elif test -n "$ac_cv_prog_LIPO"; then
8509 LIPO=$ac_cv_prog_LIPO
8510fi
8511
8512if test -n "$ac_cv_prog_LIPO"; then
8513 for ncn_progname in lipo; do
8514 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8515set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517$as_echo_n "checking for $ac_word... " >&6; }
8518if test "${ac_cv_prog_LIPO+set}" = set; then :
8519 $as_echo_n "(cached) " >&6
278a7a38
AO
8520else
8521 if test -n "$LIPO"; then
8522 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8523else
8524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525for as_dir in $PATH
8526do
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
5213506e
RW
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8531 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8533 break 2
8534 fi
8535done
5213506e
RW
8536 done
8537IFS=$as_save_IFS
278a7a38
AO
8538
8539fi
8540fi
8541LIPO=$ac_cv_prog_LIPO
8542if test -n "$LIPO"; then
5213506e
RW
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8544$as_echo "$LIPO" >&6; }
278a7a38 8545else
5213506e
RW
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547$as_echo "no" >&6; }
278a7a38
AO
8548fi
8549
5213506e 8550
278a7a38
AO
8551 done
8552fi
8553
8554for ncn_progname in lipo; do
2abefe3d
PB
8555 if test -n "$ncn_tool_prefix"; then
8556 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8557set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559$as_echo_n "checking for $ac_word... " >&6; }
8560if test "${ac_cv_prog_LIPO+set}" = set; then :
8561 $as_echo_n "(cached) " >&6
2abefe3d
PB
8562else
8563 if test -n "$LIPO"; then
8564 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8565else
1c710c3c
DJ
8566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8567for as_dir in $PATH
8568do
8569 IFS=$as_save_IFS
8570 test -z "$as_dir" && as_dir=.
5213506e
RW
8571 for ac_exec_ext in '' $ac_executable_extensions; do
8572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8573 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8575 break 2
8576 fi
8577done
5213506e
RW
8578 done
8579IFS=$as_save_IFS
1c710c3c 8580
2abefe3d
PB
8581fi
8582fi
1c710c3c 8583LIPO=$ac_cv_prog_LIPO
2abefe3d 8584if test -n "$LIPO"; then
5213506e
RW
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8586$as_echo "$LIPO" >&6; }
2abefe3d 8587else
5213506e
RW
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8589$as_echo "no" >&6; }
2abefe3d
PB
8590fi
8591
5213506e 8592
2abefe3d
PB
8593 fi
8594 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8595 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8596set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598$as_echo_n "checking for $ac_word... " >&6; }
8599if test "${ac_cv_prog_LIPO+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
2abefe3d
PB
8601else
8602 if test -n "$LIPO"; then
8603 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8604else
1c710c3c
DJ
8605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606for as_dir in $PATH
8607do
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
5213506e
RW
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8612 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8614 break 2
8615 fi
8616done
5213506e
RW
8617 done
8618IFS=$as_save_IFS
1c710c3c 8619
2abefe3d
PB
8620fi
8621fi
1c710c3c 8622LIPO=$ac_cv_prog_LIPO
2abefe3d 8623if test -n "$LIPO"; then
5213506e
RW
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8625$as_echo "$LIPO" >&6; }
2abefe3d 8626else
5213506e
RW
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628$as_echo "no" >&6; }
2abefe3d 8629fi
1c710c3c 8630
5213506e 8631
2abefe3d
PB
8632 fi
8633 test -n "$ac_cv_prog_LIPO" && break
8634done
8635
8636if test -z "$ac_cv_prog_LIPO" ; then
8637 set dummy lipo
8638 if test $build = $host ; then
8639 LIPO="$2"
8640 else
8641 LIPO="${ncn_tool_prefix}$2"
8642 fi
8643fi
8644
278a7a38
AO
8645
8646
8647if test -n "$NM"; then
8648 ac_cv_prog_NM=$NM
8649elif test -n "$ac_cv_prog_NM"; then
8650 NM=$ac_cv_prog_NM
8651fi
8652
8653if test -n "$ac_cv_prog_NM"; then
8654 for ncn_progname in nm; do
8655 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8656set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8658$as_echo_n "checking for $ac_word... " >&6; }
8659if test "${ac_cv_prog_NM+set}" = set; then :
8660 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8661else
8662 if test -n "$NM"; then
8663 ac_cv_prog_NM="$NM" # Let the user override the test.
8664else
1c710c3c
DJ
8665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666for as_dir in $PATH
8667do
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
5213506e
RW
8670 for ac_exec_ext in '' $ac_executable_extensions; do
8671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8672 ac_cv_prog_NM="${ncn_progname}"
5213506e 8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8674 break 2
8675 fi
8676done
5213506e
RW
8677 done
8678IFS=$as_save_IFS
1c710c3c 8679
ca9f4b81
AO
8680fi
8681fi
1c710c3c 8682NM=$ac_cv_prog_NM
ca9f4b81 8683if test -n "$NM"; then
5213506e
RW
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8685$as_echo "$NM" >&6; }
ca9f4b81 8686else
5213506e
RW
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688$as_echo "no" >&6; }
ca9f4b81
AO
8689fi
8690
5213506e 8691
278a7a38
AO
8692 done
8693fi
8694
8695for ncn_progname in nm; do
8696 if test -n "$ncn_tool_prefix"; then
8697 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8698set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8700$as_echo_n "checking for $ac_word... " >&6; }
8701if test "${ac_cv_prog_NM+set}" = set; then :
8702 $as_echo_n "(cached) " >&6
ca9f4b81 8703else
2693c0b0
PB
8704 if test -n "$NM"; then
8705 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8706else
1c710c3c
DJ
8707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708for as_dir in $PATH
8709do
8710 IFS=$as_save_IFS
8711 test -z "$as_dir" && as_dir=.
5213506e
RW
8712 for ac_exec_ext in '' $ac_executable_extensions; do
8713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8714 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8716 break 2
8717 fi
8718done
5213506e
RW
8719 done
8720IFS=$as_save_IFS
1c710c3c 8721
ca9f4b81
AO
8722fi
8723fi
1c710c3c 8724NM=$ac_cv_prog_NM
2693c0b0 8725if test -n "$NM"; then
5213506e
RW
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8727$as_echo "$NM" >&6; }
ca9f4b81 8728else
5213506e
RW
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730$as_echo "no" >&6; }
ca9f4b81 8731fi
1c710c3c 8732
5213506e 8733
2693c0b0 8734 fi
278a7a38
AO
8735 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8736 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8737set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739$as_echo_n "checking for $ac_word... " >&6; }
8740if test "${ac_cv_prog_NM+set}" = set; then :
8741 $as_echo_n "(cached) " >&6
278a7a38
AO
8742else
8743 if test -n "$NM"; then
8744 ac_cv_prog_NM="$NM" # Let the user override the test.
8745else
8746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747for as_dir in $PATH
8748do
8749 IFS=$as_save_IFS
8750 test -z "$as_dir" && as_dir=.
5213506e
RW
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8753 ac_cv_prog_NM="${ncn_progname}"
5213506e 8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8755 break 2
8756 fi
8757done
5213506e
RW
8758 done
8759IFS=$as_save_IFS
278a7a38
AO
8760
8761fi
8762fi
8763NM=$ac_cv_prog_NM
8764if test -n "$NM"; then
5213506e
RW
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8766$as_echo "$NM" >&6; }
278a7a38 8767else
5213506e
RW
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769$as_echo "no" >&6; }
278a7a38
AO
8770fi
8771
5213506e 8772
278a7a38
AO
8773 fi
8774 test -n "$ac_cv_prog_NM" && break
8775done
8776
8777if test -z "$ac_cv_prog_NM" ; then
8778 set dummy nm
8779 if test $build = $host ; then
8780 NM="$2"
8781 else
8782 NM="${ncn_tool_prefix}$2"
8783 fi
8784fi
8785
8786
8787
8788if test -n "$RANLIB"; then
8789 ac_cv_prog_RANLIB=$RANLIB
8790elif test -n "$ac_cv_prog_RANLIB"; then
8791 RANLIB=$ac_cv_prog_RANLIB
8792fi
8793
8794if test -n "$ac_cv_prog_RANLIB"; then
8795 for ncn_progname in ranlib; do
8796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8797set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799$as_echo_n "checking for $ac_word... " >&6; }
8800if test "${ac_cv_prog_RANLIB+set}" = set; then :
8801 $as_echo_n "(cached) " >&6
278a7a38
AO
8802else
8803 if test -n "$RANLIB"; then
8804 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8805else
8806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807for as_dir in $PATH
8808do
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
5213506e
RW
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8813 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8815 break 2
8816 fi
8817done
5213506e
RW
8818 done
8819IFS=$as_save_IFS
278a7a38
AO
8820
8821fi
8822fi
8823RANLIB=$ac_cv_prog_RANLIB
8824if test -n "$RANLIB"; then
5213506e
RW
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8826$as_echo "$RANLIB" >&6; }
278a7a38 8827else
5213506e
RW
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829$as_echo "no" >&6; }
278a7a38
AO
8830fi
8831
5213506e 8832
278a7a38
AO
8833 done
8834fi
ca9f4b81 8835
278a7a38 8836for ncn_progname in ranlib; do
2693c0b0
PB
8837 if test -n "$ncn_tool_prefix"; then
8838 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8839set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841$as_echo_n "checking for $ac_word... " >&6; }
8842if test "${ac_cv_prog_RANLIB+set}" = set; then :
8843 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8844else
8845 if test -n "$RANLIB"; then
8846 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8847else
1c710c3c
DJ
8848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849for as_dir in $PATH
8850do
8851 IFS=$as_save_IFS
8852 test -z "$as_dir" && as_dir=.
5213506e
RW
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8855 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8857 break 2
8858 fi
8859done
5213506e
RW
8860 done
8861IFS=$as_save_IFS
1c710c3c 8862
ca9f4b81
AO
8863fi
8864fi
1c710c3c 8865RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8866if test -n "$RANLIB"; then
5213506e
RW
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8868$as_echo "$RANLIB" >&6; }
ca9f4b81 8869else
5213506e
RW
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871$as_echo "no" >&6; }
ca9f4b81
AO
8872fi
8873
5213506e 8874
2693c0b0
PB
8875 fi
8876 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8877 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8878set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880$as_echo_n "checking for $ac_word... " >&6; }
8881if test "${ac_cv_prog_RANLIB+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
ca9f4b81 8883else
2693c0b0
PB
8884 if test -n "$RANLIB"; then
8885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8886else
1c710c3c
DJ
8887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888for as_dir in $PATH
8889do
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
5213506e
RW
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8894 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8896 break 2
8897 fi
8898done
5213506e
RW
8899 done
8900IFS=$as_save_IFS
1c710c3c 8901
ca9f4b81
AO
8902fi
8903fi
1c710c3c 8904RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8905if test -n "$RANLIB"; then
5213506e
RW
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8907$as_echo "$RANLIB" >&6; }
ca9f4b81 8908else
5213506e
RW
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910$as_echo "no" >&6; }
ca9f4b81 8911fi
1c710c3c 8912
5213506e 8913
ca9f4b81 8914 fi
2693c0b0
PB
8915 test -n "$ac_cv_prog_RANLIB" && break
8916done
8917
8918if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8919 RANLIB="true"
ca9f4b81
AO
8920fi
8921
278a7a38
AO
8922
8923
8924if test -n "$STRIP"; then
8925 ac_cv_prog_STRIP=$STRIP
8926elif test -n "$ac_cv_prog_STRIP"; then
8927 STRIP=$ac_cv_prog_STRIP
8928fi
8929
8930if test -n "$ac_cv_prog_STRIP"; then
8931 for ncn_progname in strip; do
8932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8933set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935$as_echo_n "checking for $ac_word... " >&6; }
8936if test "${ac_cv_prog_STRIP+set}" = set; then :
8937 $as_echo_n "(cached) " >&6
278a7a38
AO
8938else
8939 if test -n "$STRIP"; then
8940 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8941else
8942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943for as_dir in $PATH
8944do
8945 IFS=$as_save_IFS
8946 test -z "$as_dir" && as_dir=.
5213506e
RW
8947 for ac_exec_ext in '' $ac_executable_extensions; do
8948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8949 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8951 break 2
8952 fi
8953done
5213506e
RW
8954 done
8955IFS=$as_save_IFS
278a7a38
AO
8956
8957fi
8958fi
8959STRIP=$ac_cv_prog_STRIP
8960if test -n "$STRIP"; then
5213506e
RW
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8962$as_echo "$STRIP" >&6; }
278a7a38 8963else
5213506e
RW
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965$as_echo "no" >&6; }
278a7a38
AO
8966fi
8967
5213506e 8968
278a7a38
AO
8969 done
8970fi
8971
8972for ncn_progname in strip; do
2abefe3d
PB
8973 if test -n "$ncn_tool_prefix"; then
8974 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8975set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977$as_echo_n "checking for $ac_word... " >&6; }
8978if test "${ac_cv_prog_STRIP+set}" = set; then :
8979 $as_echo_n "(cached) " >&6
2abefe3d
PB
8980else
8981 if test -n "$STRIP"; then
8982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8983else
1c710c3c
DJ
8984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985for as_dir in $PATH
8986do
8987 IFS=$as_save_IFS
8988 test -z "$as_dir" && as_dir=.
5213506e
RW
8989 for ac_exec_ext in '' $ac_executable_extensions; do
8990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8991 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 8992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8993 break 2
8994 fi
8995done
5213506e
RW
8996 done
8997IFS=$as_save_IFS
1c710c3c 8998
2abefe3d
PB
8999fi
9000fi
1c710c3c 9001STRIP=$ac_cv_prog_STRIP
2abefe3d 9002if test -n "$STRIP"; then
5213506e
RW
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9004$as_echo "$STRIP" >&6; }
2abefe3d 9005else
5213506e
RW
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007$as_echo "no" >&6; }
2abefe3d
PB
9008fi
9009
5213506e 9010
2abefe3d
PB
9011 fi
9012 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9013 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9014set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016$as_echo_n "checking for $ac_word... " >&6; }
9017if test "${ac_cv_prog_STRIP+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
2abefe3d
PB
9019else
9020 if test -n "$STRIP"; then
9021 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9022else
1c710c3c
DJ
9023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9024for as_dir in $PATH
9025do
9026 IFS=$as_save_IFS
9027 test -z "$as_dir" && as_dir=.
5213506e
RW
9028 for ac_exec_ext in '' $ac_executable_extensions; do
9029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9030 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9032 break 2
9033 fi
9034done
5213506e
RW
9035 done
9036IFS=$as_save_IFS
1c710c3c 9037
2abefe3d
PB
9038fi
9039fi
1c710c3c 9040STRIP=$ac_cv_prog_STRIP
2abefe3d 9041if test -n "$STRIP"; then
5213506e
RW
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9043$as_echo "$STRIP" >&6; }
2abefe3d 9044else
5213506e
RW
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9046$as_echo "no" >&6; }
2abefe3d 9047fi
1c710c3c 9048
5213506e 9049
2abefe3d
PB
9050 fi
9051 test -n "$ac_cv_prog_STRIP" && break
9052done
9053
9054if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9055 STRIP="true"
2abefe3d
PB
9056fi
9057
278a7a38
AO
9058
9059
9060if test -n "$WINDRES"; then
9061 ac_cv_prog_WINDRES=$WINDRES
9062elif test -n "$ac_cv_prog_WINDRES"; then
9063 WINDRES=$ac_cv_prog_WINDRES
9064fi
9065
9066if test -n "$ac_cv_prog_WINDRES"; then
9067 for ncn_progname in windres; do
9068 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9069set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9071$as_echo_n "checking for $ac_word... " >&6; }
9072if test "${ac_cv_prog_WINDRES+set}" = set; then :
9073 $as_echo_n "(cached) " >&6
278a7a38
AO
9074else
9075 if test -n "$WINDRES"; then
9076 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9077else
9078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079for as_dir in $PATH
9080do
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
5213506e
RW
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9085 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9087 break 2
9088 fi
9089done
5213506e
RW
9090 done
9091IFS=$as_save_IFS
278a7a38
AO
9092
9093fi
9094fi
9095WINDRES=$ac_cv_prog_WINDRES
9096if test -n "$WINDRES"; then
5213506e
RW
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9098$as_echo "$WINDRES" >&6; }
278a7a38 9099else
5213506e
RW
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9101$as_echo "no" >&6; }
278a7a38
AO
9102fi
9103
5213506e 9104
278a7a38
AO
9105 done
9106fi
9107
9108for ncn_progname in windres; do
2693c0b0
PB
9109 if test -n "$ncn_tool_prefix"; then
9110 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9111set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113$as_echo_n "checking for $ac_word... " >&6; }
9114if test "${ac_cv_prog_WINDRES+set}" = set; then :
9115 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9116else
9117 if test -n "$WINDRES"; then
9118 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9119else
1c710c3c
DJ
9120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121for as_dir in $PATH
9122do
9123 IFS=$as_save_IFS
9124 test -z "$as_dir" && as_dir=.
5213506e
RW
9125 for ac_exec_ext in '' $ac_executable_extensions; do
9126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9127 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9129 break 2
9130 fi
9131done
5213506e
RW
9132 done
9133IFS=$as_save_IFS
1c710c3c 9134
ca9f4b81
AO
9135fi
9136fi
1c710c3c 9137WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9138if test -n "$WINDRES"; then
5213506e
RW
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9140$as_echo "$WINDRES" >&6; }
ca9f4b81 9141else
5213506e
RW
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143$as_echo "no" >&6; }
ca9f4b81
AO
9144fi
9145
5213506e 9146
2693c0b0
PB
9147 fi
9148 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9150set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9152$as_echo_n "checking for $ac_word... " >&6; }
9153if test "${ac_cv_prog_WINDRES+set}" = set; then :
9154 $as_echo_n "(cached) " >&6
ca9f4b81 9155else
2693c0b0
PB
9156 if test -n "$WINDRES"; then
9157 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9158else
1c710c3c
DJ
9159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160for as_dir in $PATH
9161do
9162 IFS=$as_save_IFS
9163 test -z "$as_dir" && as_dir=.
5213506e
RW
9164 for ac_exec_ext in '' $ac_executable_extensions; do
9165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9166 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9168 break 2
9169 fi
9170done
5213506e
RW
9171 done
9172IFS=$as_save_IFS
1c710c3c 9173
ca9f4b81
AO
9174fi
9175fi
1c710c3c 9176WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9177if test -n "$WINDRES"; then
5213506e
RW
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9179$as_echo "$WINDRES" >&6; }
ca9f4b81 9180else
5213506e
RW
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182$as_echo "no" >&6; }
ca9f4b81 9183fi
1c710c3c 9184
5213506e 9185
2693c0b0
PB
9186 fi
9187 test -n "$ac_cv_prog_WINDRES" && break
9188done
9189
9190if test -z "$ac_cv_prog_WINDRES" ; then
9191 set dummy windres
9192 if test $build = $host ; then
9193 WINDRES="$2"
ca9f4b81 9194 else
2693c0b0 9195 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9196 fi
ca9f4b81
AO
9197fi
9198
278a7a38
AO
9199
9200
901119ae
KT
9201if test -n "$WINDMC"; then
9202 ac_cv_prog_WINDMC=$WINDMC
9203elif test -n "$ac_cv_prog_WINDMC"; then
9204 WINDMC=$ac_cv_prog_WINDMC
9205fi
9206
9207if test -n "$ac_cv_prog_WINDMC"; then
9208 for ncn_progname in windmc; do
9209 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9210set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9212$as_echo_n "checking for $ac_word... " >&6; }
9213if test "${ac_cv_prog_WINDMC+set}" = set; then :
9214 $as_echo_n "(cached) " >&6
901119ae
KT
9215else
9216 if test -n "$WINDMC"; then
9217 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9218else
9219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9220for as_dir in $PATH
9221do
9222 IFS=$as_save_IFS
9223 test -z "$as_dir" && as_dir=.
5213506e
RW
9224 for ac_exec_ext in '' $ac_executable_extensions; do
9225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9226 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9228 break 2
9229 fi
9230done
5213506e
RW
9231 done
9232IFS=$as_save_IFS
901119ae
KT
9233
9234fi
9235fi
9236WINDMC=$ac_cv_prog_WINDMC
9237if test -n "$WINDMC"; then
5213506e
RW
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9239$as_echo "$WINDMC" >&6; }
901119ae 9240else
5213506e
RW
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242$as_echo "no" >&6; }
901119ae
KT
9243fi
9244
5213506e 9245
901119ae
KT
9246 done
9247fi
9248
9249for ncn_progname in windmc; do
9250 if test -n "$ncn_tool_prefix"; then
9251 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9252set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254$as_echo_n "checking for $ac_word... " >&6; }
9255if test "${ac_cv_prog_WINDMC+set}" = set; then :
9256 $as_echo_n "(cached) " >&6
901119ae
KT
9257else
9258 if test -n "$WINDMC"; then
9259 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9260else
9261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9262for as_dir in $PATH
9263do
9264 IFS=$as_save_IFS
9265 test -z "$as_dir" && as_dir=.
5213506e
RW
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9268 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9270 break 2
9271 fi
9272done
5213506e
RW
9273 done
9274IFS=$as_save_IFS
901119ae
KT
9275
9276fi
9277fi
9278WINDMC=$ac_cv_prog_WINDMC
9279if test -n "$WINDMC"; then
5213506e
RW
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9281$as_echo "$WINDMC" >&6; }
901119ae 9282else
5213506e
RW
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284$as_echo "no" >&6; }
901119ae
KT
9285fi
9286
5213506e 9287
901119ae
KT
9288 fi
9289 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9291set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293$as_echo_n "checking for $ac_word... " >&6; }
9294if test "${ac_cv_prog_WINDMC+set}" = set; then :
9295 $as_echo_n "(cached) " >&6
901119ae
KT
9296else
9297 if test -n "$WINDMC"; then
9298 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9299else
9300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301for as_dir in $PATH
9302do
9303 IFS=$as_save_IFS
9304 test -z "$as_dir" && as_dir=.
5213506e
RW
9305 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9307 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9309 break 2
9310 fi
9311done
5213506e
RW
9312 done
9313IFS=$as_save_IFS
901119ae
KT
9314
9315fi
9316fi
9317WINDMC=$ac_cv_prog_WINDMC
9318if test -n "$WINDMC"; then
5213506e
RW
9319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9320$as_echo "$WINDMC" >&6; }
901119ae 9321else
5213506e
RW
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9323$as_echo "no" >&6; }
901119ae
KT
9324fi
9325
5213506e 9326
901119ae
KT
9327 fi
9328 test -n "$ac_cv_prog_WINDMC" && break
9329done
9330
9331if test -z "$ac_cv_prog_WINDMC" ; then
9332 set dummy windmc
9333 if test $build = $host ; then
9334 WINDMC="$2"
9335 else
9336 WINDMC="${ncn_tool_prefix}$2"
9337 fi
9338fi
9339
9340
9341
278a7a38
AO
9342if test -n "$OBJCOPY"; then
9343 ac_cv_prog_OBJCOPY=$OBJCOPY
9344elif test -n "$ac_cv_prog_OBJCOPY"; then
9345 OBJCOPY=$ac_cv_prog_OBJCOPY
9346fi
9347
9348if test -n "$ac_cv_prog_OBJCOPY"; then
9349 for ncn_progname in objcopy; do
9350 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9351set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9353$as_echo_n "checking for $ac_word... " >&6; }
9354if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9355 $as_echo_n "(cached) " >&6
278a7a38
AO
9356else
9357 if test -n "$OBJCOPY"; then
9358 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9359else
9360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9361for as_dir in $PATH
9362do
9363 IFS=$as_save_IFS
9364 test -z "$as_dir" && as_dir=.
5213506e
RW
9365 for ac_exec_ext in '' $ac_executable_extensions; do
9366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9367 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9369 break 2
9370 fi
9371done
5213506e
RW
9372 done
9373IFS=$as_save_IFS
278a7a38
AO
9374
9375fi
9376fi
9377OBJCOPY=$ac_cv_prog_OBJCOPY
9378if test -n "$OBJCOPY"; then
5213506e
RW
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9380$as_echo "$OBJCOPY" >&6; }
278a7a38 9381else
5213506e
RW
9382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9383$as_echo "no" >&6; }
278a7a38
AO
9384fi
9385
5213506e 9386
278a7a38
AO
9387 done
9388fi
9389
9390for ncn_progname in objcopy; do
2693c0b0
PB
9391 if test -n "$ncn_tool_prefix"; then
9392 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9393set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395$as_echo_n "checking for $ac_word... " >&6; }
9396if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9398else
9399 if test -n "$OBJCOPY"; then
9400 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9401else
1c710c3c
DJ
9402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403for as_dir in $PATH
9404do
9405 IFS=$as_save_IFS
9406 test -z "$as_dir" && as_dir=.
5213506e
RW
9407 for ac_exec_ext in '' $ac_executable_extensions; do
9408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9409 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9411 break 2
9412 fi
9413done
5213506e
RW
9414 done
9415IFS=$as_save_IFS
1c710c3c 9416
ca9f4b81
AO
9417fi
9418fi
1c710c3c 9419OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9420if test -n "$OBJCOPY"; then
5213506e
RW
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9422$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9423else
5213506e
RW
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425$as_echo "no" >&6; }
ca9f4b81
AO
9426fi
9427
5213506e 9428
2693c0b0
PB
9429 fi
9430 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9432set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9434$as_echo_n "checking for $ac_word... " >&6; }
9435if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9436 $as_echo_n "(cached) " >&6
ca9f4b81 9437else
2693c0b0
PB
9438 if test -n "$OBJCOPY"; then
9439 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9440else
1c710c3c
DJ
9441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9442for as_dir in $PATH
9443do
9444 IFS=$as_save_IFS
9445 test -z "$as_dir" && as_dir=.
5213506e
RW
9446 for ac_exec_ext in '' $ac_executable_extensions; do
9447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9448 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9450 break 2
9451 fi
9452done
5213506e
RW
9453 done
9454IFS=$as_save_IFS
1c710c3c 9455
ca9f4b81
AO
9456fi
9457fi
1c710c3c 9458OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9459if test -n "$OBJCOPY"; then
5213506e
RW
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9461$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9462else
5213506e
RW
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9464$as_echo "no" >&6; }
ca9f4b81 9465fi
1c710c3c 9466
5213506e 9467
2693c0b0
PB
9468 fi
9469 test -n "$ac_cv_prog_OBJCOPY" && break
9470done
9471
9472if test -z "$ac_cv_prog_OBJCOPY" ; then
9473 set dummy objcopy
9474 if test $build = $host ; then
9475 OBJCOPY="$2"
ca9f4b81 9476 else
2693c0b0 9477 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9478 fi
ca9f4b81
AO
9479fi
9480
278a7a38
AO
9481
9482
9483if test -n "$OBJDUMP"; then
9484 ac_cv_prog_OBJDUMP=$OBJDUMP
9485elif test -n "$ac_cv_prog_OBJDUMP"; then
9486 OBJDUMP=$ac_cv_prog_OBJDUMP
9487fi
9488
9489if test -n "$ac_cv_prog_OBJDUMP"; then
9490 for ncn_progname in objdump; do
9491 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9492set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9494$as_echo_n "checking for $ac_word... " >&6; }
9495if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9496 $as_echo_n "(cached) " >&6
278a7a38
AO
9497else
9498 if test -n "$OBJDUMP"; then
9499 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9500else
9501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9502for as_dir in $PATH
9503do
9504 IFS=$as_save_IFS
9505 test -z "$as_dir" && as_dir=.
5213506e
RW
9506 for ac_exec_ext in '' $ac_executable_extensions; do
9507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9508 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9510 break 2
9511 fi
9512done
5213506e
RW
9513 done
9514IFS=$as_save_IFS
278a7a38
AO
9515
9516fi
9517fi
9518OBJDUMP=$ac_cv_prog_OBJDUMP
9519if test -n "$OBJDUMP"; then
5213506e
RW
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9521$as_echo "$OBJDUMP" >&6; }
278a7a38 9522else
5213506e
RW
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524$as_echo "no" >&6; }
278a7a38
AO
9525fi
9526
5213506e 9527
278a7a38
AO
9528 done
9529fi
9530
9531for ncn_progname in objdump; do
2693c0b0
PB
9532 if test -n "$ncn_tool_prefix"; then
9533 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9534set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9536$as_echo_n "checking for $ac_word... " >&6; }
9537if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9538 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9539else
9540 if test -n "$OBJDUMP"; then
9541 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9542else
1c710c3c
DJ
9543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9544for as_dir in $PATH
9545do
9546 IFS=$as_save_IFS
9547 test -z "$as_dir" && as_dir=.
5213506e
RW
9548 for ac_exec_ext in '' $ac_executable_extensions; do
9549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9550 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9552 break 2
9553 fi
9554done
5213506e
RW
9555 done
9556IFS=$as_save_IFS
1c710c3c 9557
ca9f4b81
AO
9558fi
9559fi
1c710c3c 9560OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9561if test -n "$OBJDUMP"; then
5213506e
RW
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9563$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9564else
5213506e
RW
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566$as_echo "no" >&6; }
ca9f4b81
AO
9567fi
9568
5213506e 9569
2693c0b0
PB
9570 fi
9571 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9573set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9575$as_echo_n "checking for $ac_word... " >&6; }
9576if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9577 $as_echo_n "(cached) " >&6
ca9f4b81 9578else
2693c0b0
PB
9579 if test -n "$OBJDUMP"; then
9580 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9581else
1c710c3c
DJ
9582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
5213506e
RW
9587 for ac_exec_ext in '' $ac_executable_extensions; do
9588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9589 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9591 break 2
9592 fi
9593done
5213506e
RW
9594 done
9595IFS=$as_save_IFS
1c710c3c 9596
ca9f4b81
AO
9597fi
9598fi
1c710c3c 9599OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9600if test -n "$OBJDUMP"; then
5213506e
RW
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9602$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9603else
5213506e
RW
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9605$as_echo "no" >&6; }
ca9f4b81 9606fi
1c710c3c 9607
5213506e 9608
2693c0b0
PB
9609 fi
9610 test -n "$ac_cv_prog_OBJDUMP" && break
9611done
9612
9613if test -z "$ac_cv_prog_OBJDUMP" ; then
9614 set dummy objdump
9615 if test $build = $host ; then
9616 OBJDUMP="$2"
ca9f4b81 9617 else
2693c0b0 9618 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9619 fi
ca9f4b81
AO
9620fi
9621
671aa708
NN
9622
9623
9624
9625
9626
2abefe3d 9627# Target tools.
1c710c3c 9628
5213506e
RW
9629# Check whether --with-build-time-tools was given.
9630if test "${with_build_time_tools+set}" = set; then :
9631 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9632 x/*) ;;
9633 *)
9634 with_build_time_tools=
5213506e
RW
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9636$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9637 ;;
9638 esac
ca9f4b81 9639else
e8b05380 9640 with_build_time_tools=
5213506e
RW
9641fi
9642
ca9f4b81 9643
278a7a38
AO
9644
9645
9646if test -n "$CC_FOR_TARGET"; then
9647 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9648elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9649 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9650fi
9651
9652if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9653 for ncn_progname in cc gcc; do
9654 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9655set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9657$as_echo_n "checking for $ac_word... " >&6; }
9658if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9659 $as_echo_n "(cached) " >&6
278a7a38
AO
9660else
9661 if test -n "$CC_FOR_TARGET"; then
9662 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9663else
9664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9665for as_dir in $PATH
9666do
9667 IFS=$as_save_IFS
9668 test -z "$as_dir" && as_dir=.
5213506e
RW
9669 for ac_exec_ext in '' $ac_executable_extensions; do
9670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9671 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9673 break 2
9674 fi
9675done
5213506e
RW
9676 done
9677IFS=$as_save_IFS
278a7a38
AO
9678
9679fi
9680fi
9681CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9682if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9684$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9685else
5213506e
RW
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9687$as_echo "no" >&6; }
278a7a38
AO
9688fi
9689
5213506e 9690
278a7a38
AO
9691 done
9692fi
9693
9694if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9695 for ncn_progname in cc gcc; do
5213506e
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9697$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9698 if test -x $with_build_time_tools/${ncn_progname}; then
9699 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9701$as_echo "yes" >&6; }
72a7ab82 9702 break
e8b05380 9703 else
5213506e
RW
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705$as_echo "no" >&6; }
72a7ab82
AP
9706 fi
9707 done
4de997d1
PB
9708fi
9709
e8b05380
PB
9710if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9711 for ncn_progname in cc gcc; do
9712 if test -n "$ncn_target_tool_prefix"; then
9713 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9714set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716$as_echo_n "checking for $ac_word... " >&6; }
9717if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9718 $as_echo_n "(cached) " >&6
4de997d1
PB
9719else
9720 if test -n "$CC_FOR_TARGET"; then
9721 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9722else
1c710c3c
DJ
9723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724for as_dir in $PATH
9725do
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
5213506e
RW
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9730 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9732 break 2
9733 fi
9734done
5213506e
RW
9735 done
9736IFS=$as_save_IFS
1c710c3c 9737
4de997d1
PB
9738fi
9739fi
1c710c3c 9740CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9741if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9743$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9744else
5213506e
RW
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9746$as_echo "no" >&6; }
4de997d1
PB
9747fi
9748
5213506e 9749
e8b05380
PB
9750 fi
9751 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9753set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9755$as_echo_n "checking for $ac_word... " >&6; }
9756if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9757 $as_echo_n "(cached) " >&6
4de997d1 9758else
2693c0b0
PB
9759 if test -n "$CC_FOR_TARGET"; then
9760 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9761else
1c710c3c
DJ
9762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9763for as_dir in $PATH
9764do
9765 IFS=$as_save_IFS
9766 test -z "$as_dir" && as_dir=.
5213506e
RW
9767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9769 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9771 break 2
9772 fi
9773done
5213506e
RW
9774 done
9775IFS=$as_save_IFS
1c710c3c 9776
4de997d1
PB
9777fi
9778fi
1c710c3c 9779CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9780if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9782$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9783else
5213506e
RW
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9785$as_echo "no" >&6; }
4de997d1 9786fi
1c710c3c 9787
5213506e 9788
e8b05380
PB
9789 fi
9790 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9791 done
9792fi
1c710c3c 9793
2693c0b0
PB
9794if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9795 set dummy cc gcc
9796 if test $build = $target ; then
9797 CC_FOR_TARGET="$2"
4de997d1 9798 else
2693c0b0 9799 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9800 fi
1c00b503
PB
9801else
9802 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9803fi
9804
278a7a38
AO
9805
9806
9807if test -n "$CXX_FOR_TARGET"; then
9808 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9809elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9810 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9811fi
9812
9813if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9814 for ncn_progname in c++ g++ cxx gxx; do
9815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9816set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9818$as_echo_n "checking for $ac_word... " >&6; }
9819if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9820 $as_echo_n "(cached) " >&6
278a7a38
AO
9821else
9822 if test -n "$CXX_FOR_TARGET"; then
9823 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9824else
9825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826for as_dir in $PATH
9827do
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
5213506e
RW
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9832 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9834 break 2
9835 fi
9836done
5213506e
RW
9837 done
9838IFS=$as_save_IFS
278a7a38
AO
9839
9840fi
9841fi
9842CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9843if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9845$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9846else
5213506e
RW
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9848$as_echo "no" >&6; }
278a7a38
AO
9849fi
9850
5213506e 9851
278a7a38
AO
9852 done
9853fi
9854
9855if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9856 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9858$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9859 if test -x $with_build_time_tools/${ncn_progname}; then
9860 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9862$as_echo "yes" >&6; }
e8b05380
PB
9863 break
9864 else
5213506e
RW
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9866$as_echo "no" >&6; }
e8b05380
PB
9867 fi
9868 done
9869fi
9870
9871if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9872 for ncn_progname in c++ g++ cxx gxx; do
9873 if test -n "$ncn_target_tool_prefix"; then
9874 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9875set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
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_CXX_FOR_TARGET+set}" = set; then :
9879 $as_echo_n "(cached) " >&6
4de997d1
PB
9880else
9881 if test -n "$CXX_FOR_TARGET"; then
9882 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9883else
1c710c3c
DJ
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=.
5213506e
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
1c710c3c 9891 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9893 break 2
9894 fi
9895done
5213506e
RW
9896 done
9897IFS=$as_save_IFS
1c710c3c 9898
4de997d1
PB
9899fi
9900fi
1c710c3c 9901CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9902if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9904$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9905else
5213506e
RW
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9907$as_echo "no" >&6; }
4de997d1
PB
9908fi
9909
5213506e 9910
e8b05380
PB
9911 fi
9912 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9913 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9914set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916$as_echo_n "checking for $ac_word... " >&6; }
9917if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9918 $as_echo_n "(cached) " >&6
4de997d1 9919else
2693c0b0
PB
9920 if test -n "$CXX_FOR_TARGET"; then
9921 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 9922else
1c710c3c
DJ
9923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924for as_dir in $PATH
9925do
9926 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=.
5213506e
RW
9928 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9930 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9932 break 2
9933 fi
9934done
5213506e
RW
9935 done
9936IFS=$as_save_IFS
1c710c3c 9937
4de997d1
PB
9938fi
9939fi
1c710c3c 9940CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 9941if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9943$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9944else
5213506e
RW
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9946$as_echo "no" >&6; }
4de997d1 9947fi
1c710c3c 9948
5213506e 9949
e8b05380
PB
9950 fi
9951 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9952 done
9953fi
1c710c3c 9954
2693c0b0
PB
9955if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9956 set dummy c++ g++ cxx gxx
9957 if test $build = $target ; then
9958 CXX_FOR_TARGET="$2"
4de997d1 9959 else
2693c0b0 9960 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9961 fi
1c00b503
PB
9962else
9963 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
9964fi
9965
278a7a38
AO
9966
9967
9968if test -n "$GCC_FOR_TARGET"; then
9969 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9970elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9971 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9972fi
9973
9974if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9975 for ncn_progname in gcc; do
9976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9977set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979$as_echo_n "checking for $ac_word... " >&6; }
9980if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9981 $as_echo_n "(cached) " >&6
278a7a38
AO
9982else
9983 if test -n "$GCC_FOR_TARGET"; then
9984 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9985else
9986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9987for as_dir in $PATH
9988do
9989 IFS=$as_save_IFS
9990 test -z "$as_dir" && as_dir=.
5213506e
RW
9991 for ac_exec_ext in '' $ac_executable_extensions; do
9992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9993 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 9994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9995 break 2
9996 fi
9997done
5213506e
RW
9998 done
9999IFS=$as_save_IFS
278a7a38
AO
10000
10001fi
10002fi
10003GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10004if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10006$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10007else
5213506e
RW
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10009$as_echo "no" >&6; }
278a7a38
AO
10010fi
10011
5213506e 10012
278a7a38
AO
10013 done
10014fi
10015
10016if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10017 for ncn_progname in gcc; do
5213506e
RW
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10019$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10020 if test -x $with_build_time_tools/${ncn_progname}; then
10021 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10023$as_echo "yes" >&6; }
e8b05380
PB
10024 break
10025 else
5213506e
RW
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10027$as_echo "no" >&6; }
e8b05380
PB
10028 fi
10029 done
10030fi
10031
10032if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10033 for ncn_progname in gcc; do
10034 if test -n "$ncn_target_tool_prefix"; then
10035 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10036set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10038$as_echo_n "checking for $ac_word... " >&6; }
10039if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10040 $as_echo_n "(cached) " >&6
ca9f4b81 10041else
e8b05380
PB
10042 if test -n "$GCC_FOR_TARGET"; then
10043 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10044else
1c710c3c
DJ
10045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046for as_dir in $PATH
10047do
10048 IFS=$as_save_IFS
10049 test -z "$as_dir" && as_dir=.
5213506e
RW
10050 for ac_exec_ext in '' $ac_executable_extensions; do
10051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10052 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10054 break 2
10055 fi
10056done
5213506e
RW
10057 done
10058IFS=$as_save_IFS
1c710c3c 10059
ca9f4b81
AO
10060fi
10061fi
1c710c3c 10062GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10063if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10065$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10066else
5213506e
RW
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10068$as_echo "no" >&6; }
ca9f4b81
AO
10069fi
10070
5213506e 10071
e8b05380
PB
10072 fi
10073 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10075set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10077$as_echo_n "checking for $ac_word... " >&6; }
10078if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10079 $as_echo_n "(cached) " >&6
ca9f4b81 10080else
e8b05380
PB
10081 if test -n "$GCC_FOR_TARGET"; then
10082 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10083else
1c710c3c
DJ
10084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10085for as_dir in $PATH
10086do
10087 IFS=$as_save_IFS
10088 test -z "$as_dir" && as_dir=.
5213506e
RW
10089 for ac_exec_ext in '' $ac_executable_extensions; do
10090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10091 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10093 break 2
10094 fi
10095done
5213506e
RW
10096 done
10097IFS=$as_save_IFS
1c710c3c 10098
ca9f4b81
AO
10099fi
10100fi
1c710c3c 10101GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10102if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10104$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10105else
5213506e
RW
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10107$as_echo "no" >&6; }
ca9f4b81 10108fi
1c710c3c 10109
5213506e 10110
e8b05380
PB
10111 fi
10112 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10113 done
10114fi
1c710c3c 10115
e8b05380
PB
10116if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10117 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10118else
10119 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10120fi
10121
278a7a38
AO
10122
10123
10124if test -n "$GCJ_FOR_TARGET"; then
10125 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10126elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10127 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10128fi
10129
10130if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10131 for ncn_progname in gcj; do
10132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10133set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10135$as_echo_n "checking for $ac_word... " >&6; }
10136if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10137 $as_echo_n "(cached) " >&6
278a7a38
AO
10138else
10139 if test -n "$GCJ_FOR_TARGET"; then
10140 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10141else
10142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10143for as_dir in $PATH
10144do
10145 IFS=$as_save_IFS
10146 test -z "$as_dir" && as_dir=.
5213506e
RW
10147 for ac_exec_ext in '' $ac_executable_extensions; do
10148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10149 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10151 break 2
10152 fi
10153done
5213506e
RW
10154 done
10155IFS=$as_save_IFS
278a7a38
AO
10156
10157fi
10158fi
10159GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10160if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10162$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10163else
5213506e
RW
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10165$as_echo "no" >&6; }
278a7a38
AO
10166fi
10167
5213506e 10168
278a7a38
AO
10169 done
10170fi
10171
10172if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10173 for ncn_progname in gcj; do
5213506e
RW
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10175$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10176 if test -x $with_build_time_tools/${ncn_progname}; then
10177 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10179$as_echo "yes" >&6; }
e8b05380
PB
10180 break
10181 else
5213506e
RW
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183$as_echo "no" >&6; }
e8b05380
PB
10184 fi
10185 done
10186fi
10187
10188if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10189 for ncn_progname in gcj; do
10190 if test -n "$ncn_target_tool_prefix"; then
10191 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10192set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10194$as_echo_n "checking for $ac_word... " >&6; }
10195if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10196 $as_echo_n "(cached) " >&6
e8b05380 10197else
fb0103e5
RG
10198 if test -n "$GCJ_FOR_TARGET"; then
10199 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10200else
1c710c3c
DJ
10201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10202for as_dir in $PATH
10203do
10204 IFS=$as_save_IFS
10205 test -z "$as_dir" && as_dir=.
5213506e
RW
10206 for ac_exec_ext in '' $ac_executable_extensions; do
10207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10208 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10210 break 2
10211 fi
10212done
5213506e
RW
10213 done
10214IFS=$as_save_IFS
1c710c3c 10215
e8b05380
PB
10216fi
10217fi
278a7a38
AO
10218GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10219if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10221$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10222else
5213506e
RW
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10224$as_echo "no" >&6; }
278a7a38
AO
10225fi
10226
5213506e 10227
278a7a38
AO
10228 fi
10229 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10231set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10233$as_echo_n "checking for $ac_word... " >&6; }
10234if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10235 $as_echo_n "(cached) " >&6
278a7a38
AO
10236else
10237 if test -n "$GCJ_FOR_TARGET"; then
10238 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10239else
10240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241for as_dir in $PATH
10242do
10243 IFS=$as_save_IFS
10244 test -z "$as_dir" && as_dir=.
5213506e
RW
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10247 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10249 break 2
10250 fi
10251done
5213506e
RW
10252 done
10253IFS=$as_save_IFS
278a7a38
AO
10254
10255fi
10256fi
10257GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10258if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10260$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10261else
5213506e
RW
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10263$as_echo "no" >&6; }
278a7a38
AO
10264fi
10265
5213506e 10266
278a7a38
AO
10267 fi
10268 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10269 done
10270fi
10271
10272if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10273 set dummy gcj
10274 if test $build = $target ; then
10275 GCJ_FOR_TARGET="$2"
10276 else
10277 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10278 fi
1c00b503
PB
10279else
10280 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10281fi
10282
10283
10284
10285if test -n "$GFORTRAN_FOR_TARGET"; then
10286 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10287elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10288 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10289fi
10290
278a7a38
AO
10291if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10292 for ncn_progname in gfortran; do
10293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10294set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10296$as_echo_n "checking for $ac_word... " >&6; }
10297if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10298 $as_echo_n "(cached) " >&6
e8b05380 10299else
278a7a38
AO
10300 if test -n "$GFORTRAN_FOR_TARGET"; then
10301 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10302else
1c710c3c
DJ
10303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304for as_dir in $PATH
10305do
10306 IFS=$as_save_IFS
10307 test -z "$as_dir" && as_dir=.
5213506e
RW
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10310 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10312 break 2
10313 fi
10314done
5213506e
RW
10315 done
10316IFS=$as_save_IFS
1c710c3c 10317
e8b05380
PB
10318fi
10319fi
278a7a38
AO
10320GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10321if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10323$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10324else
5213506e
RW
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10326$as_echo "no" >&6; }
e8b05380 10327fi
1c710c3c 10328
5213506e 10329
e8b05380
PB
10330 done
10331fi
1c710c3c 10332
278a7a38 10333if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10334 for ncn_progname in gfortran; do
5213506e
RW
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10336$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10337 if test -x $with_build_time_tools/${ncn_progname}; then
10338 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10340$as_echo "yes" >&6; }
e8b05380
PB
10341 break
10342 else
5213506e
RW
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10344$as_echo "no" >&6; }
e8b05380
PB
10345 fi
10346 done
10347fi
10348
10349if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10350 for ncn_progname in gfortran; do
10351 if test -n "$ncn_target_tool_prefix"; then
10352 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10353set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355$as_echo_n "checking for $ac_word... " >&6; }
10356if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10357 $as_echo_n "(cached) " >&6
e8b05380
PB
10358else
10359 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10360 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10361else
10362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363for as_dir in $PATH
10364do
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
5213506e
RW
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10369 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10371 break 2
10372 fi
10373done
5213506e
RW
10374 done
10375IFS=$as_save_IFS
1c710c3c 10376
e8b05380
PB
10377fi
10378fi
1c710c3c 10379GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10380if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10382$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10383else
5213506e
RW
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385$as_echo "no" >&6; }
e8b05380
PB
10386fi
10387
5213506e 10388
e8b05380
PB
10389 fi
10390 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10392set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10394$as_echo_n "checking for $ac_word... " >&6; }
10395if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10396 $as_echo_n "(cached) " >&6
e8b05380
PB
10397else
10398 if test -n "$GFORTRAN_FOR_TARGET"; then
10399 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10400else
1c710c3c
DJ
10401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10402for as_dir in $PATH
10403do
10404 IFS=$as_save_IFS
10405 test -z "$as_dir" && as_dir=.
5213506e
RW
10406 for ac_exec_ext in '' $ac_executable_extensions; do
10407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10408 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10410 break 2
10411 fi
10412done
5213506e
RW
10413 done
10414IFS=$as_save_IFS
1c710c3c 10415
e8b05380
PB
10416fi
10417fi
1c710c3c 10418GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10419if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10421$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10422else
5213506e
RW
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424$as_echo "no" >&6; }
e8b05380 10425fi
1c710c3c 10426
5213506e 10427
e8b05380
PB
10428 fi
10429 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10430 done
10431fi
1c710c3c 10432
e8b05380
PB
10433if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10434 set dummy gfortran
2693c0b0 10435 if test $build = $target ; then
e8b05380 10436 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10437 else
e8b05380
PB
10438 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10439 fi
1c00b503
PB
10440else
10441 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10442fi
10443
10444
10445
632e2a07
ILT
10446if test -n "$GOC_FOR_TARGET"; then
10447 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10448elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10449 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10450fi
10451
10452if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10453 for ncn_progname in gccgo; do
10454 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10455set dummy ${ncn_progname}; ac_word=$2
10456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10457$as_echo_n "checking for $ac_word... " >&6; }
10458if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10459 $as_echo_n "(cached) " >&6
10460else
10461 if test -n "$GOC_FOR_TARGET"; then
10462 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10463else
10464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10465for as_dir in $PATH
10466do
10467 IFS=$as_save_IFS
10468 test -z "$as_dir" && as_dir=.
10469 for ac_exec_ext in '' $ac_executable_extensions; do
10470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10471 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10473 break 2
10474 fi
10475done
10476 done
10477IFS=$as_save_IFS
10478
10479fi
10480fi
10481GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10482if test -n "$GOC_FOR_TARGET"; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10484$as_echo "$GOC_FOR_TARGET" >&6; }
10485else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10487$as_echo "no" >&6; }
10488fi
10489
10490
10491 done
10492fi
10493
10494if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10495 for ncn_progname in gccgo; do
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10497$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10498 if test -x $with_build_time_tools/${ncn_progname}; then
10499 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10501$as_echo "yes" >&6; }
10502 break
10503 else
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10505$as_echo "no" >&6; }
10506 fi
10507 done
10508fi
10509
10510if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10511 for ncn_progname in gccgo; do
10512 if test -n "$ncn_target_tool_prefix"; then
10513 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10514set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516$as_echo_n "checking for $ac_word... " >&6; }
10517if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10518 $as_echo_n "(cached) " >&6
10519else
10520 if test -n "$GOC_FOR_TARGET"; then
10521 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10522else
10523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524for as_dir in $PATH
10525do
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10530 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10533 fi
10534done
10535 done
10536IFS=$as_save_IFS
10537
10538fi
10539fi
10540GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10541if test -n "$GOC_FOR_TARGET"; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10543$as_echo "$GOC_FOR_TARGET" >&6; }
10544else
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546$as_echo "no" >&6; }
10547fi
10548
10549
10550 fi
10551 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10553set dummy ${ncn_progname}; ac_word=$2
10554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10555$as_echo_n "checking for $ac_word... " >&6; }
10556if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10557 $as_echo_n "(cached) " >&6
10558else
10559 if test -n "$GOC_FOR_TARGET"; then
10560 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10561else
10562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10563for as_dir in $PATH
10564do
10565 IFS=$as_save_IFS
10566 test -z "$as_dir" && as_dir=.
10567 for ac_exec_ext in '' $ac_executable_extensions; do
10568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10569 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10571 break 2
10572 fi
10573done
10574 done
10575IFS=$as_save_IFS
10576
10577fi
10578fi
10579GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10580if test -n "$GOC_FOR_TARGET"; then
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10582$as_echo "$GOC_FOR_TARGET" >&6; }
10583else
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10585$as_echo "no" >&6; }
10586fi
10587
10588
10589 fi
10590 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10591 done
10592fi
10593
10594if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10595 set dummy gccgo
10596 if test $build = $target ; then
10597 GOC_FOR_TARGET="$2"
10598 else
10599 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10600 fi
10601else
10602 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10603fi
10604
10605
10606
e8b05380
PB
10607cat > conftest.c << \EOF
10608#ifdef __GNUC__
10609 gcc_yay;
10610#endif
10611EOF
10612if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10613 have_gcc_for_target=yes
10614else
10615 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10616 have_gcc_for_target=no
10617fi
10618rm conftest.c
10619
10620
10621
10622
10623if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10624 if test -n "$with_build_time_tools"; then
5213506e
RW
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10626$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10627 if test -x $with_build_time_tools/ar; then
10628 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10629 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10631$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10632 else
5213506e
RW
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10634$as_echo "no" >&6; }
d1f8db0c 10635 fi
e8b05380
PB
10636 elif test $build != $host && test $have_gcc_for_target = yes; then
10637 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10638 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10639 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10640 fi
10641fi
3e19841a 10642if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10643 # Extract the first word of "ar", so it can be a program name with args.
10644set dummy ar; ac_word=$2
5213506e
RW
10645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10646$as_echo_n "checking for $ac_word... " >&6; }
10647if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10648 $as_echo_n "(cached) " >&6
e8b05380 10649else
1c710c3c
DJ
10650 case $AR_FOR_TARGET in
10651 [\\/]* | ?:[\\/]*)
e8b05380
PB
10652 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10653 ;;
e8b05380 10654 *)
1c710c3c
DJ
10655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10656for as_dir in $gcc_cv_tool_dirs
10657do
10658 IFS=$as_save_IFS
10659 test -z "$as_dir" && as_dir=.
5213506e
RW
10660 for ac_exec_ext in '' $ac_executable_extensions; do
10661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10662 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10664 break 2
10665 fi
10666done
5213506e
RW
10667 done
10668IFS=$as_save_IFS
1c710c3c 10669
e8b05380
PB
10670 ;;
10671esac
10672fi
1c710c3c 10673AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10674if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10676$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10677else
5213506e
RW
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10679$as_echo "no" >&6; }
4de997d1
PB
10680fi
10681
5213506e 10682
e8b05380
PB
10683fi
10684if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10685
10686
10687if test -n "$AR_FOR_TARGET"; then
10688 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10689elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10690 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10691fi
10692
10693if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10694 for ncn_progname in ar; do
10695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10696set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10698$as_echo_n "checking for $ac_word... " >&6; }
10699if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10700 $as_echo_n "(cached) " >&6
278a7a38
AO
10701else
10702 if test -n "$AR_FOR_TARGET"; then
10703 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10704else
10705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10706for as_dir in $PATH
10707do
10708 IFS=$as_save_IFS
10709 test -z "$as_dir" && as_dir=.
5213506e
RW
10710 for ac_exec_ext in '' $ac_executable_extensions; do
10711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10712 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10714 break 2
10715 fi
10716done
5213506e
RW
10717 done
10718IFS=$as_save_IFS
278a7a38
AO
10719
10720fi
10721fi
10722AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10723if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10725$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10726else
5213506e
RW
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10728$as_echo "no" >&6; }
278a7a38
AO
10729fi
10730
5213506e 10731
278a7a38
AO
10732 done
10733fi
10734
10735if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10736 for ncn_progname in ar; do
5213506e
RW
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10738$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10739 if test -x $with_build_time_tools/${ncn_progname}; then
10740 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10742$as_echo "yes" >&6; }
e8b05380
PB
10743 break
10744 else
5213506e
RW
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10746$as_echo "no" >&6; }
e8b05380
PB
10747 fi
10748 done
10749fi
10750
10751if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10752 for ncn_progname in ar; do
10753 if test -n "$ncn_target_tool_prefix"; then
10754 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10755set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10757$as_echo_n "checking for $ac_word... " >&6; }
10758if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10759 $as_echo_n "(cached) " >&6
4de997d1 10760else
e8b05380
PB
10761 if test -n "$AR_FOR_TARGET"; then
10762 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10763else
1c710c3c
DJ
10764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765for as_dir in $PATH
10766do
10767 IFS=$as_save_IFS
10768 test -z "$as_dir" && as_dir=.
5213506e
RW
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10771 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10773 break 2
10774 fi
10775done
5213506e
RW
10776 done
10777IFS=$as_save_IFS
1c710c3c 10778
4de997d1
PB
10779fi
10780fi
1c710c3c 10781AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10782if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10784$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10785else
5213506e
RW
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787$as_echo "no" >&6; }
4de997d1
PB
10788fi
10789
5213506e 10790
e8b05380
PB
10791 fi
10792 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10794set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10796$as_echo_n "checking for $ac_word... " >&6; }
10797if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10798 $as_echo_n "(cached) " >&6
e8b05380
PB
10799else
10800 if test -n "$AR_FOR_TARGET"; then
10801 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10802else
1c710c3c
DJ
10803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804for as_dir in $PATH
10805do
10806 IFS=$as_save_IFS
10807 test -z "$as_dir" && as_dir=.
5213506e
RW
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10810 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10812 break 2
10813 fi
10814done
5213506e
RW
10815 done
10816IFS=$as_save_IFS
1c710c3c 10817
e8b05380
PB
10818fi
10819fi
1c710c3c 10820AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10821if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10823$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10824else
5213506e
RW
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826$as_echo "no" >&6; }
e8b05380 10827fi
1c710c3c 10828
5213506e 10829
e8b05380
PB
10830 fi
10831 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10832 done
10833fi
1c710c3c 10834
e8b05380
PB
10835if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10836 set dummy ar
10837 if test $build = $target ; then
10838 AR_FOR_TARGET="$2"
10839 else
10840 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10841 fi
1c00b503
PB
10842else
10843 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10844fi
10845
d1f8db0c
PB
10846else
10847 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10848fi
10849
10850
10851
10852
10853if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10854 if test -n "$with_build_time_tools"; then
5213506e
RW
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10856$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10857 if test -x $with_build_time_tools/as; then
10858 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10859 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10861$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10862 else
5213506e
RW
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864$as_echo "no" >&6; }
d1f8db0c 10865 fi
e8b05380
PB
10866 elif test $build != $host && test $have_gcc_for_target = yes; then
10867 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10868 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10869 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10870 fi
10871fi
3e19841a 10872if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10873 # Extract the first word of "as", so it can be a program name with args.
10874set dummy as; ac_word=$2
5213506e
RW
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10876$as_echo_n "checking for $ac_word... " >&6; }
10877if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
e8b05380 10879else
1c710c3c
DJ
10880 case $AS_FOR_TARGET in
10881 [\\/]* | ?:[\\/]*)
e8b05380
PB
10882 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10883 ;;
e8b05380 10884 *)
1c710c3c
DJ
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886for as_dir in $gcc_cv_tool_dirs
10887do
10888 IFS=$as_save_IFS
10889 test -z "$as_dir" && as_dir=.
5213506e
RW
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10892 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10894 break 2
10895 fi
10896done
5213506e
RW
10897 done
10898IFS=$as_save_IFS
1c710c3c 10899
e8b05380
PB
10900 ;;
10901esac
10902fi
1c710c3c 10903AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10904if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10906$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10907else
5213506e
RW
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909$as_echo "no" >&6; }
e8b05380
PB
10910fi
10911
5213506e 10912
e8b05380
PB
10913fi
10914if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10915
10916
10917if test -n "$AS_FOR_TARGET"; then
10918 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10919elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10920 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10921fi
10922
10923if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10924 for ncn_progname in as; do
10925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10926set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10928$as_echo_n "checking for $ac_word... " >&6; }
10929if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10930 $as_echo_n "(cached) " >&6
278a7a38
AO
10931else
10932 if test -n "$AS_FOR_TARGET"; then
10933 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10934else
10935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936for as_dir in $PATH
10937do
10938 IFS=$as_save_IFS
10939 test -z "$as_dir" && as_dir=.
5213506e
RW
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10942 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10944 break 2
10945 fi
10946done
5213506e
RW
10947 done
10948IFS=$as_save_IFS
278a7a38
AO
10949
10950fi
10951fi
10952AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10953if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10955$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 10956else
5213506e
RW
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10958$as_echo "no" >&6; }
278a7a38
AO
10959fi
10960
5213506e 10961
278a7a38
AO
10962 done
10963fi
10964
10965if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10966 for ncn_progname in as; do
5213506e
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10968$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10969 if test -x $with_build_time_tools/${ncn_progname}; then
10970 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10972$as_echo "yes" >&6; }
e8b05380
PB
10973 break
10974 else
5213506e
RW
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10976$as_echo "no" >&6; }
e8b05380
PB
10977 fi
10978 done
10979fi
10980
10981if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10982 for ncn_progname in as; do
10983 if test -n "$ncn_target_tool_prefix"; then
10984 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10985set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10987$as_echo_n "checking for $ac_word... " >&6; }
10988if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10989 $as_echo_n "(cached) " >&6
e8b05380
PB
10990else
10991 if test -n "$AS_FOR_TARGET"; then
10992 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10993else
1c710c3c
DJ
10994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995for as_dir in $PATH
10996do
10997 IFS=$as_save_IFS
10998 test -z "$as_dir" && as_dir=.
5213506e
RW
10999 for ac_exec_ext in '' $ac_executable_extensions; do
11000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11001 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11003 break 2
11004 fi
11005done
5213506e
RW
11006 done
11007IFS=$as_save_IFS
1c710c3c 11008
e8b05380
PB
11009fi
11010fi
1c710c3c 11011AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11012if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11014$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11015else
5213506e
RW
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11017$as_echo "no" >&6; }
e8b05380
PB
11018fi
11019
5213506e 11020
e8b05380
PB
11021 fi
11022 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11024set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11026$as_echo_n "checking for $ac_word... " >&6; }
11027if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11028 $as_echo_n "(cached) " >&6
4de997d1 11029else
e8b05380
PB
11030 if test -n "$AS_FOR_TARGET"; then
11031 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11032else
1c710c3c
DJ
11033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034for as_dir in $PATH
11035do
11036 IFS=$as_save_IFS
11037 test -z "$as_dir" && as_dir=.
5213506e
RW
11038 for ac_exec_ext in '' $ac_executable_extensions; do
11039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11040 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11042 break 2
11043 fi
11044done
5213506e
RW
11045 done
11046IFS=$as_save_IFS
1c710c3c 11047
4de997d1
PB
11048fi
11049fi
1c710c3c 11050AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11051if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11053$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11054else
5213506e
RW
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056$as_echo "no" >&6; }
4de997d1 11057fi
1c710c3c 11058
5213506e 11059
e8b05380
PB
11060 fi
11061 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11062 done
11063fi
1c710c3c 11064
e8b05380
PB
11065if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11066 set dummy as
11067 if test $build = $target ; then
11068 AS_FOR_TARGET="$2"
11069 else
11070 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11071 fi
1c00b503
PB
11072else
11073 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11074fi
2693c0b0 11075
d1f8db0c
PB
11076else
11077 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11078fi
11079
e8b05380
PB
11080
11081
11082
11083if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11084 if test -n "$with_build_time_tools"; then
5213506e
RW
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11086$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11087 if test -x $with_build_time_tools/dlltool; then
11088 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11089 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11091$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11092 else
5213506e
RW
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094$as_echo "no" >&6; }
d1f8db0c 11095 fi
e8b05380
PB
11096 elif test $build != $host && test $have_gcc_for_target = yes; then
11097 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11098 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11099 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11100 fi
11101fi
3e19841a 11102if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11103 # Extract the first word of "dlltool", so it can be a program name with args.
11104set dummy dlltool; ac_word=$2
5213506e
RW
11105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11106$as_echo_n "checking for $ac_word... " >&6; }
11107if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11108 $as_echo_n "(cached) " >&6
4de997d1 11109else
1c710c3c
DJ
11110 case $DLLTOOL_FOR_TARGET in
11111 [\\/]* | ?:[\\/]*)
e8b05380
PB
11112 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11113 ;;
e8b05380 11114 *)
1c710c3c
DJ
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116for as_dir in $gcc_cv_tool_dirs
11117do
11118 IFS=$as_save_IFS
11119 test -z "$as_dir" && as_dir=.
5213506e
RW
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11122 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11124 break 2
11125 fi
11126done
5213506e
RW
11127 done
11128IFS=$as_save_IFS
1c710c3c 11129
e8b05380
PB
11130 ;;
11131esac
4de997d1 11132fi
1c710c3c 11133DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11134if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11136$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11137else
5213506e
RW
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139$as_echo "no" >&6; }
4de997d1
PB
11140fi
11141
5213506e 11142
e8b05380
PB
11143fi
11144if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11145
11146
11147if test -n "$DLLTOOL_FOR_TARGET"; then
11148 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11149elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11150 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11151fi
11152
11153if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11154 for ncn_progname in dlltool; do
11155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11156set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11158$as_echo_n "checking for $ac_word... " >&6; }
11159if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11160 $as_echo_n "(cached) " >&6
278a7a38
AO
11161else
11162 if test -n "$DLLTOOL_FOR_TARGET"; then
11163 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11164else
11165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166for as_dir in $PATH
11167do
11168 IFS=$as_save_IFS
11169 test -z "$as_dir" && as_dir=.
5213506e
RW
11170 for ac_exec_ext in '' $ac_executable_extensions; do
11171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11172 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11174 break 2
11175 fi
11176done
5213506e
RW
11177 done
11178IFS=$as_save_IFS
278a7a38
AO
11179
11180fi
11181fi
11182DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11183if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11185$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11186else
5213506e
RW
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11188$as_echo "no" >&6; }
278a7a38
AO
11189fi
11190
5213506e 11191
278a7a38
AO
11192 done
11193fi
11194
11195if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11196 for ncn_progname in dlltool; do
5213506e
RW
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11198$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11199 if test -x $with_build_time_tools/${ncn_progname}; then
11200 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11202$as_echo "yes" >&6; }
e8b05380
PB
11203 break
11204 else
5213506e
RW
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11206$as_echo "no" >&6; }
e8b05380
PB
11207 fi
11208 done
11209fi
11210
11211if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11212 for ncn_progname in dlltool; do
11213 if test -n "$ncn_target_tool_prefix"; then
11214 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11215set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11217$as_echo_n "checking for $ac_word... " >&6; }
11218if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11219 $as_echo_n "(cached) " >&6
4de997d1 11220else
e8b05380
PB
11221 if test -n "$DLLTOOL_FOR_TARGET"; then
11222 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11223else
1c710c3c
DJ
11224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225for as_dir in $PATH
11226do
11227 IFS=$as_save_IFS
11228 test -z "$as_dir" && as_dir=.
5213506e
RW
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11231 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11233 break 2
11234 fi
11235done
5213506e
RW
11236 done
11237IFS=$as_save_IFS
1c710c3c 11238
4de997d1
PB
11239fi
11240fi
1c710c3c 11241DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11242if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11244$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11245else
5213506e
RW
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11247$as_echo "no" >&6; }
4de997d1 11248fi
4de997d1 11249
5213506e 11250
e8b05380
PB
11251 fi
11252 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11254set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11256$as_echo_n "checking for $ac_word... " >&6; }
11257if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11258 $as_echo_n "(cached) " >&6
4de997d1 11259else
e8b05380
PB
11260 if test -n "$DLLTOOL_FOR_TARGET"; then
11261 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11262else
1c710c3c
DJ
11263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264for as_dir in $PATH
11265do
11266 IFS=$as_save_IFS
11267 test -z "$as_dir" && as_dir=.
5213506e
RW
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11270 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11272 break 2
11273 fi
11274done
5213506e
RW
11275 done
11276IFS=$as_save_IFS
1c710c3c 11277
4de997d1
PB
11278fi
11279fi
1c710c3c 11280DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11281if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11283$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11284else
5213506e
RW
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11286$as_echo "no" >&6; }
4de997d1 11287fi
1c710c3c 11288
5213506e 11289
e8b05380
PB
11290 fi
11291 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11292 done
11293fi
1c710c3c 11294
e8b05380
PB
11295if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11296 set dummy dlltool
11297 if test $build = $target ; then
11298 DLLTOOL_FOR_TARGET="$2"
11299 else
11300 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11301 fi
1c00b503
PB
11302else
11303 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11304fi
11305
d1f8db0c
PB
11306else
11307 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11308fi
11309
4de997d1 11310
e8b05380
PB
11311
11312
11313if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11314 if test -n "$with_build_time_tools"; then
5213506e
RW
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11316$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11317 if test -x $with_build_time_tools/ld; then
11318 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11319 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11321$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11322 else
5213506e
RW
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11324$as_echo "no" >&6; }
d1f8db0c 11325 fi
e8b05380
PB
11326 elif test $build != $host && test $have_gcc_for_target = yes; then
11327 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11328 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11329 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11330 fi
e8b05380 11331fi
3e19841a 11332if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11333 # Extract the first word of "ld", so it can be a program name with args.
11334set dummy ld; ac_word=$2
5213506e
RW
11335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11336$as_echo_n "checking for $ac_word... " >&6; }
11337if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11338 $as_echo_n "(cached) " >&6
4de997d1 11339else
1c710c3c
DJ
11340 case $LD_FOR_TARGET in
11341 [\\/]* | ?:[\\/]*)
e8b05380
PB
11342 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11343 ;;
e8b05380 11344 *)
1c710c3c
DJ
11345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11346for as_dir in $gcc_cv_tool_dirs
11347do
11348 IFS=$as_save_IFS
11349 test -z "$as_dir" && as_dir=.
5213506e
RW
11350 for ac_exec_ext in '' $ac_executable_extensions; do
11351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11352 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11354 break 2
11355 fi
11356done
5213506e
RW
11357 done
11358IFS=$as_save_IFS
1c710c3c 11359
e8b05380
PB
11360 ;;
11361esac
4de997d1 11362fi
1c710c3c 11363LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11364if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11366$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11367else
5213506e
RW
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369$as_echo "no" >&6; }
4de997d1 11370fi
2693c0b0 11371
5213506e 11372
e8b05380
PB
11373fi
11374if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11375
11376
11377if test -n "$LD_FOR_TARGET"; then
11378 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11379elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11380 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11381fi
11382
11383if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11384 for ncn_progname in ld; do
11385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11386set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388$as_echo_n "checking for $ac_word... " >&6; }
11389if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11390 $as_echo_n "(cached) " >&6
278a7a38
AO
11391else
11392 if test -n "$LD_FOR_TARGET"; then
11393 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11394else
11395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11396for as_dir in $PATH
11397do
11398 IFS=$as_save_IFS
11399 test -z "$as_dir" && as_dir=.
5213506e
RW
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11402 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11404 break 2
11405 fi
11406done
5213506e
RW
11407 done
11408IFS=$as_save_IFS
278a7a38
AO
11409
11410fi
11411fi
11412LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11413if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11415$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11416else
5213506e
RW
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418$as_echo "no" >&6; }
278a7a38
AO
11419fi
11420
5213506e 11421
278a7a38
AO
11422 done
11423fi
11424
11425if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11426 for ncn_progname in ld; do
5213506e
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11428$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11429 if test -x $with_build_time_tools/${ncn_progname}; then
11430 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11432$as_echo "yes" >&6; }
e8b05380
PB
11433 break
11434 else
5213506e
RW
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11436$as_echo "no" >&6; }
e8b05380
PB
11437 fi
11438 done
ca9f4b81
AO
11439fi
11440
e8b05380
PB
11441if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11442 for ncn_progname in ld; do
11443 if test -n "$ncn_target_tool_prefix"; then
11444 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11445set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11447$as_echo_n "checking for $ac_word... " >&6; }
11448if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11449 $as_echo_n "(cached) " >&6
ca9f4b81 11450else
4de997d1
PB
11451 if test -n "$LD_FOR_TARGET"; then
11452 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11453else
1c710c3c
DJ
11454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11455for as_dir in $PATH
11456do
11457 IFS=$as_save_IFS
11458 test -z "$as_dir" && as_dir=.
5213506e
RW
11459 for ac_exec_ext in '' $ac_executable_extensions; do
11460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11461 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11463 break 2
11464 fi
11465done
5213506e
RW
11466 done
11467IFS=$as_save_IFS
1c710c3c 11468
ca9f4b81
AO
11469fi
11470fi
1c710c3c 11471LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11472if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11474$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11475else
5213506e
RW
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11477$as_echo "no" >&6; }
ca9f4b81
AO
11478fi
11479
5213506e 11480
e8b05380
PB
11481 fi
11482 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11484set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486$as_echo_n "checking for $ac_word... " >&6; }
11487if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11488 $as_echo_n "(cached) " >&6
ca9f4b81 11489else
2693c0b0
PB
11490 if test -n "$LD_FOR_TARGET"; then
11491 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11492else
1c710c3c
DJ
11493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494for as_dir in $PATH
11495do
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
5213506e
RW
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11500 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11502 break 2
11503 fi
11504done
5213506e
RW
11505 done
11506IFS=$as_save_IFS
1c710c3c 11507
ca9f4b81
AO
11508fi
11509fi
1c710c3c 11510LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11511if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11513$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11514else
5213506e
RW
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11516$as_echo "no" >&6; }
ca9f4b81 11517fi
1c710c3c 11518
5213506e 11519
e8b05380
PB
11520 fi
11521 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11522 done
11523fi
1c710c3c 11524
2693c0b0
PB
11525if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11526 set dummy ld
11527 if test $build = $target ; then
11528 LD_FOR_TARGET="$2"
ca9f4b81 11529 else
2693c0b0 11530 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11531 fi
1c00b503
PB
11532else
11533 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11534fi
11535
d1f8db0c
PB
11536else
11537 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11538fi
11539
11540
11541
11542
11543if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11544 if test -n "$with_build_time_tools"; then
5213506e
RW
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11546$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11547 if test -x $with_build_time_tools/lipo; then
11548 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11549 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11551$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11552 else
5213506e
RW
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554$as_echo "no" >&6; }
d1f8db0c 11555 fi
e8b05380
PB
11556 elif test $build != $host && test $have_gcc_for_target = yes; then
11557 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11558 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11559 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11560 fi
11561fi
278a7a38
AO
11562if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11563 # Extract the first word of "lipo", so it can be a program name with args.
11564set dummy lipo; ac_word=$2
5213506e
RW
11565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11566$as_echo_n "checking for $ac_word... " >&6; }
11567if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11568 $as_echo_n "(cached) " >&6
278a7a38
AO
11569else
11570 case $LIPO_FOR_TARGET in
11571 [\\/]* | ?:[\\/]*)
11572 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11573 ;;
11574 *)
11575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11576for as_dir in $gcc_cv_tool_dirs
11577do
11578 IFS=$as_save_IFS
11579 test -z "$as_dir" && as_dir=.
5213506e
RW
11580 for ac_exec_ext in '' $ac_executable_extensions; do
11581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11582 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11584 break 2
11585 fi
11586done
5213506e
RW
11587 done
11588IFS=$as_save_IFS
278a7a38
AO
11589
11590 ;;
11591esac
11592fi
11593LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11594if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11596$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11597else
5213506e
RW
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599$as_echo "no" >&6; }
278a7a38
AO
11600fi
11601
5213506e 11602
278a7a38
AO
11603fi
11604if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11605
11606
11607if test -n "$LIPO_FOR_TARGET"; then
11608 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11609elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11610 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11611fi
11612
11613if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11614 for ncn_progname in lipo; do
11615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11616set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11618$as_echo_n "checking for $ac_word... " >&6; }
11619if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11620 $as_echo_n "(cached) " >&6
e8b05380 11621else
278a7a38
AO
11622 if test -n "$LIPO_FOR_TARGET"; then
11623 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11624else
11625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11626for as_dir in $PATH
1c710c3c
DJ
11627do
11628 IFS=$as_save_IFS
11629 test -z "$as_dir" && as_dir=.
5213506e
RW
11630 for ac_exec_ext in '' $ac_executable_extensions; do
11631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11632 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11634 break 2
11635 fi
11636done
5213506e
RW
11637 done
11638IFS=$as_save_IFS
1c710c3c 11639
e8b05380 11640fi
278a7a38
AO
11641fi
11642LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11643if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11645$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11646else
5213506e
RW
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648$as_echo "no" >&6; }
e8b05380
PB
11649fi
11650
5213506e 11651
278a7a38 11652 done
e8b05380 11653fi
278a7a38
AO
11654
11655if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11656 for ncn_progname in lipo; do
5213506e
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11658$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11659 if test -x $with_build_time_tools/${ncn_progname}; then
11660 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11662$as_echo "yes" >&6; }
e8b05380
PB
11663 break
11664 else
5213506e
RW
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666$as_echo "no" >&6; }
e8b05380
PB
11667 fi
11668 done
11669fi
11670
11671if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11672 for ncn_progname in lipo; do
11673 if test -n "$ncn_target_tool_prefix"; then
11674 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11675set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11677$as_echo_n "checking for $ac_word... " >&6; }
11678if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11679 $as_echo_n "(cached) " >&6
040b1c5a
GK
11680else
11681 if test -n "$LIPO_FOR_TARGET"; then
11682 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11683else
1c710c3c
DJ
11684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11685for as_dir in $PATH
11686do
11687 IFS=$as_save_IFS
11688 test -z "$as_dir" && as_dir=.
5213506e
RW
11689 for ac_exec_ext in '' $ac_executable_extensions; do
11690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11691 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11693 break 2
11694 fi
11695done
5213506e
RW
11696 done
11697IFS=$as_save_IFS
1c710c3c 11698
040b1c5a
GK
11699fi
11700fi
1c710c3c 11701LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11702if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11704$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11705else
5213506e
RW
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11707$as_echo "no" >&6; }
040b1c5a
GK
11708fi
11709
5213506e 11710
e8b05380
PB
11711 fi
11712 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11714set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716$as_echo_n "checking for $ac_word... " >&6; }
11717if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11718 $as_echo_n "(cached) " >&6
040b1c5a
GK
11719else
11720 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11721 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11722else
1c710c3c
DJ
11723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724for as_dir in $PATH
11725do
11726 IFS=$as_save_IFS
11727 test -z "$as_dir" && as_dir=.
5213506e
RW
11728 for ac_exec_ext in '' $ac_executable_extensions; do
11729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11730 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11732 break 2
11733 fi
11734done
5213506e
RW
11735 done
11736IFS=$as_save_IFS
1c710c3c 11737
040b1c5a
GK
11738fi
11739fi
1c710c3c 11740LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11741if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11743$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11744else
5213506e
RW
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746$as_echo "no" >&6; }
040b1c5a 11747fi
1c710c3c 11748
5213506e 11749
e8b05380
PB
11750 fi
11751 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11752 done
11753fi
1c710c3c 11754
040b1c5a
GK
11755if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11756 set dummy lipo
11757 if test $build = $target ; then
11758 LIPO_FOR_TARGET="$2"
11759 else
11760 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11761 fi
1c00b503
PB
11762else
11763 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11764fi
11765
d1f8db0c
PB
11766else
11767 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11768fi
11769
11770
11771
11772
11773if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11774 if test -n "$with_build_time_tools"; then
5213506e
RW
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11776$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11777 if test -x $with_build_time_tools/nm; then
11778 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11779 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11781$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11782 else
5213506e
RW
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11784$as_echo "no" >&6; }
d1f8db0c 11785 fi
e8b05380
PB
11786 elif test $build != $host && test $have_gcc_for_target = yes; then
11787 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11788 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11789 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11790 fi
11791fi
3e19841a 11792if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11793 # Extract the first word of "nm", so it can be a program name with args.
11794set dummy nm; ac_word=$2
5213506e
RW
11795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11796$as_echo_n "checking for $ac_word... " >&6; }
11797if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11798 $as_echo_n "(cached) " >&6
e8b05380 11799else
1c710c3c
DJ
11800 case $NM_FOR_TARGET in
11801 [\\/]* | ?:[\\/]*)
e8b05380
PB
11802 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11803 ;;
e8b05380 11804 *)
1c710c3c
DJ
11805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806for as_dir in $gcc_cv_tool_dirs
11807do
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
5213506e
RW
11810 for ac_exec_ext in '' $ac_executable_extensions; do
11811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11812 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11814 break 2
11815 fi
11816done
5213506e
RW
11817 done
11818IFS=$as_save_IFS
1c710c3c 11819
e8b05380
PB
11820 ;;
11821esac
11822fi
1c710c3c 11823NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11824if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11826$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11827else
5213506e
RW
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829$as_echo "no" >&6; }
e8b05380
PB
11830fi
11831
5213506e 11832
e8b05380
PB
11833fi
11834if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11835
11836
11837if test -n "$NM_FOR_TARGET"; then
11838 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11839elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11840 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11841fi
11842
11843if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11844 for ncn_progname in nm; do
11845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11846set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848$as_echo_n "checking for $ac_word... " >&6; }
11849if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11850 $as_echo_n "(cached) " >&6
278a7a38
AO
11851else
11852 if test -n "$NM_FOR_TARGET"; then
11853 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11854else
11855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856for as_dir in $PATH
11857do
11858 IFS=$as_save_IFS
11859 test -z "$as_dir" && as_dir=.
5213506e
RW
11860 for ac_exec_ext in '' $ac_executable_extensions; do
11861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11862 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11864 break 2
11865 fi
11866done
5213506e
RW
11867 done
11868IFS=$as_save_IFS
278a7a38
AO
11869
11870fi
11871fi
11872NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11873if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11875$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11876else
5213506e
RW
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878$as_echo "no" >&6; }
278a7a38
AO
11879fi
11880
5213506e 11881
278a7a38
AO
11882 done
11883fi
11884
11885if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11886 for ncn_progname in nm; do
5213506e
RW
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11888$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11889 if test -x $with_build_time_tools/${ncn_progname}; then
11890 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11892$as_echo "yes" >&6; }
e8b05380
PB
11893 break
11894 else
5213506e
RW
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11896$as_echo "no" >&6; }
e8b05380
PB
11897 fi
11898 done
11899fi
11900
11901if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11902 for ncn_progname in nm; do
11903 if test -n "$ncn_target_tool_prefix"; then
11904 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11905set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907$as_echo_n "checking for $ac_word... " >&6; }
11908if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11909 $as_echo_n "(cached) " >&6
ca9f4b81 11910else
4de997d1
PB
11911 if test -n "$NM_FOR_TARGET"; then
11912 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11913else
1c710c3c
DJ
11914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915for as_dir in $PATH
11916do
11917 IFS=$as_save_IFS
11918 test -z "$as_dir" && as_dir=.
5213506e
RW
11919 for ac_exec_ext in '' $ac_executable_extensions; do
11920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11921 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11923 break 2
11924 fi
11925done
5213506e
RW
11926 done
11927IFS=$as_save_IFS
1c710c3c 11928
ca9f4b81
AO
11929fi
11930fi
1c710c3c 11931NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11932if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11934$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11935else
5213506e
RW
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937$as_echo "no" >&6; }
ca9f4b81
AO
11938fi
11939
5213506e 11940
e8b05380
PB
11941 fi
11942 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11944set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11946$as_echo_n "checking for $ac_word... " >&6; }
11947if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
ca9f4b81 11949else
2693c0b0
PB
11950 if test -n "$NM_FOR_TARGET"; then
11951 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11952else
1c710c3c
DJ
11953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954for as_dir in $PATH
11955do
11956 IFS=$as_save_IFS
11957 test -z "$as_dir" && as_dir=.
5213506e
RW
11958 for ac_exec_ext in '' $ac_executable_extensions; do
11959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11960 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11962 break 2
11963 fi
11964done
5213506e
RW
11965 done
11966IFS=$as_save_IFS
1c710c3c 11967
ca9f4b81
AO
11968fi
11969fi
1c710c3c 11970NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 11971if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11973$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11974else
5213506e
RW
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11976$as_echo "no" >&6; }
ca9f4b81 11977fi
1c710c3c 11978
5213506e 11979
e8b05380
PB
11980 fi
11981 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11982 done
11983fi
1c710c3c 11984
2693c0b0
PB
11985if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11986 set dummy nm
11987 if test $build = $target ; then
11988 NM_FOR_TARGET="$2"
ca9f4b81 11989 else
2693c0b0 11990 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11991 fi
1c00b503
PB
11992else
11993 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
11994fi
11995
d1f8db0c
PB
11996else
11997 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
11998fi
11999
12000
12001
12002
12003if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12004 if test -n "$with_build_time_tools"; then
5213506e
RW
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12006$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12007 if test -x $with_build_time_tools/objdump; then
12008 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12009 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12011$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12012 else
5213506e
RW
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014$as_echo "no" >&6; }
d1f8db0c 12015 fi
e8b05380
PB
12016 elif test $build != $host && test $have_gcc_for_target = yes; then
12017 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12018 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12019 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12020 fi
12021fi
3e19841a 12022if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12023 # Extract the first word of "objdump", so it can be a program name with args.
12024set dummy objdump; ac_word=$2
5213506e
RW
12025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12026$as_echo_n "checking for $ac_word... " >&6; }
12027if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12028 $as_echo_n "(cached) " >&6
e8b05380 12029else
1c710c3c
DJ
12030 case $OBJDUMP_FOR_TARGET in
12031 [\\/]* | ?:[\\/]*)
e8b05380
PB
12032 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12033 ;;
e8b05380 12034 *)
1c710c3c
DJ
12035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12036for as_dir in $gcc_cv_tool_dirs
12037do
12038 IFS=$as_save_IFS
12039 test -z "$as_dir" && as_dir=.
5213506e
RW
12040 for ac_exec_ext in '' $ac_executable_extensions; do
12041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12042 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12044 break 2
12045 fi
12046done
5213506e
RW
12047 done
12048IFS=$as_save_IFS
1c710c3c 12049
e8b05380
PB
12050 ;;
12051esac
12052fi
1c710c3c 12053OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12054if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12056$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12057else
5213506e
RW
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059$as_echo "no" >&6; }
e8b05380
PB
12060fi
12061
5213506e 12062
e8b05380
PB
12063fi
12064if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12065
12066
12067if test -n "$OBJDUMP_FOR_TARGET"; then
12068 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12069elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12070 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12071fi
12072
12073if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12074 for ncn_progname in objdump; do
12075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12076set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12078$as_echo_n "checking for $ac_word... " >&6; }
12079if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12080 $as_echo_n "(cached) " >&6
278a7a38
AO
12081else
12082 if test -n "$OBJDUMP_FOR_TARGET"; then
12083 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12084else
12085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12086for as_dir in $PATH
12087do
12088 IFS=$as_save_IFS
12089 test -z "$as_dir" && as_dir=.
5213506e
RW
12090 for ac_exec_ext in '' $ac_executable_extensions; do
12091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12092 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12094 break 2
12095 fi
12096done
5213506e
RW
12097 done
12098IFS=$as_save_IFS
278a7a38
AO
12099
12100fi
12101fi
12102OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12103if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12105$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12106else
5213506e
RW
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108$as_echo "no" >&6; }
278a7a38
AO
12109fi
12110
5213506e 12111
278a7a38
AO
12112 done
12113fi
12114
12115if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12116 for ncn_progname in objdump; do
5213506e
RW
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12118$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12119 if test -x $with_build_time_tools/${ncn_progname}; then
12120 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12122$as_echo "yes" >&6; }
e8b05380
PB
12123 break
12124 else
5213506e
RW
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12126$as_echo "no" >&6; }
e8b05380
PB
12127 fi
12128 done
12129fi
12130
12131if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12132 for ncn_progname in objdump; do
12133 if test -n "$ncn_target_tool_prefix"; then
12134 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12135set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12137$as_echo_n "checking for $ac_word... " >&6; }
12138if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
d739199a
DJ
12140else
12141 if test -n "$OBJDUMP_FOR_TARGET"; then
12142 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12143else
1c710c3c
DJ
12144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145for as_dir in $PATH
12146do
12147 IFS=$as_save_IFS
12148 test -z "$as_dir" && as_dir=.
5213506e
RW
12149 for ac_exec_ext in '' $ac_executable_extensions; do
12150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12151 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12153 break 2
12154 fi
12155done
5213506e
RW
12156 done
12157IFS=$as_save_IFS
1c710c3c 12158
d739199a
DJ
12159fi
12160fi
1c710c3c 12161OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12162if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12164$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12165else
5213506e
RW
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167$as_echo "no" >&6; }
d739199a
DJ
12168fi
12169
5213506e 12170
e8b05380
PB
12171 fi
12172 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12174set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12176$as_echo_n "checking for $ac_word... " >&6; }
12177if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12178 $as_echo_n "(cached) " >&6
d739199a
DJ
12179else
12180 if test -n "$OBJDUMP_FOR_TARGET"; then
12181 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12182else
1c710c3c
DJ
12183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184for as_dir in $PATH
12185do
12186 IFS=$as_save_IFS
12187 test -z "$as_dir" && as_dir=.
5213506e
RW
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12190 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12192 break 2
12193 fi
12194done
5213506e
RW
12195 done
12196IFS=$as_save_IFS
1c710c3c 12197
d739199a
DJ
12198fi
12199fi
1c710c3c 12200OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12201if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12203$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12204else
5213506e
RW
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12206$as_echo "no" >&6; }
d739199a 12207fi
1c710c3c 12208
5213506e 12209
e8b05380
PB
12210 fi
12211 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12212 done
12213fi
1c710c3c 12214
d739199a
DJ
12215if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12216 set dummy objdump
12217 if test $build = $target ; then
12218 OBJDUMP_FOR_TARGET="$2"
12219 else
12220 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12221 fi
1c00b503
PB
12222else
12223 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12224fi
12225
d1f8db0c
PB
12226else
12227 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12228fi
12229
12230
12231
12232
12233if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12234 if test -n "$with_build_time_tools"; then
5213506e
RW
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12236$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12237 if test -x $with_build_time_tools/ranlib; then
12238 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12239 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12241$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12242 else
5213506e
RW
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12244$as_echo "no" >&6; }
d1f8db0c 12245 fi
e8b05380
PB
12246 elif test $build != $host && test $have_gcc_for_target = yes; then
12247 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12248 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12249 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12250 fi
12251fi
3e19841a 12252if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12253 # Extract the first word of "ranlib", so it can be a program name with args.
12254set dummy ranlib; ac_word=$2
5213506e
RW
12255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12256$as_echo_n "checking for $ac_word... " >&6; }
12257if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12258 $as_echo_n "(cached) " >&6
e8b05380 12259else
1c710c3c
DJ
12260 case $RANLIB_FOR_TARGET in
12261 [\\/]* | ?:[\\/]*)
e8b05380
PB
12262 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12263 ;;
e8b05380 12264 *)
1c710c3c
DJ
12265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12266for as_dir in $gcc_cv_tool_dirs
12267do
12268 IFS=$as_save_IFS
12269 test -z "$as_dir" && as_dir=.
5213506e
RW
12270 for ac_exec_ext in '' $ac_executable_extensions; do
12271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12272 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12274 break 2
12275 fi
12276done
5213506e
RW
12277 done
12278IFS=$as_save_IFS
1c710c3c 12279
e8b05380
PB
12280 ;;
12281esac
12282fi
1c710c3c 12283RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12284if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12286$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12287else
5213506e
RW
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
e8b05380
PB
12290fi
12291
5213506e 12292
e8b05380
PB
12293fi
12294if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12295
12296
12297if test -n "$RANLIB_FOR_TARGET"; then
12298 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12299elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12300 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12301fi
12302
12303if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12304 for ncn_progname in ranlib; do
12305 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12306set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12308$as_echo_n "checking for $ac_word... " >&6; }
12309if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12310 $as_echo_n "(cached) " >&6
278a7a38
AO
12311else
12312 if test -n "$RANLIB_FOR_TARGET"; then
12313 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12314else
12315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12316for as_dir in $PATH
12317do
12318 IFS=$as_save_IFS
12319 test -z "$as_dir" && as_dir=.
5213506e
RW
12320 for ac_exec_ext in '' $ac_executable_extensions; do
12321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12322 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12324 break 2
12325 fi
12326done
5213506e
RW
12327 done
12328IFS=$as_save_IFS
278a7a38
AO
12329
12330fi
12331fi
12332RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12333if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12335$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12336else
5213506e
RW
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338$as_echo "no" >&6; }
278a7a38
AO
12339fi
12340
5213506e 12341
278a7a38
AO
12342 done
12343fi
12344
12345if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12346 for ncn_progname in ranlib; do
5213506e
RW
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12348$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12349 if test -x $with_build_time_tools/${ncn_progname}; then
12350 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12352$as_echo "yes" >&6; }
e8b05380
PB
12353 break
12354 else
5213506e
RW
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356$as_echo "no" >&6; }
e8b05380
PB
12357 fi
12358 done
12359fi
12360
12361if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12362 for ncn_progname in ranlib; do
12363 if test -n "$ncn_target_tool_prefix"; then
12364 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12365set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12367$as_echo_n "checking for $ac_word... " >&6; }
12368if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12369 $as_echo_n "(cached) " >&6
ca9f4b81 12370else
4de997d1
PB
12371 if test -n "$RANLIB_FOR_TARGET"; then
12372 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12373else
1c710c3c
DJ
12374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375for as_dir in $PATH
12376do
12377 IFS=$as_save_IFS
12378 test -z "$as_dir" && as_dir=.
5213506e
RW
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12381 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12383 break 2
12384 fi
12385done
5213506e
RW
12386 done
12387IFS=$as_save_IFS
1c710c3c 12388
ca9f4b81
AO
12389fi
12390fi
1c710c3c 12391RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12392if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12394$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12395else
5213506e
RW
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397$as_echo "no" >&6; }
ca9f4b81
AO
12398fi
12399
5213506e 12400
e8b05380
PB
12401 fi
12402 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12404set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406$as_echo_n "checking for $ac_word... " >&6; }
12407if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12408 $as_echo_n "(cached) " >&6
ca9f4b81 12409else
2693c0b0
PB
12410 if test -n "$RANLIB_FOR_TARGET"; then
12411 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12412else
1c710c3c
DJ
12413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414for as_dir in $PATH
12415do
12416 IFS=$as_save_IFS
12417 test -z "$as_dir" && as_dir=.
5213506e
RW
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12420 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12422 break 2
12423 fi
12424done
5213506e
RW
12425 done
12426IFS=$as_save_IFS
1c710c3c 12427
ca9f4b81
AO
12428fi
12429fi
1c710c3c 12430RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12431if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12433$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12434else
5213506e
RW
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436$as_echo "no" >&6; }
ca9f4b81 12437fi
1c710c3c 12438
5213506e 12439
e8b05380
PB
12440 fi
12441 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12442 done
12443fi
1c710c3c 12444
e8b05380
PB
12445if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12446 set dummy ranlib
12447 if test $build = $target ; then
12448 RANLIB_FOR_TARGET="$2"
12449 else
12450 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12451 fi
1c00b503
PB
12452else
12453 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12454fi
2693c0b0 12455
d1f8db0c
PB
12456else
12457 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12458fi
12459
e8b05380
PB
12460
12461
12462
12463if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12464 if test -n "$with_build_time_tools"; then
5213506e
RW
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12466$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12467 if test -x $with_build_time_tools/strip; then
12468 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12469 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12471$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12472 else
5213506e
RW
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12474$as_echo "no" >&6; }
d1f8db0c 12475 fi
e8b05380
PB
12476 elif test $build != $host && test $have_gcc_for_target = yes; then
12477 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12478 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12479 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12480 fi
12481fi
3e19841a 12482if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12483 # Extract the first word of "strip", so it can be a program name with args.
12484set dummy strip; ac_word=$2
5213506e
RW
12485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12486$as_echo_n "checking for $ac_word... " >&6; }
12487if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12488 $as_echo_n "(cached) " >&6
e8b05380 12489else
1c710c3c
DJ
12490 case $STRIP_FOR_TARGET in
12491 [\\/]* | ?:[\\/]*)
e8b05380
PB
12492 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12493 ;;
e8b05380 12494 *)
1c710c3c
DJ
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496for as_dir in $gcc_cv_tool_dirs
12497do
12498 IFS=$as_save_IFS
12499 test -z "$as_dir" && as_dir=.
5213506e
RW
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12502 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12504 break 2
12505 fi
12506done
5213506e
RW
12507 done
12508IFS=$as_save_IFS
1c710c3c 12509
e8b05380
PB
12510 ;;
12511esac
12512fi
1c710c3c 12513STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12514if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12516$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12517else
5213506e
RW
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519$as_echo "no" >&6; }
e8b05380
PB
12520fi
12521
5213506e 12522
e8b05380
PB
12523fi
12524if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12525
12526
12527if test -n "$STRIP_FOR_TARGET"; then
12528 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12529elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12530 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12531fi
12532
12533if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12534 for ncn_progname in strip; do
12535 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12536set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538$as_echo_n "checking for $ac_word... " >&6; }
12539if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12540 $as_echo_n "(cached) " >&6
278a7a38
AO
12541else
12542 if test -n "$STRIP_FOR_TARGET"; then
12543 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12544else
12545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546for as_dir in $PATH
12547do
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
5213506e
RW
12550 for ac_exec_ext in '' $ac_executable_extensions; do
12551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12552 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12554 break 2
12555 fi
12556done
5213506e
RW
12557 done
12558IFS=$as_save_IFS
278a7a38
AO
12559
12560fi
12561fi
12562STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12563if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12565$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12566else
5213506e
RW
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568$as_echo "no" >&6; }
278a7a38
AO
12569fi
12570
5213506e 12571
278a7a38
AO
12572 done
12573fi
12574
12575if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12576 for ncn_progname in strip; do
5213506e
RW
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12578$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12579 if test -x $with_build_time_tools/${ncn_progname}; then
12580 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12582$as_echo "yes" >&6; }
e8b05380
PB
12583 break
12584 else
5213506e
RW
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
e8b05380
PB
12587 fi
12588 done
12589fi
12590
12591if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12592 for ncn_progname in strip; do
12593 if test -n "$ncn_target_tool_prefix"; then
12594 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12595set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597$as_echo_n "checking for $ac_word... " >&6; }
12598if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12599 $as_echo_n "(cached) " >&6
af71363e
AS
12600else
12601 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12602 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12603else
12604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605for as_dir in $PATH
12606do
12607 IFS=$as_save_IFS
12608 test -z "$as_dir" && as_dir=.
5213506e
RW
12609 for ac_exec_ext in '' $ac_executable_extensions; do
12610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12611 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12613 break 2
12614 fi
12615done
5213506e
RW
12616 done
12617IFS=$as_save_IFS
1c710c3c 12618
040b1c5a
GK
12619fi
12620fi
1c710c3c 12621STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12622if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12624$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12625else
5213506e
RW
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627$as_echo "no" >&6; }
040b1c5a
GK
12628fi
12629
5213506e 12630
e8b05380
PB
12631 fi
12632 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12634set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636$as_echo_n "checking for $ac_word... " >&6; }
12637if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12638 $as_echo_n "(cached) " >&6
040b1c5a
GK
12639else
12640 if test -n "$STRIP_FOR_TARGET"; then
12641 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12642else
1c710c3c
DJ
12643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12644for as_dir in $PATH
12645do
12646 IFS=$as_save_IFS
12647 test -z "$as_dir" && as_dir=.
5213506e
RW
12648 for ac_exec_ext in '' $ac_executable_extensions; do
12649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12650 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12652 break 2
12653 fi
12654done
5213506e
RW
12655 done
12656IFS=$as_save_IFS
1c710c3c 12657
040b1c5a
GK
12658fi
12659fi
1c710c3c 12660STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12661if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12663$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12664else
5213506e
RW
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12666$as_echo "no" >&6; }
040b1c5a 12667fi
1c710c3c 12668
5213506e 12669
e8b05380
PB
12670 fi
12671 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12672 done
12673fi
1c710c3c 12674
040b1c5a
GK
12675if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12676 set dummy strip
12677 if test $build = $target ; then
12678 STRIP_FOR_TARGET="$2"
12679 else
12680 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12681 fi
1c00b503
PB
12682else
12683 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
12684fi
12685
d1f8db0c
PB
12686else
12687 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
12688fi
12689
12690
12691
12692
12693if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12694 if test -n "$with_build_time_tools"; then
5213506e
RW
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12696$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12697 if test -x $with_build_time_tools/windres; then
12698 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12699 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12701$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 12702 else
5213506e
RW
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704$as_echo "no" >&6; }
d1f8db0c 12705 fi
e8b05380
PB
12706 elif test $build != $host && test $have_gcc_for_target = yes; then
12707 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
12708 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12709 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
12710 fi
12711fi
3e19841a 12712if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12713 # Extract the first word of "windres", so it can be a program name with args.
12714set dummy windres; ac_word=$2
5213506e
RW
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716$as_echo_n "checking for $ac_word... " >&6; }
12717if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12718 $as_echo_n "(cached) " >&6
e8b05380 12719else
1c710c3c
DJ
12720 case $WINDRES_FOR_TARGET in
12721 [\\/]* | ?:[\\/]*)
e8b05380
PB
12722 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12723 ;;
e8b05380 12724 *)
1c710c3c
DJ
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726for as_dir in $gcc_cv_tool_dirs
12727do
12728 IFS=$as_save_IFS
12729 test -z "$as_dir" && as_dir=.
5213506e
RW
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12732 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12734 break 2
12735 fi
12736done
5213506e
RW
12737 done
12738IFS=$as_save_IFS
1c710c3c 12739
e8b05380
PB
12740 ;;
12741esac
12742fi
1c710c3c 12743WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 12744if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12746$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 12747else
5213506e
RW
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749$as_echo "no" >&6; }
e8b05380
PB
12750fi
12751
5213506e 12752
e8b05380
PB
12753fi
12754if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
12755
12756
12757if test -n "$WINDRES_FOR_TARGET"; then
12758 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12759elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12760 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12761fi
12762
12763if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12764 for ncn_progname in windres; do
12765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12766set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12768$as_echo_n "checking for $ac_word... " >&6; }
12769if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12770 $as_echo_n "(cached) " >&6
278a7a38
AO
12771else
12772 if test -n "$WINDRES_FOR_TARGET"; then
12773 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12774else
12775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12776for as_dir in $PATH
12777do
12778 IFS=$as_save_IFS
12779 test -z "$as_dir" && as_dir=.
5213506e
RW
12780 for ac_exec_ext in '' $ac_executable_extensions; do
12781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12782 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12784 break 2
12785 fi
12786done
5213506e
RW
12787 done
12788IFS=$as_save_IFS
278a7a38
AO
12789
12790fi
12791fi
12792WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12793if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12795$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 12796else
5213506e
RW
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12798$as_echo "no" >&6; }
278a7a38
AO
12799fi
12800
5213506e 12801
278a7a38
AO
12802 done
12803fi
12804
12805if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12806 for ncn_progname in windres; do
5213506e
RW
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12808$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12809 if test -x $with_build_time_tools/${ncn_progname}; then
12810 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12812$as_echo "yes" >&6; }
e8b05380
PB
12813 break
12814 else
5213506e
RW
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12816$as_echo "no" >&6; }
e8b05380
PB
12817 fi
12818 done
12819fi
12820
12821if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12822 for ncn_progname in windres; do
12823 if test -n "$ncn_target_tool_prefix"; then
12824 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12825set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12827$as_echo_n "checking for $ac_word... " >&6; }
12828if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12829 $as_echo_n "(cached) " >&6
ca9f4b81 12830else
4de997d1
PB
12831 if test -n "$WINDRES_FOR_TARGET"; then
12832 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12833else
1c710c3c
DJ
12834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12835for as_dir in $PATH
12836do
12837 IFS=$as_save_IFS
12838 test -z "$as_dir" && as_dir=.
5213506e
RW
12839 for ac_exec_ext in '' $ac_executable_extensions; do
12840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12841 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12843 break 2
12844 fi
12845done
5213506e
RW
12846 done
12847IFS=$as_save_IFS
1c710c3c 12848
ca9f4b81
AO
12849fi
12850fi
1c710c3c 12851WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 12852if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12854$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12855else
5213506e
RW
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857$as_echo "no" >&6; }
ca9f4b81
AO
12858fi
12859
5213506e 12860
e8b05380
PB
12861 fi
12862 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12863 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12864set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12866$as_echo_n "checking for $ac_word... " >&6; }
12867if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12868 $as_echo_n "(cached) " >&6
ca9f4b81 12869else
2693c0b0
PB
12870 if test -n "$WINDRES_FOR_TARGET"; then
12871 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12872else
1c710c3c
DJ
12873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12874for as_dir in $PATH
12875do
12876 IFS=$as_save_IFS
12877 test -z "$as_dir" && as_dir=.
5213506e
RW
12878 for ac_exec_ext in '' $ac_executable_extensions; do
12879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12880 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12882 break 2
12883 fi
12884done
5213506e
RW
12885 done
12886IFS=$as_save_IFS
1c710c3c 12887
ca9f4b81
AO
12888fi
12889fi
1c710c3c 12890WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 12891if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12893$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12894else
5213506e
RW
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896$as_echo "no" >&6; }
ca9f4b81 12897fi
1c710c3c 12898
5213506e 12899
e8b05380
PB
12900 fi
12901 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12902 done
12903fi
1c710c3c 12904
2693c0b0
PB
12905if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12906 set dummy windres
12907 if test $build = $target ; then
12908 WINDRES_FOR_TARGET="$2"
ca9f4b81 12909 else
2693c0b0 12910 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12911 fi
1c00b503
PB
12912else
12913 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
12914fi
12915
d1f8db0c
PB
12916else
12917 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
12918fi
12919
4977bab6 12920
901119ae
KT
12921
12922
12923if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12924 if test -n "$with_build_time_tools"; then
5213506e
RW
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12926$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
12927 if test -x $with_build_time_tools/windmc; then
12928 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12929 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12931$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 12932 else
5213506e
RW
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12934$as_echo "no" >&6; }
901119ae
KT
12935 fi
12936 elif test $build != $host && test $have_gcc_for_target = yes; then
12937 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
12938 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12939 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
12940 fi
12941fi
12942if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12943 # Extract the first word of "windmc", so it can be a program name with args.
12944set dummy windmc; ac_word=$2
5213506e
RW
12945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12946$as_echo_n "checking for $ac_word... " >&6; }
12947if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12948 $as_echo_n "(cached) " >&6
901119ae
KT
12949else
12950 case $WINDMC_FOR_TARGET in
12951 [\\/]* | ?:[\\/]*)
12952 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12953 ;;
12954 *)
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956for as_dir in $gcc_cv_tool_dirs
12957do
12958 IFS=$as_save_IFS
12959 test -z "$as_dir" && as_dir=.
5213506e
RW
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12962 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12964 break 2
12965 fi
12966done
5213506e
RW
12967 done
12968IFS=$as_save_IFS
901119ae
KT
12969
12970 ;;
12971esac
12972fi
12973WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 12974if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12976$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12977else
5213506e
RW
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979$as_echo "no" >&6; }
901119ae
KT
12980fi
12981
5213506e 12982
901119ae
KT
12983fi
12984if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12985
12986
12987if test -n "$WINDMC_FOR_TARGET"; then
12988 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12989elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12990 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12991fi
12992
12993if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12994 for ncn_progname in windmc; do
12995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12996set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12998$as_echo_n "checking for $ac_word... " >&6; }
12999if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13000 $as_echo_n "(cached) " >&6
901119ae
KT
13001else
13002 if test -n "$WINDMC_FOR_TARGET"; then
13003 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13004else
13005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006for as_dir in $PATH
13007do
13008 IFS=$as_save_IFS
13009 test -z "$as_dir" && as_dir=.
5213506e
RW
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13012 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13014 break 2
13015 fi
13016done
5213506e
RW
13017 done
13018IFS=$as_save_IFS
901119ae
KT
13019
13020fi
13021fi
13022WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13023if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13025$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13026else
5213506e
RW
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13028$as_echo "no" >&6; }
901119ae
KT
13029fi
13030
5213506e 13031
901119ae
KT
13032 done
13033fi
13034
13035if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13036 for ncn_progname in windmc; do
5213506e
RW
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13038$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13039 if test -x $with_build_time_tools/${ncn_progname}; then
13040 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13042$as_echo "yes" >&6; }
901119ae
KT
13043 break
13044 else
5213506e
RW
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13046$as_echo "no" >&6; }
901119ae
KT
13047 fi
13048 done
13049fi
13050
13051if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13052 for ncn_progname in windmc; do
13053 if test -n "$ncn_target_tool_prefix"; then
13054 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13055set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13057$as_echo_n "checking for $ac_word... " >&6; }
13058if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13059 $as_echo_n "(cached) " >&6
901119ae
KT
13060else
13061 if test -n "$WINDMC_FOR_TARGET"; then
13062 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13063else
13064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13065for as_dir in $PATH
13066do
13067 IFS=$as_save_IFS
13068 test -z "$as_dir" && as_dir=.
5213506e
RW
13069 for ac_exec_ext in '' $ac_executable_extensions; do
13070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13071 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13073 break 2
13074 fi
13075done
5213506e
RW
13076 done
13077IFS=$as_save_IFS
901119ae
KT
13078
13079fi
13080fi
13081WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13082if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13084$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13085else
5213506e
RW
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13087$as_echo "no" >&6; }
901119ae
KT
13088fi
13089
5213506e 13090
901119ae
KT
13091 fi
13092 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13094set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13096$as_echo_n "checking for $ac_word... " >&6; }
13097if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13098 $as_echo_n "(cached) " >&6
901119ae
KT
13099else
13100 if test -n "$WINDMC_FOR_TARGET"; then
13101 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13102else
13103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13104for as_dir in $PATH
13105do
13106 IFS=$as_save_IFS
13107 test -z "$as_dir" && as_dir=.
5213506e
RW
13108 for ac_exec_ext in '' $ac_executable_extensions; do
13109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13110 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13112 break 2
13113 fi
13114done
5213506e
RW
13115 done
13116IFS=$as_save_IFS
901119ae
KT
13117
13118fi
13119fi
13120WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13121if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13123$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13124else
5213506e
RW
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126$as_echo "no" >&6; }
901119ae
KT
13127fi
13128
5213506e 13129
901119ae
KT
13130 fi
13131 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13132 done
13133fi
13134
13135if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13136 set dummy windmc
13137 if test $build = $target ; then
13138 WINDMC_FOR_TARGET="$2"
13139 else
13140 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13141 fi
1c00b503
PB
13142else
13143 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13144fi
13145
13146else
13147 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13148fi
13149
13150
2abefe3d
PB
13151RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13152
5213506e
RW
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13154$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13155if test "x${build}" != "x${host}" ; then
e8b05380
PB
13156 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13157 # We already found the complete path
172e41aa 13158 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13160$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13161 else
13162 # Canadian cross, just use what we found
5213506e
RW
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13164$as_echo "pre-installed" >&6; }
e8b05380 13165 fi
2abefe3d
PB
13166else
13167 ok=yes
13168 case " ${configdirs} " in
13169 *" binutils "*) ;;
13170 *) ok=no ;;
13171 esac
1c710c3c 13172
2abefe3d
PB
13173 if test $ok = yes; then
13174 # An in-tree tool is available and we can use it
13175 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13177$as_echo "just compiled" >&6; }
e8b05380
PB
13178 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13179 # We already found the complete path
172e41aa 13180 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13182$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13183 elif test "x$target" = "x$host"; then
13184 # We can use an host tool
13185 AR_FOR_TARGET='$(AR)'
5213506e
RW
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13187$as_echo "host tool" >&6; }
2abefe3d
PB
13188 else
13189 # We need a cross tool
5213506e
RW
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13191$as_echo "pre-installed" >&6; }
2abefe3d
PB
13192 fi
13193fi
0b0dc272 13194
5213506e
RW
13195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13196$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13197if test "x${build}" != "x${host}" ; then
e8b05380
PB
13198 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13199 # We already found the complete path
172e41aa 13200 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13202$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13203 else
13204 # Canadian cross, just use what we found
5213506e
RW
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13206$as_echo "pre-installed" >&6; }
e8b05380 13207 fi
2abefe3d
PB
13208else
13209 ok=yes
13210 case " ${configdirs} " in
13211 *" gas "*) ;;
13212 *) ok=no ;;
13213 esac
1c710c3c 13214
2abefe3d
PB
13215 if test $ok = yes; then
13216 # An in-tree tool is available and we can use it
13217 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13219$as_echo "just compiled" >&6; }
e8b05380
PB
13220 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13221 # We already found the complete path
172e41aa 13222 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13224$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13225 elif test "x$target" = "x$host"; then
13226 # We can use an host tool
13227 AS_FOR_TARGET='$(AS)'
5213506e
RW
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13229$as_echo "host tool" >&6; }
2abefe3d
PB
13230 else
13231 # We need a cross tool
5213506e
RW
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13233$as_echo "pre-installed" >&6; }
2abefe3d
PB
13234 fi
13235fi
0b0dc272 13236
5213506e
RW
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13238$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13239if test "x${build}" != "x${host}" ; then
e8b05380
PB
13240 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13241 # We already found the complete path
172e41aa 13242 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13244$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13245 else
13246 # Canadian cross, just use what we found
5213506e
RW
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13248$as_echo "pre-installed" >&6; }
e8b05380 13249 fi
2abefe3d
PB
13250else
13251 ok=yes
13252 case " ${configdirs} " in
13253 *" gcc "*) ;;
13254 *) ok=no ;;
13255 esac
1c710c3c 13256
2abefe3d
PB
13257 if test $ok = yes; then
13258 # An in-tree tool is available and we can use it
13259 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13261$as_echo "just compiled" >&6; }
e8b05380
PB
13262 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13263 # We already found the complete path
172e41aa 13264 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13266$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13267 elif test "x$target" = "x$host"; then
13268 # We can use an host tool
13269 CC_FOR_TARGET='$(CC)'
5213506e
RW
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13271$as_echo "host tool" >&6; }
2abefe3d
PB
13272 else
13273 # We need a cross tool
5213506e
RW
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13275$as_echo "pre-installed" >&6; }
2abefe3d
PB
13276 fi
13277fi
0b0dc272 13278
5213506e
RW
13279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13280$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13281if test "x${build}" != "x${host}" ; then
e8b05380
PB
13282 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13283 # We already found the complete path
172e41aa 13284 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13286$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13287 else
13288 # Canadian cross, just use what we found
5213506e
RW
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13290$as_echo "pre-installed" >&6; }
e8b05380 13291 fi
2abefe3d
PB
13292else
13293 ok=yes
13294 case " ${configdirs} " in
13295 *" gcc "*) ;;
13296 *) ok=no ;;
13297 esac
13298 case ,${enable_languages}, in
13299 *,c++,*) ;;
13300 *) ok=no ;;
13301 esac
13302 if test $ok = yes; then
13303 # An in-tree tool is available and we can use it
9aff220f 13304 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
5213506e
RW
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13306$as_echo "just compiled" >&6; }
e8b05380
PB
13307 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13308 # We already found the complete path
172e41aa 13309 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13311$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13312 elif test "x$target" = "x$host"; then
13313 # We can use an host tool
13314 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13316$as_echo "host tool" >&6; }
2abefe3d
PB
13317 else
13318 # We need a cross tool
5213506e
RW
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13320$as_echo "pre-installed" >&6; }
2abefe3d
PB
13321 fi
13322fi
0b0dc272 13323
5213506e
RW
13324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13325$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13326if test "x${build}" != "x${host}" ; then
e8b05380
PB
13327 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13328 # We already found the complete path
172e41aa 13329 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13331$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13332 else
13333 # Canadian cross, just use what we found
5213506e
RW
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13335$as_echo "pre-installed" >&6; }
e8b05380 13336 fi
2abefe3d
PB
13337else
13338 ok=yes
13339 case " ${configdirs} " in
13340 *" gcc "*) ;;
13341 *) ok=no ;;
13342 esac
13343 case ,${enable_languages}, in
13344 *,c++,*) ;;
13345 *) ok=no ;;
13346 esac
13347 if test $ok = yes; then
13348 # An in-tree tool is available and we can use it
13349 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'
5213506e
RW
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13351$as_echo "just compiled" >&6; }
e8b05380
PB
13352 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13353 # We already found the complete path
172e41aa 13354 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13356$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13357 elif test "x$target" = "x$host"; then
13358 # We can use an host tool
13359 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13361$as_echo "host tool" >&6; }
2abefe3d
PB
13362 else
13363 # We need a cross tool
5213506e
RW
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13365$as_echo "pre-installed" >&6; }
2abefe3d
PB
13366 fi
13367fi
0b0dc272 13368
5213506e
RW
13369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13370$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13371if test "x${build}" != "x${host}" ; then
e8b05380
PB
13372 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13373 # We already found the complete path
172e41aa 13374 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13376$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13377 else
13378 # Canadian cross, just use what we found
5213506e
RW
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13380$as_echo "pre-installed" >&6; }
e8b05380 13381 fi
2abefe3d
PB
13382else
13383 ok=yes
13384 case " ${configdirs} " in
13385 *" binutils "*) ;;
13386 *) ok=no ;;
13387 esac
1c710c3c 13388
2abefe3d
PB
13389 if test $ok = yes; then
13390 # An in-tree tool is available and we can use it
13391 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13393$as_echo "just compiled" >&6; }
e8b05380
PB
13394 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13395 # We already found the complete path
172e41aa 13396 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13398$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13399 elif test "x$target" = "x$host"; then
13400 # We can use an host tool
13401 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13403$as_echo "host tool" >&6; }
2abefe3d
PB
13404 else
13405 # We need a cross tool
5213506e
RW
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13407$as_echo "pre-installed" >&6; }
2abefe3d
PB
13408 fi
13409fi
0b0dc272 13410
5213506e
RW
13411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13412$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13413if test "x${build}" != "x${host}" ; then
e8b05380
PB
13414 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13415 # We already found the complete path
172e41aa 13416 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13418$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13419 else
13420 # Canadian cross, just use what we found
5213506e
RW
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13422$as_echo "pre-installed" >&6; }
e8b05380 13423 fi
2abefe3d
PB
13424else
13425 ok=yes
13426 case " ${configdirs} " in
13427 *" gcc "*) ;;
13428 *) ok=no ;;
13429 esac
1c710c3c 13430
2abefe3d
PB
13431 if test $ok = yes; then
13432 # An in-tree tool is available and we can use it
13433 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13435$as_echo "just compiled" >&6; }
e8b05380
PB
13436 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13437 # We already found the complete path
172e41aa 13438 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13440$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13441 elif test "x$target" = "x$host"; then
13442 # We can use an host tool
13443 GCC_FOR_TARGET='$()'
5213506e
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13445$as_echo "host tool" >&6; }
2abefe3d
PB
13446 else
13447 # We need a cross tool
5213506e
RW
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13449$as_echo "pre-installed" >&6; }
2abefe3d
PB
13450 fi
13451fi
0b0dc272 13452
5213506e
RW
13453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13454$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13455if test "x${build}" != "x${host}" ; then
e8b05380
PB
13456 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13457 # We already found the complete path
172e41aa 13458 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13460$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13461 else
13462 # Canadian cross, just use what we found
5213506e
RW
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13464$as_echo "pre-installed" >&6; }
e8b05380 13465 fi
2abefe3d
PB
13466else
13467 ok=yes
13468 case " ${configdirs} " in
13469 *" gcc "*) ;;
13470 *) ok=no ;;
13471 esac
13472 case ,${enable_languages}, in
13473 *,java,*) ;;
13474 *) ok=no ;;
13475 esac
13476 if test $ok = yes; then
13477 # An in-tree tool is available and we can use it
13478 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13480$as_echo "just compiled" >&6; }
e8b05380
PB
13481 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13482 # We already found the complete path
172e41aa 13483 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13485$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13486 elif test "x$target" = "x$host"; then
13487 # We can use an host tool
13488 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13490$as_echo "host tool" >&6; }
2abefe3d
PB
13491 else
13492 # We need a cross tool
5213506e
RW
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13494$as_echo "pre-installed" >&6; }
2abefe3d
PB
13495 fi
13496fi
0b0dc272 13497
5213506e
RW
13498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13499$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13500if test "x${build}" != "x${host}" ; then
e8b05380
PB
13501 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13502 # We already found the complete path
172e41aa 13503 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13505$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13506 else
13507 # Canadian cross, just use what we found
5213506e
RW
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13509$as_echo "pre-installed" >&6; }
e8b05380 13510 fi
2abefe3d
PB
13511else
13512 ok=yes
13513 case " ${configdirs} " in
13514 *" gcc "*) ;;
13515 *) ok=no ;;
13516 esac
13517 case ,${enable_languages}, in
13518 *,fortran,*) ;;
13519 *) ok=no ;;
13520 esac
13521 if test $ok = yes; then
13522 # An in-tree tool is available and we can use it
13523 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13525$as_echo "just compiled" >&6; }
e8b05380
PB
13526 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13527 # We already found the complete path
172e41aa 13528 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13530$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13531 elif test "x$target" = "x$host"; then
13532 # We can use an host tool
13533 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13535$as_echo "host tool" >&6; }
2abefe3d
PB
13536 else
13537 # We need a cross tool
5213506e
RW
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13539$as_echo "pre-installed" >&6; }
2abefe3d
PB
13540 fi
13541fi
0b0dc272 13542
632e2a07
ILT
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13544$as_echo_n "checking where to find the target gccgo... " >&6; }
13545if test "x${build}" != "x${host}" ; then
13546 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13547 # We already found the complete path
13548 ac_dir=`dirname $GOC_FOR_TARGET`
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13550$as_echo "pre-installed in $ac_dir" >&6; }
13551 else
13552 # Canadian cross, just use what we found
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13554$as_echo "pre-installed" >&6; }
13555 fi
13556else
13557 ok=yes
13558 case " ${configdirs} " in
13559 *" gcc "*) ;;
13560 *) ok=no ;;
13561 esac
13562 case ,${enable_languages}, in
13563 *,go,*) ;;
13564 *) ok=no ;;
13565 esac
13566 if test $ok = yes; then
13567 # An in-tree tool is available and we can use it
13568 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13570$as_echo "just compiled" >&6; }
13571 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13572 # We already found the complete path
13573 ac_dir=`dirname $GOC_FOR_TARGET`
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13575$as_echo "pre-installed in $ac_dir" >&6; }
13576 elif test "x$target" = "x$host"; then
13577 # We can use an host tool
13578 GOC_FOR_TARGET='$(GOC)'
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13580$as_echo "host tool" >&6; }
13581 else
13582 # We need a cross tool
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13584$as_echo "pre-installed" >&6; }
13585 fi
13586fi
13587
5213506e
RW
13588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13589$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13590if test "x${build}" != "x${host}" ; then
e8b05380
PB
13591 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13592 # We already found the complete path
172e41aa 13593 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13595$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13596 else
13597 # Canadian cross, just use what we found
5213506e
RW
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13599$as_echo "pre-installed" >&6; }
e8b05380 13600 fi
2abefe3d
PB
13601else
13602 ok=yes
13603 case " ${configdirs} " in
13604 *" ld "*) ;;
13605 *) ok=no ;;
13606 esac
1c710c3c 13607
2abefe3d
PB
13608 if test $ok = yes; then
13609 # An in-tree tool is available and we can use it
13610 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13612$as_echo "just compiled" >&6; }
e8b05380
PB
13613 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13614 # We already found the complete path
172e41aa 13615 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13617$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13618 elif test "x$target" = "x$host"; then
13619 # We can use an host tool
13620 LD_FOR_TARGET='$(LD)'
5213506e
RW
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13622$as_echo "host tool" >&6; }
2abefe3d
PB
13623 else
13624 # We need a cross tool
5213506e
RW
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13626$as_echo "pre-installed" >&6; }
2abefe3d
PB
13627 fi
13628fi
0b0dc272 13629
5213506e
RW
13630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13631$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13632if test "x${build}" != "x${host}" ; then
e8b05380
PB
13633 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13634 # We already found the complete path
172e41aa 13635 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13637$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13638 else
13639 # Canadian cross, just use what we found
5213506e
RW
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13641$as_echo "pre-installed" >&6; }
e8b05380 13642 fi
2abefe3d 13643else
e8b05380
PB
13644 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13645 # We already found the complete path
172e41aa 13646 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13648$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 13649 elif test "x$target" = "x$host"; then
2abefe3d
PB
13650 # We can use an host tool
13651 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13653$as_echo "host tool" >&6; }
2abefe3d
PB
13654 else
13655 # We need a cross tool
5213506e
RW
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13657$as_echo "pre-installed" >&6; }
2abefe3d
PB
13658 fi
13659fi
0b0dc272 13660
5213506e
RW
13661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13662$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 13663if test "x${build}" != "x${host}" ; then
e8b05380
PB
13664 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13665 # We already found the complete path
172e41aa 13666 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13668$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13669 else
13670 # Canadian cross, just use what we found
5213506e
RW
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13672$as_echo "pre-installed" >&6; }
e8b05380 13673 fi
2abefe3d
PB
13674else
13675 ok=yes
13676 case " ${configdirs} " in
13677 *" binutils "*) ;;
13678 *) ok=no ;;
13679 esac
1c710c3c 13680
2abefe3d
PB
13681 if test $ok = yes; then
13682 # An in-tree tool is available and we can use it
13683 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13685$as_echo "just compiled" >&6; }
e8b05380
PB
13686 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13687 # We already found the complete path
172e41aa 13688 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13690$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13691 elif test "x$target" = "x$host"; then
13692 # We can use an host tool
13693 NM_FOR_TARGET='$(NM)'
5213506e
RW
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13695$as_echo "host tool" >&6; }
2abefe3d
PB
13696 else
13697 # We need a cross tool
5213506e
RW
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13699$as_echo "pre-installed" >&6; }
2abefe3d
PB
13700 fi
13701fi
0b0dc272 13702
5213506e
RW
13703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13704$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 13705if test "x${build}" != "x${host}" ; then
e8b05380
PB
13706 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13707 # We already found the complete path
172e41aa 13708 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13710$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13711 else
13712 # Canadian cross, just use what we found
5213506e
RW
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13714$as_echo "pre-installed" >&6; }
e8b05380 13715 fi
2abefe3d
PB
13716else
13717 ok=yes
13718 case " ${configdirs} " in
13719 *" binutils "*) ;;
13720 *) ok=no ;;
13721 esac
1c710c3c 13722
2abefe3d
PB
13723 if test $ok = yes; then
13724 # An in-tree tool is available and we can use it
13725 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13727$as_echo "just compiled" >&6; }
e8b05380
PB
13728 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13729 # We already found the complete path
172e41aa 13730 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13732$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13733 elif test "x$target" = "x$host"; then
13734 # We can use an host tool
13735 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13737$as_echo "host tool" >&6; }
2abefe3d
PB
13738 else
13739 # We need a cross tool
5213506e
RW
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13741$as_echo "pre-installed" >&6; }
2abefe3d
PB
13742 fi
13743fi
0b0dc272 13744
5213506e
RW
13745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13746$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 13747if test "x${build}" != "x${host}" ; then
e8b05380
PB
13748 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13749 # We already found the complete path
172e41aa 13750 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13752$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13753 else
13754 # Canadian cross, just use what we found
5213506e
RW
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13756$as_echo "pre-installed" >&6; }
e8b05380 13757 fi
2abefe3d
PB
13758else
13759 ok=yes
13760 case " ${configdirs} " in
13761 *" binutils "*) ;;
13762 *) ok=no ;;
13763 esac
1c710c3c 13764
2abefe3d
PB
13765 if test $ok = yes; then
13766 # An in-tree tool is available and we can use it
13767 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13769$as_echo "just compiled" >&6; }
e8b05380
PB
13770 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13771 # We already found the complete path
172e41aa 13772 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13774$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13775 elif test "x$target" = "x$host"; then
13776 # We can use an host tool
13777 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13779$as_echo "host tool" >&6; }
2abefe3d
PB
13780 else
13781 # We need a cross tool
5213506e
RW
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13783$as_echo "pre-installed" >&6; }
2abefe3d
PB
13784 fi
13785fi
0b0dc272 13786
5213506e
RW
13787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13788$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 13789if test "x${build}" != "x${host}" ; then
e8b05380
PB
13790 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13791 # We already found the complete path
172e41aa 13792 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13794$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13795 else
13796 # Canadian cross, just use what we found
5213506e
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13798$as_echo "pre-installed" >&6; }
e8b05380 13799 fi
2abefe3d
PB
13800else
13801 ok=yes
13802 case " ${configdirs} " in
13803 *" binutils "*) ;;
13804 *) ok=no ;;
13805 esac
1c710c3c 13806
2abefe3d
PB
13807 if test $ok = yes; then
13808 # An in-tree tool is available and we can use it
455c8f48 13809 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13811$as_echo "just compiled" >&6; }
e8b05380
PB
13812 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13813 # We already found the complete path
172e41aa 13814 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13816$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13817 elif test "x$target" = "x$host"; then
13818 # We can use an host tool
13819 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13821$as_echo "host tool" >&6; }
2abefe3d
PB
13822 else
13823 # We need a cross tool
5213506e
RW
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13825$as_echo "pre-installed" >&6; }
2abefe3d
PB
13826 fi
13827fi
0b0dc272 13828
5213506e
RW
13829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13830$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 13831if test "x${build}" != "x${host}" ; then
e8b05380
PB
13832 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13833 # We already found the complete path
172e41aa 13834 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13836$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13837 else
13838 # Canadian cross, just use what we found
5213506e
RW
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13840$as_echo "pre-installed" >&6; }
e8b05380 13841 fi
2abefe3d
PB
13842else
13843 ok=yes
13844 case " ${configdirs} " in
13845 *" binutils "*) ;;
13846 *) ok=no ;;
13847 esac
1c710c3c 13848
2abefe3d
PB
13849 if test $ok = yes; then
13850 # An in-tree tool is available and we can use it
13851 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13853$as_echo "just compiled" >&6; }
e8b05380
PB
13854 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13855 # We already found the complete path
172e41aa 13856 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13858$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13859 elif test "x$target" = "x$host"; then
13860 # We can use an host tool
13861 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13863$as_echo "host tool" >&6; }
2abefe3d
PB
13864 else
13865 # We need a cross tool
5213506e
RW
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13867$as_echo "pre-installed" >&6; }
2abefe3d 13868 fi
671aa708 13869fi
be912515 13870
5213506e
RW
13871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13872$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
13873if test "x${build}" != "x${host}" ; then
13874 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13875 # We already found the complete path
13876 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13878$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13879 else
13880 # Canadian cross, just use what we found
5213506e
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13882$as_echo "pre-installed" >&6; }
901119ae
KT
13883 fi
13884else
13885 ok=yes
13886 case " ${configdirs} " in
13887 *" binutils "*) ;;
13888 *) ok=no ;;
13889 esac
13890
13891 if test $ok = yes; then
13892 # An in-tree tool is available and we can use it
13893 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13895$as_echo "just compiled" >&6; }
901119ae
KT
13896 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13897 # We already found the complete path
13898 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13900$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13901 elif test "x$target" = "x$host"; then
13902 # We can use an host tool
13903 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13905$as_echo "host tool" >&6; }
901119ae
KT
13906 else
13907 # We need a cross tool
5213506e
RW
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13909$as_echo "pre-installed" >&6; }
901119ae
KT
13910 fi
13911fi
13912
be912515
NN
13913
13914
2abefe3d 13915
0b0dc272 13916
671aa708
NN
13917# Certain tools may need extra flags.
13918AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13919RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13920NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13921
2abefe3d
PB
13922# When building target libraries, except in a Canadian cross, we use
13923# the same toolchain as the compiler we just built.
13924COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13925COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13926COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13927if test $host = $build; then
13928 case " $configdirs " in
13929 *" gcc "*)
13930 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13931 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13932 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13933 ;;
13934 esac
13935fi
13936
13937
13938
13939
13940
5213506e
RW
13941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13942$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13943# Check whether --enable-maintainer-mode was given.
13944if test "${enable_maintainer_mode+set}" = set; then :
13945 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
13946else
13947 USE_MAINTAINER_MODE=no
5213506e
RW
13948fi
13949
13950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13951$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
13952
13953
13954if test "$USE_MAINTAINER_MODE" = yes; then
13955 MAINTAINER_MODE_TRUE=
13956 MAINTAINER_MODE_FALSE='#'
13957else
13958 MAINTAINER_MODE_TRUE='#'
13959 MAINTAINER_MODE_FALSE=
1c710c3c 13960fi
ee03dc5e
AO
13961MAINT=$MAINTAINER_MODE_TRUE
13962
2805b53a
NN
13963# ---------------------
13964# GCC bootstrap support
13965# ---------------------
13966
13967# Stage specific cflags for build.
13968stage1_cflags="-g"
13969case $build in
13970 vax-*-*)
13971 case ${GCC} in
13972 yes) stage1_cflags="-g -Wa,-J" ;;
13973 *) stage1_cflags="-g -J" ;;
13974 esac ;;
2805b53a
NN
13975esac
13976
0b50988a 13977# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 13978if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
13979 saved_CFLAGS="$CFLAGS"
13980
13981 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13982 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13984$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
13986/* end confdefs.h. */
13987
9cc1244e
JJ
13988#if (__GNUC__ < 3) \
13989 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13990 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13991#error http://gcc.gnu.org/PR29382
13992#endif
13993
1c710c3c
DJ
13994int
13995main ()
13996{
13997
13998 ;
13999 return 0;
14000}
14001_ACEOF
5213506e
RW
14002if ac_fn_c_try_compile "$LINENO"; then :
14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14004$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 14005else
5213506e
RW
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007$as_echo "no" >&6; }
1c710c3c 14008fi
5213506e 14009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
14010
14011 CFLAGS="$saved_CFLAGS"
14012fi
14013
14014
2805b53a 14015
8efea775 14016# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14017# Check whether --enable-stage1-checking was given.
14018if test "${enable_stage1_checking+set}" = set; then :
14019 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14020else
e643dc23 14021 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14022 stage1_checking=--enable-checking=yes,types
8efea775 14023else
e643dc23 14024 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14025fi
5213506e 14026fi
8efea775
PB
14027
14028
2aeb72e9 14029
5213506e
RW
14030# Enable -Werror in bootstrap stage2 and later.
14031# Check whether --enable-werror was given.
14032if test "${enable_werror+set}" = set; then :
14033 enableval=$enable_werror;
2805b53a 14034else
416cfb5e 14035 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14036 enable_werror=yes
88fceb68
PB
14037else
14038 enable_werror=no
14039fi
5213506e
RW
14040fi
14041
09a9c095
NN
14042case ${enable_werror} in
14043 yes) stage2_werror_flag="--enable-werror-always" ;;
14044 *) stage2_werror_flag="" ;;
2805b53a
NN
14045esac
14046
14047
f2689b09
SE
14048# Specify what files to not compare during bootstrap.
14049
14050compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14051case "$target" in
14052 hppa*64*-*-hpux*) ;;
14053 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14054esac
f61428ed
AO
14055case " $configdirs " in
14056*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14057esac
f2689b09
SE
14058
14059
5213506e
RW
14060ac_config_files="$ac_config_files Makefile"
14061
1c710c3c 14062cat >confcache <<\_ACEOF
671aa708
NN
14063# This file is a shell script that caches the results of configure
14064# tests run on this system so they can be shared between configure
1c710c3c
DJ
14065# scripts and configure runs, see configure's option --config-cache.
14066# It is not useful on other systems. If it contains results you don't
14067# want to keep, you may remove or edit it.
671aa708 14068#
1c710c3c
DJ
14069# config.status only pays attention to the cache file if you give it
14070# the --recheck option to rerun configure.
671aa708 14071#
1c710c3c
DJ
14072# `ac_cv_env_foo' variables (set or unset) will be overridden when
14073# loading this file, other *unset* `ac_cv_foo' will be assigned the
14074# following values.
14075
14076_ACEOF
14077
671aa708
NN
14078# The following way of writing the cache mishandles newlines in values,
14079# but we know of no workaround that is simple, portable, and efficient.
5213506e 14080# So, we kill variables containing newlines.
671aa708
NN
14081# Ultrix sh set writes to stderr and can't be redirected directly,
14082# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14083(
14084 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14085 eval ac_val=\$$ac_var
14086 case $ac_val in #(
14087 *${as_nl}*)
14088 case $ac_var in #(
14089 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14090$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14091 esac
14092 case $ac_var in #(
14093 _ | IFS | as_nl) ;; #(
14094 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14095 *) { eval $ac_var=; unset $ac_var;} ;;
14096 esac ;;
14097 esac
14098 done
14099
1c710c3c 14100 (set) 2>&1 |
5213506e
RW
14101 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14102 *${as_nl}ac_space=\ *)
14103 # `set' does not quote correctly, so add quotes: double-quote
14104 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14105 sed -n \
14106 "s/'/'\\\\''/g;
14107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14108 ;; #(
1c710c3c
DJ
14109 *)
14110 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14112 ;;
5213506e
RW
14113 esac |
14114 sort
14115) |
1c710c3c 14116 sed '
5213506e 14117 /^ac_cv_env_/b end
1c710c3c 14118 t clear
5213506e 14119 :clear
1c710c3c
DJ
14120 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14121 t end
5213506e
RW
14122 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14123 :end' >>confcache
14124if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14125 if test -w "$cache_file"; then
14126 test "x$cache_file" != "x/dev/null" &&
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14128$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14129 cat confcache >$cache_file
671aa708 14130 else
5213506e
RW
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14132$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14133 fi
4977bab6 14134fi
671aa708 14135rm -f confcache
79c06341 14136
671aa708
NN
14137test "x$prefix" = xNONE && prefix=$ac_default_prefix
14138# Let make expand exec_prefix.
14139test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14140
671aa708
NN
14141# Transform confdefs.h into DEFS.
14142# Protect against shell expansion while executing Makefile rules.
14143# Protect against Makefile macro expansion.
1c710c3c
DJ
14144#
14145# If the first sed substitution is executed (which looks for macros that
5213506e 14146# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14147# look for a macro that doesn't take arguments.
5213506e
RW
14148ac_script='
14149:mline
14150/\\$/{
14151 N
14152 s,\\\n,,
14153 b mline
14154}
1c710c3c 14155t clear
5213506e
RW
14156:clear
14157s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14158t quote
5213506e 14159s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14160t quote
5213506e
RW
14161b any
14162:quote
14163s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14164s/\[/\\&/g
14165s/\]/\\&/g
14166s/\$/$$/g
14167H
14168:any
14169${
14170 g
14171 s/^\n//
14172 s/\n/ /g
14173 p
14174}
14175'
14176DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14177
14178
14179ac_libobjs=
14180ac_ltlibobjs=
14181for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14182 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14183 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14184 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14185 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14186 # will be set to the directory where LIBOBJS objects are built.
14187 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14188 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14189done
14190LIBOBJS=$ac_libobjs
fb0103e5 14191
1c710c3c 14192LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14193
af71363e 14194
1c710c3c
DJ
14195
14196: ${CONFIG_STATUS=./config.status}
5213506e 14197ac_write_fail=0
1c710c3c
DJ
14198ac_clean_files_save=$ac_clean_files
14199ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14200{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14201$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14202as_write_fail=0
14203cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14204#! $SHELL
14205# Generated by $as_me.
671aa708 14206# Run this file to recreate the current configuration.
671aa708 14207# Compiler output produced by configure, useful for debugging
1c710c3c 14208# configure, is in config.log if it exists.
0b0dc272 14209
1c710c3c
DJ
14210debug=false
14211ac_cs_recheck=false
14212ac_cs_silent=false
1c710c3c 14213
5213506e
RW
14214SHELL=\${CONFIG_SHELL-$SHELL}
14215export SHELL
14216_ASEOF
14217cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14218## -------------------- ##
14219## M4sh Initialization. ##
14220## -------------------- ##
14221
14222# Be more Bourne compatible
14223DUALCASE=1; export DUALCASE # for MKS sh
14224if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14225 emulate sh
14226 NULLCMD=:
5213506e 14227 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14228 # is contrary to our usage. Disable this feature.
14229 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14230 setopt NO_GLOB_SUBST
14231else
14232 case `(set -o) 2>/dev/null` in #(
14233 *posix*) :
14234 set -o posix ;; #(
14235 *) :
14236 ;;
14237esac
1c710c3c 14238fi
1c710c3c 14239
5213506e
RW
14240
14241as_nl='
14242'
14243export as_nl
14244# Printing a long string crashes Solaris 7 /usr/bin/printf.
14245as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14246as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14247as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14248# Prefer a ksh shell builtin over an external printf program on Solaris,
14249# but without wasting forks for bash or zsh.
14250if test -z "$BASH_VERSION$ZSH_VERSION" \
14251 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14252 as_echo='print -r --'
14253 as_echo_n='print -rn --'
14254elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14255 as_echo='printf %s\n'
14256 as_echo_n='printf %s'
14257else
14258 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14259 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14260 as_echo_n='/usr/ucb/echo -n'
14261 else
14262 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14263 as_echo_n_body='eval
14264 arg=$1;
14265 case $arg in #(
14266 *"$as_nl"*)
14267 expr "X$arg" : "X\\(.*\\)$as_nl";
14268 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14269 esac;
14270 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14271 '
14272 export as_echo_n_body
14273 as_echo_n='sh -c $as_echo_n_body as_echo'
14274 fi
14275 export as_echo_body
14276 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14277fi
14278
5213506e
RW
14279# The user is always right.
14280if test "${PATH_SEPARATOR+set}" != set; then
14281 PATH_SEPARATOR=:
14282 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14283 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14284 PATH_SEPARATOR=';'
14285 }
14286fi
14287
14288
14289# IFS
14290# We need space, tab and new line, in precisely that order. Quoting is
14291# there to prevent editors from complaining about space-tab.
14292# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14293# splitting by setting IFS to empty value.)
14294IFS=" "" $as_nl"
14295
14296# Find who we are. Look in the path if we contain no directory separator.
14297case $0 in #((
14298 *[\\/]* ) as_myself=$0 ;;
14299 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14300for as_dir in $PATH
14301do
14302 IFS=$as_save_IFS
14303 test -z "$as_dir" && as_dir=.
14304 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14305 done
14306IFS=$as_save_IFS
14307
14308 ;;
14309esac
14310# We did not find ourselves, most probably we were run as `sh COMMAND'
14311# in which case we are not to be found in the path.
14312if test "x$as_myself" = x; then
14313 as_myself=$0
14314fi
14315if test ! -f "$as_myself"; then
14316 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14317 exit 1
14318fi
1c710c3c 14319
5213506e
RW
14320# Unset variables that we do not need and which cause bugs (e.g. in
14321# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14322# suppresses any "Segmentation fault" message there. '((' could
14323# trigger a bug in pdksh 5.2.14.
14324for as_var in BASH_ENV ENV MAIL MAILPATH
14325do eval test x\${$as_var+set} = xset \
14326 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14327done
1c710c3c
DJ
14328PS1='$ '
14329PS2='> '
14330PS4='+ '
14331
14332# NLS nuisances.
5213506e
RW
14333LC_ALL=C
14334export LC_ALL
14335LANGUAGE=C
14336export LANGUAGE
14337
14338# CDPATH.
14339(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14340
14341
14342# as_fn_error ERROR [LINENO LOG_FD]
14343# ---------------------------------
14344# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14345# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14346# script with status $?, using 1 if that was 0.
14347as_fn_error ()
14348{
14349 as_status=$?; test $as_status -eq 0 && as_status=1
14350 if test "$3"; then
14351 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14352 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14353 fi
5213506e
RW
14354 $as_echo "$as_me: error: $1" >&2
14355 as_fn_exit $as_status
14356} # as_fn_error
14357
14358
14359# as_fn_set_status STATUS
14360# -----------------------
14361# Set $? to STATUS, without forking.
14362as_fn_set_status ()
14363{
14364 return $1
14365} # as_fn_set_status
14366
14367# as_fn_exit STATUS
14368# -----------------
14369# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14370as_fn_exit ()
14371{
14372 set +e
14373 as_fn_set_status $1
14374 exit $1
14375} # as_fn_exit
14376
14377# as_fn_unset VAR
14378# ---------------
14379# Portably unset VAR.
14380as_fn_unset ()
14381{
14382 { eval $1=; unset $1;}
14383}
14384as_unset=as_fn_unset
14385# as_fn_append VAR VALUE
14386# ----------------------
14387# Append the text in VALUE to the end of the definition contained in VAR. Take
14388# advantage of any shell optimizations that allow amortized linear growth over
14389# repeated appends, instead of the typical quadratic growth present in naive
14390# implementations.
14391if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14392 eval 'as_fn_append ()
14393 {
14394 eval $1+=\$2
14395 }'
14396else
14397 as_fn_append ()
14398 {
14399 eval $1=\$$1\$2
14400 }
14401fi # as_fn_append
14402
14403# as_fn_arith ARG...
14404# ------------------
14405# Perform arithmetic evaluation on the ARGs, and store the result in the
14406# global $as_val. Take advantage of shells that can avoid forks. The arguments
14407# must be portable across $(()) and expr.
14408if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14409 eval 'as_fn_arith ()
14410 {
14411 as_val=$(( $* ))
14412 }'
14413else
14414 as_fn_arith ()
14415 {
14416 as_val=`expr "$@" || test $? -eq 1`
14417 }
14418fi # as_fn_arith
14419
1c710c3c 14420
5213506e
RW
14421if expr a : '\(a\)' >/dev/null 2>&1 &&
14422 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14423 as_expr=expr
14424else
14425 as_expr=false
14426fi
14427
5213506e 14428if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14429 as_basename=basename
14430else
14431 as_basename=false
14432fi
14433
5213506e
RW
14434if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14435 as_dirname=dirname
14436else
14437 as_dirname=false
14438fi
1c710c3c 14439
5213506e 14440as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14441$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14442 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14443 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14444$as_echo X/"$0" |
14445 sed '/^.*\/\([^/][^/]*\)\/*$/{
14446 s//\1/
14447 q
14448 }
14449 /^X\/\(\/\/\)$/{
14450 s//\1/
14451 q
14452 }
14453 /^X\/\(\/\).*/{
14454 s//\1/
14455 q
14456 }
14457 s/.*/./; q'`
2aeb72e9 14458
2aeb72e9
DD
14459# Avoid depending upon Character Ranges.
14460as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14461as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14462as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14463as_cr_digits='0123456789'
14464as_cr_alnum=$as_cr_Letters$as_cr_digits
14465
5213506e
RW
14466ECHO_C= ECHO_N= ECHO_T=
14467case `echo -n x` in #(((((
14468-n*)
14469 case `echo 'xy\c'` in
14470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14471 xy) ECHO_C='\c';;
14472 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14473 ECHO_T=' ';;
14474 esac;;
14475*)
14476 ECHO_N='-n';;
1c710c3c
DJ
14477esac
14478
5213506e
RW
14479rm -f conf$$ conf$$.exe conf$$.file
14480if test -d conf$$.dir; then
14481 rm -f conf$$.dir/conf$$.file
1c710c3c 14482else
5213506e
RW
14483 rm -f conf$$.dir
14484 mkdir conf$$.dir 2>/dev/null
1c710c3c 14485fi
5213506e
RW
14486if (echo >conf$$.file) 2>/dev/null; then
14487 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14488 as_ln_s='ln -s'
5213506e
RW
14489 # ... but there are two gotchas:
14490 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14491 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14492 # In both cases, we have to default to `cp -p'.
14493 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14494 as_ln_s='cp -p'
14495 elif ln conf$$.file conf$$ 2>/dev/null; then
14496 as_ln_s=ln
14497 else
14498 as_ln_s='cp -p'
2aeb72e9 14499 fi
1c710c3c
DJ
14500else
14501 as_ln_s='cp -p'
14502fi
5213506e
RW
14503rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14504rmdir conf$$.dir 2>/dev/null
14505
14506
14507# as_fn_mkdir_p
14508# -------------
14509# Create "$as_dir" as a directory, including parents if necessary.
14510as_fn_mkdir_p ()
14511{
14512
14513 case $as_dir in #(
14514 -*) as_dir=./$as_dir;;
14515 esac
14516 test -d "$as_dir" || eval $as_mkdir_p || {
14517 as_dirs=
14518 while :; do
14519 case $as_dir in #(
14520 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14521 *) as_qdir=$as_dir;;
14522 esac
14523 as_dirs="'$as_qdir' $as_dirs"
14524 as_dir=`$as_dirname -- "$as_dir" ||
14525$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14526 X"$as_dir" : 'X\(//\)[^/]' \| \
14527 X"$as_dir" : 'X\(//\)$' \| \
14528 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14529$as_echo X"$as_dir" |
14530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14531 s//\1/
14532 q
14533 }
14534 /^X\(\/\/\)[^/].*/{
14535 s//\1/
14536 q
14537 }
14538 /^X\(\/\/\)$/{
14539 s//\1/
14540 q
14541 }
14542 /^X\(\/\).*/{
14543 s//\1/
14544 q
14545 }
14546 s/.*/./; q'`
14547 test -d "$as_dir" && break
14548 done
14549 test -z "$as_dirs" || eval "mkdir $as_dirs"
14550 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14551
1c710c3c 14552
5213506e 14553} # as_fn_mkdir_p
1c710c3c 14554if mkdir -p . 2>/dev/null; then
5213506e 14555 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14556else
14557 test -d ./-p && rmdir ./-p
14558 as_mkdir_p=false
14559fi
14560
5213506e
RW
14561if test -x / >/dev/null 2>&1; then
14562 as_test_x='test -x'
14563else
14564 if ls -dL / >/dev/null 2>&1; then
14565 as_ls_L_option=L
14566 else
14567 as_ls_L_option=
14568 fi
14569 as_test_x='
14570 eval sh -c '\''
14571 if test -d "$1"; then
14572 test -d "$1/.";
14573 else
14574 case $1 in #(
14575 -*)set "./$1";;
14576 esac;
14577 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14578 ???[sx]*):;;*)false;;esac;fi
14579 '\'' sh
14580 '
14581fi
14582as_executable_p=$as_test_x
1c710c3c
DJ
14583
14584# Sed expression to map a string onto a valid CPP name.
14585as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14586
14587# Sed expression to map a string onto a valid variable name.
14588as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14589
14590
1c710c3c 14591exec 6>&1
5213506e
RW
14592## ----------------------------------- ##
14593## Main body of $CONFIG_STATUS script. ##
14594## ----------------------------------- ##
14595_ASEOF
14596test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14597
14598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14599# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 14600# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
14601# values after options handling.
14602ac_log="
1c710c3c 14603This file was extended by $as_me, which was
5213506e 14604generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
14605
14606 CONFIG_FILES = $CONFIG_FILES
14607 CONFIG_HEADERS = $CONFIG_HEADERS
14608 CONFIG_LINKS = $CONFIG_LINKS
14609 CONFIG_COMMANDS = $CONFIG_COMMANDS
14610 $ $0 $@
14611
5213506e
RW
14612on `(hostname || uname -n) 2>/dev/null | sed 1q`
14613"
14614
1c710c3c
DJ
14615_ACEOF
14616
5213506e
RW
14617case $ac_config_files in *"
14618"*) set x $ac_config_files; shift; ac_config_files=$*;;
14619esac
1c710c3c 14620
2aeb72e9 14621
2aeb72e9 14622
5213506e
RW
14623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14624# Files that config.status was made for.
14625config_files="$ac_config_files"
1c710c3c 14626
5213506e 14627_ACEOF
2aeb72e9 14628
5213506e 14629cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 14630ac_cs_usage="\
5213506e
RW
14631\`$as_me' instantiates files and other configuration actions
14632from templates according to the current configuration. Unless the files
14633and actions are specified as TAGs, all are instantiated by default.
1c710c3c 14634
5213506e 14635Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
14636
14637 -h, --help print this help, then exit
5213506e
RW
14638 -V, --version print version number and configuration settings, then exit
14639 -q, --quiet, --silent
14640 do not print progress messages
1c710c3c
DJ
14641 -d, --debug don't remove temporary files
14642 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
14643 --file=FILE[:TEMPLATE]
14644 instantiate the configuration file FILE
1c710c3c
DJ
14645
14646Configuration files:
14647$config_files
14648
5213506e 14649Report bugs to the package provider."
2aeb72e9 14650
5213506e
RW
14651_ACEOF
14652cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
14653ac_cs_version="\\
14654config.status
5213506e
RW
14655configured by $0, generated by GNU Autoconf 2.64,
14656 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 14657
5213506e 14658Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
14659This config.status script is free software; the Free Software Foundation
14660gives unlimited permission to copy, distribute and modify it."
5213506e
RW
14661
14662ac_pwd='$ac_pwd'
14663srcdir='$srcdir'
14664INSTALL='$INSTALL'
87264276 14665AWK='$AWK'
5213506e 14666test -n "\$AWK" || AWK=awk
1c710c3c
DJ
14667_ACEOF
14668
5213506e
RW
14669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14670# The default lists apply if the user does not specify any file.
1c710c3c
DJ
14671ac_need_defaults=:
14672while test $# != 0
a4b9e93e 14673do
1c710c3c
DJ
14674 case $1 in
14675 --*=*)
5213506e
RW
14676 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14677 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
14678 ac_shift=:
14679 ;;
5213506e 14680 *)
1c710c3c
DJ
14681 ac_option=$1
14682 ac_optarg=$2
14683 ac_shift=shift
14684 ;;
1c710c3c
DJ
14685 esac
14686
14687 case $ac_option in
14688 # Handling of the options.
671aa708 14689 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 14690 ac_cs_recheck=: ;;
5213506e
RW
14691 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14692 $as_echo "$ac_cs_version"; exit ;;
14693 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
14694 debug=: ;;
14695 --file | --fil | --fi | --f )
14696 $ac_shift
5213506e
RW
14697 case $ac_optarg in
14698 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14699 esac
14700 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 14701 ac_need_defaults=false;;
5213506e
RW
14702 --he | --h | --help | --hel | -h )
14703 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
14704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14705 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14706 ac_cs_silent=: ;;
14707
14708 # This is an error.
5213506e
RW
14709 -*) as_fn_error "unrecognized option: \`$1'
14710Try \`$0 --help' for more information." ;;
1c710c3c 14711
5213506e
RW
14712 *) as_fn_append ac_config_targets " $1"
14713 ac_need_defaults=false ;;
1c710c3c 14714
0b0dc272 14715 esac
1c710c3c 14716 shift
0b0dc272
AM
14717done
14718
1c710c3c 14719ac_configure_extra_args=
0b0dc272 14720
1c710c3c
DJ
14721if $ac_cs_silent; then
14722 exec 6>/dev/null
14723 ac_configure_extra_args="$ac_configure_extra_args --silent"
14724fi
0b0dc272 14725
1c710c3c 14726_ACEOF
5213506e 14727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 14728if \$ac_cs_recheck; then
5213506e
RW
14729 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14730 shift
14731 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14732 CONFIG_SHELL='$SHELL'
14733 export CONFIG_SHELL
14734 exec "\$@"
1c710c3c
DJ
14735fi
14736
14737_ACEOF
5213506e
RW
14738cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14739exec 5>>config.log
14740{
14741 echo
14742 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14743## Running $as_me. ##
14744_ASBOX
14745 $as_echo "$ac_log"
14746} >&5
1c710c3c 14747
5213506e
RW
14748_ACEOF
14749cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
14750#
14751# INIT-COMMANDS
14752#
14753extrasub_build="$extrasub_build"
14754 extrasub_host="$extrasub_host"
14755 extrasub_target="$extrasub_target"
14756
5213506e 14757_ACEOF
1c710c3c 14758
5213506e 14759cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 14760
5213506e 14761# Handling of arguments.
1c710c3c
DJ
14762for ac_config_target in $ac_config_targets
14763do
5213506e
RW
14764 case $ac_config_target in
14765 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14766
14767 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
14768 esac
14769done
14770
5213506e 14771
1c710c3c
DJ
14772# If the user did not use the arguments to specify the items to instantiate,
14773# then the envvar interface is used. Set only those that are not.
14774# We use the long form for the default assignment because of an extremely
14775# bizarre bug on SunOS 4.1.3.
14776if $ac_need_defaults; then
14777 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14778fi
14779
14780# Have a temporary directory for convenience. Make it in the build tree
5213506e 14781# simply because there is no reason against having it here, and in addition,
1c710c3c 14782# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
14783# Hook for its removal unless debugging.
14784# Note that there is a small window in which the directory will not be cleaned:
14785# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
14786$debug ||
14787{
5213506e
RW
14788 tmp=
14789 trap 'exit_status=$?
14790 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14791' 0
14792 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 14793}
1c710c3c
DJ
14794# Create a (secure) tmp directory for tmp files.
14795
14796{
5213506e 14797 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
14798 test -n "$tmp" && test -d "$tmp"
14799} ||
14800{
5213506e
RW
14801 tmp=./conf$$-$RANDOM
14802 (umask 077 && mkdir "$tmp")
14803} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14804
14805# Set up the scripts for CONFIG_FILES section.
14806# No need to generate them if there are no CONFIG_FILES.
14807# This happens for instance with `./config.status config.h'.
14808if test -n "$CONFIG_FILES"; then
14809
14810if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14811 ac_cs_awk_getline=:
14812 ac_cs_awk_pipe_init=
14813 ac_cs_awk_read_file='
14814 while ((getline aline < (F[key])) > 0)
14815 print(aline)
14816 close(F[key])'
14817 ac_cs_awk_pipe_fini=
14818else
14819 ac_cs_awk_getline=false
14820 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14821 ac_cs_awk_read_file='
14822 print "|#_!!_#|"
14823 print "cat " F[key] " &&"
14824 '$ac_cs_awk_pipe_init
14825 # The final `:' finishes the AND list.
14826 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14827fi
14828ac_cr=`echo X | tr X '\015'`
14829# On cygwin, bash can eat \r inside `` if the user requested igncr.
14830# But we know of no other shell where ac_cr would be empty at this
14831# point, so we can use a bashism as a fallback.
14832if test "x$ac_cr" = x; then
14833 eval ac_cr=\$\'\\r\'
14834fi
14835ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14836if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14837 ac_cs_awk_cr='\r'
14838else
14839 ac_cs_awk_cr=$ac_cr
14840fi
14841
14842echo 'BEGIN {' >"$tmp/subs1.awk" &&
14843_ACEOF
14844
14845# Create commands to substitute file output variables.
1c710c3c 14846{
5213506e
RW
14847 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14848 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14849 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14850 echo "_ACAWK" &&
14851 echo "_ACEOF"
14852} >conf$$files.sh &&
14853. ./conf$$files.sh ||
14854 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14855rm -f conf$$files.sh
1c710c3c 14856
5213506e
RW
14857{
14858 echo "cat >conf$$subs.awk <<_ACEOF" &&
14859 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14860 echo "_ACEOF"
14861} >conf$$subs.sh ||
14862 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14863ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14864ac_delim='%!_!# '
14865for ac_last_try in false false false false false :; do
14866 . ./conf$$subs.sh ||
14867 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14868
14869 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14870 if test $ac_delim_n = $ac_delim_num; then
14871 break
14872 elif $ac_last_try; then
14873 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14874 else
14875 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14876 fi
14877done
14878rm -f conf$$subs.sh
14879
14880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14881cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 14882_ACEOF
5213506e
RW
14883sed -n '
14884h
14885s/^/S["/; s/!.*/"]=/
14886p
14887g
14888s/^[^!]*!//
14889:repl
14890t repl
14891s/'"$ac_delim"'$//
14892t delim
14893:nl
14894h
14895s/\(.\{148\}\).*/\1/
14896t more1
14897s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14898p
14899n
14900b repl
14901:more1
14902s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14903p
14904g
14905s/.\{148\}//
14906t nl
14907:delim
14908h
14909s/\(.\{148\}\).*/\1/
14910t more2
14911s/["\\]/\\&/g; s/^/"/; s/$/"/
14912p
14913b
14914:more2
14915s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14916p
14917g
14918s/.\{148\}//
14919t delim
14920' <conf$$subs.awk | sed '
14921/^[^""]/{
14922 N
14923 s/\n//
14924}
14925' >>$CONFIG_STATUS || ac_write_fail=1
14926rm -f conf$$subs.awk
14927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14928_ACAWK
14929cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14930 for (key in S) S_is_set[key] = 1
14931 FS = "\a"
14932 \$ac_cs_awk_pipe_init
14933}
14934{
14935 line = $ 0
14936 nfields = split(line, field, "@")
14937 substed = 0
14938 len = length(field[1])
14939 for (i = 2; i < nfields; i++) {
14940 key = field[i]
14941 keylen = length(key)
14942 if (S_is_set[key]) {
14943 value = S[key]
14944 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14945 len += length(value) + length(field[++i])
14946 substed = 1
14947 } else
14948 len += 1 + keylen
14949 }
14950 if (nfields == 3 && !substed) {
14951 key = field[2]
14952 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14953 \$ac_cs_awk_read_file
14954 next
14955 }
14956 }
14957 print line
14958}
14959\$ac_cs_awk_pipe_fini
14960_ACAWK
14961_ACEOF
14962cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14963if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14964 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14965else
14966 cat
14967fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14968 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14969_ACEOF
14970
14971# VPATH may cause trouble with some makes, so we remove $(srcdir),
14972# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14973# trailing colons and then remove the whole line if VPATH becomes empty
14974# (actually we leave an empty line to preserve line numbers).
14975if test "x$srcdir" = x.; then
14976 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14977s/:*\$(srcdir):*/:/
14978s/:*\${srcdir}:*/:/
14979s/:*@srcdir@:*/:/
14980s/^\([^=]*=[ ]*\):*/\1/
14981s/:*$//
14982s/^[^=]*=[ ]*$//
14983}'
14984fi
2aeb72e9 14985
5213506e
RW
14986cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14987fi # test -n "$CONFIG_FILES"
2aeb72e9 14988
1c710c3c 14989
5213506e
RW
14990eval set X " :F $CONFIG_FILES "
14991shift
14992for ac_tag
14993do
14994 case $ac_tag in
14995 :[FHLC]) ac_mode=$ac_tag; continue;;
14996 esac
14997 case $ac_mode$ac_tag in
14998 :[FHL]*:*);;
14999 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15000 :[FH]-) ac_tag=-:-;;
15001 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15002 esac
15003 ac_save_IFS=$IFS
15004 IFS=:
15005 set x $ac_tag
15006 IFS=$ac_save_IFS
15007 shift
15008 ac_file=$1
15009 shift
79c06341 15010
5213506e
RW
15011 case $ac_mode in
15012 :L) ac_source=$1;;
15013 :[FH])
15014 ac_file_inputs=
15015 for ac_f
15016 do
15017 case $ac_f in
15018 -) ac_f="$tmp/stdin";;
15019 *) # Look for the file first in the build tree, then in the source tree
15020 # (if the path is not absolute). The absolute path cannot be DOS-style,
15021 # because $ac_f cannot contain `:'.
15022 test -f "$ac_f" ||
15023 case $ac_f in
15024 [\\/$]*) false;;
15025 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15026 esac ||
15027 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15028 esac
15029 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15030 as_fn_append ac_file_inputs " '$ac_f'"
15031 done
1c710c3c 15032
5213506e
RW
15033 # Let's still pretend it is `configure' which instantiates (i.e., don't
15034 # use $as_me), people would be surprised to read:
15035 # /* config.h. Generated by config.status. */
15036 configure_input='Generated from '`
15037 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15038 `' by configure.'
15039 if test x"$ac_file" != x-; then
15040 configure_input="$ac_file. $configure_input"
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15042$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15043 fi
5213506e
RW
15044 # Neutralize special characters interpreted by sed in replacement strings.
15045 case $configure_input in #(
15046 *\&* | *\|* | *\\* )
15047 ac_sed_conf_input=`$as_echo "$configure_input" |
15048 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15049 *) ac_sed_conf_input=$configure_input;;
15050 esac
11a67599 15051
5213506e
RW
15052 case $ac_tag in
15053 *:-:* | *:-) cat >"$tmp/stdin" \
15054 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15055 esac
15056 ;;
11a67599
ZW
15057 esac
15058
5213506e 15059 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15060$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15061 X"$ac_file" : 'X\(//\)[^/]' \| \
15062 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15063 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15064$as_echo X"$ac_file" |
15065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15066 s//\1/
15067 q
15068 }
15069 /^X\(\/\/\)[^/].*/{
15070 s//\1/
15071 q
15072 }
15073 /^X\(\/\/\)$/{
15074 s//\1/
15075 q
15076 }
15077 /^X\(\/\).*/{
15078 s//\1/
15079 q
15080 }
15081 s/.*/./; q'`
15082 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15083 ac_builddir=.
0b0dc272 15084
5213506e
RW
15085case "$ac_dir" in
15086.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15087*)
15088 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15089 # A ".." for each directory in $ac_dir_suffix.
15090 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15091 case $ac_top_builddir_sub in
15092 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15093 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15094 esac ;;
15095esac
15096ac_abs_top_builddir=$ac_pwd
15097ac_abs_builddir=$ac_pwd$ac_dir_suffix
15098# for backward compatibility:
15099ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15100
15101case $srcdir in
5213506e 15102 .) # We are building in place.
1c710c3c 15103 ac_srcdir=.
5213506e
RW
15104 ac_top_srcdir=$ac_top_builddir_sub
15105 ac_abs_top_srcdir=$ac_pwd ;;
15106 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15107 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15108 ac_top_srcdir=$srcdir
15109 ac_abs_top_srcdir=$srcdir ;;
15110 *) # Relative name.
15111 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15112 ac_top_srcdir=$ac_top_build_prefix$srcdir
15113 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15114esac
5213506e 15115ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15116
0b0dc272 15117
5213506e
RW
15118 case $ac_mode in
15119 :F)
15120 #
15121 # CONFIG_FILE
15122 #
1c710c3c
DJ
15123
15124 case $INSTALL in
15125 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15126 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15127 esac
5213506e 15128_ACEOF
11a67599 15129
5213506e
RW
15130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15131# If the template does not know about datarootdir, expand it.
15132# FIXME: This hack should be removed a few years after 2.60.
15133ac_datarootdir_hack=; ac_datarootdir_seen=
15134ac_sed_dataroot='
15135/datarootdir/ {
15136 p
15137 q
15138}
15139/@datadir@/p
15140/@docdir@/p
15141/@infodir@/p
15142/@localedir@/p
15143/@mandir@/p'
15144case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15145*datarootdir*) ac_datarootdir_seen=yes;;
15146*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15148$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15149_ACEOF
5213506e
RW
15150cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15151 ac_datarootdir_hack='
15152 s&@datadir@&$datadir&g
15153 s&@docdir@&$docdir&g
15154 s&@infodir@&$infodir&g
15155 s&@localedir@&$localedir&g
15156 s&@mandir@&$mandir&g
15157 s&\\\${datarootdir}&$datarootdir&g' ;;
15158esac
15159_ACEOF
15160
15161# Neutralize VPATH when `$srcdir' = `.'.
15162# Shell code in configure.ac might set extrasub.
15163# FIXME: do we really want to maintain this feature?
15164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15165ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15166$extrasub
15167_ACEOF
5213506e 15168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15169:t
15170/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15171s|@configure_input@|$ac_sed_conf_input|;t t
15172s&@top_builddir@&$ac_top_builddir_sub&;t t
15173s&@top_build_prefix@&$ac_top_build_prefix&;t t
15174s&@srcdir@&$ac_srcdir&;t t
15175s&@abs_srcdir@&$ac_abs_srcdir&;t t
15176s&@top_srcdir@&$ac_top_srcdir&;t t
15177s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15178s&@builddir@&$ac_builddir&;t t
15179s&@abs_builddir@&$ac_abs_builddir&;t t
15180s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15181s&@INSTALL@&$ac_INSTALL&;t t
15182$ac_datarootdir_hack
15183"
15184eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15185if $ac_cs_awk_getline; then
15186 $AWK -f "$tmp/subs.awk"
15187else
15188 $AWK -f "$tmp/subs.awk" | $SHELL
15189fi >$tmp/out \
15190 || as_fn_error "could not create $ac_file" "$LINENO" 5
15191
15192test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15193 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15194 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15196which seems to be undefined. Please make sure it is defined." >&5
15197$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15198which seems to be undefined. Please make sure it is defined." >&2;}
15199
15200 rm -f "$tmp/stdin"
15201 case $ac_file in
15202 -) cat "$tmp/out" && rm -f "$tmp/out";;
15203 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15204 esac \
15205 || as_fn_error "could not create $ac_file" "$LINENO" 5
15206 ;;
11a67599 15207
11a67599 15208
79c06341 15209
5213506e
RW
15210 esac
15211
3e54529c
RW
15212
15213 case $ac_file$ac_mode in
15214 "Makefile":F) sed "$extrasub_build" Makefile |
15215 sed "$extrasub_host" |
15216 sed "$extrasub_target" > mf$$
15217 mv -f mf$$ Makefile ;;
15218
15219 esac
5213506e
RW
15220done # for ac_tag
15221
15222
15223as_fn_exit 0
1c710c3c 15224_ACEOF
1c710c3c
DJ
15225ac_clean_files=$ac_clean_files_save
15226
5213506e
RW
15227test $ac_write_fail = 0 ||
15228 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15229
1c710c3c
DJ
15230
15231# configure is writing to config.log, and then calls config.status.
15232# config.status does its own redirection, appending to config.log.
15233# Unfortunately, on DOS this fails, as config.log is still kept open
15234# by configure, so config.status won't be able to write to it; its
15235# output is simply discarded. So we exec the FD to /dev/null,
15236# effectively closing config.log, so it can be properly (re)opened and
15237# appended to by config.status. When coming back to configure, we
15238# need to make the FD available again.
15239if test "$no_create" != yes; then
15240 ac_cs_success=:
15241 ac_config_status_args=
15242 test "$silent" = yes &&
15243 ac_config_status_args="$ac_config_status_args --quiet"
15244 exec 5>/dev/null
15245 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15246 exec 5>>config.log
15247 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15248 # would make configure fail if this is the last instruction.
5213506e
RW
15249 $ac_cs_success || as_fn_exit $?
15250fi
15251if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15253$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15254fi
79c06341 15255