]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
Makefile.in (SO_LIB): Handle multilib build for native windows targets.
[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* \
2893 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2894 case "${target}" in
2895 *-*-linux*aout* | *-*-linux*oldld*)
2896 ;;
2897 *)
2898 is_elf=yes
2899 ;;
2900 esac
2901 esac
2902
2903 if test "$is_elf" = "yes"; then
2904 # Check for target supported by gold.
5afab7ad 2905 case "${target}" in
38e3d868 2906 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
21539e2e
MK
2907 configdirs="$configdirs gold"
2908 if test x${ENABLE_GOLD} = xdefault; then
2909 default_ld=gold
2910 fi
38e3d868 2911 ENABLE_GOLD=yes
5afab7ad
ILT
2912 ;;
2913 esac
38e3d868
RM
2914 fi
2915 ;;
2916 no)
2917 ;;
2918 *)
2919 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2920 ;;
21539e2e
MK
2921esac
2922
2923# Check whether --enable-ld was given.
2924if test "${enable_ld+set}" = set; then :
2925 enableval=$enable_ld; ENABLE_LD=$enableval
2926else
2927 ENABLE_LD=yes
2928fi
2929
2930
2931case "${ENABLE_LD}" in
2932 default)
9580395f 2933 if test x${default_ld} != x; then
21539e2e
MK
2934 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2935 fi
2936 ;;
2937 yes)
2938 ;;
2939 no)
2940 if test x${ENABLE_GOLD} != xyes; then
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2942$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2943 fi
2944 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2945 ;;
2946 *)
2947 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2948 ;;
2949esac
5afab7ad 2950
671aa708 2951# Configure extra directories which are host specific
79c06341 2952
671aa708
NN
2953case "${host}" in
2954 *-cygwin*)
2955 configdirs="$configdirs libtermcap" ;;
2956esac
79c06341 2957
4fab7234
HPN
2958# A target can indicate whether a language isn't supported for some reason.
2959# Only spaces may be used in this macro; not newlines or tabs.
2960unsupported_languages=
2961
1c710c3c 2962# Remove more programs from consideration, based on the host or
671aa708
NN
2963# target this usually means that a port of the program doesn't
2964# exist yet.
ec8d6ddc 2965
671aa708 2966case "${host}" in
111eeb6e 2967 i[3456789]86-*-msdosdjgpp*)
1bcce263 2968 noconfigdirs="$noconfigdirs tcl tk itcl libffi"
3aa83176 2969 ;;
95af8923 2970 x86_64-*-mingw*)
1bcce263 2971 noconfigdirs="$noconfigdirs newlib"
95af8923 2972 ;;
f2a0e225 2973 i[3456789]86-*-mingw32*)
1bcce263 2974 noconfigdirs="$noconfigdirs newlib"
671aa708 2975 ;;
671aa708 2976esac
ec8d6ddc 2977
6de9cd9a 2978
87e6d9dc
TB
2979# Check whether --enable-libquadmath was given.
2980if test "${enable_libquadmath+set}" = set; then :
2981 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2982else
2983 ENABLE_LIBQUADMATH=yes
2984fi
2985
2986if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2987 noconfigdirs="$noconfigdirs target-libquadmath"
2988fi
2989
2990
2991# Check whether --enable-libquadmath-support was given.
2992if test "${enable_libquadmath_support+set}" = set; then :
2993 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2994else
2995 ENABLE_LIBQUADMATH_SUPPORT=yes
2996fi
2997
2998enable_libquadmath_support=
2999if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3000 enable_libquadmath_support=no
3001fi
3002
3003
5213506e
RW
3004# Check whether --enable-libada was given.
3005if test "${enable_libada+set}" = set; then :
3006 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
3007else
3008 ENABLE_LIBADA=yes
5213506e
RW
3009fi
3010
d9cdb878 3011if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 3012 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
3013fi
3014
5213506e
RW
3015# Check whether --enable-libssp was given.
3016if test "${enable_libssp+set}" = set; then :
3017 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
3018else
3019 ENABLE_LIBSSP=yes
5213506e
RW
3020fi
3021
ef0087a7 3022
671aa708
NN
3023# Save it here so that, even in case of --enable-libgcj, if the Java
3024# front-end isn't enabled, we still get libgcj disabled.
3025libgcj_saved=$libgcj
3026case $enable_libgcj in
3027yes)
3028 # If we reset it here, it won't get added to noconfigdirs in the
3029 # target-specific build rules, so it will be forcibly enabled
3030 # (unless the Java language itself isn't enabled).
3031 libgcj=
3032 ;;
3033no)
3034 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3035 # Don't disable libffi, though, other languages use it.
3036 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3037 # Clear libgcj_saved so that even if java is enabled libffi won't be
3038 # built.
3039 libgcj_saved=
671aa708
NN
3040 ;;
3041esac
ec8d6ddc 3042
6de9cd9a 3043
27079765
AH
3044# Disable libmudflap on some systems.
3045if test x$enable_libmudflap = x ; then
dfcada9a 3046 case "${target}" in
416ac4d4 3047 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3048 # Enable libmudflap by default in GNU and friends.
dfcada9a 3049 ;;
a3e8d8b4
LR
3050 *-*-freebsd*)
3051 # Enable libmudflap by default in FreeBSD.
3052 ;;
dfcada9a
MM
3053 *)
3054 # Disable it by default everywhere else.
3055 noconfigdirs="$noconfigdirs target-libmudflap"
3056 ;;
3057 esac
27079765 3058fi
6de9cd9a 3059
27079765
AH
3060# Disable libgomp on non POSIX hosted systems.
3061if test x$enable_libgomp = x ; then
953ff289
DN
3062 # Enable libgomp by default on hosted POSIX systems.
3063 case "${target}" in
416ac4d4 3064 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289
DN
3065 ;;
3066 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3067 ;;
04879af3 3068 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 3069 ;;
cac90078 3070 *-*-darwin* | *-*-aix*)
953ff289
DN
3071 ;;
3072 *)
3073 noconfigdirs="$noconfigdirs target-libgomp"
3074 ;;
3075 esac
27079765 3076fi
953ff289 3077
c03353e2
RIL
3078# Default libgloss CPU subdirectory.
3079libgloss_dir="$target_cpu"
6de9cd9a 3080
671aa708
NN
3081case "${target}" in
3082 *-*-chorusos)
cb253473 3083 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3084 ;;
75eeae1a 3085 powerpc-*-darwin*)
e1514c3f 3086 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3087 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3088 ;;
354ebf88
RW
3089 i[3456789]86-*-darwin*)
3090 noconfigdirs="$noconfigdirs ld gprof"
3091 noconfigdirs="$noconfigdirs sim target-rda"
3092 ;;
3093 x86_64-*-darwin[912]*)
0db3a858
TG
3094 noconfigdirs="$noconfigdirs ld gas gprof"
3095 noconfigdirs="$noconfigdirs sim target-rda"
3096 ;;
42c1cd8a
AT
3097 *-*-darwin*)
3098 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3099 noconfigdirs="$noconfigdirs sim target-rda"
3100 noconfigdirs="$noconfigdirs ${libgcj}"
3101 ;;
671aa708 3102 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
cb253473 3103 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3104 ;;
c3f84f61 3105 *-*-freebsd*)
6de9cd9a
DN
3106 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3107 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3108 && test -f /usr/local/include/gmp.h; then
3109 with_gmp=/usr/local
3110 fi
3111
3112 # Skip some stuff that's unsupported on some FreeBSD configurations.
3113 case "${target}" in
3114 i*86-*-*) ;;
3115 alpha*-*-*) ;;
f3f623ae 3116 x86_64-*-*) ;;
6de9cd9a 3117 *)
cb253473 3118 noconfigdirs="$noconfigdirs ${libgcj}"
6de9cd9a
DN
3119 ;;
3120 esac
3121 ;;
ef4e7569
US
3122 *-*-kaos*)
3123 # Remove unsupported stuff on all kaOS configurations.
8d4c5ac6 3124 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3"
1bcce263 3125 skipdirs="$skipdirs target-libobjc"
ef4e7569
US
3126 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3127 noconfigdirs="$noconfigdirs target-libgloss"
3128 ;;
671aa708
NN
3129 *-*-netbsd*)
3130 # Skip some stuff on all NetBSD configurations.
3131 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3132
3133 # Skip some stuff that's unsupported on some NetBSD configurations.
3134 case "${target}" in
3135 i*86-*-netbsdelf*) ;;
0590b963 3136 arm*-*-netbsdelf*) ;;
671aa708 3137 *)
cb253473 3138 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3139 ;;
3140 esac
3141 ;;
61fec9ff 3142 *-*-netware*)
8d4c5ac6 3143 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj}"
671aa708
NN
3144 ;;
3145 *-*-rtems*)
e4522f78 3146 skipdirs="${skipdirs} target-libiberty"
cb253473 3147 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3148 ;;
a8ba31f2
EC
3149 # The tpf target doesn't support gdb yet.
3150 *-*-tpf*)
8d4c5ac6 3151 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} gdb tcl tk libgui itcl"
a8ba31f2 3152 ;;
5785c0ed 3153 *-*-uclinux*)
cb253473 3154 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
5785c0ed 3155 ;;
671aa708 3156 *-*-vxworks*)
cb253473 3157 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708
NN
3158 ;;
3159 alpha*-dec-osf*)
3160 # ld works, but does not support shared libraries.
1bcce263 3161 # newlib is not 64 bit ready.
671aa708 3162 # gas doesn't generate exception information.
1bcce263 3163 noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
671aa708
NN
3164 ;;
3165 alpha*-*-*vms*)
8406cb62 3166 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708
NN
3167 ;;
3168 alpha*-*-linux*)
3169 # newlib is not 64 bit ready
3170 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3171 ;;
671aa708
NN
3172 alpha*-*-*)
3173 # newlib is not 64 bit ready
cb253473 3174 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3175 ;;
33952f6f 3176 am33_2.0-*-linux*)
cb253473 3177 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
33952f6f 3178 ;;
671aa708 3179 sh-*-linux*)
cb253473 3180 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
1c710c3c 3181 ;;
671aa708 3182 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
cb253473 3183 noconfigdirs="$noconfigdirs ${libgcj}"
1bcce263 3184 noconfigdirs="$noconfigdirs target-libiberty"
b4f96efe 3185 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708 3186 # the C++ libraries don't build on top of CE's C libraries
cb543528 3187 noconfigdirs="$noconfigdirs target-libstdc++-v3"
671aa708 3188 noconfigdirs="$noconfigdirs target-newlib"
c03353e2 3189 libgloss_dir=wince
671aa708
NN
3190 ;;
3191 arc-*-*)
ebb9f8b0 3192 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3193 ;;
4569f85e 3194 arm-*-coff)
cb253473 3195 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3196 libgloss_dir=arm
671aa708 3197 ;;
4569f85e 3198 arm-*-elf* | arm*-*-eabi* )
1bcce263 3199 noconfigdirs="$noconfigdirs target-libffi"
c03353e2 3200 libgloss_dir=arm
671aa708 3201 ;;
077fc835 3202 arm*-*-linux-gnueabi)
1bcce263 3203 noconfigdirs="$noconfigdirs"
1c00b503
PB
3204 case ${with_newlib} in
3205 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3206 esac
c03353e2 3207 libgloss_dir=arm
077fc835 3208 ;;
972974fc 3209 arm*-*-symbianelf*)
cb253473 3210 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
c03353e2 3211 libgloss_dir=arm
972974fc 3212 ;;
671aa708 3213 arm-*-pe*)
cb253473 3214 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3215 ;;
671aa708 3216 arm-*-riscix*)
cb253473 3217 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708
NN
3218 ;;
3219 avr-*-*)
ac3949d9 3220 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
671aa708 3221 ;;
6b65a26d 3222 bfin-*-*)
1c3c9f12 3223 unsupported_languages="$unsupported_languages java"
fb701687 3224 noconfigdirs="$noconfigdirs target-boehm-gc"
61efc800 3225 if test x${is_cross_compiler} != xno ; then
6b65a26d
CM
3226 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3227 fi
3228 ;;
671aa708 3229 c4x-*-* | tic4x-*-*)
cb253473 3230 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3231 ;;
3232 c54x*-*-* | tic54x-*-*)
cb253473 3233 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
671aa708 3234 ;;
c993ae60
SR
3235 cr16-*-*)
3236 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3237 ;;
40d64b5a 3238 cris-*-* | crisv32-*-*)
4fab7234 3239 unsupported_languages="$unsupported_languages java"
40d64b5a 3240 case "${target}" in
c2e0d3a9 3241 *-*-aout)
7f26dfa3 3242 unsupported_languages="$unsupported_languages fortran"
4fab7234 3243 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
d062cd48
HPN
3244 *-*-elf) # See PR46792 regarding target-libffi.
3245 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
c2e0d3a9 3246 *-*-linux*)
789ec619 3247 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
40d64b5a 3248 *)
7f26dfa3 3249 unsupported_languages="$unsupported_languages fortran"
cb253473 3250 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
40d64b5a 3251 esac
c03353e2 3252 libgloss_dir=cris
671aa708
NN
3253 ;;
3254 d10v-*-*)
cb253473 3255 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708
NN
3256 ;;
3257 d30v-*-*)
cb253473 3258 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
3259 ;;
3260 fr30-*-elf*)
cb253473 3261 noconfigdirs="$noconfigdirs ${libgcj} gdb"
671aa708
NN
3262 ;;
3263 frv-*-*)
cb253473 3264 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3265 ;;
55f2d967
AG
3266 moxie-*-*)
3267 noconfigdirs="$noconfigdirs ${libgcj}"
3268 noconfigdirs="$noconfigdirs gprof"
3269 ;;
671aa708 3270 h8300*-*-*)
cb253473 3271 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708
NN
3272 ;;
3273 h8500-*-*)
cb253473 3274 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
671aa708 3275 ;;
ee6a22df 3276 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3277 ;;
4569f85e 3278 hppa*64*-*-linux*)
671aa708
NN
3279 # In this case, it's because the hppa64-linux target is for
3280 # the kernel only at this point and has no libc, and thus no
3281 # headers, crt*.o, etc., all of which are needed by these.
3282 noconfigdirs="$noconfigdirs target-zlib"
3283 ;;
56f8587a 3284 hppa*-*-linux*)
3e732ba0 3285 ;;
671aa708 3286 hppa*-*-*elf* | \
671aa708
NN
3287 hppa*-*-lites* | \
3288 hppa*-*-openbsd* | \
3289 hppa*64*-*-*)
cb253473 3290 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3291 ;;
2a332582 3292 hppa*-hp-hpux11*)
1bcce263 3293 noconfigdirs="$noconfigdirs ld"
2a332582 3294 ;;
c03353e2
RIL
3295 hppa*-*-pro*)
3296 libgloss_dir=pa
3297 ;;
671aa708
NN
3298 hppa*-*-*)
3299 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3300 # build on HP-UX 10.20.
1bcce263 3301 noconfigdirs="$noconfigdirs ld ${libgcj}"
671aa708 3302 ;;
fb87ad5d 3303 i960-*-*)
cb253473 3304 noconfigdirs="$noconfigdirs ${libgcj} gdb"
fb87ad5d 3305 ;;
671aa708
NN
3306 ia64*-*-elf*)
3307 # No gdb support yet.
1bcce263 3308 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3309 ;;
3310 ia64*-**-hpux*)
5a2931d1
JB
3311 # No ld support yet.
3312 noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
671aa708 3313 ;;
52535a64
DR
3314 ia64*-*-*vms*)
3315 # No gdb or ld support yet.
1bcce263 3316 noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld"
52535a64 3317 ;;
f2a0e225 3318 i[3456789]86-*-coff | i[3456789]86-*-elf)
cb253473 3319 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3320 libgloss_dir=i386
671aa708 3321 ;;
f2a0e225 3322 i[3456789]86-*-linux*)
671aa708
NN
3323 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3324 # not build java stuff by default.
3325 case "${target}" in
3326 *-*-*libc1*)
cb253473 3327 noconfigdirs="$noconfigdirs ${libgcj}";;
671aa708
NN
3328 esac
3329
3330 # This section makes it possible to build newlib natively on linux.
3331 # If we are using a cross compiler then don't configure newlib.
3332 if test x${is_cross_compiler} != xno ; then
3aa83176 3333 noconfigdirs="$noconfigdirs target-newlib"
671aa708
NN
3334 fi
3335 noconfigdirs="$noconfigdirs target-libgloss"
3336 # If we are not using a cross compiler, do configure newlib.
3337 # Note however, that newlib will only be configured in this situation
3338 # if the --with-newlib option has been given, because otherwise
3339 # 'target-newlib' will appear in skipdirs.
3340 ;;
ef4c4300 3341 i[3456789]86-w64-mingw*)
1bcce263 3342 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
ef4c4300
KT
3343 ;;
3344 i[3456789]86-*-mingw*)
b91f0a41 3345 target_configdirs="$target_configdirs target-winsup"
1bcce263 3346 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
1c710c3c 3347 ;;
95af8923 3348 x86_64-*-mingw*)
1bcce263 3349 noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
1c710c3c 3350 ;;
671aa708
NN
3351 *-*-cygwin*)
3352 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3353 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3354 # always build newlib if winsup directory is present.
b91f0a41 3355 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3356 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3357 elif test -d "$srcdir/newlib"; then
b91f0a41 3358 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3359 fi
1c710c3c 3360 ;;
56f8587a 3361 i[3456789]86-*-interix* )
ee6a22df 3362 ;;
f2a0e225 3363 i[3456789]86-*-pe)
ebb9f8b0 3364 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3365 ;;
f2a0e225 3366 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3367 # The linker does not yet know about weak symbols in COFF,
3368 # and is not configured to handle mixed ELF and COFF.
cb253473 3369 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
671aa708 3370 ;;
f2a0e225 3371 i[3456789]86-*-sco*)
cb253473 3372 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3373 ;;
f2a0e225 3374 i[3456789]86-*-solaris2*)
671aa708
NN
3375 noconfigdirs="$noconfigdirs target-libgloss"
3376 ;;
f2a0e225 3377 i[3456789]86-*-sysv4*)
cb253473 3378 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
671aa708 3379 ;;
f2a0e225 3380 i[3456789]86-*-beos*)
cb253473 3381 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
3aa83176 3382 ;;
d1f8db0c
PB
3383 i[3456789]86-*-rdos*)
3384 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3385 ;;
fb87ad5d 3386 m32r-*-*)
cb253473 3387 noconfigdirs="$noconfigdirs ${libgcj}"
fb87ad5d 3388 ;;
671aa708 3389 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
ebb9f8b0 3390 noconfigdirs="$noconfigdirs target-libiberty"
c03353e2 3391 libgloss_dir=m68hc11
671aa708
NN
3392 ;;
3393 m68k-*-elf*)
cb253473 3394 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3395 ;;
3396 m68k-*-coff*)
cb253473 3397 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3398 ;;
c03353e2
RIL
3399 m68*-*-* | fido-*-*)
3400 libgloss_dir=m68k
3401 ;;
671aa708 3402 mmix-*-*)
4fab7234 3403 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
7f26dfa3 3404 unsupported_languages="$unsupported_languages fortran java"
671aa708
NN
3405 ;;
3406 mn10200-*-*)
cb253473 3407 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3408 ;;
3409 mn10300-*-*)
cb253473 3410 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708 3411 ;;
ab34901f 3412 mt-*-*)
79dd769c
AH
3413 noconfigdirs="$noconfigdirs sim"
3414 ;;
539b4d11
HS
3415 picochip-*-*)
3416 noconfigdirs="$noconfigdirs target-libiberty"
3417 ;;
671aa708
NN
3418 powerpc-*-aix*)
3419 # copied from rs6000-*-* entry
a891a473 3420 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708 3421 ;;
4569f85e 3422 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3423 target_configdirs="$target_configdirs target-winsup"
1bcce263 3424 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl ${libgcj}"
671aa708
NN
3425 # always build newlib.
3426 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3427 ;;
3428 # This is temporary until we can link against shared libraries
3429 powerpcle-*-solaris*)
1bcce263 3430 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl ${libgcj}"
c03353e2 3431 libgloss_dir=rs6000
671aa708
NN
3432 ;;
3433 powerpc-*-beos*)
cb253473 3434 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
671aa708 3435 ;;
671aa708 3436 powerpc-*-eabi)
cb253473 3437 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3438 libgloss_dir=rs6000
ee6a22df
L
3439 ;;
3440 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
c03353e2 3441 libgloss_dir=rs6000
671aa708 3442 ;;
671aa708 3443 rs6000-*-lynxos*)
cb253473 3444 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
671aa708
NN
3445 ;;
3446 rs6000-*-aix*)
a891a473 3447 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
671aa708
NN
3448 ;;
3449 rs6000-*-*)
cb253473 3450 noconfigdirs="$noconfigdirs gprof ${libgcj}"
671aa708
NN
3451 ;;
3452 m68k-apollo-*)
cb253473 3453 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
671aa708 3454 ;;
ca9fe997 3455 microblaze*)
80920132 3456 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
ca9fe997 3457 ;;
d9dced13
RS
3458 mips*-sde-elf*)
3459 skipdirs="$skipdirs target-libiberty"
3460 noconfigdirs="$noconfigdirs ${libgcj}"
3461 if test x$with_newlib = xyes; then
3462 noconfigdirs="$noconfigdirs gprof"
3463 fi
3464 libgloss_dir=mips
3465 ;;
671aa708 3466 mips*-*-irix5*)
cb253473 3467 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708
NN
3468 ;;
3469 mips*-*-irix6*)
671aa708
NN
3470 # Linking libjava exceeds command-line length limits on at least
3471 # IRIX 6.2, but not on IRIX 6.5.
3472 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3473 # <oldham@codesourcery.com>
cb253473 3474 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3475 ;;
671aa708 3476 mips*-*-bsd*)
cb253473 3477 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
671aa708 3478 ;;
671aa708
NN
3479 mips*-*-linux*)
3480 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3481 ;;
3482 mips*-*-*)
cb253473 3483 noconfigdirs="$noconfigdirs gprof ${libgcj}"
c03353e2 3484 libgloss_dir=mips
671aa708
NN
3485 ;;
3486 romp-*-*)
cb253473 3487 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
671aa708 3488 ;;
669f01d8 3489 sh-*-* | sh64-*-*)
ea2002ba
CB
3490 case "${target}" in
3491 sh*-*-elf)
3492 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3493 *)
3494 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3495 esac
671aa708 3496 ;;
c03353e2
RIL
3497 sparclet-*-aout* | sparc86x-*-*)
3498 libgloss_dir=sparc
3499 ;;
671aa708 3500 sparc-*-elf*)
cb253473 3501 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3502 ;;
3503 sparc64-*-elf*)
cb253473 3504 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3505 libgloss_dir=sparc
671aa708
NN
3506 ;;
3507 sparclite-*-*)
cb253473 3508 noconfigdirs="$noconfigdirs ${libgcj}"
c03353e2 3509 libgloss_dir=sparc
671aa708
NN
3510 ;;
3511 sparc-*-sunos4*)
cb253473 3512 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3513 if test x${is_cross_compiler} != xno ; then
3514 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3515 else
3516 use_gnu_ld=no
3517 fi
3518 ;;
bba5e0ca 3519 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
cb253473 3520 noconfigdirs="$noconfigdirs ${libgcj}"
bba5e0ca 3521 ;;
671aa708
NN
3522 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3523 ;;
b42f0d7e
JM
3524 tic6x-*-*)
3525 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3526 ;;
671aa708 3527 v810-*-*)
cb253473 3528 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
671aa708 3529 ;;
223a9d64 3530 v850*-*-*)
d4c1abb3 3531 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3532 ;;
3533 vax-*-vms)
cb253473 3534 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
671aa708
NN
3535 ;;
3536 vax-*-*)
cb253473 3537 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
671aa708 3538 ;;
aa12a573 3539 xtensa*-*-*)
cb253473 3540 noconfigdirs="$noconfigdirs ${libgcj}"
0d4f1b4e 3541 ;;
671aa708 3542 ip2k-*-*)
cb253473 3543 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
671aa708 3544 ;;
416ac4d4 3545 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
671aa708
NN
3546 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3547 ;;
3548 *-*-lynxos*)
cb253473 3549 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
1c710c3c 3550 ;;
671aa708 3551 *-*-*)
cb253473 3552 noconfigdirs="$noconfigdirs ${libgcj}"
671aa708
NN
3553 ;;
3554esac
79c06341 3555
671aa708
NN
3556# If we aren't building newlib, then don't build libgloss, since libgloss
3557# depends upon some newlib header files.
3558case "${noconfigdirs}" in
3559 *target-libgloss*) ;;
3560 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3561esac
3562
671aa708 3563# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3564host_makefile_frag=/dev/null
3565if test -d ${srcdir}/config ; then
3566case "${host}" in
f2a0e225 3567 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3568 host_makefile_frag="config/mh-djgpp"
3569 ;;
3570 *-cygwin*)
2a79c47f 3571
5213506e
RW
3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3573$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3574echo a >cygwin-cat-check
e25a8c82 3575if test `cat cygwin-cat-check` = a ; then
2a79c47f 3576 rm cygwin-cat-check
5213506e
RW
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3578$as_echo "yes" >&6; }
2a79c47f
NC
3579else
3580 rm cygwin-cat-check
5213506e
RW
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582$as_echo "no" >&6; }
3583 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3584 Please either mount the build directory in binary mode or run the following
3585 commands before running any configure script:
3586set -o igncr
3587export SHELLOPTS
5213506e 3588 " "$LINENO" 5
2a79c47f
NC
3589fi
3590
671aa708
NN
3591 host_makefile_frag="config/mh-cygwin"
3592 ;;
c53a18d3 3593 *-mingw*)
1f5a6b84 3594 host_makefile_frag="config/mh-mingw"
95af8923 3595 ;;
671aa708
NN
3596 *-interix*)
3597 host_makefile_frag="config/mh-interix"
3598 ;;
efd41714 3599 hppa*-hp-hpux10*)
efd41714 3600 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3601 ;;
111eeb6e 3602 hppa*-hp-hpux*)
efd41714
PB
3603 host_makefile_frag="config/mh-pa"
3604 ;;
3605 hppa*-*)
3606 host_makefile_frag="config/mh-pa"
3607 ;;
d8ed14ce
IS
3608 *-*-darwin*)
3609 host_makefile_frag="config/mh-darwin"
be8fff81 3610 ;;
d19bca38
PB
3611 powerpc-*-aix*)
3612 host_makefile_frag="config/mh-ppc-aix"
3613 ;;
3614 rs6000-*-aix*)
3615 host_makefile_frag="config/mh-ppc-aix"
3616 ;;
671aa708
NN
3617esac
3618fi
3619
55ffb5ed 3620if test "${build}" != "${host}" ; then
0999159b
PB
3621 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3622 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3623 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3624 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3625 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3626 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3627 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3628 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3629 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3630 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3631 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3632 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3633 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3634else
3635 AR_FOR_BUILD="\$(AR)"
3636 AS_FOR_BUILD="\$(AS)"
fb0103e5 3637 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3638 CXX_FOR_BUILD="\$(CXX)"
3639 GCJ_FOR_BUILD="\$(GCJ)"
3640 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3641 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3642 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3643 LD_FOR_BUILD="\$(LD)"
3644 NM_FOR_BUILD="\$(NM)"
3645 RANLIB_FOR_BUILD="\$(RANLIB)"
3646 WINDRES_FOR_BUILD="\$(WINDRES)"
3647 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3648fi
3649
3650ac_ext=c
1c710c3c
DJ
3651ac_cpp='$CPP $CPPFLAGS'
3652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655if test -n "$ac_tool_prefix"; then
3656 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3657set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3659$as_echo_n "checking for $ac_word... " >&6; }
3660if test "${ac_cv_prog_CC+set}" = set; then :
3661 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3662else
3663 if test -n "$CC"; then
3664 ac_cv_prog_CC="$CC" # Let the user override the test.
3665else
3666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667for as_dir in $PATH
3668do
3669 IFS=$as_save_IFS
3670 test -z "$as_dir" && as_dir=.
5213506e
RW
3671 for ac_exec_ext in '' $ac_executable_extensions; do
3672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3673 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3675 break 2
3676 fi
3677done
5213506e
RW
3678 done
3679IFS=$as_save_IFS
1c710c3c
DJ
3680
3681fi
3682fi
3683CC=$ac_cv_prog_CC
3684if test -n "$CC"; then
5213506e
RW
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3686$as_echo "$CC" >&6; }
1c710c3c 3687else
5213506e
RW
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3689$as_echo "no" >&6; }
1c710c3c
DJ
3690fi
3691
5213506e 3692
1c710c3c
DJ
3693fi
3694if test -z "$ac_cv_prog_CC"; then
3695 ac_ct_CC=$CC
fb0103e5
RG
3696 # Extract the first word of "gcc", so it can be a program name with args.
3697set dummy gcc; ac_word=$2
5213506e
RW
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3699$as_echo_n "checking for $ac_word... " >&6; }
3700if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3702else
3703 if test -n "$ac_ct_CC"; then
3704 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3705else
3706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707for as_dir in $PATH
3708do
3709 IFS=$as_save_IFS
3710 test -z "$as_dir" && as_dir=.
5213506e
RW
3711 for ac_exec_ext in '' $ac_executable_extensions; do
3712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3713 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3715 break 2
3716 fi
3717done
5213506e
RW
3718 done
3719IFS=$as_save_IFS
1c710c3c
DJ
3720
3721fi
3722fi
3723ac_ct_CC=$ac_cv_prog_ac_ct_CC
3724if test -n "$ac_ct_CC"; then
5213506e
RW
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3726$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3727else
5213506e
RW
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729$as_echo "no" >&6; }
1c710c3c
DJ
3730fi
3731
5213506e
RW
3732 if test "x$ac_ct_CC" = x; then
3733 CC=""
3734 else
3735 case $cross_compiling:$ac_tool_warned in
3736yes:)
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3739ac_tool_warned=yes ;;
3740esac
3741 CC=$ac_ct_CC
3742 fi
1c710c3c
DJ
3743else
3744 CC="$ac_cv_prog_CC"
3745fi
3746
3747if test -z "$CC"; then
5213506e
RW
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3750set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752$as_echo_n "checking for $ac_word... " >&6; }
3753if test "${ac_cv_prog_CC+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3755else
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758else
1c710c3c
DJ
3759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760for as_dir in $PATH
3761do
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
5213506e
RW
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3766 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3768 break 2
3769 fi
3770done
5213506e
RW
3771 done
3772IFS=$as_save_IFS
1c710c3c 3773
0b0dc272 3774fi
0b0dc272 3775fi
1c710c3c 3776CC=$ac_cv_prog_CC
af71363e 3777if test -n "$CC"; then
5213506e
RW
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3779$as_echo "$CC" >&6; }
2aeb72e9 3780else
5213506e
RW
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782$as_echo "no" >&6; }
2aeb72e9
DD
3783fi
3784
2aeb72e9 3785
5213506e 3786 fi
1c710c3c 3787fi
55ffb5ed
NN
3788if test -z "$CC"; then
3789 # Extract the first word of "cc", so it can be a program name with args.
3790set dummy cc; ac_word=$2
5213506e
RW
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792$as_echo_n "checking for $ac_word... " >&6; }
3793if test "${ac_cv_prog_CC+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3795else
3796 if test -n "$CC"; then
3797 ac_cv_prog_CC="$CC" # Let the user override the test.
3798else
0b0dc272 3799 ac_prog_rejected=no
1c710c3c
DJ
3800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801for as_dir in $PATH
3802do
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
5213506e
RW
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3807 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3808 ac_prog_rejected=yes
3809 continue
3810 fi
3811 ac_cv_prog_CC="cc"
5213506e 3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3813 break 2
3814 fi
3815done
5213506e
RW
3816 done
3817IFS=$as_save_IFS
1c710c3c 3818
55ffb5ed
NN
3819if test $ac_prog_rejected = yes; then
3820 # We found a bogon in the path, so make sure we never use it.
3821 set dummy $ac_cv_prog_CC
3822 shift
1c710c3c 3823 if test $# != 0; then
55ffb5ed
NN
3824 # We chose a different compiler from the bogus one.
3825 # However, it has the same basename, so the bogon will be chosen
3826 # first if we set CC to just the basename; use the full file name.
3827 shift
1c710c3c 3828 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3829 fi
3830fi
3831fi
3832fi
1c710c3c 3833CC=$ac_cv_prog_CC
55ffb5ed 3834if test -n "$CC"; then
5213506e
RW
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3836$as_echo "$CC" >&6; }
55ffb5ed 3837else
5213506e
RW
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3839$as_echo "no" >&6; }
55ffb5ed
NN
3840fi
3841
5213506e 3842
1c710c3c
DJ
3843fi
3844if test -z "$CC"; then
3845 if test -n "$ac_tool_prefix"; then
5213506e 3846 for ac_prog in cl.exe
1c710c3c
DJ
3847 do
3848 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3849set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851$as_echo_n "checking for $ac_word... " >&6; }
3852if test "${ac_cv_prog_CC+set}" = set; then :
3853 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3854else
3855 if test -n "$CC"; then
3856 ac_cv_prog_CC="$CC" # Let the user override the test.
3857else
1c710c3c
DJ
3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH
3860do
3861 IFS=$as_save_IFS
3862 test -z "$as_dir" && as_dir=.
5213506e
RW
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3865 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3867 break 2
3868 fi
3869done
5213506e
RW
3870 done
3871IFS=$as_save_IFS
1c710c3c 3872
55ffb5ed
NN
3873fi
3874fi
1c710c3c 3875CC=$ac_cv_prog_CC
55ffb5ed 3876if test -n "$CC"; then
5213506e
RW
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3878$as_echo "$CC" >&6; }
a4b9e93e 3879else
5213506e
RW
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881$as_echo "no" >&6; }
fb0103e5 3882fi
af71363e 3883
5213506e 3884
1c710c3c
DJ
3885 test -n "$CC" && break
3886 done
af71363e 3887fi
1c710c3c
DJ
3888if test -z "$CC"; then
3889 ac_ct_CC=$CC
5213506e 3890 for ac_prog in cl.exe
1c710c3c
DJ
3891do
3892 # Extract the first word of "$ac_prog", so it can be a program name with args.
3893set dummy $ac_prog; ac_word=$2
5213506e
RW
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895$as_echo_n "checking for $ac_word... " >&6; }
3896if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3897 $as_echo_n "(cached) " >&6
0b0dc272 3898else
1c710c3c
DJ
3899 if test -n "$ac_ct_CC"; then
3900 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3901else
1c710c3c
DJ
3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
5213506e
RW
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3909 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3911 break 2
3912 fi
3913done
5213506e
RW
3914 done
3915IFS=$as_save_IFS
1c710c3c 3916
af71363e
AS
3917fi
3918fi
1c710c3c
DJ
3919ac_ct_CC=$ac_cv_prog_ac_ct_CC
3920if test -n "$ac_ct_CC"; then
5213506e
RW
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3922$as_echo "$ac_ct_CC" >&6; }
fb0103e5 3923else
5213506e
RW
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925$as_echo "no" >&6; }
af71363e 3926fi
0b0dc272 3927
5213506e 3928
1c710c3c
DJ
3929 test -n "$ac_ct_CC" && break
3930done
3931
5213506e
RW
3932 if test "x$ac_ct_CC" = x; then
3933 CC=""
3934 else
3935 case $cross_compiling:$ac_tool_warned in
3936yes:)
3937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3939ac_tool_warned=yes ;;
3940esac
3941 CC=$ac_ct_CC
3942 fi
1c710c3c
DJ
3943fi
3944
3945fi
3946
3947
5213506e
RW
3948test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3950as_fn_error "no acceptable C compiler found in \$PATH
3951See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
3952
3953# Provide some information about the compiler.
5213506e
RW
3954$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3955set X $ac_compile
3956ac_compiler=$2
3957for ac_option in --version -v -V -qversion; do
3958 { { ac_try="$ac_compiler $ac_option >&5"
3959case "(($ac_try" in
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3962esac
3963eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3964$as_echo "$ac_try_echo"; } >&5
3965 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 3966 ac_status=$?
5213506e
RW
3967 if test -s conftest.err; then
3968 sed '10a\
3969... rest of stderr output deleted ...
3970 10q' conftest.err >conftest.er1
3971 cat conftest.er1 >&5
3972 rm -f conftest.er1 conftest.err
3973 fi
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }
3976done
1c710c3c 3977
5213506e 3978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
3979/* end confdefs.h. */
3980
3981int
3982main ()
3983{
3984
3985 ;
3986 return 0;
3987}
3988_ACEOF
3989ac_clean_files_save=$ac_clean_files
5213506e 3990ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
3991# Try to create an executable without -o first, disregard a.out.
3992# It will help us diagnose broken compilers, and finding out an intuition
3993# of exeext.
5213506e
RW
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3995$as_echo_n "checking for C compiler default output file name... " >&6; }
3996ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3997
3998# The possible output files:
3999ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4000
4001ac_rmfiles=
4002for ac_file in $ac_files
4003do
4004 case $ac_file in
4005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4006 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4007 esac
4008done
4009rm -f $ac_rmfiles
4010
4011if { { ac_try="$ac_link_default"
4012case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015esac
4016eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017$as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_link_default") 2>&5
1c710c3c 4019 ac_status=$?
5213506e
RW
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; then :
4022 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4023# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4024# in a Makefile. We should not override ac_cv_exeext if it was cached,
4025# so that the user can short-circuit this test for compilers unknown to
4026# Autoconf.
4027for ac_file in $ac_files ''
1c710c3c
DJ
4028do
4029 test -f "$ac_file" || continue
4030 case $ac_file in
5213506e 4031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4032 ;;
4033 [ab].out )
4034 # We found the default executable, but exeext='' is most
4035 # certainly right.
4036 break;;
4037 *.* )
5213506e
RW
4038 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4039 then :; else
4040 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4041 fi
4042 # We set ac_cv_exeext here because the later test for it is not
4043 # safe: cross compilers may not add the suffix if given an `-o'
4044 # argument, so we may need to know it at that point already.
4045 # Even if this section looks crufty: it has the advantage of
4046 # actually working.
1c710c3c
DJ
4047 break;;
4048 * )
4049 break;;
4050 esac
4051done
5213506e
RW
4052test "$ac_cv_exeext" = no && ac_cv_exeext=
4053
1c710c3c 4054else
5213506e
RW
4055 ac_file=''
4056fi
4057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4058$as_echo "$ac_file" >&6; }
4059if test -z "$ac_file"; then :
4060 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4061sed 's/^/| /' conftest.$ac_ext >&5
4062
5213506e
RW
4063{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065{ as_fn_set_status 77
4066as_fn_error "C compiler cannot create executables
4067See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4068fi
1c710c3c 4069ac_exeext=$ac_cv_exeext
1c710c3c 4070
5213506e 4071# Check that the compiler produces executables we can run. If not, either
1c710c3c 4072# the compiler is broken, or we cross compile.
5213506e
RW
4073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4074$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4075# If not cross compiling, check that we can run a simple program.
4076if test "$cross_compiling" != yes; then
4077 if { ac_try='./$ac_file'
5213506e
RW
4078 { { case "(($ac_try" in
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4081esac
4082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4083$as_echo "$ac_try_echo"; } >&5
4084 (eval "$ac_try") 2>&5
1c710c3c 4085 ac_status=$?
5213506e
RW
4086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4087 test $ac_status = 0; }; }; then
1c710c3c
DJ
4088 cross_compiling=no
4089 else
4090 if test "$cross_compiling" = maybe; then
4091 cross_compiling=yes
4092 else
5213506e
RW
4093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4095as_fn_error "cannot run C compiled programs.
1c710c3c 4096If you meant to cross compile, use \`--host'.
5213506e 4097See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4098 fi
4099 fi
4100fi
5213506e
RW
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4102$as_echo "yes" >&6; }
1c710c3c 4103
5213506e 4104rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4105ac_clean_files=$ac_clean_files_save
5213506e 4106# Check that the compiler produces executables we can run. If not, either
1c710c3c 4107# the compiler is broken, or we cross compile.
5213506e
RW
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4109$as_echo_n "checking whether we are cross compiling... " >&6; }
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4111$as_echo "$cross_compiling" >&6; }
4112
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4114$as_echo_n "checking for suffix of executables... " >&6; }
4115if { { ac_try="$ac_link"
4116case "(($ac_try" in
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4119esac
4120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4121$as_echo "$ac_try_echo"; } >&5
4122 (eval "$ac_link") 2>&5
1c710c3c 4123 ac_status=$?
5213506e
RW
4124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4125 test $ac_status = 0; }; then :
1c710c3c
DJ
4126 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4127# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4128# work properly (i.e., refer to `conftest.exe'), while it won't with
4129# `rm'.
4130for ac_file in conftest.exe conftest conftest.*; do
4131 test -f "$ac_file" || continue
4132 case $ac_file in
5213506e 4133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4134 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4135 break;;
4136 * ) break;;
4137 esac
4138done
af71363e 4139else
5213506e
RW
4140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4142as_fn_error "cannot compute suffix of executables: cannot compile and link
4143See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4144fi
1c710c3c 4145rm -f conftest$ac_cv_exeext
5213506e
RW
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4147$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4148
4149rm -f conftest.$ac_ext
4150EXEEXT=$ac_cv_exeext
4151ac_exeext=$EXEEXT
5213506e
RW
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4153$as_echo_n "checking for suffix of object files... " >&6; }
4154if test "${ac_cv_objext+set}" = set; then :
4155 $as_echo_n "(cached) " >&6
1c710c3c 4156else
5213506e 4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4158/* end confdefs.h. */
4159
4160int
4161main ()
4162{
4163
4164 ;
4165 return 0;
4166}
4167_ACEOF
4168rm -f conftest.o conftest.obj
5213506e
RW
4169if { { ac_try="$ac_compile"
4170case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173esac
4174eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4175$as_echo "$ac_try_echo"; } >&5
4176 (eval "$ac_compile") 2>&5
1c710c3c 4177 ac_status=$?
5213506e
RW
4178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4179 test $ac_status = 0; }; then :
4180 for ac_file in conftest.o conftest.obj conftest.*; do
4181 test -f "$ac_file" || continue;
1c710c3c 4182 case $ac_file in
5213506e 4183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4184 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4185 break;;
4186 esac
4187done
4188else
5213506e 4189 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4190sed 's/^/| /' conftest.$ac_ext >&5
4191
5213506e
RW
4192{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4193$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4194as_fn_error "cannot compute suffix of object files: cannot compile
4195See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4196fi
1c710c3c
DJ
4197rm -f conftest.$ac_cv_objext conftest.$ac_ext
4198fi
5213506e
RW
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4200$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4201OBJEXT=$ac_cv_objext
4202ac_objext=$OBJEXT
5213506e
RW
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4204$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4205if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
1c710c3c 4207else
5213506e 4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4209/* end confdefs.h. */
4210
4211int
4212main ()
4213{
4214#ifndef __GNUC__
4215 choke me
4216#endif
4217
4218 ;
4219 return 0;
4220}
4221_ACEOF
5213506e 4222if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4223 ac_compiler_gnu=yes
4224else
5213506e 4225 ac_compiler_gnu=no
1c710c3c 4226fi
5213506e 4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4228ac_cv_c_compiler_gnu=$ac_compiler_gnu
4229
4230fi
5213506e
RW
4231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4232$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4233if test $ac_compiler_gnu = yes; then
4234 GCC=yes
4235else
4236 GCC=
4237fi
1c710c3c
DJ
4238ac_test_CFLAGS=${CFLAGS+set}
4239ac_save_CFLAGS=$CFLAGS
5213506e
RW
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4241$as_echo_n "checking whether $CC accepts -g... " >&6; }
4242if test "${ac_cv_prog_cc_g+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4244else
4245 ac_save_c_werror_flag=$ac_c_werror_flag
4246 ac_c_werror_flag=yes
4247 ac_cv_prog_cc_g=no
4248 CFLAGS="-g"
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4250/* end confdefs.h. */
4251
4252int
4253main ()
4254{
4255
4256 ;
4257 return 0;
4258}
4259_ACEOF
5213506e 4260if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4261 ac_cv_prog_cc_g=yes
4262else
5213506e
RW
4263 CFLAGS=""
4264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4265/* end confdefs.h. */
4266
4267int
4268main ()
4269{
4270
4271 ;
4272 return 0;
4273}
4274_ACEOF
4275if ac_fn_c_try_compile "$LINENO"; then :
4276
4277else
4278 ac_c_werror_flag=$ac_save_c_werror_flag
4279 CFLAGS="-g"
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281/* end confdefs.h. */
af71363e 4282
5213506e
RW
4283int
4284main ()
4285{
4286
4287 ;
4288 return 0;
4289}
4290_ACEOF
4291if ac_fn_c_try_compile "$LINENO"; then :
4292 ac_cv_prog_cc_g=yes
4293fi
4294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4295fi
5213506e 4296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4297fi
5213506e
RW
4298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 ac_c_werror_flag=$ac_save_c_werror_flag
4300fi
4301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4302$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4303if test "$ac_test_CFLAGS" = set; then
1c710c3c 4304 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4305elif test $ac_cv_prog_cc_g = yes; then
4306 if test "$GCC" = yes; then
4307 CFLAGS="-g -O2"
4308 else
4309 CFLAGS="-g"
4310 fi
4311else
4312 if test "$GCC" = yes; then
4313 CFLAGS="-O2"
4314 else
4315 CFLAGS=
4316 fi
4317fi
5213506e
RW
4318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4319$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4320if test "${ac_cv_prog_cc_c89+set}" = set; then :
4321 $as_echo_n "(cached) " >&6
1c710c3c 4322else
5213506e 4323 ac_cv_prog_cc_c89=no
1c710c3c 4324ac_save_CC=$CC
5213506e 4325cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4326/* end confdefs.h. */
4327#include <stdarg.h>
4328#include <stdio.h>
4329#include <sys/types.h>
4330#include <sys/stat.h>
4331/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4332struct buf { int x; };
4333FILE * (*rcsopen) (struct buf *, struct stat *, int);
4334static char *e (p, i)
4335 char **p;
4336 int i;
4337{
4338 return p[i];
4339}
4340static char *f (char * (*g) (char **, int), char **p, ...)
4341{
4342 char *s;
4343 va_list v;
4344 va_start (v,p);
4345 s = g (p, va_arg (v,int));
4346 va_end (v);
4347 return s;
4348}
4349
4350/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4351 function prototypes and stuff, but not '\xHH' hex character constants.
4352 These don't provoke an error unfortunately, instead are silently treated
5213506e 4353 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4355 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4356 that's true only with -std. */
1c710c3c
DJ
4357int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4358
5213506e
RW
4359/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4360 inside strings and character constants. */
4361#define FOO(x) 'x'
4362int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4363
1c710c3c
DJ
4364int test (int i, double x);
4365struct s1 {int (*f) (int a);};
4366struct s2 {int (*f) (double a);};
4367int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4368int argc;
4369char **argv;
4370int
4371main ()
4372{
4373return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4374 ;
4375 return 0;
4376}
4377_ACEOF
5213506e
RW
4378for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4380do
4381 CC="$ac_save_CC $ac_arg"
5213506e
RW
4382 if ac_fn_c_try_compile "$LINENO"; then :
4383 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4384fi
5213506e
RW
4385rm -f core conftest.err conftest.$ac_objext
4386 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4387done
5213506e 4388rm -f conftest.$ac_ext
1c710c3c
DJ
4389CC=$ac_save_CC
4390
4391fi
5213506e
RW
4392# AC_CACHE_VAL
4393case "x$ac_cv_prog_cc_c89" in
4394 x)
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4396$as_echo "none needed" >&6; } ;;
4397 xno)
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4399$as_echo "unsupported" >&6; } ;;
1c710c3c 4400 *)
5213506e
RW
4401 CC="$CC $ac_cv_prog_cc_c89"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4403$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4404esac
5213506e 4405if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4406
2aeb72e9
DD
4407fi
4408
2aeb72e9
DD
4409ac_ext=c
4410ac_cpp='$CPP $CPPFLAGS'
4411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414
5213506e 4415ac_ext=cpp
2aeb72e9
DD
4416ac_cpp='$CXXCPP $CPPFLAGS'
4417ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4420if test -z "$CXX"; then
4421 if test -n "$CCC"; then
4422 CXX=$CCC
4423 else
4424 if test -n "$ac_tool_prefix"; then
4425 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4426 do
4427 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4428set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4430$as_echo_n "checking for $ac_word... " >&6; }
4431if test "${ac_cv_prog_CXX+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4433else
4434 if test -n "$CXX"; then
4435 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4436else
4437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438for as_dir in $PATH
4439do
4440 IFS=$as_save_IFS
4441 test -z "$as_dir" && as_dir=.
5213506e
RW
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4444 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4446 break 2
4447 fi
4448done
5213506e
RW
4449 done
4450IFS=$as_save_IFS
55ffb5ed 4451
c3a86da9
DJ
4452fi
4453fi
4454CXX=$ac_cv_prog_CXX
4455if test -n "$CXX"; then
5213506e
RW
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4457$as_echo "$CXX" >&6; }
c3a86da9 4458else
5213506e
RW
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460$as_echo "no" >&6; }
c3a86da9
DJ
4461fi
4462
5213506e 4463
c3a86da9
DJ
4464 test -n "$CXX" && break
4465 done
4466fi
4467if test -z "$CXX"; then
4468 ac_ct_CXX=$CXX
5213506e 4469 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4470do
4471 # Extract the first word of "$ac_prog", so it can be a program name with args.
4472set dummy $ac_prog; ac_word=$2
5213506e
RW
4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474$as_echo_n "checking for $ac_word... " >&6; }
4475if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4476 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4477else
4478 if test -n "$ac_ct_CXX"; then
4479 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4480else
4481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482for as_dir in $PATH
4483do
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
5213506e
RW
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4488 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4490 break 2
4491 fi
4492done
5213506e
RW
4493 done
4494IFS=$as_save_IFS
c3a86da9
DJ
4495
4496fi
4497fi
4498ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4499if test -n "$ac_ct_CXX"; then
5213506e
RW
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4501$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4502else
5213506e
RW
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504$as_echo "no" >&6; }
c3a86da9
DJ
4505fi
4506
5213506e 4507
c3a86da9
DJ
4508 test -n "$ac_ct_CXX" && break
4509done
c3a86da9 4510
5213506e
RW
4511 if test "x$ac_ct_CXX" = x; then
4512 CXX="g++"
4513 else
4514 case $cross_compiling:$ac_tool_warned in
4515yes:)
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4517$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4518ac_tool_warned=yes ;;
4519esac
4520 CXX=$ac_ct_CXX
4521 fi
c3a86da9
DJ
4522fi
4523
5213506e
RW
4524 fi
4525fi
c3a86da9 4526# Provide some information about the compiler.
5213506e
RW
4527$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4528set X $ac_compile
4529ac_compiler=$2
4530for ac_option in --version -v -V -qversion; do
4531 { { ac_try="$ac_compiler $ac_option >&5"
4532case "(($ac_try" in
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4535esac
4536eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537$as_echo "$ac_try_echo"; } >&5
4538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4539 ac_status=$?
5213506e
RW
4540 if test -s conftest.err; then
4541 sed '10a\
4542... rest of stderr output deleted ...
4543 10q' conftest.err >conftest.er1
4544 cat conftest.er1 >&5
4545 rm -f conftest.er1 conftest.err
4546 fi
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }
4549done
c3a86da9 4550
5213506e
RW
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4552$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4553if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
c3a86da9 4555else
5213506e 4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4557/* end confdefs.h. */
4558
4559int
4560main ()
4561{
4562#ifndef __GNUC__
4563 choke me
4564#endif
4565
4566 ;
4567 return 0;
4568}
4569_ACEOF
5213506e 4570if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4571 ac_compiler_gnu=yes
4572else
5213506e 4573 ac_compiler_gnu=no
c3a86da9 4574fi
5213506e 4575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4576ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4577
4578fi
5213506e
RW
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4580$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4581if test $ac_compiler_gnu = yes; then
4582 GXX=yes
4583else
4584 GXX=
4585fi
c3a86da9
DJ
4586ac_test_CXXFLAGS=${CXXFLAGS+set}
4587ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4589$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4590if test "${ac_cv_prog_cxx_g+set}" = set; then :
4591 $as_echo_n "(cached) " >&6
4592else
4593 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4594 ac_cxx_werror_flag=yes
4595 ac_cv_prog_cxx_g=no
4596 CXXFLAGS="-g"
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4598/* end confdefs.h. */
4599
4600int
4601main ()
4602{
4603
4604 ;
4605 return 0;
4606}
4607_ACEOF
5213506e 4608if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4609 ac_cv_prog_cxx_g=yes
4610else
5213506e
RW
4611 CXXFLAGS=""
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4613/* end confdefs.h. */
5213506e 4614
c3a86da9
DJ
4615int
4616main ()
4617{
5213506e 4618
c3a86da9
DJ
4619 ;
4620 return 0;
4621}
4622_ACEOF
5213506e 4623if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4624
5213506e
RW
4625else
4626 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4627 CXXFLAGS="-g"
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4629/* end confdefs.h. */
5213506e 4630
c3a86da9
DJ
4631int
4632main ()
4633{
5213506e 4634
c3a86da9
DJ
4635 ;
4636 return 0;
4637}
4638_ACEOF
5213506e
RW
4639if ac_fn_cxx_try_compile "$LINENO"; then :
4640 ac_cv_prog_cxx_g=yes
11a67599 4641fi
5213506e
RW
4642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4643fi
4644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645fi
4646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4648fi
4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4650$as_echo "$ac_cv_prog_cxx_g" >&6; }
4651if test "$ac_test_CXXFLAGS" = set; then
4652 CXXFLAGS=$ac_save_CXXFLAGS
4653elif test $ac_cv_prog_cxx_g = yes; then
4654 if test "$GXX" = yes; then
4655 CXXFLAGS="-g -O2"
4656 else
4657 CXXFLAGS="-g"
4658 fi
4659else
4660 if test "$GXX" = yes; then
4661 CXXFLAGS="-O2"
4662 else
4663 CXXFLAGS=
4664 fi
c3a86da9 4665fi
c3a86da9
DJ
4666ac_ext=c
4667ac_cpp='$CPP $CPPFLAGS'
4668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4670ac_compiler_gnu=$ac_cv_c_compiler_gnu
4671
4672
4673# We must set the default linker to the linker used by gcc for the correct
4674# operation of libtool. If LD is not defined and we are using gcc, try to
4675# set the LD default to the ld used by gcc.
4676if test -z "$LD"; then
4677 if test "$GCC" = yes; then
4678 case $build in
4679 *-*-mingw*)
4680 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4681 *)
4682 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4683 esac
4684 case $gcc_prog_ld in
4685 # Accept absolute paths.
4686 [\\/]* | [A-Za-z]:[\\/]*)
4687 LD="$gcc_prog_ld" ;;
4688 esac
4689 fi
23f6b2f9
PB
4690fi
4691
23f6b2f9
PB
4692
4693
55ffb5ed 4694
1c710c3c
DJ
4695if test -n "$ac_tool_prefix"; then
4696 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4697set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699$as_echo_n "checking for $ac_word... " >&6; }
4700if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4702else
4703 if test -n "$GNATBIND"; then
4704 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4705else
1c710c3c
DJ
4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH
4708do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
5213506e
RW
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4713 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4715 break 2
4716 fi
4717done
5213506e
RW
4718 done
4719IFS=$as_save_IFS
1c710c3c 4720
55ffb5ed
NN
4721fi
4722fi
1c710c3c 4723GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4724if test -n "$GNATBIND"; then
5213506e
RW
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4726$as_echo "$GNATBIND" >&6; }
55ffb5ed 4727else
5213506e
RW
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729$as_echo "no" >&6; }
55ffb5ed
NN
4730fi
4731
5213506e 4732
1c710c3c 4733fi
55ffb5ed 4734if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4735 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4736 # Extract the first word of "gnatbind", so it can be a program name with args.
4737set dummy gnatbind; ac_word=$2
5213506e
RW
4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739$as_echo_n "checking for $ac_word... " >&6; }
4740if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
55ffb5ed 4742else
1c710c3c
DJ
4743 if test -n "$ac_ct_GNATBIND"; then
4744 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4745else
1c710c3c
DJ
4746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747for as_dir in $PATH
4748do
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
5213506e
RW
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4753 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4755 break 2
4756 fi
4757done
5213506e
RW
4758 done
4759IFS=$as_save_IFS
1c710c3c 4760
55ffb5ed
NN
4761fi
4762fi
1c710c3c
DJ
4763ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4764if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4766$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 4767else
5213506e
RW
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769$as_echo "no" >&6; }
55ffb5ed
NN
4770fi
4771
5213506e
RW
4772 if test "x$ac_ct_GNATBIND" = x; then
4773 GNATBIND="no"
4774 else
4775 case $cross_compiling:$ac_tool_warned in
4776yes:)
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4779ac_tool_warned=yes ;;
4780esac
4781 GNATBIND=$ac_ct_GNATBIND
4782 fi
55ffb5ed 4783else
1c710c3c 4784 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4785fi
4786
1c710c3c
DJ
4787if test -n "$ac_tool_prefix"; then
4788 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4789set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
4790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4791$as_echo_n "checking for $ac_word... " >&6; }
4792if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4793 $as_echo_n "(cached) " >&6
5305be7e
RG
4794else
4795 if test -n "$GNATMAKE"; then
4796 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4797else
1c710c3c
DJ
4798as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
5213506e
RW
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4805 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 4806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4807 break 2
4808 fi
4809done
5213506e
RW
4810 done
4811IFS=$as_save_IFS
1c710c3c 4812
5305be7e
RG
4813fi
4814fi
1c710c3c 4815GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4816if test -n "$GNATMAKE"; then
5213506e
RW
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4818$as_echo "$GNATMAKE" >&6; }
5305be7e 4819else
5213506e
RW
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4821$as_echo "no" >&6; }
5305be7e
RG
4822fi
4823
5213506e 4824
1c710c3c 4825fi
5305be7e 4826if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4827 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4828 # Extract the first word of "gnatmake", so it can be a program name with args.
4829set dummy gnatmake; ac_word=$2
5213506e
RW
4830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4831$as_echo_n "checking for $ac_word... " >&6; }
4832if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4833 $as_echo_n "(cached) " >&6
5305be7e 4834else
1c710c3c
DJ
4835 if test -n "$ac_ct_GNATMAKE"; then
4836 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4837else
1c710c3c
DJ
4838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
5213506e
RW
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4845 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 4846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4847 break 2
4848 fi
4849done
5213506e
RW
4850 done
4851IFS=$as_save_IFS
1c710c3c 4852
5305be7e
RG
4853fi
4854fi
1c710c3c
DJ
4855ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4856if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4858$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 4859else
5213506e
RW
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4861$as_echo "no" >&6; }
5305be7e
RG
4862fi
4863
5213506e
RW
4864 if test "x$ac_ct_GNATMAKE" = x; then
4865 GNATMAKE="no"
4866 else
4867 case $cross_compiling:$ac_tool_warned in
4868yes:)
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4871ac_tool_warned=yes ;;
4872esac
4873 GNATMAKE=$ac_ct_GNATMAKE
4874 fi
5305be7e 4875else
1c710c3c 4876 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4877fi
4878
5213506e
RW
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4880$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4881if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4883else
4884 cat >conftest.adb <<EOF
4885procedure conftest is begin null; end conftest;
4886EOF
4887acx_cv_cc_gcc_supports_ada=no
4888# There is a bug in old released versions of GCC which causes the
4889# driver to exit successfully when the appropriate language module
4890# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4891# Therefore we must check for the error message as well as an
4892# unsuccessful exit.
1db673ca
RO
4893# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4894# given a .adb file, but produce no object file. So we must check
4895# if an object file was really produced to guard against this.
55ffb5ed 4896errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4897if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4898 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4899fi
4900rm -f conftest.*
4901fi
5213506e
RW
4902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4903$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 4904
5305be7e 4905if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4906 have_gnat=yes
4907else
4908 have_gnat=no
4909fi
4910
5213506e
RW
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4912$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4913if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4914 $as_echo_n "(cached) " >&6
a76494aa
PB
4915else
4916 echo abfoo >t1
4917 echo cdfoo >t2
4918 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4919 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4920 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4921 :
4922 else
4923 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4924 fi
4925 fi
a76494aa
PB
4926 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4927 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4928 :
a76494aa
PB
4929 else
4930 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4931 fi
4932 fi
4933 rm t1 t2
4934
4935fi
5213506e
RW
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
4937$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
4938do_compare="$gcc_cv_prog_cmp_skip"
4939
4940
55ffb5ed 4941
00020c16 4942# See if we are building gcc with C++.
5213506e
RW
4943# Check whether --enable-build-with-cxx was given.
4944if test "${enable_build_with_cxx+set}" = set; then :
4945 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
00020c16
ILT
4946else
4947 ENABLE_BUILD_WITH_CXX=no
5213506e
RW
4948fi
4949
00020c16 4950
592c90ff
KG
4951# Used for setting $lt_cv_objdir
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
4953$as_echo_n "checking for objdir... " >&6; }
4954if test "${lt_cv_objdir+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
4956else
4957 rm -f .libs 2>/dev/null
4958mkdir .libs 2>/dev/null
4959if test -d .libs; then
4960 lt_cv_objdir=.libs
4961else
4962 # MS-DOS does not allow filenames that begin with a dot.
4963 lt_cv_objdir=_libs
4964fi
4965rmdir .libs 2>/dev/null
4966fi
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
4968$as_echo "$lt_cv_objdir" >&6; }
4969objdir=$lt_cv_objdir
4970
4971
4972
4973
4974
4975cat >>confdefs.h <<_ACEOF
4976#define LT_OBJDIR "$lt_cv_objdir/"
4977_ACEOF
4978
4979
4980
acd26225 4981# Check for GMP, MPFR and MPC
3a5729ea 4982gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 4983gmpinc=
e69bf64b 4984have_gmp=no
acd26225
KG
4985
4986# Specify a location for mpc
4987# check for this first so it ends up on the link line before mpfr.
4988
5213506e
RW
4989# Check whether --with-mpc was given.
4990if test "${with_mpc+set}" = set; then :
4991 withval=$with_mpc;
4992fi
acd26225 4993
acd26225 4994
9965e3cd 4995# Check whether --with-mpc-include was given.
5213506e
RW
4996if test "${with_mpc_include+set}" = set; then :
4997 withval=$with_mpc_include;
4998fi
acd26225 4999
acd26225 5000
9965e3cd 5001# Check whether --with-mpc-lib was given.
5213506e
RW
5002if test "${with_mpc_lib+set}" = set; then :
5003 withval=$with_mpc_lib;
5004fi
acd26225 5005
acd26225
KG
5006
5007if test "x$with_mpc" != x; then
3a5729ea
KG
5008 gmplibs="-L$with_mpc/lib $gmplibs"
5009 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5010fi
5011if test "x$with_mpc_include" != x; then
3a5729ea 5012 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5013fi
5014if test "x$with_mpc_lib" != x; then
3a5729ea 5015 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5016fi
5017if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5018 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5019 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5020 # Do not test the mpc version. Assume that it is sufficient, since
5021 # it is in the source tree, and the library has not been built yet
5022 # but it would be included on the link line in the version check below
5023 # hence making the test fail.
3a5729ea 5024 have_gmp=yes
acd26225 5025fi
e69bf64b 5026
bebf829d
PB
5027# Specify a location for mpfr
5028# check for this first so it ends up on the link line before gmp.
1c710c3c 5029
5213506e
RW
5030# Check whether --with-mpfr-dir was given.
5031if test "${with_mpfr_dir+set}" = set; then :
5032 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5033Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5034fi
5035
bebf829d
PB
5036
5037
5213506e
RW
5038# Check whether --with-mpfr was given.
5039if test "${with_mpfr+set}" = set; then :
5040 withval=$with_mpfr;
5041fi
1c710c3c 5042
bebf829d 5043
9965e3cd 5044# Check whether --with-mpfr-include was given.
5213506e
RW
5045if test "${with_mpfr_include+set}" = set; then :
5046 withval=$with_mpfr_include;
5047fi
1c710c3c 5048
8a877c9c 5049
9965e3cd 5050# Check whether --with-mpfr-lib was given.
5213506e
RW
5051if test "${with_mpfr_lib+set}" = set; then :
5052 withval=$with_mpfr_lib;
5053fi
8a877c9c 5054
bebf829d
PB
5055
5056if test "x$with_mpfr" != x; then
5057 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5058 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5059fi
8a877c9c 5060if test "x$with_mpfr_include" != x; then
3a5729ea 5061 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5062fi
5063if test "x$with_mpfr_lib" != x; then
5064 gmplibs="-L$with_mpfr_lib $gmplibs"
5065fi
e69bf64b 5066if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
592c90ff 5067 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
e69bf64b 5068 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
592c90ff 5069 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
e69bf64b
PB
5070 # Do not test the mpfr version. Assume that it is sufficient, since
5071 # it is in the source tree, and the library has not been built yet
5072 # but it would be included on the link line in the version check below
5073 # hence making the test fail.
5074 have_gmp=yes
5075fi
bebf829d 5076
6de9cd9a 5077# Specify a location for gmp
1c710c3c 5078
5213506e
RW
5079# Check whether --with-gmp-dir was given.
5080if test "${with_gmp_dir+set}" = set; then :
5081 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5082Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5083fi
5084
6de9cd9a 5085
6de9cd9a 5086
5213506e
RW
5087# Check whether --with-gmp was given.
5088if test "${with_gmp+set}" = set; then :
5089 withval=$with_gmp;
5090fi
1c710c3c 5091
6de9cd9a 5092
9965e3cd 5093# Check whether --with-gmp-include was given.
5213506e
RW
5094if test "${with_gmp_include+set}" = set; then :
5095 withval=$with_gmp_include;
5096fi
1c710c3c 5097
8a877c9c 5098
9965e3cd 5099# Check whether --with-gmp-lib was given.
5213506e
RW
5100if test "${with_gmp_lib+set}" = set; then :
5101 withval=$with_gmp_lib;
5102fi
8a877c9c
KG
5103
5104
6de9cd9a 5105
bebf829d
PB
5106if test "x$with_gmp" != x; then
5107 gmplibs="-L$with_gmp/lib $gmplibs"
5108 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5109fi
8a877c9c
KG
5110if test "x$with_gmp_include" != x; then
5111 gmpinc="-I$with_gmp_include $gmpinc"
5112fi
5113if test "x$with_gmp_lib" != x; then
5114 gmplibs="-L$with_gmp_lib $gmplibs"
5115fi
e69bf64b 5116if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5117 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5118 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5119 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5120 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e69bf64b
PB
5121 # Do not test the gmp version. Assume that it is sufficient, since
5122 # it is in the source tree, and the library has not been built yet
5123 # but it would be included on the link line in the version check below
5124 # hence making the test fail.
5125 have_gmp=yes
5126fi
6de9cd9a 5127
d943d7c4 5128if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5129 have_gmp=yes
5130 saved_CFLAGS="$CFLAGS"
5131 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5132 # Check for the recommended and required versions of GMP.
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5134$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5135
5136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5137/* end confdefs.h. */
5138#include "gmp.h"
5139int
5140main ()
5141{
5142
5143 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5144 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5145 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5146 choke me
5147 #endif
5148
5149 ;
5150 return 0;
5151}
5152_ACEOF
5153if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5155/* end confdefs.h. */
362c6d2f 5156#include <gmp.h>
1c710c3c
DJ
5157int
5158main ()
5159{
6de9cd9a 5160
362c6d2f
KG
5161 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5162 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5163 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5164 choke me
5165 #endif
1c710c3c
DJ
5166
5167 ;
5168 return 0;
5169}
5170_ACEOF
5213506e
RW
5171if ac_fn_c_try_compile "$LINENO"; then :
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5173$as_echo "yes" >&6; }
362c6d2f
KG
5174else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5176$as_echo "buggy but acceptable" >&6; }
5177fi
5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5179else
5213506e
RW
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5182fi
5213506e 5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5184
acd26225 5185 # If we have GMP, check the MPFR version.
e69bf64b 5186 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5187 # Check for the recommended and required versions of MPFR.
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5189$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5191/* end confdefs.h. */
70ec446f 5192#include <gmp.h>
e69bf64b 5193 #include <mpfr.h>
1c710c3c
DJ
5194int
5195main ()
5196{
e48d66a9 5197
a3337ea2 5198 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
5199 choke me
5200 #endif
1c710c3c
DJ
5201
5202 ;
5203 return 0;
5204}
5205_ACEOF
5213506e
RW
5206if ac_fn_c_try_compile "$LINENO"; then :
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5208/* end confdefs.h. */
a3993f33 5209#include <gmp.h>
e69bf64b 5210 #include <mpfr.h>
1c710c3c
DJ
5211int
5212main ()
5213{
a3993f33 5214
362c6d2f 5215 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5216 choke me
5217 #endif
acd26225
KG
5218
5219 ;
5220 return 0;
5221}
5222_ACEOF
5213506e
RW
5223if ac_fn_c_try_compile "$LINENO"; then :
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5225$as_echo "yes" >&6; }
acd26225 5226else
5213506e
RW
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5228$as_echo "buggy but acceptable" >&6; }
acd26225 5229fi
5213506e 5230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5231else
5213506e
RW
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233$as_echo "no" >&6; }; have_gmp=no
acd26225 5234fi
5213506e 5235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5236 fi
5237
5238 # Check for the MPC header version.
3a5729ea 5239 if test x"$have_gmp" = xyes ; then
362c6d2f 5240 # Check for the recommended and required versions of MPC.
5213506e
RW
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5242$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5244/* end confdefs.h. */
5245#include <mpc.h>
5246int
5247main ()
5248{
5249
362c6d2f
KG
5250 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5251 choke me
5252 #endif
5253
5254 ;
5255 return 0;
5256}
5257_ACEOF
5258if ac_fn_c_try_compile "$LINENO"; then :
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260/* end confdefs.h. */
5261#include <mpc.h>
5262int
5263main ()
5264{
5265
5266 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5267 choke me
5268 #endif
5269
5270 ;
5271 return 0;
5272}
5273_ACEOF
5213506e
RW
5274if ac_fn_c_try_compile "$LINENO"; then :
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5276$as_echo "yes" >&6; }
362c6d2f
KG
5277else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5279$as_echo "buggy but acceptable" >&6; }
5280fi
5281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5282else
5213506e 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5284$as_echo "no" >&6; }; have_gmp=no
acd26225 5285fi
5213506e 5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5287 fi
5288
5289 # Now check the MPFR library.
5290 if test x"$have_gmp" = xyes; then
5291 saved_LIBS="$LIBS"
5292 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5294$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5296/* end confdefs.h. */
3a5729ea 5297#include <mpc.h>
acd26225
KG
5298int
5299main ()
5300{
5301
5302 mpfr_t n;
5303 mpfr_t x;
3a5729ea 5304 mpc_t c;
acd26225
KG
5305 int t;
5306 mpfr_init (n);
5307 mpfr_init (x);
5308 mpfr_atan2 (n, n, x, GMP_RNDN);
5309 mpfr_erfc (n, x, GMP_RNDN);
5310 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5311 mpfr_clear(n);
5312 mpfr_clear(x);
5313 mpc_init2 (c, 53);
5314 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5315 mpc_cosh (c, c, MPC_RNDNN);
5316 mpc_pow (c, c, c, MPC_RNDNN);
5317 mpc_acosh (c, c, MPC_RNDNN);
5318 mpc_clear (c);
1c710c3c
DJ
5319
5320 ;
5321 return 0;
5322}
5323_ACEOF
5213506e
RW
5324if ac_fn_c_try_link "$LINENO"; then :
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326$as_echo "yes" >&6; }
1c710c3c 5327else
5213506e
RW
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5330fi
5213506e
RW
5331rm -f core conftest.err conftest.$ac_objext \
5332 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5333 LIBS="$saved_LIBS"
5334 fi
5335
e69bf64b 5336 CFLAGS="$saved_CFLAGS"
6de9cd9a 5337
362c6d2f
KG
5338# The library versions listed in the error message below should match
5339# the HARD-minimums enforced above.
e69bf64b 5340 if test x$have_gmp != xyes; then
362c6d2f 5341 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
3a5729ea
KG
5342Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5343their locations. Source code for these libraries can be found at
5344their respective hosting sites as well as at
5345ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5346http://gcc.gnu.org/install/prerequisites.html for additional info. If
5347you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5348make sure that you have installed both the libraries and the header
5349files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5350 fi
70ec446f
KG
5351fi
5352
acd26225
KG
5353# Flags needed for both GMP, MPFR and/or MPC.
5354
5355
6de9cd9a
DN
5356
5357
5358
9e3eba15 5359
f38095f3
JM
5360# Allow host libstdc++ to be specified for static linking with PPL.
5361
5213506e
RW
5362# Check whether --with-host-libstdcxx was given.
5363if test "${with_host_libstdcxx+set}" = set; then :
5364 withval=$with_host_libstdcxx;
5365fi
f38095f3 5366
f38095f3
JM
5367
5368case $with_host_libstdcxx in
5369 no|yes)
5213506e 5370 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5371 ;;
5372esac
f8bf9252 5373
00020c16
ILT
5374# Linker flags to use for stage1 or when not boostrapping.
5375
5213506e
RW
5376# Check whether --with-stage1-ldflags was given.
5377if test "${with_stage1_ldflags+set}" = set; then :
5378 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5379 stage1_ldflags=
5380 else
5381 stage1_ldflags=$withval
5382 fi
5383else
5384 stage1_ldflags=
5213506e
RW
5385fi
5386
00020c16
ILT
5387
5388
5389# Libraries to use for stage1 or when not bootstrapping.
5390
5213506e
RW
5391# Check whether --with-stage1-libs was given.
5392if test "${with_stage1_libs+set}" = set; then :
5393 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5394 stage1_libs=
5395 else
5396 stage1_libs=$withval
5397 fi
5398else
5399 stage1_libs=$with_host_libstdcxx
5213506e
RW
5400fi
5401
00020c16
ILT
5402
5403
00020c16
ILT
5404# Libraries to use for stage2 and later builds. This defaults to the
5405# argument passed to --with-host-libstdcxx.
5406
5213506e
RW
5407# Check whether --with-boot-libs was given.
5408if test "${with_boot_libs+set}" = set; then :
5409 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5410 poststage1_libs=
5411 else
5412 poststage1_libs=$withval
5413 fi
5414else
00020c16 5415 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5416fi
5417
00020c16
ILT
5418
5419
ed2eaa9f
ILT
5420# Linker flags to use for stage2 and later builds.
5421
5422# Check whether --with-boot-ldflags was given.
5423if test "${with_boot_ldflags+set}" = set; then :
5424 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5425 poststage1_ldflags=
5426 else
5427 poststage1_ldflags=$withval
5428 fi
5429else
5430 poststage1_ldflags=
bec93d73
ILT
5431 # In stages 2 and 3, default to linking libstdc++ and libgcc
5432 # statically. But if the user explicitly specified the libraries to
5433 # use, trust that they are doing what they want.
5434 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5435 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5436 fi
5437fi
5438
5439
5440
f8bf9252 5441# Check for PPL
7d32a440 5442ppllibs=
f8bf9252 5443pplinc=
7d32a440 5444pwllib=
f8bf9252
SP
5445
5446
5213506e
RW
5447# Check whether --with-ppl was given.
5448if test "${with_ppl+set}" = set; then :
5449 withval=$with_ppl;
5213506e 5450fi
f8bf9252 5451
f8bf9252 5452
9965e3cd 5453# Check whether --with-ppl-include was given.
5213506e
RW
5454if test "${with_ppl_include+set}" = set; then :
5455 withval=$with_ppl_include;
5456fi
5457
f8bf9252 5458
9965e3cd 5459# Check whether --with-ppl-lib was given.
5213506e
RW
5460if test "${with_ppl_lib+set}" = set; then :
5461 withval=$with_ppl_lib;
5462fi
f8bf9252 5463
f8bf9252 5464
7d32a440
SP
5465# Check whether --enable-ppl-version-check was given.
5466if test "${enable_ppl_version_check+set}" = set; then :
5467 enableval=$enable_ppl_version_check;
5468fi
5469
5470
53095c56 5471case $with_ppl in
7d32a440 5472 yes | no | "")
ad0abd3c 5473 ;;
53095c56 5474 *)
7d32a440 5475 ppllibs="-L$with_ppl/lib"
53095c56 5476 pplinc="-I$with_ppl/include $pplinc"
7d32a440
SP
5477 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5478 with_ppl=yes
5479 else
5480 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5481 fi
53095c56
SP
5482 ;;
5483esac
7d32a440
SP
5484
5485if test x"$with_ppl_include" != x; then
f8bf9252 5486 pplinc="-I$with_ppl_include $pplinc"
7d32a440 5487 with_ppl=yes
f8bf9252 5488fi
7d32a440 5489
f8bf9252 5490if test "x$with_ppl_lib" != x; then
7d32a440
SP
5491 ppllibs="-L$with_ppl_lib"
5492 with_ppl=yes
f8bf9252 5493fi
7d32a440
SP
5494
5495if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5496 if test x"$enable_watchdog" = xyes; then
5497 pwllib="-lpwl"
5498 fi
5499 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
f61428ed
AO
5500 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5501 enable_ppl_version_check=no
7d32a440 5502 with_ppl=yes
f8bf9252
SP
5503fi
5504
f158c8d0 5505if test "x$with_ppl" != xno; then
7d32a440 5506 if test "x$pwllib" = x; then
474ee908
RO
5507 saved_LIBS="$LIBS"
5508 LIBS="$LIBS $ppllibs -lstdc++ -lm"
7d32a440
SP
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5510$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5511if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5513else
5514 ac_check_lib_save_LIBS=$LIBS
5515LIBS="-lpwl $LIBS"
5516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517/* end confdefs.h. */
5518
5519/* Override any GCC internal prototype to avoid an error.
5520 Use char because int might match the return type of a GCC
5521 builtin and then its argument prototype would still apply. */
5522#ifdef __cplusplus
5523extern "C"
5524#endif
5525char PWL_handle_timeout ();
5526int
5527main ()
5528{
5529return PWL_handle_timeout ();
5530 ;
5531 return 0;
5532}
5533_ACEOF
5534if ac_fn_c_try_link "$LINENO"; then :
5535 ac_cv_lib_pwl_PWL_handle_timeout=yes
d789184e 5536else
7d32a440
SP
5537 ac_cv_lib_pwl_PWL_handle_timeout=no
5538fi
5539rm -f core conftest.err conftest.$ac_objext \
5540 conftest$ac_exeext conftest.$ac_ext
5541LIBS=$ac_check_lib_save_LIBS
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5544$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5545if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5546 pwllib="-lpwl"
5213506e
RW
5547fi
5548
474ee908 5549 LIBS="$saved_LIBS"
7d32a440 5550 fi
f8bf9252 5551
7d32a440
SP
5552 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5553
5554 if test "$enable_ppl_version_check" != no; then
5555 saved_CFLAGS="$CFLAGS"
5556 CFLAGS="$CFLAGS $pplinc $gmpinc"
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5558$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5560/* end confdefs.h. */
5561#include "ppl_c.h"
5562int
5563main ()
5564{
5565
7d32a440
SP
5566 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5567 choke me
5568 #endif
f8bf9252
SP
5569
5570 ;
5571 return 0;
5572}
5573_ACEOF
5213506e
RW
5574if ac_fn_c_try_compile "$LINENO"; then :
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5576$as_echo "yes" >&6; }
f8bf9252 5577else
5213506e 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ed3a56f3 5579$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
f8bf9252 5580fi
5213506e 5581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d32a440
SP
5582 CFLAGS="$saved_CFLAGS"
5583 fi
d789184e
SP
5584fi
5585
5586# Flags needed for PPL
5587
5588
f8bf9252 5589
f8bf9252 5590
d789184e 5591# Check for CLOOG
d32ef397 5592
d789184e
SP
5593
5594
5213506e
RW
5595# Check whether --with-cloog was given.
5596if test "${with_cloog+set}" = set; then :
5597 withval=$with_cloog;
5213506e
RW
5598fi
5599
d789184e 5600
9965e3cd 5601# Check whether --with-cloog-include was given.
5213506e
RW
5602if test "${with_cloog_include+set}" = set; then :
5603 withval=$with_cloog_include;
5604fi
d789184e 5605
d789184e 5606
9965e3cd 5607# Check whether --with-cloog-lib was given.
5213506e
RW
5608if test "${with_cloog_lib+set}" = set; then :
5609 withval=$with_cloog_lib;
5610fi
d789184e 5611
d789184e 5612
f16e2237
TG
5613 # Check whether --enable-cloog-backend was given.
5614if test "${enable_cloog_backend+set}" = set; then :
5615 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5616 cloog_backend=isl
5617 elif test "x${enableval}" = "xppl"; then
5618 cloog_backend=ppl
5619 else
5620 cloog_backend=ppl-legacy
5621 fi
5622else
5623 cloog_backend=ppl-legacy
5624fi
5625
d32ef397
AS
5626 # Check whether --enable-cloog-version-check was given.
5627if test "${enable_cloog_version_check+set}" = set; then :
5628 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5629else
5630 ENABLE_CLOOG_CHECK=yes
5631fi
5632
5633
5634 # Initialize clooglibs and clooginc.
5635 case $with_cloog in
5636 no)
5637 clooglibs=
5638 clooginc=
5639 ;;
5640 "" | yes)
5641 ;;
5642 *)
5643 clooglibs="-L$with_cloog/lib"
5644 clooginc="-I$with_cloog/include"
5645 ;;
5646 esac
5647 if test "x${with_cloog_include}" != x ; then
5648 clooginc="-I$with_cloog_include"
5649 fi
5650 if test "x${with_cloog_lib}" != x; then
5651 clooglibs="-L$with_cloog_lib"
5652 fi
5653
5654
5655
5656
5657
17e72e5d 5658if test "x$with_ppl" = "xno"; then
ab4173cf
SP
5659
5660
5661
6be7b668
JJ
5662 if test "x${with_cloog}" = xno; then
5663 graphite_requested=no
5664 elif test "x${with_cloog}" != x \
ab4173cf
SP
5665 || test "x${with_cloog_include}" != x \
5666 || test "x${with_cloog_lib}" != x ; then
5667 graphite_requested=yes
5668 else
5669 graphite_requested=no
5670 fi
5671
5672
5673 if test "${graphite_requested}" = yes; then
f33d8408 5674 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
ab4173cf 5675 fi
6be7b668 5676 with_cloog=no
ad0abd3c 5677fi
d32ef397
AS
5678if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5679 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5680 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5681 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5682fi
5683if test "x$with_cloog" != "xno"; then
ad0abd3c 5684
d32ef397
AS
5685
5686
5687 _cloog_saved_CFLAGS=$CFLAGS
5688 _cloog_saved_CPPFLAGS=$CPPFLAGS
5689 _cloog_saved_LDFLAGS=$LDFLAGS
5690 _cloog_saved_LIBS=$LIBS
5691
d32ef397
AS
5692 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5693
f16e2237 5694 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
0bb52d68 5695 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
f16e2237
TG
5696 LDFLAGS="${LDFLAGS} ${clooglibs}"
5697
5698 case $cloog_backend in
5699 "ppl-legacy")
5700 CFLAGS="${CFLAGS} ${pplinc}"
5701 LDFLAGS="${LDFLAGS} ${ppllibs}"
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5703$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
d32ef397
AS
5704if test "${gcc_cv_cloog_type+set}" = set; then :
5705 $as_echo_n "(cached) " >&6
5706else
5707 LIBS="-lcloog ${_cloog_saved_LIBS}"
f16e2237 5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5709/* end confdefs.h. */
0bb52d68 5710#include "cloog/cloog.h"
d32ef397
AS
5711int
5712main ()
5713{
0bb52d68
TG
5714#ifndef CLOOG_PPL_BACKEND
5715 choke me
5716 #endif
d32ef397
AS
5717 ;
5718 return 0;
5719}
5720_ACEOF
5721if ac_fn_c_try_link "$LINENO"; then :
5722 gcc_cv_cloog_type="PPL Legacy"
5723else
f16e2237
TG
5724 gcc_cv_cloog_type=no
5725fi
5726rm -f core conftest.err conftest.$ac_objext \
5727 conftest$ac_exeext conftest.$ac_ext
5728fi
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5730$as_echo "$gcc_cv_cloog_type" >&6; }
5731 ;;
5732 "isl")
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5734$as_echo_n "checking for installed CLooG ISL... " >&6; }
5735if test "${gcc_cv_cloog_type+set}" = set; then :
5736 $as_echo_n "(cached) " >&6
5737else
5738 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5740/* end confdefs.h. */
0bb52d68 5741#include "cloog/cloog.h"
d32ef397
AS
5742int
5743main ()
5744{
5745cloog_version ()
5746 ;
5747 return 0;
5748}
5749_ACEOF
5750if ac_fn_c_try_link "$LINENO"; then :
f16e2237
TG
5751 gcc_cv_cloog_type="ISL"
5752else
5753 gcc_cv_cloog_type=no
5754fi
5755rm -f core conftest.err conftest.$ac_objext \
5756 conftest$ac_exeext conftest.$ac_ext
5757fi
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5759$as_echo "$gcc_cv_cloog_type" >&6; }
5760 ;;
5761 "ppl")
5762 CFLAGS="${CFLAGS} ${pplinc}"
5763 LDFLAGS="${LDFLAGS} ${ppllibs}"
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5765$as_echo_n "checking for installed CLooG PPL... " >&6; }
5766if test "${gcc_cv_cloog_type+set}" = set; then :
5767 $as_echo_n "(cached) " >&6
d32ef397
AS
5768else
5769 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
f16e2237 5770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5771/* end confdefs.h. */
0bb52d68 5772#include "cloog/cloog.h"
f16e2237 5773 #include "cloog/ppl/cloog.h"
d32ef397
AS
5774int
5775main ()
5776{
5777cloog_version ()
5778 ;
5779 return 0;
5780}
5781_ACEOF
5782if ac_fn_c_try_link "$LINENO"; then :
f16e2237 5783 gcc_cv_cloog_type="PPL"
d32ef397
AS
5784else
5785 gcc_cv_cloog_type=no
d789184e 5786fi
d32ef397
AS
5787rm -f core conftest.err conftest.$ac_objext \
5788 conftest$ac_exeext conftest.$ac_ext
d789184e 5789fi
d32ef397
AS
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5791$as_echo "$gcc_cv_cloog_type" >&6; }
f16e2237
TG
5792 ;;
5793 *)
5794 gcc_cv_cloog_type=""
5795 esac
5213506e 5796
d32ef397
AS
5797 case $gcc_cv_cloog_type in
5798 "PPL Legacy")
0bb52d68 5799 clooginc="${clooginc}"
d32ef397
AS
5800 clooglibs="${clooglibs} -lcloog"
5801 cloog_org=no
5802 ;;
5803 "ISL")
5804 clooginc="${clooginc} ${_cloogorginc}"
3d2bc11b 5805 clooglibs="${clooglibs} -lcloog-isl -lisl"
d32ef397
AS
5806 cloog_org=yes
5807 ;;
5808 "PPL")
5809 clooginc="${clooginc} ${_cloogorginc}"
5810 clooglibs="${clooglibs} -lcloog-ppl"
5811 cloog_org=yes
5812 ;;
5813 *)
5814 clooglibs=
5815 clooginc=
5816 cloog_org=
5817 ;;
5818 esac
d789184e 5819
d32ef397
AS
5820 LIBS=$_cloog_saved_LIBS
5821 CFLAGS=$_cloog_saved_CFLAGS
5822 CPPFLAGS=$_cloog_saved_CPPFLAGS
5823 LDFLAGS=$_cloog_saved_LDFLAGS
5824
5825
5826
5827
5828
5829 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5830 _cloog_saved_CFLAGS=$CFLAGS
5831 _cloog_saved_LDFLAGS=$LDFLAGS
5832
5833 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
27882098 5834 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
d32ef397
AS
5835
5836 if test "${cloog_org}" = yes ; then
27b9aa80
TG
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5838$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
d32ef397
AS
5839if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5841else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843/* end confdefs.h. */
5844#include "cloog/cloog.h"
5845int
5846main ()
5847{
5848#if CLOOG_VERSION_MAJOR != 0 \
27b9aa80
TG
5849 || CLOOG_VERSION_MINOR != 16 \
5850 || CLOOG_VERSION_REVISION < 1
d32ef397
AS
5851 choke me
5852 #endif
5853 ;
5854 return 0;
5855}
5856_ACEOF
5857if ac_fn_c_try_compile "$LINENO"; then :
5858 gcc_cv_cloog_ct_0_14_0=yes
5859else
5860 gcc_cv_cloog_ct_0_14_0=no
5861fi
5862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5863fi
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5865$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5866 elif test "${cloog_org}" = no ; then
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
f264ed56 5868$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
d32ef397
AS
5869if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5870 $as_echo_n "(cached) " >&6
5871else
5213506e 5872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5873/* end confdefs.h. */
5874#include "cloog/cloog.h"
5875int
5876main ()
5877{
d32ef397
AS
5878#if CLOOG_VERSION_MAJOR != 0 \
5879 || CLOOG_VERSION_MINOR != 15 \
5880 || CLOOG_VERSION_REVISION < 5
5881 choke me
5882 #endif
f8bf9252
SP
5883 ;
5884 return 0;
5885}
5886_ACEOF
0333b9a6
SP
5887if ac_fn_c_try_compile "$LINENO"; then :
5888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889/* end confdefs.h. */
5890#include "cloog/cloog.h"
5891int
5892main ()
5893{
d32ef397
AS
5894#if CLOOG_VERSION_MAJOR != 0 \
5895 || CLOOG_VERSION_MINOR != 15 \
5896 || CLOOG_VERSION_REVISION < 9
5897 choke me
5898 #endif
0333b9a6
SP
5899 ;
5900 return 0;
5901}
5902_ACEOF
5213506e 5903if ac_fn_c_try_compile "$LINENO"; then :
d32ef397 5904 gcc_cv_cloog_ct_0_15_5=yes
0333b9a6 5905else
d32ef397 5906 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
0333b9a6
SP
5907fi
5908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f8bf9252 5909else
d32ef397 5910 gcc_cv_cloog_ct_0_15_5=no
f8bf9252 5911fi
5213506e 5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e 5913fi
d32ef397
AS
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
5915$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
5916 fi
5917
5918 CFLAGS=$_cloog_saved_CFLAGS
5919 LDFLAGS=$_cloog_saved_LDFLAGS
5920 fi
f8bf9252 5921
f8bf9252
SP
5922
5923
5924
d32ef397
AS
5925
5926
5927
6be7b668
JJ
5928 if test "x${with_cloog}" = xno; then
5929 graphite_requested=no
5930 elif test "x${with_cloog}" != x \
d32ef397
AS
5931 || test "x${with_cloog_include}" != x \
5932 || test "x${with_cloog_lib}" != x ; then
5933 graphite_requested=yes
5934 else
5935 graphite_requested=no
5936 fi
5937
5938
5939
5940 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
5941 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
5942 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
5943 clooglibs=
5944 clooginc=
5945 fi
5946
5947 if test "${graphite_requested}" = yes \
5948 && test "x${clooglibs}" = x \
5949 && test "x${clooginc}" = x ; then
5950
ab4173cf 5951 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
5952 fi
5953
5954
5955fi
5956
d7f09764
DN
5957# Check for LTO support.
5958# Check whether --enable-lto was given.
5959if test "${enable_lto+set}" = set; then :
5960 enableval=$enable_lto; enable_lto=$enableval
5961else
5962 enable_lto=yes; default_enable_lto=yes
5963fi
5964
5965
7413962d 5966
9a02962b
DK
5967
5968
5969target_elf=no
5970case $target in
5971 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5972 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
5973 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
5974 target_elf=no
5975 ;;
5976 *)
5977 target_elf=yes
5978 ;;
5979esac
5980
5981if test $target_elf = yes; then :
48215350
DK
5982 # ELF platforms build the lto-plugin always.
5983 build_lto_plugin=yes
9a02962b 5984
9a02962b
DK
5985else
5986 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 5987 case $target in
51fd6b90 5988 *-apple-darwin9 | *-cygwin* | *-mingw*) ;;
48215350 5989 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
5990 *) enable_lto=no ;;
5991 esac
9a02962b 5992 else
db50fe7d
IS
5993 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5994 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
5995 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5996 # warn during gcc/ subconfigure; unless you're bootstrapping with
5997 # -flto it won't be needed until after installation anyway.
5998 case $target in
1cd0b716 5999 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6000 *) if test x"$enable_lto" = x"yes"; then
6001 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6002 fi
6003 ;;
6004 esac
6005 fi
1cd0b716 6006 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6007 # Build it unless LTO was explicitly disabled.
1cd0b716 6008 case $target in
48215350 6009 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6010 *) ;;
6011 esac
48215350 6012
9a02962b
DK
6013fi
6014
d7f09764 6015
f8bf9252 6016
1e0f07d3 6017# By default, C is the only stage 1 language.
e1888513 6018stage1_languages=,c,
2805b53a 6019
00020c16 6020# Target libraries that we bootstrap.
ad1e5170 6021bootstrap_target_libs=,target-libgcc,
00020c16 6022
55ffb5ed
NN
6023# Figure out what language subdirectories are present.
6024# Look if the user specified --enable-languages="..."; if not, use
6025# the environment variable $LANGUAGES if defined. $LANGUAGES might
6026# go away some day.
6027# NB: embedded tabs in this IF block -- do not untabify
6028if test -d ${srcdir}/gcc; then
6029 if test x"${enable_languages+set}" != xset; then
6030 if test x"${LANGUAGES+set}" = xset; then
6031 enable_languages="${LANGUAGES}"
6032 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6033 else
6034 enable_languages=all
6035 fi
6036 else
6037 if test x"${enable_languages}" = x ||
6038 test x"${enable_languages}" = xyes;
6039 then
6040 echo configure.in: --enable-languages needs at least one language argument 1>&2
6041 exit 1
6042 fi
6043 fi
6044 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6045
7f26dfa3
FXC
6046 # 'f95' is the old name for the 'fortran' language. We issue a warning
6047 # and make the substitution.
6048 case ,${enable_languages}, in
6049 *,f95,*)
6050 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6051 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6052 ;;
6053 esac
6054
55ffb5ed
NN
6055 # First scan to see if an enabled language requires some other language.
6056 # We assume that a given config-lang.in will list all the language
6057 # front ends it requires, even if some are required indirectly.
6058 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6059 case ${lang_frag} in
6060 ..) ;;
6061 # The odd quoting in the next line works around
6062 # an apparent bug in bash 1.12 on linux.
6063 ${srcdir}/gcc/[*]/config-lang.in) ;;
6064 *)
69ecd18f
ILT
6065 # From the config-lang.in, get $language, $lang_requires, and
6066 # $lang_requires_boot_languages.
55ffb5ed
NN
6067 language=
6068 lang_requires=
69ecd18f 6069 lang_requires_boot_languages=
55ffb5ed 6070 . ${lang_frag}
69ecd18f 6071 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6072 case ,${enable_languages}, in
6073 *,$other,*) ;;
6074 *,all,*) ;;
6075 *,$language,*)
6076 echo " \`$other' language required by \`$language'; enabling" 1>&2
6077 enable_languages="${enable_languages},${other}"
6078 ;;
6079 esac
6080 done
69ecd18f
ILT
6081 for other in ${lang_requires_boot_languages} ; do
6082 if test "$other" != "c"; then
6083 case ,${enable_stage1_languages}, in
6084 *,$other,*) ;;
6085 *,all,*) ;;
6086 *)
6087 case ,${enable_languages}, in
6088 *,$language,*)
6089 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6090 enable_stage1_languages="$enable_stage1_languages,${other}"
6091 ;;
6092 esac
6093 ;;
6094 esac
6095 fi
6096 done
55ffb5ed
NN
6097 ;;
6098 esac
6099 done
6100
e1888513 6101 new_enable_languages=,c,
d7f09764
DN
6102
6103 # If LTO is enabled, add the LTO front end.
6104 extra_host_libiberty_configure_flags=
6105 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6106 case ,${enable_languages}, in
6107 *,lto,*) ;;
6108 *) enable_languages="${enable_languages},lto" ;;
6109 esac
1cd0b716 6110 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6111 configdirs="$configdirs lto-plugin"
6112 extra_host_libiberty_configure_flags=--enable-shared
6113 fi
6114 fi
6115
6116
55ffb5ed 6117 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6118 potential_languages=,c,
55ffb5ed 6119
4da3b0f8
ILT
6120 enabled_target_libs=
6121 disabled_target_libs=
6122
55ffb5ed
NN
6123 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6124 case ${lang_frag} in
6125 ..) ;;
6126 # The odd quoting in the next line works around
6127 # an apparent bug in bash 1.12 on linux.
6128 ${srcdir}/gcc/[*]/config-lang.in) ;;
6129 *)
1c710c3c 6130 # From the config-lang.in, get $language, $target_libs,
2805b53a 6131 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6132 language=
6133 target_libs=
6134 lang_dirs=
1546bb64 6135 subdir_requires=
e1888513
PB
6136 boot_language=no
6137 build_by_default=yes
55ffb5ed 6138 . ${lang_frag}
e1888513
PB
6139 if test x${language} = x; then
6140 echo "${lang_frag} doesn't set \$language." 1>&2
6141 exit 1
6142 fi
6143
f61428ed
AO
6144 if test "$language" = "c++" \
6145 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
00020c16
ILT
6146 boot_language=yes
6147 fi
6148
e1888513
PB
6149 case ,${enable_languages}, in
6150 *,${language},*)
55ffb5ed
NN
6151 # Language was explicitly selected; include it.
6152 add_this_lang=yes
6153 ;;
e1888513
PB
6154 *,all,*)
6155 # 'all' was selected, select it if it is a default language
6156 add_this_lang=${build_by_default}
55ffb5ed
NN
6157 ;;
6158 *)
6159 add_this_lang=no
6160 ;;
6161 esac
6de9cd9a 6162
1546bb64 6163 # Disable languages that need other directories if these aren't available.
95695ad3 6164 for i in $subdir_requires; do
b6348cb3 6165 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6166 case ,${enable_languages}, in
6167 *,${language},*)
6168 # Specifically requested language; tell them.
5213506e 6169 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6170 ;;
6171 *)
6172 # Silently disable.
e1888513 6173 add_this_lang=unsupported
1546bb64
PB
6174 ;;
6175 esac
6176 done
6177
e1888513
PB
6178 # Disable Ada if no preexisting GNAT is available.
6179 case ,${enable_languages},:${language}:${have_gnat} in
6180 *,${language},*:ada:no)
6181 # Specifically requested language; tell them.
5213506e 6182 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6183 ;;
6184 *:ada:no)
6185 # Silently disable.
6186 add_this_lang=unsupported
6187 ;;
6188 esac
6189
4fab7234
HPN
6190 # Disable a language that is unsupported by the target.
6191 case " $unsupported_languages " in
6192 *" $language "*)
e1888513 6193 add_this_lang=unsupported
4fab7234
HPN
6194 ;;
6195 esac
6196
6de9cd9a 6197 case $add_this_lang in
e1888513 6198 unsupported)
55ffb5ed 6199 # Remove language-dependent dirs.
4da3b0f8
ILT
6200 disabled_target_libs="$disabled_target_libs $target_libs"
6201 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6202 ;;
e1888513
PB
6203 no)
6204 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6205 disabled_target_libs="$disabled_target_libs $target_libs"
6206 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6207 potential_languages="${potential_languages}${language},"
6208 ;;
6209 yes)
6210 new_enable_languages="${new_enable_languages}${language},"
6211 potential_languages="${potential_languages}${language},"
2805b53a 6212 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6213 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6214 case "${boot_language}:,$enable_stage1_languages," in
6215 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6216 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6217 case ",$stage1_languages," in
6218 *,$language,* | ,yes, | ,all,) ;;
6219 *) stage1_languages="${stage1_languages}${language}," ;;
6220 esac
00020c16
ILT
6221 # We need to bootstrap any supporting libraries.
6222 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6223 ;;
6224 esac
6225 ;;
55ffb5ed
NN
6226 esac
6227 ;;
6228 esac
6229 done
6230
4da3b0f8
ILT
6231 # Add target libraries which are only needed for disabled languages
6232 # to noconfigdirs.
6233 if test -n "$disabled_target_libs"; then
6234 for dir in $disabled_target_libs; do
6235 case " $enabled_target_libs " in
6236 *" ${dir} "*) ;;
6237 *) noconfigdirs="$noconfigdirs $dir" ;;
6238 esac
6239 done
6240 fi
6241
5213506e
RW
6242 # Check whether --enable-stage1-languages was given.
6243if test "${enable_stage1_languages+set}" = set; then :
6244 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6245 ,no,|,,)
6246 # Set it to something that will have no effect in the loop below
6247 enable_stage1_languages=c ;;
6248 ,yes,)
6249 enable_stage1_languages=`echo $new_enable_languages | \
6250 sed -e "s/^,//" -e "s/,$//" ` ;;
6251 *,all,*)
6252 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6253 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6254 esac
6255
6256 # Add "good" languages from enable_stage1_languages to stage1_languages,
6257 # while "bad" languages go in missing_languages. Leave no duplicates.
6258 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6259 case $potential_languages in
6260 *,$i,*)
6261 case $stage1_languages in
6262 *,$i,*) ;;
6263 *) stage1_languages="$stage1_languages$i," ;;
6264 esac ;;
6265 *)
6266 case $missing_languages in
6267 *,$i,*) ;;
6268 *) missing_languages="$missing_languages$i," ;;
6269 esac ;;
6270 esac
6271 done
5213506e
RW
6272fi
6273
e1888513
PB
6274
6275 # Remove leading/trailing commas that were added for simplicity
6276 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6277 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6278 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6279 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6280
55ffb5ed 6281 if test "x$missing_languages" != x; then
5213506e 6282 as_fn_error "
0cf085e4 6283The following requested languages could not be built: ${missing_languages}
5213506e 6284Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6285 fi
55ffb5ed
NN
6286 if test "x$new_enable_languages" != "x$enable_languages"; then
6287 echo The following languages will be built: ${new_enable_languages}
e1888513 6288 enable_languages="$new_enable_languages"
55ffb5ed 6289 fi
e1888513 6290
1c710c3c 6291
b2eaac4a 6292 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6293fi
6294
27079765
AH
6295# Handle --disable-<component> generically.
6296for dir in $configdirs $build_configdirs $target_configdirs ; do
6297 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6298 varname=`echo $dirname | sed -e s/+/_/g`
6299 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6300 noconfigdirs="$noconfigdirs $dir"
6301 fi
6302done
6303
7cd0cf9c 6304# Check for Boehm's garbage collector
5213506e
RW
6305# Check whether --enable-objc-gc was given.
6306if test "${enable_objc_gc+set}" = set; then :
6307 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6308 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6309 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6310 ;;
6311esac
5213506e
RW
6312fi
6313
7cd0cf9c
DA
6314
6315# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6316case ,${enable_languages},:${enable_objc_gc} in
6317 *,objc,*:yes)
7cd0cf9c
DA
6318 # Keep target-boehm-gc if requested for Objective-C.
6319 ;;
7cd0cf9c 6320 *)
2a79fd67
DA
6321 # Otherwise remove target-boehm-gc depending on target-libjava.
6322 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6323 noconfigdirs="$noconfigdirs target-boehm-gc"
6324 fi
7cd0cf9c
DA
6325 ;;
6326esac
6327
ee6a22df
L
6328# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6329# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6330# If we have the source for $noconfigdirs entries, add them to $notsupp.
6331
6332notsupp=""
6333for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6334 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6335 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6336 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6337 if test -r $srcdir/$dirname/configure ; then
6338 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6339 true
6340 else
6341 notsupp="$notsupp $dir"
6342 fi
6343 fi
6344 fi
ee6a22df
L
6345 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6346 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6347 if test -r $srcdir/$dirname/configure ; then
6348 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6349 true
6350 else
6351 notsupp="$notsupp $dir"
6352 fi
6353 fi
6354 fi
55ffb5ed
NN
6355 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6356 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6357 if test -r $srcdir/$dirname/configure ; then
6358 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6359 true
6360 else
6361 notsupp="$notsupp $dir"
6362 fi
6363 fi
6364 fi
6365done
6366
6367# Sometimes the tools are distributed with libiberty but with no other
6368# libraries. In that case, we don't want to build target-libiberty.
54fdc474 6369# Don't let libgcc imply libiberty either.
55ffb5ed 6370if test -n "${target_configdirs}" ; then
54fdc474 6371 libgcc=
55ffb5ed
NN
6372 others=
6373 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
54fdc474
DJ
6374 if test "$i" = "libgcc"; then
6375 libgcc=target-libgcc
6376 elif test "$i" != "libiberty" ; then
55ffb5ed
NN
6377 if test -r $srcdir/$i/configure ; then
6378 others=yes;
6379 break;
6380 fi
6381 fi
6382 done
6383 if test -z "${others}" ; then
54fdc474 6384 target_configdirs=$libgcc
55ffb5ed
NN
6385 fi
6386fi
6387
6388# Quietly strip out all directories which aren't configurable in this tree.
6389# This relies on all configurable subdirectories being autoconfiscated, which
6390# is now the case.
23f6b2f9
PB
6391build_configdirs_all="$build_configdirs"
6392build_configdirs=
6393for i in ${build_configdirs_all} ; do
1c710c3c 6394 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6395 if test -f ${srcdir}/$j/configure ; then
6396 build_configdirs="${build_configdirs} $i"
6397 fi
6398done
6399
55ffb5ed
NN
6400configdirs_all="$configdirs"
6401configdirs=
6402for i in ${configdirs_all} ; do
6403 if test -f ${srcdir}/$i/configure ; then
6404 configdirs="${configdirs} $i"
6405 fi
6406done
23f6b2f9 6407
55ffb5ed
NN
6408target_configdirs_all="$target_configdirs"
6409target_configdirs=
6410for i in ${target_configdirs_all} ; do
1c710c3c 6411 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6412 if test -f ${srcdir}/$j/configure ; then
6413 target_configdirs="${target_configdirs} $i"
6414 fi
6415done
6416
6417# Produce a warning message for the subdirs we can't configure.
6418# This isn't especially interesting in the Cygnus tree, but in the individual
6419# FSF releases, it's important to let people know when their machine isn't
6420# supported by the one or two programs in a package.
6421
6422if test -n "${notsupp}" && test -z "${norecursion}" ; then
6423 # If $appdirs is non-empty, at least one of those directories must still
6424 # be configured, or we error out. (E.g., if the gas release supports a
6425 # specified target in some subdirs but not the gas subdir, we shouldn't
6426 # pretend that all is well.)
6427 if test -n "$appdirs" ; then
6428 for dir in $appdirs ; do
6429 if test -r $dir/Makefile.in ; then
6430 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6431 appdirs=""
6432 break
6433 fi
23f6b2f9 6434 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6435 appdirs=""
6436 break
6437 fi
6438 fi
6439 done
6440 if test -n "$appdirs" ; then
6441 echo "*** This configuration is not supported by this package." 1>&2
6442 exit 1
6443 fi
6444 fi
6445 # Okay, some application will build, or we don't care to check. Still
6446 # notify of subdirs not getting built.
6447 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6448 echo " ${notsupp}" 1>&2
6449 echo " (Any other directories should still work fine.)" 1>&2
6450fi
6451
6452case "$host" in
6453 *msdosdjgpp*)
6454 enable_gdbtk=no ;;
6455esac
6456
c3a86da9
DJ
6457# To find our prefix, in gcc_cv_tool_prefix.
6458
6459# The user is always right.
6460if test "${PATH_SEPARATOR+set}" != set; then
6461 echo "#! /bin/sh" >conf$$.sh
6462 echo "exit 0" >>conf$$.sh
6463 chmod +x conf$$.sh
6464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6465 PATH_SEPARATOR=';'
6466 else
6467 PATH_SEPARATOR=:
6468 fi
6469 rm -f conf$$.sh
6470fi
6471
6472
6473
6474if test "x$exec_prefix" = xNONE; then
6475 if test "x$prefix" = xNONE; then
6476 gcc_cv_tool_prefix=$ac_default_prefix
6477 else
6478 gcc_cv_tool_prefix=$prefix
6479 fi
6480else
6481 gcc_cv_tool_prefix=$exec_prefix
6482fi
6483
6484# If there is no compiler in the tree, use the PATH only. In any
6485# case, if there is no compiler in the tree nobody should use
6486# AS_FOR_TARGET and LD_FOR_TARGET.
6487if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6488 gcc_version=`cat $srcdir/gcc/BASE-VER`
6489 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6490 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6491 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6492 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6493 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6494 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6495else
6496 gcc_cv_tool_dirs=
6497fi
6498
6499if test x$build = x$target && test -n "$md_exec_prefix"; then
6500 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6501fi
6502
6503
6504
55ffb5ed
NN
6505copy_dirs=
6506
1c710c3c 6507
5213506e
RW
6508# Check whether --with-build-sysroot was given.
6509if test "${with_build_sysroot+set}" = set; then :
6510 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6511 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6512 fi
6513else
6514 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6515fi
526635cb
MM
6516
6517
c8aea42c 6518
5213506e
RW
6519
6520# Check whether --with-debug-prefix-map was given.
6521if test "${with_debug_prefix_map+set}" = set; then :
6522 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6523 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6524 for debug_map in $withval; do
6525 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6526 done
6527 fi
6528else
6529 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6530fi
6531
c8aea42c
PB
6532
6533
1c8bd6a3
PB
6534# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6535# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6536# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6537# We want to ensure that TARGET libraries (which we know are built with
6538# gcc) are built with "-O2 -g", so include those options when setting
6539# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6540if test "x$CFLAGS_FOR_TARGET" = x; then
6541 CFLAGS_FOR_TARGET=$CFLAGS
6542 case " $CFLAGS " in
6543 *" -O2 "*) ;;
6544 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6545 esac
6546 case " $CFLAGS " in
6547 *" -g "* | *" -g3 "*) ;;
6548 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6549 esac
6550fi
6551
6552
6553if test "x$CXXFLAGS_FOR_TARGET" = x; then
6554 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6555 case " $CXXFLAGS " in
6556 *" -O2 "*) ;;
6557 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6558 esac
6559 case " $CXXFLAGS " in
6560 *" -g "* | *" -g3 "*) ;;
6561 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6562 esac
6563fi
6564
6565
55ffb5ed
NN
6566# Handle --with-headers=XXX. If the value is not "yes", the contents of
6567# the named directory are copied to $(tooldir)/sys-include.
6568if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6569 if test x${is_cross_compiler} = xno ; then
6570 echo 1>&2 '***' --with-headers is only supported when cross compiling
6571 exit 1
6572 fi
6573 if test x"${with_headers}" != xyes ; then
c3a86da9 6574 x=${gcc_cv_tool_prefix}
1c710c3c 6575 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6576 fi
6577fi
6578
6579# Handle --with-libs=XXX. If the value is not "yes", the contents of
6580# the name directories are copied to $(tooldir)/lib. Multiple directories
6581# are permitted.
6582if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6583 if test x${is_cross_compiler} = xno ; then
6584 echo 1>&2 '***' --with-libs is only supported when cross compiling
6585 exit 1
6586 fi
6587 if test x"${with_libs}" != xyes ; then
6588 # Copy the libraries in reverse order, so that files in the first named
6589 # library override files in subsequent libraries.
c3a86da9 6590 x=${gcc_cv_tool_prefix}
55ffb5ed 6591 for l in ${with_libs}; do
1c710c3c 6592 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6593 done
6594 fi
6595fi
6596
d7f09764 6597# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6598#
6599# This is done by determining whether or not the appropriate directory
6600# is available, and by checking whether or not specific configurations
6601# have requested that this magic not happen.
1c710c3c
DJ
6602#
6603# The command line options always override the explicit settings in
e8b05380
PB
6604# configure.in, and the settings in configure.in override this magic.
6605#
1c710c3c 6606# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6607# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6608# --without-gnu-ld options for the configure script. Similarly, if
6609# the default is to use the included zlib and you don't want to do that,
6610# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6611
6612if test x${use_gnu_as} = x &&
6613 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6614 with_gnu_as=yes
6615 extra_host_args="$extra_host_args --with-gnu-as"
6616fi
6617
6618if test x${use_gnu_ld} = x &&
5afab7ad 6619 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6620 with_gnu_ld=yes
6621 extra_host_args="$extra_host_args --with-gnu-ld"
6622fi
6623
d7f09764
DN
6624if test x${use_included_zlib} = x &&
6625 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6626 :
6627else
6628 with_system_zlib=yes
6629 extra_host_args="$extra_host_args --with-system-zlib"
6630fi
6631
e8b05380
PB
6632# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6633# can detect this case.
6634
6635if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6636 with_newlib=yes
6637 extra_host_args="$extra_host_args --with-newlib"
6638fi
6639
55ffb5ed
NN
6640# Handle ${copy_dirs}
6641set fnord ${copy_dirs}
6642shift
6643while test $# != 0 ; do
6644 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6645 :
6646 else
6647 echo Copying $1 to $2
6648
6649 # Use the install script to create the directory and all required
6650 # parent directories.
6651 if test -d $2 ; then
6652 :
6653 else
6654 echo >config.temp
6655 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6656 fi
6657
6658 # Copy the directory, assuming we have tar.
6659 # FIXME: Should we use B in the second tar? Not all systems support it.
6660 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6661
6662 # It is the responsibility of the user to correctly adjust all
6663 # symlinks. If somebody can figure out how to handle them correctly
6664 # here, feel free to add the code.
6665
6666 echo $1 > $2/COPIED
6667 fi
6668 shift; shift
6669done
6670
e8b05380
PB
6671# Determine a target-dependent exec_prefix that the installed
6672# gcc will search in. Keep this list sorted by triplet, with
6673# the *-*-osname triplets last.
6674md_exec_prefix=
6675case "${target}" in
6676 alpha*-*-*vms*)
6677 md_exec_prefix=/gnu/lib/gcc-lib
6678 ;;
30b74385 6679 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6680 md_exec_prefix=/dev/env/DJDIR/bin
6681 ;;
30b74385 6682 i[34567]86-*-sco3.2v5*)
e8b05380
PB
6683 if test $with_gnu_as = yes; then
6684 md_exec_prefix=/usr/gnu/bin
6685 else
6686 md_exec_prefix=/usr/ccs/bin/elf
6687 fi
6688 ;;
6689
6690 mn10300-*-* | \
6691 powerpc-*-chorusos* | \
6692 powerpc*-*-eabi* | \
6693 powerpc*-*-sysv* | \
6694 powerpc*-*-kaos* | \
6695 s390x-ibm-tpf*)
6696 md_exec_prefix=/usr/ccs/bin
6697 ;;
6698 sparc64-*-elf*)
6699 ;;
6700 v850*-*-*)
6701 md_exec_prefix=/usr/ccs/bin
6702 ;;
aa12a573 6703 xtensa*-*-elf*)
e8b05380
PB
6704 ;;
6705
6706 *-*-beos* | \
6707 *-*-elf* | \
6708 *-*-hpux* | \
6709 *-*-netware* | \
6710 *-*-nto-qnx* | \
6711 *-*-rtems* | \
6712 *-*-solaris2* | \
30b74385 6713 *-*-sysv[45]* | \
e8b05380
PB
6714 *-*-vxworks* | \
6715 *-wrs-windiss)
6716 md_exec_prefix=/usr/ccs/bin
6717 ;;
6718esac
6719
671aa708
NN
6720extra_arflags_for_target=
6721extra_nmflags_for_target=
6722extra_ranlibflags_for_target=
6723target_makefile_frag=/dev/null
6724case "${target}" in
58e24147
AM
6725 spu-*-*)
6726 target_makefile_frag="config/mt-spu"
6727 ;;
4bf6c438
RS
6728 mips*-sde-elf*)
6729 target_makefile_frag="config/mt-sde"
6730 ;;
1ec3b87b
RS
6731 mipsisa*-*-elfoabi*)
6732 target_makefile_frag="config/mt-mips-elfoabi"
6733 ;;
08d0963a
RS
6734 mips*-*-*linux* | mips*-*-gnu*)
6735 target_makefile_frag="config/mt-mips-gnu"
6736 ;;
416ac4d4 6737 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6738 target_makefile_frag="config/mt-gnu"
671aa708
NN
6739 ;;
6740 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6741 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6742 # commands to handle both 32-bit and 64-bit objects. These flags are
6743 # harmless if we're using GNU nm or ar.
6744 extra_arflags_for_target=" -X32_64"
6745 extra_nmflags_for_target=" -B -X32_64"
6746 ;;
0aeb3cc6
JH
6747 *-*-darwin[3-9]*)
6748 # ranlib before Darwin10 requires the -c flag to look at common symbols.
671aa708
NN
6749 extra_ranlibflags_for_target=" -c"
6750 ;;
671aa708
NN
6751esac
6752
6753alphaieee_frag=/dev/null
6754case $target in
6755 alpha*-*-*)
6756 # This just makes sure to use the -mieee option to build target libs.
6757 # This should probably be set individually by each library.
6758 alphaieee_frag="config/mt-alphaieee"
6759 ;;
6760esac
6761
6762# If --enable-target-optspace always use -Os instead of -O2 to build
6763# the target libraries, similarly if it is not specified, use -Os
6764# on selected platforms.
6765ospace_frag=/dev/null
6766case "${enable_target_optspace}:${target}" in
6767 yes:*)
6768 ospace_frag="config/mt-ospace"
6769 ;;
6770 :d30v-*)
6771 ospace_frag="config/mt-d30v"
6772 ;;
6773 :m32r-* | :d10v-* | :fr30-*)
6774 ospace_frag="config/mt-ospace"
6775 ;;
6776 no:* | :*)
6777 ;;
6778 *)
6779 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6780 ;;
6781esac
6782
671aa708
NN
6783# Default to using --with-stabs for certain targets.
6784if test x${with_stabs} = x ; then
6785 case "${target}" in
89a95129 6786 mips*-*-irix[56]*)
671aa708
NN
6787 ;;
6788 mips*-*-* | alpha*-*-osf*)
6789 with_stabs=yes;
6790 extra_host_args="${extra_host_args} --with-stabs"
6791 ;;
6792 esac
6793fi
6794
6795# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6796# them automatically.
6797case "${host}" in
1c710c3c 6798 hppa*64*-*-hpux11*)
671aa708
NN
6799 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6800 ;;
6801esac
6802
671aa708
NN
6803# Some systems (e.g., one of the i386-aix systems the gas testers are
6804# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6805tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6806build_tooldir=${tooldir}
6807
671aa708
NN
6808# Create a .gdbinit file which runs the one in srcdir
6809# and tells GDB to look there for source files.
6810
6811if test -r ${srcdir}/.gdbinit ; then
6812 case ${srcdir} in
6813 .) ;;
6814 *) cat > ./.gdbinit <<EOF
6815# ${NO_EDIT}
6816dir ${srcdir}
6817dir .
6818source ${srcdir}/.gdbinit
6819EOF
6820 ;;
6821 esac
6822fi
6823
671aa708
NN
6824# Make sure that the compiler is able to generate an executable. If it
6825# can't, we are probably in trouble. We don't care whether we can run the
6826# executable--we might be using a cross compiler--we only care whether it
6827# can be created. At this point the main configure script has set CC.
6828we_are_ok=no
6829echo "int main () { return 0; }" > conftest.c
6830${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6831if test $? = 0 ; then
6832 if test -s conftest || test -s conftest.exe ; then
6833 we_are_ok=yes
6834 fi
1c710c3c 6835fi
671aa708
NN
6836case $we_are_ok in
6837 no)
6838 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6839 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6840 rm -f conftest*
6841 exit 1
6842 ;;
6843esac
6844rm -f conftest*
6845
6846# The Solaris /usr/ucb/cc compiler does not appear to work.
6847case "${host}" in
6848 sparc-sun-solaris2*)
6849 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6850 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6851 could_use=
6852 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6853 if test -d /opt/cygnus/bin ; then
6854 if test "$could_use" = "" ; then
6855 could_use="/opt/cygnus/bin"
6856 else
6857 could_use="$could_use or /opt/cygnus/bin"
6858 fi
6859 fi
6860 if test "$could_use" = "" ; then
6861 echo "Warning: compilation may fail because you're using"
6862 echo "/usr/ucb/cc. You should change your PATH or CC "
6863 echo "variable and rerun configure."
6864 else
6865 echo "Warning: compilation may fail because you're using"
6866 echo "/usr/ucb/cc, when you should use the C compiler from"
6867 echo "$could_use. You should change your"
6868 echo "PATH or CC variable and rerun configure."
6869 fi
6870 fi
6871 ;;
6872esac
6873
d89f0ad6 6874# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6875case "${host}" in
6876 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6877 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6878 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6879 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6880esac
6881
d89f0ad6
AL
6882# On systems where the dynamic library environment variable is PATH,
6883# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6884# built executables to PATH.
6885if test "$RPATH_ENVVAR" = PATH; then
6886 GCC_SHLIB_SUBDIR=/shlib
6887else
6888 GCC_SHLIB_SUBDIR=
6889fi
6890
671aa708
NN
6891# Record target_configdirs and the configure arguments for target and
6892# build configuration in Makefile.
6893target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6894build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6895
ad1e5170
JR
6896# If we are building libgomp, bootstrap it.
6897if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6898 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6899fi
6900
671aa708
NN
6901# Determine whether gdb needs tk/tcl or not.
6902# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6903# and in that case we want gdb to be built without tk. Ugh!
6904# In fact I believe gdb is the *only* package directly dependent on tk,
6905# so we should be able to put the 'maybe's in unconditionally and
6906# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6907# 100% sure that that's safe though.
e914a571 6908
b4f96efe 6909gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6910case "$enable_gdbtk" in
6911 no)
6912 GDB_TK="" ;;
e914a571
AC
6913 yes)
6914 GDB_TK="${gdb_tk}" ;;
671aa708 6915 *)
e914a571
AC
6916 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6917 # distro. Eventually someone will fix this and move Insight, nee
6918 # gdbtk to a separate directory.
6919 if test -d ${srcdir}/gdb/gdbtk ; then
6920 GDB_TK="${gdb_tk}"
6921 else
6922 GDB_TK=""
6923 fi
6924 ;;
671aa708 6925esac
ef9db8d5
DJ
6926CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6927INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6928
60975492 6929# Strip out unwanted targets.
8b87bb96
NN
6930
6931# While at that, we remove Makefiles if we were started for recursive
6932# configuration, so that the top-level Makefile reconfigures them,
6933# like we used to do when configure itself was recursive.
8b87bb96 6934
3e54529c
RW
6935# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6936# but now we're fixing up the Makefile ourselves with the additional
6937# commands passed to AC_CONFIG_FILES. Use separate variables
6938# extrasub-{build,host,target} not because there is any reason to split
6939# the substitutions up that way, but only to remain below the limit of
6940# 99 commands in a script, for HP-UX sed.
6941# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6942
5213506e
RW
6943# Check whether --enable-bootstrap was given.
6944if test "${enable_bootstrap+set}" = set; then :
6945 enableval=$enable_bootstrap;
f516a7da 6946else
ce521a9c 6947 enable_bootstrap=default
5213506e
RW
6948fi
6949
f516a7da 6950
ce521a9c
PB
6951# Issue errors and warnings for invalid/strange bootstrap combinations.
6952case "$configdirs" in
6953 *gcc*) have_compiler=yes ;;
6954 *) have_compiler=no ;;
6955esac
6956
6957case "$have_compiler:$host:$target:$enable_bootstrap" in
6958 *:*:*:no) ;;
6959
1ca26cd2 6960 # Default behavior. Enable bootstrap if we have a compiler
ce521a9c
PB
6961 # and we are in a native configuration.
6962 yes:$build:$build:default)
1ca26cd2 6963 enable_bootstrap=yes ;;
ce521a9c
PB
6964
6965 *:*:*:default)
6966 enable_bootstrap=no ;;
6967
6968 # We have a compiler and we are in a native configuration, bootstrap is ok
2d309510 6969 yes:$build:$build:yes)
ce521a9c
PB
6970 ;;
6971
6972 # Other configurations, but we have a compiler. Assume the user knows
6973 # what he's doing.
2d309510 6974 yes:*:*:yes)
5213506e
RW
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6976$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
ce521a9c
PB
6977 ;;
6978
6979 # No compiler: if they passed --enable-bootstrap explicitly, fail
2d309510 6980 no:*:*:yes)
5213506e 6981 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
ce521a9c
PB
6982
6983 # Fail if wrong command line
6984 *)
5213506e 6985 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
ce521a9c
PB
6986 ;;
6987esac
6988
ca6d0d62
RW
6989case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6990 *,c++,*:yes:yes) ;;
6991 *:yes:yes)
6992 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6993 ;;
6994esac
6995
79cd2b23
RW
6996case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6997 yes:yes:*\ gold\ *:*,c++,*) ;;
6998 yes:yes:*\ gold\ *:*)
6999 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7000 ;;
7001esac
7002
ce521a9c 7003# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 7004case $enable_bootstrap in
f516a7da 7005 yes)
e12c4094
AO
7006 bootstrap_suffix=bootstrap
7007 BUILD_CONFIG=bootstrap-debug
7008 ;;
f516a7da 7009 no)
e12c4094
AO
7010 bootstrap_suffix=no-bootstrap
7011 BUILD_CONFIG=
7012 ;;
f516a7da
PB
7013esac
7014
e12c4094
AO
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7016$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
7017
7018
7019# Check whether --with-build-config was given.
7020if test "${with_build_config+set}" = set; then :
7021 withval=$with_build_config; case $with_build_config in
7022 yes) with_build_config= ;;
7023 no) with_build_config= BUILD_CONFIG= ;;
7024 esac
7025fi
7026
7027
e12c4094
AO
7028if test "x${with_build_config}" != x; then
7029 BUILD_CONFIG=$with_build_config
7030else
7031 case $BUILD_CONFIG in
7032 bootstrap-debug)
7033 if echo "int f (void) { return 0; }" > conftest.c &&
7034 ${CC} -c conftest.c &&
7035 mv conftest.o conftest.o.g0 &&
7036 ${CC} -c -g conftest.c &&
7037 mv conftest.o conftest.o.g &&
615c8ffa 7038 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
7039 :
7040 else
7041 BUILD_CONFIG=
7042 fi
7043 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7044 ;;
7045 esac
7046fi
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7048$as_echo "$BUILD_CONFIG" >&6; }
7049
7050
3e54529c 7051extrasub_build=
23f6b2f9 7052for module in ${build_configdirs} ; do
5607edfd
PB
7053 if test -z "${no_recursion}" \
7054 && test -f ${build_subdir}/${module}/Makefile; then
7055 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7056 rm -f ${build_subdir}/${module}/Makefile
7057 fi
3e54529c 7058 extrasub_build="$extrasub_build
5607edfd
PB
7059/^@if build-$module\$/d
7060/^@endif build-$module\$/d
7061/^@if build-$module-$bootstrap_suffix\$/d
7062/^@endif build-$module-$bootstrap_suffix\$/d"
7063done
3e54529c 7064extrasub_host=
5607edfd 7065for module in ${configdirs} ; do
a6fbc1e2 7066 if test -z "${no_recursion}"; then
f063a9ed 7067 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7068 if test -f ${file}; then
7069 echo 1>&2 "*** removing ${file} to force reconfigure"
7070 rm -f ${file}
7071 fi
7072 done
5607edfd 7073 fi
3e54529c 7074 extrasub_host="$extrasub_host
5607edfd
PB
7075/^@if $module\$/d
7076/^@endif $module\$/d
7077/^@if $module-$bootstrap_suffix\$/d
7078/^@endif $module-$bootstrap_suffix\$/d"
7079done
3e54529c 7080extrasub_target=
5607edfd
PB
7081for module in ${target_configdirs} ; do
7082 if test -z "${no_recursion}" \
7083 && test -f ${target_subdir}/${module}/Makefile; then
7084 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7085 rm -f ${target_subdir}/${module}/Makefile
7086 fi
00020c16
ILT
7087
7088 # We only bootstrap target libraries listed in bootstrap_target_libs.
7089 case $bootstrap_target_libs in
7090 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7091 *) target_bootstrap_suffix=no-bootstrap ;;
7092 esac
7093
3e54529c 7094 extrasub_target="$extrasub_target
5607edfd
PB
7095/^@if target-$module\$/d
7096/^@endif target-$module\$/d
00020c16
ILT
7097/^@if target-$module-$target_bootstrap_suffix\$/d
7098/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7099done
7100
3e54529c
RW
7101# Do the final fixup along with target modules.
7102extrasub_target="$extrasub_target
60975492 7103/^@if /,/^@endif /d"
671aa708
NN
7104
7105# Create the serialization dependencies. This uses a temporary file.
7106
5213506e
RW
7107# Check whether --enable-serial-configure was given.
7108if test "${enable_serial_configure+set}" = set; then :
7109 enableval=$enable_serial_configure;
7110fi
ade82b16
AO
7111
7112
bf1d3e81
NN
7113case ${enable_serial_configure} in
7114 yes)
7115 enable_serial_build_configure=yes
7116 enable_serial_host_configure=yes
7117 enable_serial_target_configure=yes
7118 ;;
7119esac
7120
671aa708
NN
7121# These force 'configure's to be done one at a time, to avoid problems
7122# with contention over a shared config.cache.
7123rm -f serdep.tmp
ade82b16 7124echo '# serdep.tmp' > serdep.tmp
671aa708 7125olditem=
bf1d3e81 7126test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7127for item in ${build_configdirs} ; do
7128 case ${olditem} in
7129 "") ;;
ade82b16 7130 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7131 esac
7132 olditem=${item}
7133done
7134olditem=
bf1d3e81 7135test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7136for item in ${configdirs} ; do
7137 case ${olditem} in
7138 "") ;;
ade82b16 7139 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7140 esac
7141 olditem=${item}
7142done
7143olditem=
bf1d3e81 7144test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7145for item in ${target_configdirs} ; do
7146 case ${olditem} in
7147 "") ;;
ade82b16 7148 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7149 esac
7150 olditem=${item}
7151done
7152serialization_dependencies=serdep.tmp
7153
7154
ade82b16 7155# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7156# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7157# might not want to pass down to subconfigures. The exception being
7158# --cache-file=/dev/null, which is used to turn off the use of cache
7159# files altogether, and which should be passed on to subconfigures.
7160# Also strip program-prefix, program-suffix, and program-transform-name,
7161# so that we can pass down a consistent program-transform-name.
1c710c3c 7162baseargs=
29a63921 7163tbaseargs=
1c710c3c
DJ
7164keep_next=no
7165skip_next=no
7166eval "set -- $ac_configure_args"
44bfc3ac
DJ
7167for ac_arg
7168do
1c710c3c
DJ
7169 if test X"$skip_next" = X"yes"; then
7170 skip_next=no
7171 continue
7172 fi
7173 if test X"$keep_next" = X"yes"; then
7174 case $ac_arg in
7175 *\'*)
7176 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7177 esac
7178 baseargs="$baseargs '$ac_arg'"
29a63921 7179 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7180 keep_next=no
7181 continue
7182 fi
7183
7184 # Handle separated arguments. Based on the logic generated by
7185 # autoconf 2.59.
7186 case $ac_arg in
7187 *=* | --config-cache | -C | -disable-* | --disable-* \
7188 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7189 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7190 | -with-* | --with-* | -without-* | --without-* | --x)
7191 separate_arg=no
7192 ;;
7193 -*)
7194 separate_arg=yes
7195 ;;
7196 *)
7197 separate_arg=no
7198 ;;
7199 esac
7200
29a63921
AO
7201 skip_targ=no
7202 case $ac_arg in
7203
7204 --with-* | --without-*)
7205 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7206
7207 case $libopt in
7208 *[-_]include)
7209 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7210 ;;
7211 *[-_]lib)
7212 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7213 ;;
7214 *)
7215 lib=$libopt
7216 ;;
7217 esac
7218
7219
7220 case $lib in
7221 mpc | mpfr | gmp | ppl | cloog)
7222 # If we're processing --with-$lib, --with-$lib-include or
7223 # --with-$lib-lib, for one of the libs above, and target is
7224 # different from host, don't pass the current argument to any
7225 # target library's configure.
7226 if test x$is_cross_compiler = xyes; then
7227 skip_targ=yes
7228 fi
7229 ;;
7230 esac
7231 ;;
7232 esac
7233
1c710c3c 7234 case "$ac_arg" in
f1a036e4
NC
7235 --cache-file=/dev/null | \
7236 -cache-file=/dev/null )
7237 # Handled here to avoid the test to skip args below.
7238 baseargs="$baseargs '$ac_arg'"
29a63921 7239 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7240 # Assert: $separate_arg should always be no.
7241 keep_next=$separate_arg
7242 ;;
1c710c3c
DJ
7243 --no*)
7244 continue
7245 ;;
7246 --c* | \
7247 --sr* | \
7248 --ho* | \
7249 --bu* | \
7250 --t* | \
7251 --program-* | \
7252 -cache_file* | \
7253 -srcdir* | \
7254 -host* | \
7255 -build* | \
7256 -target* | \
7257 -program-prefix* | \
7258 -program-suffix* | \
7259 -program-transform-name* )
7260 skip_next=$separate_arg
7261 continue
7262 ;;
7263 -*)
7264 # An option. Add it.
7265 case $ac_arg in
7266 *\'*)
7267 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7268 esac
7269 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7270 if test X"$skip_targ" = Xno; then
7271 tbaseargs="$tbaseargs '$ac_arg'"
7272 fi
1c710c3c
DJ
7273 keep_next=$separate_arg
7274 ;;
7275 *)
7276 # Either a variable assignment, or a nonopt (triplet). Don't
7277 # pass it down; let the Makefile handle this.
7278 continue
7279 ;;
7280 esac
7281done
7282# Remove the initial space we just introduced and, as these will be
7283# expanded by make, quote '$'.
7284baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7285
43bb47c2
DJ
7286# Add in --program-transform-name, after --program-prefix and
7287# --program-suffix have been applied to it. Autoconf has already
7288# doubled dollar signs and backslashes in program_transform_name; we want
7289# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7290# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7291# Also, because we want to override the logic in subdir configure scripts to
7292# choose program_transform_name, replace any s,x,x, with s,y,y,.
7293sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7294${program_transform_name}
7295EOF_SED
7296gcc_transform_name=`cat conftestsed.out`
7297rm -f conftestsed.out
7298baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7299tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7300if test "$silent" = yes; then
7301 baseargs="$baseargs --silent"
29a63921 7302 tbaseargs="$tbaseargs --silent"
d9acb717 7303fi
0115d4a3 7304baseargs="$baseargs --disable-option-checking"
29a63921 7305tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7306
ffedf511
RW
7307# Record and document user additions to sub configure arguments.
7308
7309
7310
7311
671aa708
NN
7312# For the build-side libraries, we just need to pretend we're native,
7313# and not use the same cache file. Multilibs are neither needed nor
7314# desired.
ffedf511 7315build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7316
7317# For host modules, accept cache file option, or specification as blank.
7318case "${cache_file}" in
7319"") # empty
7320 cache_file_option="" ;;
7321/* | [A-Za-z]:[\\/]* ) # absolute path
7322 cache_file_option="--cache-file=${cache_file}" ;;
7323*) # relative path
7324 cache_file_option="--cache-file=../${cache_file}" ;;
7325esac
7326
09438bde
NN
7327# Host dirs don't like to share a cache file either, horribly enough.
7328# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7329host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7330
29a63921 7331target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7332
7333# Passing a --with-cross-host argument lets the target libraries know
7334# whether they are being built with a cross-compiler or being built
7335# native. However, it would be better to use other mechanisms to make the
7336# sorts of decisions they want to make on this basis. Please consider
7337# this option to be deprecated. FIXME.
7338if test x${is_cross_compiler} = xyes ; then
1c710c3c 7339 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7340fi
7341
dc683a3f
RW
7342# Default to --enable-multilib.
7343if test x${enable_multilib} = x ; then
671aa708 7344 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7345fi
671aa708
NN
7346
7347# Pass --with-newlib if appropriate. Note that target_configdirs has
7348# changed from the earlier setting of with_newlib.
7349if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7350 target_configargs="--with-newlib ${target_configargs}"
7351fi
7352
6b9eb62c
NN
7353# Different target subdirs use different values of certain variables
7354# (notably CXX). Worse, multilibs use *lots* of different values.
7355# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7356# it doesn't automatically accept command-line overrides of them.
7357# This means it's not safe for target subdirs to share a cache file,
7358# which is disgusting, but there you have it. Hopefully this can be
7359# fixed in future. It's still worthwhile to use a cache file for each
7360# directory. I think.
7361
bebcd931
MS
7362# Pass the appropriate --build, --host, --target and --cache-file arguments.
7363# We need to pass --target, as newer autoconf's requires consistency
7364# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7365target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7366
671aa708
NN
7367FLAGS_FOR_TARGET=
7368case " $target_configdirs " in
7369 *" newlib "*)
7370 case " $target_configargs " in
7371 *" --with-newlib "*)
7372 case "$target" in
5d571eaa
OS
7373 *-cygwin*)
7374 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'
7375 ;;
671aa708
NN
7376 esac
7377
7378 # If we're not building GCC, don't discard standard headers.
7379 if test -d ${srcdir}/gcc; then
7380 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7381
7382 if test "${build}" != "${host}"; then
7383 # On Canadian crosses, CC_FOR_TARGET will have already been set
7384 # by `configure', so we won't have an opportunity to add -Bgcc/
7385 # to it. This is right: we don't want to search that directory
7386 # for binaries, but we want the header files in there, so add
7387 # them explicitly.
0463992b 7388 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7389
7390 # Someone might think of using the pre-installed headers on
7391 # Canadian crosses, in case the installed compiler is not fully
7392 # compatible with the compiler being built. In this case, it
7393 # would be better to flag an error than risking having
7394 # incompatible object files being constructed. We can't
7395 # guarantee that an error will be flagged, but let's hope the
7396 # compiler will do it, when presented with incompatible header
7397 # files.
7398 fi
7399 fi
7400
7401 case "${target}-${is_cross_compiler}" in
f2a0e225 7402 i[3456789]86-*-linux*-no)
671aa708
NN
7403 # Here host == target, so we don't need to build gcc,
7404 # so we don't want to discard standard headers.
7405 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7406 ;;
7407 *)
7408 # If we're building newlib, use its generic headers last, but search
7409 # for any libc-related directories first (so make it the last -B
7410 # switch).
7411 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
7412
7413 # If we're building libgloss, find the startup file, simulator library
7414 # and linker script.
7415 case " $target_configdirs " in
7416 *" libgloss "*)
7417 # Look for startup file, simulator library and maybe linker script.
7418 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7419 # Look for libnosys.a in case the target needs it.
7420 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7421 # Most targets have the linker script in the source directory.
7422 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7423 ;;
7424 esac
671aa708
NN
7425 ;;
7426 esac
7427 ;;
7428 esac
7429 ;;
7430esac
5d571eaa 7431
b91f0a41 7432case "$target" in
5d571eaa
OS
7433 x86_64-*mingw* | *-w64-mingw*)
7434 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7435 # however, use a symlink named 'mingw' in ${prefix} .
7436 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7437 ;;
7438 *-mingw*)
7439 # MinGW can't be handled as Cygwin above since it does not use newlib.
7440 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'
7441 ;;
b91f0a41 7442esac
671aa708 7443
6691a79e
ME
7444# Allow the user to override the flags for
7445# our build compiler if desired.
f019adc1
MF
7446if test x"${build}" = x"${host}" ; then
7447 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7448 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7449 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7450fi
6691a79e 7451
671aa708
NN
7452# On Canadian crosses, we'll be searching the right directories for
7453# the previously-installed cross compiler, so don't bother to add
7454# flags for directories within the install tree of the compiler
7455# being built; programs in there won't even run.
7456if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7457 # Search for pre-installed headers if nothing else fits.
9124bc53 7458 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
7459fi
7460
7461if test "x${use_gnu_ld}" = x &&
7462 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7463 # Arrange for us to find uninstalled linker scripts.
215c351a 7464 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7465fi
7466
e88a2c09
DD
7467# Search for other target-specific linker scripts and such.
7468case "${target}" in
3e19841a
PB
7469 mep*)
7470 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7471 ;;
e88a2c09
DD
7472esac
7473
671aa708 7474# Makefile fragments.
7b61653a
PE
7475for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7476do
7477 eval fragval=\$$frag
7478 if test $fragval != /dev/null; then
7479 eval $frag=${srcdir}/$fragval
7480 fi
7481done
671aa708
NN
7482
7483
7484
7485
7486
7487# Miscellanea: directories, flags, etc.
7488
7489
7490
7491
7492
7493
7494
d89f0ad6 7495
23f6b2f9 7496# Build module lists & subconfigure args.
671aa708
NN
7497
7498
7499
2abefe3d
PB
7500# Host module lists & subconfigure args.
7501
7502
7503
aae29963 7504
2abefe3d
PB
7505# Target module lists & subconfigure args.
7506
7507
7508
7509# Build tools.
7510
7511
7512
0999159b
PB
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
632e2a07 7527
2abefe3d
PB
7528# Generate default definitions for YACC, M4, LEX and other programs that run
7529# on the build machine. These are used if the Makefile can't locate these
7530# programs in objdir.
7531MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7532
7533for ac_prog in 'bison -y' byacc yacc
7534do
1c710c3c 7535 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7536set dummy $ac_prog; ac_word=$2
5213506e
RW
7537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538$as_echo_n "checking for $ac_word... " >&6; }
7539if test "${ac_cv_prog_YACC+set}" = set; then :
7540 $as_echo_n "(cached) " >&6
2abefe3d
PB
7541else
7542 if test -n "$YACC"; then
7543 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7544else
1c710c3c
DJ
7545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546for as_dir in $PATH
7547do
7548 IFS=$as_save_IFS
7549 test -z "$as_dir" && as_dir=.
5213506e
RW
7550 for ac_exec_ext in '' $ac_executable_extensions; do
7551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7552 ac_cv_prog_YACC="$ac_prog"
5213506e 7553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7554 break 2
7555 fi
7556done
5213506e
RW
7557 done
7558IFS=$as_save_IFS
1c710c3c 7559
2abefe3d
PB
7560fi
7561fi
1c710c3c 7562YACC=$ac_cv_prog_YACC
2abefe3d 7563if test -n "$YACC"; then
5213506e
RW
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7565$as_echo "$YACC" >&6; }
2abefe3d 7566else
5213506e
RW
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568$as_echo "no" >&6; }
2abefe3d
PB
7569fi
7570
5213506e 7571
1c710c3c 7572 test -n "$YACC" && break
2abefe3d
PB
7573done
7574test -n "$YACC" || YACC="$MISSING bison -y"
7575
7576case " $build_configdirs " in
7577 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7578 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7579esac
7580
7581for ac_prog in bison
7582do
1c710c3c 7583 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7584set dummy $ac_prog; ac_word=$2
5213506e
RW
7585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586$as_echo_n "checking for $ac_word... " >&6; }
7587if test "${ac_cv_prog_BISON+set}" = set; then :
7588 $as_echo_n "(cached) " >&6
2abefe3d
PB
7589else
7590 if test -n "$BISON"; then
7591 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7592else
1c710c3c
DJ
7593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7594for as_dir in $PATH
7595do
7596 IFS=$as_save_IFS
7597 test -z "$as_dir" && as_dir=.
5213506e
RW
7598 for ac_exec_ext in '' $ac_executable_extensions; do
7599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7600 ac_cv_prog_BISON="$ac_prog"
5213506e 7601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7602 break 2
7603 fi
7604done
5213506e
RW
7605 done
7606IFS=$as_save_IFS
1c710c3c 7607
2abefe3d
PB
7608fi
7609fi
1c710c3c 7610BISON=$ac_cv_prog_BISON
2abefe3d 7611if test -n "$BISON"; then
5213506e
RW
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7613$as_echo "$BISON" >&6; }
2abefe3d 7614else
5213506e
RW
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616$as_echo "no" >&6; }
2abefe3d
PB
7617fi
7618
5213506e 7619
1c710c3c 7620 test -n "$BISON" && break
2abefe3d
PB
7621done
7622test -n "$BISON" || BISON="$MISSING bison"
7623
7624case " $build_configdirs " in
7625 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7626esac
7627
7628for ac_prog in gm4 gnum4 m4
7629do
1c710c3c 7630 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7631set dummy $ac_prog; ac_word=$2
5213506e
RW
7632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633$as_echo_n "checking for $ac_word... " >&6; }
7634if test "${ac_cv_prog_M4+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
2abefe3d
PB
7636else
7637 if test -n "$M4"; then
7638 ac_cv_prog_M4="$M4" # Let the user override the test.
7639else
1c710c3c
DJ
7640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641for as_dir in $PATH
7642do
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
5213506e
RW
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7647 ac_cv_prog_M4="$ac_prog"
5213506e 7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7649 break 2
7650 fi
7651done
5213506e
RW
7652 done
7653IFS=$as_save_IFS
1c710c3c 7654
2abefe3d
PB
7655fi
7656fi
1c710c3c 7657M4=$ac_cv_prog_M4
2abefe3d 7658if test -n "$M4"; then
5213506e
RW
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7660$as_echo "$M4" >&6; }
2abefe3d 7661else
5213506e
RW
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663$as_echo "no" >&6; }
2abefe3d
PB
7664fi
7665
5213506e 7666
1c710c3c 7667 test -n "$M4" && break
2abefe3d
PB
7668done
7669test -n "$M4" || M4="$MISSING m4"
7670
7671case " $build_configdirs " in
7672 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7673esac
7674
7675for ac_prog in flex lex
7676do
1c710c3c 7677 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7678set dummy $ac_prog; ac_word=$2
5213506e
RW
7679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7680$as_echo_n "checking for $ac_word... " >&6; }
7681if test "${ac_cv_prog_LEX+set}" = set; then :
7682 $as_echo_n "(cached) " >&6
2abefe3d
PB
7683else
7684 if test -n "$LEX"; then
7685 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7686else
1c710c3c
DJ
7687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7688for as_dir in $PATH
7689do
7690 IFS=$as_save_IFS
7691 test -z "$as_dir" && as_dir=.
5213506e
RW
7692 for ac_exec_ext in '' $ac_executable_extensions; do
7693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7694 ac_cv_prog_LEX="$ac_prog"
5213506e 7695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7696 break 2
7697 fi
7698done
5213506e
RW
7699 done
7700IFS=$as_save_IFS
1c710c3c 7701
2abefe3d
PB
7702fi
7703fi
1c710c3c 7704LEX=$ac_cv_prog_LEX
2abefe3d 7705if test -n "$LEX"; then
5213506e
RW
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7707$as_echo "$LEX" >&6; }
2abefe3d 7708else
5213506e
RW
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7710$as_echo "no" >&6; }
2abefe3d
PB
7711fi
7712
5213506e 7713
1c710c3c 7714 test -n "$LEX" && break
2abefe3d
PB
7715done
7716test -n "$LEX" || LEX="$MISSING flex"
7717
7718case " $build_configdirs " in
7719 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7720 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7721esac
7722
7723for ac_prog in flex
7724do
1c710c3c 7725 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7726set dummy $ac_prog; ac_word=$2
5213506e
RW
7727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728$as_echo_n "checking for $ac_word... " >&6; }
7729if test "${ac_cv_prog_FLEX+set}" = set; then :
7730 $as_echo_n "(cached) " >&6
2abefe3d
PB
7731else
7732 if test -n "$FLEX"; then
7733 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7734else
1c710c3c
DJ
7735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7736for as_dir in $PATH
7737do
7738 IFS=$as_save_IFS
7739 test -z "$as_dir" && as_dir=.
5213506e
RW
7740 for ac_exec_ext in '' $ac_executable_extensions; do
7741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7742 ac_cv_prog_FLEX="$ac_prog"
5213506e 7743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7744 break 2
7745 fi
7746done
5213506e
RW
7747 done
7748IFS=$as_save_IFS
1c710c3c 7749
2abefe3d
PB
7750fi
7751fi
1c710c3c 7752FLEX=$ac_cv_prog_FLEX
2abefe3d 7753if test -n "$FLEX"; then
5213506e
RW
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7755$as_echo "$FLEX" >&6; }
2abefe3d 7756else
5213506e
RW
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758$as_echo "no" >&6; }
2abefe3d
PB
7759fi
7760
5213506e 7761
1c710c3c 7762 test -n "$FLEX" && break
2abefe3d
PB
7763done
7764test -n "$FLEX" || FLEX="$MISSING flex"
7765
7766case " $build_configdirs " in
7767 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7768esac
7769
7770for ac_prog in makeinfo
7771do
1c710c3c 7772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7773set dummy $ac_prog; ac_word=$2
5213506e
RW
7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7775$as_echo_n "checking for $ac_word... " >&6; }
7776if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7777 $as_echo_n "(cached) " >&6
2abefe3d
PB
7778else
7779 if test -n "$MAKEINFO"; then
7780 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7781else
1c710c3c
DJ
7782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785 IFS=$as_save_IFS
7786 test -z "$as_dir" && as_dir=.
5213506e
RW
7787 for ac_exec_ext in '' $ac_executable_extensions; do
7788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7789 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7791 break 2
7792 fi
7793done
5213506e
RW
7794 done
7795IFS=$as_save_IFS
1c710c3c 7796
2abefe3d
PB
7797fi
7798fi
1c710c3c 7799MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7800if test -n "$MAKEINFO"; then
5213506e
RW
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7802$as_echo "$MAKEINFO" >&6; }
2abefe3d 7803else
5213506e
RW
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805$as_echo "no" >&6; }
2abefe3d
PB
7806fi
7807
5213506e 7808
1c710c3c 7809 test -n "$MAKEINFO" && break
2abefe3d
PB
7810done
7811test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7812
7813case " $build_configdirs " in
7814 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7815 *)
7816
d18ff35a 7817 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7818 # higher, else we use the "missing" dummy.
7819 if ${MAKEINFO} --version \
d18ff35a 7820 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7821 :
7822 else
7823 MAKEINFO="$MISSING makeinfo"
7824 fi
7825 ;;
7826
7827esac
671aa708 7828
2abefe3d 7829# FIXME: expect and dejagnu may become build tools?
671aa708 7830
2abefe3d
PB
7831for ac_prog in expect
7832do
1c710c3c 7833 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7834set dummy $ac_prog; ac_word=$2
5213506e
RW
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836$as_echo_n "checking for $ac_word... " >&6; }
7837if test "${ac_cv_prog_EXPECT+set}" = set; then :
7838 $as_echo_n "(cached) " >&6
2abefe3d
PB
7839else
7840 if test -n "$EXPECT"; then
7841 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7842else
1c710c3c
DJ
7843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844for as_dir in $PATH
7845do
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
5213506e
RW
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7850 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7852 break 2
7853 fi
7854done
5213506e
RW
7855 done
7856IFS=$as_save_IFS
1c710c3c 7857
2abefe3d
PB
7858fi
7859fi
1c710c3c 7860EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7861if test -n "$EXPECT"; then
5213506e
RW
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7863$as_echo "$EXPECT" >&6; }
2abefe3d 7864else
5213506e
RW
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866$as_echo "no" >&6; }
2abefe3d 7867fi
671aa708 7868
5213506e 7869
1c710c3c 7870 test -n "$EXPECT" && break
2abefe3d
PB
7871done
7872test -n "$EXPECT" || EXPECT="expect"
671aa708 7873
2abefe3d
PB
7874case " $configdirs " in
7875 *" expect "*)
7876 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7877 ;;
7878esac
671aa708 7879
2abefe3d
PB
7880for ac_prog in runtest
7881do
1c710c3c 7882 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7883set dummy $ac_prog; ac_word=$2
5213506e
RW
7884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885$as_echo_n "checking for $ac_word... " >&6; }
7886if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
2abefe3d
PB
7888else
7889 if test -n "$RUNTEST"; then
7890 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7891else
1c710c3c
DJ
7892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7893for as_dir in $PATH
7894do
7895 IFS=$as_save_IFS
7896 test -z "$as_dir" && as_dir=.
5213506e
RW
7897 for ac_exec_ext in '' $ac_executable_extensions; do
7898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7899 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7901 break 2
7902 fi
7903done
5213506e
RW
7904 done
7905IFS=$as_save_IFS
1c710c3c 7906
2abefe3d
PB
7907fi
7908fi
1c710c3c 7909RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7910if test -n "$RUNTEST"; then
5213506e
RW
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7912$as_echo "$RUNTEST" >&6; }
2abefe3d 7913else
5213506e
RW
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7915$as_echo "no" >&6; }
2abefe3d 7916fi
671aa708 7917
5213506e 7918
1c710c3c 7919 test -n "$RUNTEST" && break
2abefe3d
PB
7920done
7921test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7922
2abefe3d
PB
7923case " $configdirs " in
7924 *" dejagnu "*)
c394e891 7925 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7926 ;;
7927esac
671aa708
NN
7928
7929
671aa708 7930# Host tools.
ca9f4b81
AO
7931ncn_tool_prefix=
7932test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7933ncn_target_tool_prefix=
7934test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7935
278a7a38
AO
7936
7937
7938if test -n "$AR"; then
7939 ac_cv_prog_AR=$AR
7940elif test -n "$ac_cv_prog_AR"; then
7941 AR=$ac_cv_prog_AR
7942fi
7943
7944if test -n "$ac_cv_prog_AR"; then
7945 for ncn_progname in ar; do
7946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7947set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7949$as_echo_n "checking for $ac_word... " >&6; }
7950if test "${ac_cv_prog_AR+set}" = set; then :
7951 $as_echo_n "(cached) " >&6
278a7a38
AO
7952else
7953 if test -n "$AR"; then
7954 ac_cv_prog_AR="$AR" # Let the user override the test.
7955else
7956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7957for as_dir in $PATH
7958do
7959 IFS=$as_save_IFS
7960 test -z "$as_dir" && as_dir=.
5213506e
RW
7961 for ac_exec_ext in '' $ac_executable_extensions; do
7962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7963 ac_cv_prog_AR="${ncn_progname}"
5213506e 7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7965 break 2
7966 fi
7967done
5213506e
RW
7968 done
7969IFS=$as_save_IFS
278a7a38
AO
7970
7971fi
7972fi
7973AR=$ac_cv_prog_AR
7974if test -n "$AR"; then
5213506e
RW
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7976$as_echo "$AR" >&6; }
278a7a38 7977else
5213506e
RW
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7979$as_echo "no" >&6; }
278a7a38
AO
7980fi
7981
5213506e 7982
278a7a38
AO
7983 done
7984fi
7985
7986for ncn_progname in ar; do
2693c0b0
PB
7987 if test -n "$ncn_tool_prefix"; then
7988 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7989set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991$as_echo_n "checking for $ac_word... " >&6; }
7992if test "${ac_cv_prog_AR+set}" = set; then :
7993 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7994else
7995 if test -n "$AR"; then
7996 ac_cv_prog_AR="$AR" # Let the user override the test.
7997else
1c710c3c
DJ
7998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7999for as_dir in $PATH
8000do
8001 IFS=$as_save_IFS
8002 test -z "$as_dir" && as_dir=.
5213506e
RW
8003 for ac_exec_ext in '' $ac_executable_extensions; do
8004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8005 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8007 break 2
8008 fi
8009done
5213506e
RW
8010 done
8011IFS=$as_save_IFS
1c710c3c 8012
ca9f4b81
AO
8013fi
8014fi
1c710c3c 8015AR=$ac_cv_prog_AR
ca9f4b81 8016if test -n "$AR"; then
5213506e
RW
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8018$as_echo "$AR" >&6; }
ca9f4b81 8019else
5213506e
RW
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8021$as_echo "no" >&6; }
ca9f4b81
AO
8022fi
8023
5213506e 8024
2693c0b0
PB
8025 fi
8026 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8027 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8028set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8030$as_echo_n "checking for $ac_word... " >&6; }
8031if test "${ac_cv_prog_AR+set}" = set; then :
8032 $as_echo_n "(cached) " >&6
ca9f4b81 8033else
2693c0b0 8034 if test -n "$AR"; then
af71363e
AS
8035 ac_cv_prog_AR="$AR" # Let the user override the test.
8036else
1c710c3c
DJ
8037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8038for as_dir in $PATH
8039do
8040 IFS=$as_save_IFS
8041 test -z "$as_dir" && as_dir=.
5213506e
RW
8042 for ac_exec_ext in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8044 ac_cv_prog_AR="${ncn_progname}"
5213506e 8045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8046 break 2
8047 fi
8048done
5213506e
RW
8049 done
8050IFS=$as_save_IFS
1c710c3c 8051
ca9f4b81
AO
8052fi
8053fi
1c710c3c 8054AR=$ac_cv_prog_AR
2693c0b0 8055if test -n "$AR"; then
5213506e
RW
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8057$as_echo "$AR" >&6; }
ca9f4b81 8058else
5213506e
RW
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060$as_echo "no" >&6; }
ca9f4b81 8061fi
1c710c3c 8062
5213506e 8063
2693c0b0
PB
8064 fi
8065 test -n "$ac_cv_prog_AR" && break
8066done
8067
8068if test -z "$ac_cv_prog_AR" ; then
8069 set dummy ar
8070 if test $build = $host ; then
8071 AR="$2"
ca9f4b81 8072 else
2693c0b0 8073 AR="${ncn_tool_prefix}$2"
ca9f4b81 8074 fi
ca9f4b81
AO
8075fi
8076
278a7a38
AO
8077
8078
8079if test -n "$AS"; then
8080 ac_cv_prog_AS=$AS
8081elif test -n "$ac_cv_prog_AS"; then
8082 AS=$ac_cv_prog_AS
8083fi
8084
8085if test -n "$ac_cv_prog_AS"; then
8086 for ncn_progname in as; do
8087 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8088set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8090$as_echo_n "checking for $ac_word... " >&6; }
8091if test "${ac_cv_prog_AS+set}" = set; then :
8092 $as_echo_n "(cached) " >&6
278a7a38
AO
8093else
8094 if test -n "$AS"; then
8095 ac_cv_prog_AS="$AS" # Let the user override the test.
8096else
8097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8098for as_dir in $PATH
8099do
8100 IFS=$as_save_IFS
8101 test -z "$as_dir" && as_dir=.
5213506e
RW
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8104 ac_cv_prog_AS="${ncn_progname}"
5213506e 8105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8106 break 2
8107 fi
8108done
5213506e
RW
8109 done
8110IFS=$as_save_IFS
278a7a38
AO
8111
8112fi
8113fi
8114AS=$ac_cv_prog_AS
8115if test -n "$AS"; then
5213506e
RW
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8117$as_echo "$AS" >&6; }
278a7a38 8118else
5213506e
RW
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8120$as_echo "no" >&6; }
278a7a38
AO
8121fi
8122
5213506e 8123
278a7a38
AO
8124 done
8125fi
8126
8127for ncn_progname in as; do
2693c0b0
PB
8128 if test -n "$ncn_tool_prefix"; then
8129 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8130set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132$as_echo_n "checking for $ac_word... " >&6; }
8133if test "${ac_cv_prog_AS+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8135else
8136 if test -n "$AS"; then
8137 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8138else
1c710c3c
DJ
8139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140for as_dir in $PATH
8141do
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
5213506e
RW
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8146 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8148 break 2
8149 fi
8150done
5213506e
RW
8151 done
8152IFS=$as_save_IFS
1c710c3c 8153
ca9f4b81
AO
8154fi
8155fi
1c710c3c 8156AS=$ac_cv_prog_AS
ca9f4b81 8157if test -n "$AS"; then
5213506e
RW
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8159$as_echo "$AS" >&6; }
ca9f4b81 8160else
5213506e
RW
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162$as_echo "no" >&6; }
ca9f4b81
AO
8163fi
8164
5213506e 8165
2693c0b0
PB
8166 fi
8167 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8168 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8169set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171$as_echo_n "checking for $ac_word... " >&6; }
8172if test "${ac_cv_prog_AS+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
ca9f4b81 8174else
2693c0b0
PB
8175 if test -n "$AS"; then
8176 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8177else
1c710c3c
DJ
8178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179for as_dir in $PATH
8180do
8181 IFS=$as_save_IFS
8182 test -z "$as_dir" && as_dir=.
5213506e
RW
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8185 ac_cv_prog_AS="${ncn_progname}"
5213506e 8186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8187 break 2
8188 fi
8189done
5213506e
RW
8190 done
8191IFS=$as_save_IFS
1c710c3c 8192
ca9f4b81
AO
8193fi
8194fi
1c710c3c 8195AS=$ac_cv_prog_AS
2693c0b0 8196if test -n "$AS"; then
5213506e
RW
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8198$as_echo "$AS" >&6; }
ca9f4b81 8199else
5213506e
RW
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201$as_echo "no" >&6; }
ca9f4b81 8202fi
1c710c3c 8203
5213506e 8204
2693c0b0
PB
8205 fi
8206 test -n "$ac_cv_prog_AS" && break
8207done
8208
8209if test -z "$ac_cv_prog_AS" ; then
8210 set dummy as
8211 if test $build = $host ; then
8212 AS="$2"
ca9f4b81 8213 else
2693c0b0 8214 AS="${ncn_tool_prefix}$2"
ca9f4b81 8215 fi
ca9f4b81
AO
8216fi
8217
278a7a38
AO
8218
8219
8220if test -n "$DLLTOOL"; then
8221 ac_cv_prog_DLLTOOL=$DLLTOOL
8222elif test -n "$ac_cv_prog_DLLTOOL"; then
8223 DLLTOOL=$ac_cv_prog_DLLTOOL
8224fi
8225
8226if test -n "$ac_cv_prog_DLLTOOL"; then
8227 for ncn_progname in dlltool; do
8228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8229set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231$as_echo_n "checking for $ac_word... " >&6; }
8232if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
278a7a38
AO
8234else
8235 if test -n "$DLLTOOL"; then
8236 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8237else
8238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239for as_dir in $PATH
8240do
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
5213506e
RW
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8245 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8247 break 2
8248 fi
8249done
5213506e
RW
8250 done
8251IFS=$as_save_IFS
278a7a38
AO
8252
8253fi
8254fi
8255DLLTOOL=$ac_cv_prog_DLLTOOL
8256if test -n "$DLLTOOL"; then
5213506e
RW
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8258$as_echo "$DLLTOOL" >&6; }
278a7a38 8259else
5213506e
RW
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261$as_echo "no" >&6; }
278a7a38
AO
8262fi
8263
5213506e 8264
278a7a38
AO
8265 done
8266fi
8267
8268for ncn_progname in dlltool; do
2693c0b0
PB
8269 if test -n "$ncn_tool_prefix"; then
8270 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8271set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273$as_echo_n "checking for $ac_word... " >&6; }
8274if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8276else
8277 if test -n "$DLLTOOL"; then
8278 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8279else
1c710c3c
DJ
8280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281for as_dir in $PATH
8282do
8283 IFS=$as_save_IFS
8284 test -z "$as_dir" && as_dir=.
5213506e
RW
8285 for ac_exec_ext in '' $ac_executable_extensions; do
8286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8287 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8289 break 2
8290 fi
8291done
5213506e
RW
8292 done
8293IFS=$as_save_IFS
1c710c3c 8294
ca9f4b81
AO
8295fi
8296fi
1c710c3c 8297DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8298if test -n "$DLLTOOL"; then
5213506e
RW
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8300$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8301else
5213506e
RW
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303$as_echo "no" >&6; }
ca9f4b81
AO
8304fi
8305
5213506e 8306
2693c0b0
PB
8307 fi
8308 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8309 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8310set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312$as_echo_n "checking for $ac_word... " >&6; }
8313if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
ca9f4b81 8315else
2693c0b0
PB
8316 if test -n "$DLLTOOL"; then
8317 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8318else
1c710c3c
DJ
8319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8320for as_dir in $PATH
8321do
8322 IFS=$as_save_IFS
8323 test -z "$as_dir" && as_dir=.
5213506e
RW
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8326 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8328 break 2
8329 fi
8330done
5213506e
RW
8331 done
8332IFS=$as_save_IFS
1c710c3c 8333
ca9f4b81
AO
8334fi
8335fi
1c710c3c 8336DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8337if test -n "$DLLTOOL"; then
5213506e
RW
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8339$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8340else
5213506e
RW
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342$as_echo "no" >&6; }
ca9f4b81 8343fi
1c710c3c 8344
5213506e 8345
2693c0b0
PB
8346 fi
8347 test -n "$ac_cv_prog_DLLTOOL" && break
8348done
8349
8350if test -z "$ac_cv_prog_DLLTOOL" ; then
8351 set dummy dlltool
8352 if test $build = $host ; then
8353 DLLTOOL="$2"
ca9f4b81 8354 else
2693c0b0 8355 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8356 fi
ca9f4b81
AO
8357fi
8358
278a7a38
AO
8359
8360
8361if test -n "$LD"; then
8362 ac_cv_prog_LD=$LD
8363elif test -n "$ac_cv_prog_LD"; then
8364 LD=$ac_cv_prog_LD
8365fi
8366
8367if test -n "$ac_cv_prog_LD"; then
8368 for ncn_progname in ld; do
8369 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8370set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372$as_echo_n "checking for $ac_word... " >&6; }
8373if test "${ac_cv_prog_LD+set}" = set; then :
8374 $as_echo_n "(cached) " >&6
278a7a38
AO
8375else
8376 if test -n "$LD"; then
8377 ac_cv_prog_LD="$LD" # Let the user override the test.
8378else
8379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8380for as_dir in $PATH
8381do
8382 IFS=$as_save_IFS
8383 test -z "$as_dir" && as_dir=.
5213506e
RW
8384 for ac_exec_ext in '' $ac_executable_extensions; do
8385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8386 ac_cv_prog_LD="${ncn_progname}"
5213506e 8387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8388 break 2
8389 fi
8390done
5213506e
RW
8391 done
8392IFS=$as_save_IFS
278a7a38
AO
8393
8394fi
8395fi
8396LD=$ac_cv_prog_LD
8397if test -n "$LD"; then
5213506e
RW
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8399$as_echo "$LD" >&6; }
278a7a38 8400else
5213506e
RW
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8402$as_echo "no" >&6; }
278a7a38
AO
8403fi
8404
5213506e 8405
278a7a38
AO
8406 done
8407fi
8408
8409for ncn_progname in ld; do
2693c0b0
PB
8410 if test -n "$ncn_tool_prefix"; then
8411 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8412set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414$as_echo_n "checking for $ac_word... " >&6; }
8415if test "${ac_cv_prog_LD+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8417else
8418 if test -n "$LD"; then
8419 ac_cv_prog_LD="$LD" # Let the user override the test.
8420else
1c710c3c
DJ
8421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422for as_dir in $PATH
8423do
8424 IFS=$as_save_IFS
8425 test -z "$as_dir" && as_dir=.
5213506e
RW
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8428 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8430 break 2
8431 fi
8432done
5213506e
RW
8433 done
8434IFS=$as_save_IFS
1c710c3c 8435
ca9f4b81
AO
8436fi
8437fi
1c710c3c 8438LD=$ac_cv_prog_LD
ca9f4b81 8439if test -n "$LD"; then
5213506e
RW
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8441$as_echo "$LD" >&6; }
ca9f4b81 8442else
5213506e
RW
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444$as_echo "no" >&6; }
ca9f4b81
AO
8445fi
8446
5213506e 8447
2693c0b0
PB
8448 fi
8449 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8451set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453$as_echo_n "checking for $ac_word... " >&6; }
8454if test "${ac_cv_prog_LD+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
ca9f4b81 8456else
2693c0b0
PB
8457 if test -n "$LD"; then
8458 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8459else
1c710c3c
DJ
8460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461for as_dir in $PATH
8462do
8463 IFS=$as_save_IFS
8464 test -z "$as_dir" && as_dir=.
5213506e
RW
8465 for ac_exec_ext in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8467 ac_cv_prog_LD="${ncn_progname}"
5213506e 8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8469 break 2
8470 fi
8471done
5213506e
RW
8472 done
8473IFS=$as_save_IFS
1c710c3c 8474
ca9f4b81
AO
8475fi
8476fi
1c710c3c 8477LD=$ac_cv_prog_LD
2693c0b0 8478if test -n "$LD"; then
5213506e
RW
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8480$as_echo "$LD" >&6; }
ca9f4b81 8481else
5213506e
RW
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483$as_echo "no" >&6; }
ca9f4b81 8484fi
1c710c3c 8485
5213506e 8486
2693c0b0
PB
8487 fi
8488 test -n "$ac_cv_prog_LD" && break
8489done
8490
8491if test -z "$ac_cv_prog_LD" ; then
8492 set dummy ld
8493 if test $build = $host ; then
8494 LD="$2"
ca9f4b81 8495 else
2693c0b0 8496 LD="${ncn_tool_prefix}$2"
ca9f4b81 8497 fi
ca9f4b81
AO
8498fi
8499
278a7a38
AO
8500
8501
8502if test -n "$LIPO"; then
8503 ac_cv_prog_LIPO=$LIPO
8504elif test -n "$ac_cv_prog_LIPO"; then
8505 LIPO=$ac_cv_prog_LIPO
8506fi
8507
8508if test -n "$ac_cv_prog_LIPO"; then
8509 for ncn_progname in lipo; do
8510 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8511set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513$as_echo_n "checking for $ac_word... " >&6; }
8514if test "${ac_cv_prog_LIPO+set}" = set; then :
8515 $as_echo_n "(cached) " >&6
278a7a38
AO
8516else
8517 if test -n "$LIPO"; then
8518 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8519else
8520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8521for as_dir in $PATH
8522do
8523 IFS=$as_save_IFS
8524 test -z "$as_dir" && as_dir=.
5213506e
RW
8525 for ac_exec_ext in '' $ac_executable_extensions; do
8526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8527 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8529 break 2
8530 fi
8531done
5213506e
RW
8532 done
8533IFS=$as_save_IFS
278a7a38
AO
8534
8535fi
8536fi
8537LIPO=$ac_cv_prog_LIPO
8538if test -n "$LIPO"; then
5213506e
RW
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8540$as_echo "$LIPO" >&6; }
278a7a38 8541else
5213506e
RW
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543$as_echo "no" >&6; }
278a7a38
AO
8544fi
8545
5213506e 8546
278a7a38
AO
8547 done
8548fi
8549
8550for ncn_progname in lipo; do
2abefe3d
PB
8551 if test -n "$ncn_tool_prefix"; then
8552 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8553set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555$as_echo_n "checking for $ac_word... " >&6; }
8556if test "${ac_cv_prog_LIPO+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
2abefe3d
PB
8558else
8559 if test -n "$LIPO"; then
8560 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8561else
1c710c3c
DJ
8562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563for as_dir in $PATH
8564do
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
5213506e
RW
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8569 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8571 break 2
8572 fi
8573done
5213506e
RW
8574 done
8575IFS=$as_save_IFS
1c710c3c 8576
2abefe3d
PB
8577fi
8578fi
1c710c3c 8579LIPO=$ac_cv_prog_LIPO
2abefe3d 8580if test -n "$LIPO"; then
5213506e
RW
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8582$as_echo "$LIPO" >&6; }
2abefe3d 8583else
5213506e
RW
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585$as_echo "no" >&6; }
2abefe3d
PB
8586fi
8587
5213506e 8588
2abefe3d
PB
8589 fi
8590 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8591 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8592set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8594$as_echo_n "checking for $ac_word... " >&6; }
8595if test "${ac_cv_prog_LIPO+set}" = set; then :
8596 $as_echo_n "(cached) " >&6
2abefe3d
PB
8597else
8598 if test -n "$LIPO"; then
8599 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8600else
1c710c3c
DJ
8601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8602for as_dir in $PATH
8603do
8604 IFS=$as_save_IFS
8605 test -z "$as_dir" && as_dir=.
5213506e
RW
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8608 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8610 break 2
8611 fi
8612done
5213506e
RW
8613 done
8614IFS=$as_save_IFS
1c710c3c 8615
2abefe3d
PB
8616fi
8617fi
1c710c3c 8618LIPO=$ac_cv_prog_LIPO
2abefe3d 8619if test -n "$LIPO"; then
5213506e
RW
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8621$as_echo "$LIPO" >&6; }
2abefe3d 8622else
5213506e
RW
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8624$as_echo "no" >&6; }
2abefe3d 8625fi
1c710c3c 8626
5213506e 8627
2abefe3d
PB
8628 fi
8629 test -n "$ac_cv_prog_LIPO" && break
8630done
8631
8632if test -z "$ac_cv_prog_LIPO" ; then
8633 set dummy lipo
8634 if test $build = $host ; then
8635 LIPO="$2"
8636 else
8637 LIPO="${ncn_tool_prefix}$2"
8638 fi
8639fi
8640
278a7a38
AO
8641
8642
8643if test -n "$NM"; then
8644 ac_cv_prog_NM=$NM
8645elif test -n "$ac_cv_prog_NM"; then
8646 NM=$ac_cv_prog_NM
8647fi
8648
8649if test -n "$ac_cv_prog_NM"; then
8650 for ncn_progname in nm; do
8651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8652set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8654$as_echo_n "checking for $ac_word... " >&6; }
8655if test "${ac_cv_prog_NM+set}" = set; then :
8656 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8657else
8658 if test -n "$NM"; then
8659 ac_cv_prog_NM="$NM" # Let the user override the test.
8660else
1c710c3c
DJ
8661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662for as_dir in $PATH
8663do
8664 IFS=$as_save_IFS
8665 test -z "$as_dir" && as_dir=.
5213506e
RW
8666 for ac_exec_ext in '' $ac_executable_extensions; do
8667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8668 ac_cv_prog_NM="${ncn_progname}"
5213506e 8669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8670 break 2
8671 fi
8672done
5213506e
RW
8673 done
8674IFS=$as_save_IFS
1c710c3c 8675
ca9f4b81
AO
8676fi
8677fi
1c710c3c 8678NM=$ac_cv_prog_NM
ca9f4b81 8679if test -n "$NM"; then
5213506e
RW
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8681$as_echo "$NM" >&6; }
ca9f4b81 8682else
5213506e
RW
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684$as_echo "no" >&6; }
ca9f4b81
AO
8685fi
8686
5213506e 8687
278a7a38
AO
8688 done
8689fi
8690
8691for ncn_progname in nm; do
8692 if test -n "$ncn_tool_prefix"; then
8693 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8694set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8696$as_echo_n "checking for $ac_word... " >&6; }
8697if test "${ac_cv_prog_NM+set}" = set; then :
8698 $as_echo_n "(cached) " >&6
ca9f4b81 8699else
2693c0b0
PB
8700 if test -n "$NM"; then
8701 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8702else
1c710c3c
DJ
8703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704for as_dir in $PATH
8705do
8706 IFS=$as_save_IFS
8707 test -z "$as_dir" && as_dir=.
5213506e
RW
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8710 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8712 break 2
8713 fi
8714done
5213506e
RW
8715 done
8716IFS=$as_save_IFS
1c710c3c 8717
ca9f4b81
AO
8718fi
8719fi
1c710c3c 8720NM=$ac_cv_prog_NM
2693c0b0 8721if test -n "$NM"; then
5213506e
RW
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8723$as_echo "$NM" >&6; }
ca9f4b81 8724else
5213506e
RW
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726$as_echo "no" >&6; }
ca9f4b81 8727fi
1c710c3c 8728
5213506e 8729
2693c0b0 8730 fi
278a7a38
AO
8731 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8733set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8735$as_echo_n "checking for $ac_word... " >&6; }
8736if test "${ac_cv_prog_NM+set}" = set; then :
8737 $as_echo_n "(cached) " >&6
278a7a38
AO
8738else
8739 if test -n "$NM"; then
8740 ac_cv_prog_NM="$NM" # Let the user override the test.
8741else
8742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8743for as_dir in $PATH
8744do
8745 IFS=$as_save_IFS
8746 test -z "$as_dir" && as_dir=.
5213506e
RW
8747 for ac_exec_ext in '' $ac_executable_extensions; do
8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8749 ac_cv_prog_NM="${ncn_progname}"
5213506e 8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8751 break 2
8752 fi
8753done
5213506e
RW
8754 done
8755IFS=$as_save_IFS
278a7a38
AO
8756
8757fi
8758fi
8759NM=$ac_cv_prog_NM
8760if test -n "$NM"; then
5213506e
RW
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8762$as_echo "$NM" >&6; }
278a7a38 8763else
5213506e
RW
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8765$as_echo "no" >&6; }
278a7a38
AO
8766fi
8767
5213506e 8768
278a7a38
AO
8769 fi
8770 test -n "$ac_cv_prog_NM" && break
8771done
8772
8773if test -z "$ac_cv_prog_NM" ; then
8774 set dummy nm
8775 if test $build = $host ; then
8776 NM="$2"
8777 else
8778 NM="${ncn_tool_prefix}$2"
8779 fi
8780fi
8781
8782
8783
8784if test -n "$RANLIB"; then
8785 ac_cv_prog_RANLIB=$RANLIB
8786elif test -n "$ac_cv_prog_RANLIB"; then
8787 RANLIB=$ac_cv_prog_RANLIB
8788fi
8789
8790if test -n "$ac_cv_prog_RANLIB"; then
8791 for ncn_progname in ranlib; do
8792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8793set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8795$as_echo_n "checking for $ac_word... " >&6; }
8796if test "${ac_cv_prog_RANLIB+set}" = set; then :
8797 $as_echo_n "(cached) " >&6
278a7a38
AO
8798else
8799 if test -n "$RANLIB"; then
8800 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8801else
8802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8803for as_dir in $PATH
8804do
8805 IFS=$as_save_IFS
8806 test -z "$as_dir" && as_dir=.
5213506e
RW
8807 for ac_exec_ext in '' $ac_executable_extensions; do
8808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8809 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8811 break 2
8812 fi
8813done
5213506e
RW
8814 done
8815IFS=$as_save_IFS
278a7a38
AO
8816
8817fi
8818fi
8819RANLIB=$ac_cv_prog_RANLIB
8820if test -n "$RANLIB"; then
5213506e
RW
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8822$as_echo "$RANLIB" >&6; }
278a7a38 8823else
5213506e
RW
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8825$as_echo "no" >&6; }
278a7a38
AO
8826fi
8827
5213506e 8828
278a7a38
AO
8829 done
8830fi
ca9f4b81 8831
278a7a38 8832for ncn_progname in ranlib; do
2693c0b0
PB
8833 if test -n "$ncn_tool_prefix"; then
8834 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8835set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837$as_echo_n "checking for $ac_word... " >&6; }
8838if test "${ac_cv_prog_RANLIB+set}" = set; then :
8839 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8840else
8841 if test -n "$RANLIB"; then
8842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8843else
1c710c3c
DJ
8844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845for as_dir in $PATH
8846do
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
5213506e
RW
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8851 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8853 break 2
8854 fi
8855done
5213506e
RW
8856 done
8857IFS=$as_save_IFS
1c710c3c 8858
ca9f4b81
AO
8859fi
8860fi
1c710c3c 8861RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8862if test -n "$RANLIB"; then
5213506e
RW
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8864$as_echo "$RANLIB" >&6; }
ca9f4b81 8865else
5213506e
RW
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867$as_echo "no" >&6; }
ca9f4b81
AO
8868fi
8869
5213506e 8870
2693c0b0
PB
8871 fi
8872 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8874set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876$as_echo_n "checking for $ac_word... " >&6; }
8877if test "${ac_cv_prog_RANLIB+set}" = set; then :
8878 $as_echo_n "(cached) " >&6
ca9f4b81 8879else
2693c0b0
PB
8880 if test -n "$RANLIB"; then
8881 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8882else
1c710c3c
DJ
8883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8884for as_dir in $PATH
8885do
8886 IFS=$as_save_IFS
8887 test -z "$as_dir" && as_dir=.
5213506e
RW
8888 for ac_exec_ext in '' $ac_executable_extensions; do
8889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8890 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8892 break 2
8893 fi
8894done
5213506e
RW
8895 done
8896IFS=$as_save_IFS
1c710c3c 8897
ca9f4b81
AO
8898fi
8899fi
1c710c3c 8900RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8901if test -n "$RANLIB"; then
5213506e
RW
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8903$as_echo "$RANLIB" >&6; }
ca9f4b81 8904else
5213506e
RW
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906$as_echo "no" >&6; }
ca9f4b81 8907fi
1c710c3c 8908
5213506e 8909
ca9f4b81 8910 fi
2693c0b0
PB
8911 test -n "$ac_cv_prog_RANLIB" && break
8912done
8913
8914if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8915 RANLIB="true"
ca9f4b81
AO
8916fi
8917
278a7a38
AO
8918
8919
8920if test -n "$STRIP"; then
8921 ac_cv_prog_STRIP=$STRIP
8922elif test -n "$ac_cv_prog_STRIP"; then
8923 STRIP=$ac_cv_prog_STRIP
8924fi
8925
8926if test -n "$ac_cv_prog_STRIP"; then
8927 for ncn_progname in strip; do
8928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8929set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931$as_echo_n "checking for $ac_word... " >&6; }
8932if test "${ac_cv_prog_STRIP+set}" = set; then :
8933 $as_echo_n "(cached) " >&6
278a7a38
AO
8934else
8935 if test -n "$STRIP"; then
8936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8937else
8938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939for as_dir in $PATH
8940do
8941 IFS=$as_save_IFS
8942 test -z "$as_dir" && as_dir=.
5213506e
RW
8943 for ac_exec_ext in '' $ac_executable_extensions; do
8944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8945 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8947 break 2
8948 fi
8949done
5213506e
RW
8950 done
8951IFS=$as_save_IFS
278a7a38
AO
8952
8953fi
8954fi
8955STRIP=$ac_cv_prog_STRIP
8956if test -n "$STRIP"; then
5213506e
RW
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8958$as_echo "$STRIP" >&6; }
278a7a38 8959else
5213506e
RW
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961$as_echo "no" >&6; }
278a7a38
AO
8962fi
8963
5213506e 8964
278a7a38
AO
8965 done
8966fi
8967
8968for ncn_progname in strip; do
2abefe3d
PB
8969 if test -n "$ncn_tool_prefix"; then
8970 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8971set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973$as_echo_n "checking for $ac_word... " >&6; }
8974if test "${ac_cv_prog_STRIP+set}" = set; then :
8975 $as_echo_n "(cached) " >&6
2abefe3d
PB
8976else
8977 if test -n "$STRIP"; then
8978 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8979else
1c710c3c
DJ
8980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981for as_dir in $PATH
8982do
8983 IFS=$as_save_IFS
8984 test -z "$as_dir" && as_dir=.
5213506e
RW
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8987 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 8988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8989 break 2
8990 fi
8991done
5213506e
RW
8992 done
8993IFS=$as_save_IFS
1c710c3c 8994
2abefe3d
PB
8995fi
8996fi
1c710c3c 8997STRIP=$ac_cv_prog_STRIP
2abefe3d 8998if test -n "$STRIP"; then
5213506e
RW
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9000$as_echo "$STRIP" >&6; }
2abefe3d 9001else
5213506e
RW
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003$as_echo "no" >&6; }
2abefe3d
PB
9004fi
9005
5213506e 9006
2abefe3d
PB
9007 fi
9008 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9010set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012$as_echo_n "checking for $ac_word... " >&6; }
9013if test "${ac_cv_prog_STRIP+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
2abefe3d
PB
9015else
9016 if test -n "$STRIP"; then
9017 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9018else
1c710c3c
DJ
9019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020for as_dir in $PATH
9021do
9022 IFS=$as_save_IFS
9023 test -z "$as_dir" && as_dir=.
5213506e
RW
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9026 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9028 break 2
9029 fi
9030done
5213506e
RW
9031 done
9032IFS=$as_save_IFS
1c710c3c 9033
2abefe3d
PB
9034fi
9035fi
1c710c3c 9036STRIP=$ac_cv_prog_STRIP
2abefe3d 9037if test -n "$STRIP"; then
5213506e
RW
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9039$as_echo "$STRIP" >&6; }
2abefe3d 9040else
5213506e
RW
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042$as_echo "no" >&6; }
2abefe3d 9043fi
1c710c3c 9044
5213506e 9045
2abefe3d
PB
9046 fi
9047 test -n "$ac_cv_prog_STRIP" && break
9048done
9049
9050if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9051 STRIP="true"
2abefe3d
PB
9052fi
9053
278a7a38
AO
9054
9055
9056if test -n "$WINDRES"; then
9057 ac_cv_prog_WINDRES=$WINDRES
9058elif test -n "$ac_cv_prog_WINDRES"; then
9059 WINDRES=$ac_cv_prog_WINDRES
9060fi
9061
9062if test -n "$ac_cv_prog_WINDRES"; then
9063 for ncn_progname in windres; do
9064 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9065set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9067$as_echo_n "checking for $ac_word... " >&6; }
9068if test "${ac_cv_prog_WINDRES+set}" = set; then :
9069 $as_echo_n "(cached) " >&6
278a7a38
AO
9070else
9071 if test -n "$WINDRES"; then
9072 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9073else
9074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075for as_dir in $PATH
9076do
9077 IFS=$as_save_IFS
9078 test -z "$as_dir" && as_dir=.
5213506e
RW
9079 for ac_exec_ext in '' $ac_executable_extensions; do
9080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9081 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9083 break 2
9084 fi
9085done
5213506e
RW
9086 done
9087IFS=$as_save_IFS
278a7a38
AO
9088
9089fi
9090fi
9091WINDRES=$ac_cv_prog_WINDRES
9092if test -n "$WINDRES"; then
5213506e
RW
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9094$as_echo "$WINDRES" >&6; }
278a7a38 9095else
5213506e
RW
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9097$as_echo "no" >&6; }
278a7a38
AO
9098fi
9099
5213506e 9100
278a7a38
AO
9101 done
9102fi
9103
9104for ncn_progname in windres; do
2693c0b0
PB
9105 if test -n "$ncn_tool_prefix"; then
9106 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9107set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9109$as_echo_n "checking for $ac_word... " >&6; }
9110if test "${ac_cv_prog_WINDRES+set}" = set; then :
9111 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9112else
9113 if test -n "$WINDRES"; then
9114 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9115else
1c710c3c
DJ
9116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117for as_dir in $PATH
9118do
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
5213506e
RW
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9123 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9125 break 2
9126 fi
9127done
5213506e
RW
9128 done
9129IFS=$as_save_IFS
1c710c3c 9130
ca9f4b81
AO
9131fi
9132fi
1c710c3c 9133WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9134if test -n "$WINDRES"; then
5213506e
RW
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9136$as_echo "$WINDRES" >&6; }
ca9f4b81 9137else
5213506e
RW
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139$as_echo "no" >&6; }
ca9f4b81
AO
9140fi
9141
5213506e 9142
2693c0b0
PB
9143 fi
9144 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9146set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9148$as_echo_n "checking for $ac_word... " >&6; }
9149if test "${ac_cv_prog_WINDRES+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
ca9f4b81 9151else
2693c0b0
PB
9152 if test -n "$WINDRES"; then
9153 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9154else
1c710c3c
DJ
9155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156for as_dir in $PATH
9157do
9158 IFS=$as_save_IFS
9159 test -z "$as_dir" && as_dir=.
5213506e
RW
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9162 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9164 break 2
9165 fi
9166done
5213506e
RW
9167 done
9168IFS=$as_save_IFS
1c710c3c 9169
ca9f4b81
AO
9170fi
9171fi
1c710c3c 9172WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9173if test -n "$WINDRES"; then
5213506e
RW
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9175$as_echo "$WINDRES" >&6; }
ca9f4b81 9176else
5213506e
RW
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9178$as_echo "no" >&6; }
ca9f4b81 9179fi
1c710c3c 9180
5213506e 9181
2693c0b0
PB
9182 fi
9183 test -n "$ac_cv_prog_WINDRES" && break
9184done
9185
9186if test -z "$ac_cv_prog_WINDRES" ; then
9187 set dummy windres
9188 if test $build = $host ; then
9189 WINDRES="$2"
ca9f4b81 9190 else
2693c0b0 9191 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9192 fi
ca9f4b81
AO
9193fi
9194
278a7a38
AO
9195
9196
901119ae
KT
9197if test -n "$WINDMC"; then
9198 ac_cv_prog_WINDMC=$WINDMC
9199elif test -n "$ac_cv_prog_WINDMC"; then
9200 WINDMC=$ac_cv_prog_WINDMC
9201fi
9202
9203if test -n "$ac_cv_prog_WINDMC"; then
9204 for ncn_progname in windmc; do
9205 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9206set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9208$as_echo_n "checking for $ac_word... " >&6; }
9209if test "${ac_cv_prog_WINDMC+set}" = set; then :
9210 $as_echo_n "(cached) " >&6
901119ae
KT
9211else
9212 if test -n "$WINDMC"; then
9213 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9214else
9215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9216for as_dir in $PATH
9217do
9218 IFS=$as_save_IFS
9219 test -z "$as_dir" && as_dir=.
5213506e
RW
9220 for ac_exec_ext in '' $ac_executable_extensions; do
9221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9222 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9224 break 2
9225 fi
9226done
5213506e
RW
9227 done
9228IFS=$as_save_IFS
901119ae
KT
9229
9230fi
9231fi
9232WINDMC=$ac_cv_prog_WINDMC
9233if test -n "$WINDMC"; then
5213506e
RW
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9235$as_echo "$WINDMC" >&6; }
901119ae 9236else
5213506e
RW
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9238$as_echo "no" >&6; }
901119ae
KT
9239fi
9240
5213506e 9241
901119ae
KT
9242 done
9243fi
9244
9245for ncn_progname in windmc; do
9246 if test -n "$ncn_tool_prefix"; then
9247 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9248set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9250$as_echo_n "checking for $ac_word... " >&6; }
9251if test "${ac_cv_prog_WINDMC+set}" = set; then :
9252 $as_echo_n "(cached) " >&6
901119ae
KT
9253else
9254 if test -n "$WINDMC"; then
9255 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9256else
9257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258for as_dir in $PATH
9259do
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
5213506e
RW
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9264 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9266 break 2
9267 fi
9268done
5213506e
RW
9269 done
9270IFS=$as_save_IFS
901119ae
KT
9271
9272fi
9273fi
9274WINDMC=$ac_cv_prog_WINDMC
9275if test -n "$WINDMC"; then
5213506e
RW
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9277$as_echo "$WINDMC" >&6; }
901119ae 9278else
5213506e
RW
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280$as_echo "no" >&6; }
901119ae
KT
9281fi
9282
5213506e 9283
901119ae
KT
9284 fi
9285 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9287set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9289$as_echo_n "checking for $ac_word... " >&6; }
9290if test "${ac_cv_prog_WINDMC+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
901119ae
KT
9292else
9293 if test -n "$WINDMC"; then
9294 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9295else
9296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9297for as_dir in $PATH
9298do
9299 IFS=$as_save_IFS
9300 test -z "$as_dir" && as_dir=.
5213506e
RW
9301 for ac_exec_ext in '' $ac_executable_extensions; do
9302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9303 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9305 break 2
9306 fi
9307done
5213506e
RW
9308 done
9309IFS=$as_save_IFS
901119ae
KT
9310
9311fi
9312fi
9313WINDMC=$ac_cv_prog_WINDMC
9314if test -n "$WINDMC"; then
5213506e
RW
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9316$as_echo "$WINDMC" >&6; }
901119ae 9317else
5213506e
RW
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9319$as_echo "no" >&6; }
901119ae
KT
9320fi
9321
5213506e 9322
901119ae
KT
9323 fi
9324 test -n "$ac_cv_prog_WINDMC" && break
9325done
9326
9327if test -z "$ac_cv_prog_WINDMC" ; then
9328 set dummy windmc
9329 if test $build = $host ; then
9330 WINDMC="$2"
9331 else
9332 WINDMC="${ncn_tool_prefix}$2"
9333 fi
9334fi
9335
9336
9337
278a7a38
AO
9338if test -n "$OBJCOPY"; then
9339 ac_cv_prog_OBJCOPY=$OBJCOPY
9340elif test -n "$ac_cv_prog_OBJCOPY"; then
9341 OBJCOPY=$ac_cv_prog_OBJCOPY
9342fi
9343
9344if test -n "$ac_cv_prog_OBJCOPY"; then
9345 for ncn_progname in objcopy; do
9346 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9347set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9349$as_echo_n "checking for $ac_word... " >&6; }
9350if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9351 $as_echo_n "(cached) " >&6
278a7a38
AO
9352else
9353 if test -n "$OBJCOPY"; then
9354 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9355else
9356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357for as_dir in $PATH
9358do
9359 IFS=$as_save_IFS
9360 test -z "$as_dir" && as_dir=.
5213506e
RW
9361 for ac_exec_ext in '' $ac_executable_extensions; do
9362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9363 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9365 break 2
9366 fi
9367done
5213506e
RW
9368 done
9369IFS=$as_save_IFS
278a7a38
AO
9370
9371fi
9372fi
9373OBJCOPY=$ac_cv_prog_OBJCOPY
9374if test -n "$OBJCOPY"; then
5213506e
RW
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9376$as_echo "$OBJCOPY" >&6; }
278a7a38 9377else
5213506e
RW
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9379$as_echo "no" >&6; }
278a7a38
AO
9380fi
9381
5213506e 9382
278a7a38
AO
9383 done
9384fi
9385
9386for ncn_progname in objcopy; do
2693c0b0
PB
9387 if test -n "$ncn_tool_prefix"; then
9388 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9389set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9391$as_echo_n "checking for $ac_word... " >&6; }
9392if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9393 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9394else
9395 if test -n "$OBJCOPY"; then
9396 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9397else
1c710c3c
DJ
9398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9399for as_dir in $PATH
9400do
9401 IFS=$as_save_IFS
9402 test -z "$as_dir" && as_dir=.
5213506e
RW
9403 for ac_exec_ext in '' $ac_executable_extensions; do
9404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9405 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9407 break 2
9408 fi
9409done
5213506e
RW
9410 done
9411IFS=$as_save_IFS
1c710c3c 9412
ca9f4b81
AO
9413fi
9414fi
1c710c3c 9415OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9416if test -n "$OBJCOPY"; then
5213506e
RW
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9418$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9419else
5213506e
RW
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9421$as_echo "no" >&6; }
ca9f4b81
AO
9422fi
9423
5213506e 9424
2693c0b0
PB
9425 fi
9426 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9428set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9430$as_echo_n "checking for $ac_word... " >&6; }
9431if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9432 $as_echo_n "(cached) " >&6
ca9f4b81 9433else
2693c0b0
PB
9434 if test -n "$OBJCOPY"; then
9435 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9436else
1c710c3c
DJ
9437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438for as_dir in $PATH
9439do
9440 IFS=$as_save_IFS
9441 test -z "$as_dir" && as_dir=.
5213506e
RW
9442 for ac_exec_ext in '' $ac_executable_extensions; do
9443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9444 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9446 break 2
9447 fi
9448done
5213506e
RW
9449 done
9450IFS=$as_save_IFS
1c710c3c 9451
ca9f4b81
AO
9452fi
9453fi
1c710c3c 9454OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9455if test -n "$OBJCOPY"; then
5213506e
RW
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9457$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9458else
5213506e
RW
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460$as_echo "no" >&6; }
ca9f4b81 9461fi
1c710c3c 9462
5213506e 9463
2693c0b0
PB
9464 fi
9465 test -n "$ac_cv_prog_OBJCOPY" && break
9466done
9467
9468if test -z "$ac_cv_prog_OBJCOPY" ; then
9469 set dummy objcopy
9470 if test $build = $host ; then
9471 OBJCOPY="$2"
ca9f4b81 9472 else
2693c0b0 9473 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9474 fi
ca9f4b81
AO
9475fi
9476
278a7a38
AO
9477
9478
9479if test -n "$OBJDUMP"; then
9480 ac_cv_prog_OBJDUMP=$OBJDUMP
9481elif test -n "$ac_cv_prog_OBJDUMP"; then
9482 OBJDUMP=$ac_cv_prog_OBJDUMP
9483fi
9484
9485if test -n "$ac_cv_prog_OBJDUMP"; then
9486 for ncn_progname in objdump; do
9487 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9488set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9490$as_echo_n "checking for $ac_word... " >&6; }
9491if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
278a7a38
AO
9493else
9494 if test -n "$OBJDUMP"; then
9495 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9496else
9497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9498for as_dir in $PATH
9499do
9500 IFS=$as_save_IFS
9501 test -z "$as_dir" && as_dir=.
5213506e
RW
9502 for ac_exec_ext in '' $ac_executable_extensions; do
9503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9504 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9506 break 2
9507 fi
9508done
5213506e
RW
9509 done
9510IFS=$as_save_IFS
278a7a38
AO
9511
9512fi
9513fi
9514OBJDUMP=$ac_cv_prog_OBJDUMP
9515if test -n "$OBJDUMP"; then
5213506e
RW
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9517$as_echo "$OBJDUMP" >&6; }
278a7a38 9518else
5213506e
RW
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520$as_echo "no" >&6; }
278a7a38
AO
9521fi
9522
5213506e 9523
278a7a38
AO
9524 done
9525fi
9526
9527for ncn_progname in objdump; do
2693c0b0
PB
9528 if test -n "$ncn_tool_prefix"; then
9529 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9530set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9532$as_echo_n "checking for $ac_word... " >&6; }
9533if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9534 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9535else
9536 if test -n "$OBJDUMP"; then
9537 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9538else
1c710c3c
DJ
9539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9540for as_dir in $PATH
9541do
9542 IFS=$as_save_IFS
9543 test -z "$as_dir" && as_dir=.
5213506e
RW
9544 for ac_exec_ext in '' $ac_executable_extensions; do
9545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9546 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9548 break 2
9549 fi
9550done
5213506e
RW
9551 done
9552IFS=$as_save_IFS
1c710c3c 9553
ca9f4b81
AO
9554fi
9555fi
1c710c3c 9556OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9557if test -n "$OBJDUMP"; then
5213506e
RW
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9559$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9560else
5213506e
RW
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562$as_echo "no" >&6; }
ca9f4b81
AO
9563fi
9564
5213506e 9565
2693c0b0
PB
9566 fi
9567 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9568 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9569set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571$as_echo_n "checking for $ac_word... " >&6; }
9572if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
ca9f4b81 9574else
2693c0b0
PB
9575 if test -n "$OBJDUMP"; then
9576 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9577else
1c710c3c
DJ
9578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579for as_dir in $PATH
9580do
9581 IFS=$as_save_IFS
9582 test -z "$as_dir" && as_dir=.
5213506e
RW
9583 for ac_exec_ext in '' $ac_executable_extensions; do
9584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9585 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9587 break 2
9588 fi
9589done
5213506e
RW
9590 done
9591IFS=$as_save_IFS
1c710c3c 9592
ca9f4b81
AO
9593fi
9594fi
1c710c3c 9595OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9596if test -n "$OBJDUMP"; then
5213506e
RW
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9598$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9599else
5213506e
RW
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601$as_echo "no" >&6; }
ca9f4b81 9602fi
1c710c3c 9603
5213506e 9604
2693c0b0
PB
9605 fi
9606 test -n "$ac_cv_prog_OBJDUMP" && break
9607done
9608
9609if test -z "$ac_cv_prog_OBJDUMP" ; then
9610 set dummy objdump
9611 if test $build = $host ; then
9612 OBJDUMP="$2"
ca9f4b81 9613 else
2693c0b0 9614 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9615 fi
ca9f4b81
AO
9616fi
9617
671aa708
NN
9618
9619
9620
9621
9622
2abefe3d 9623# Target tools.
1c710c3c 9624
5213506e
RW
9625# Check whether --with-build-time-tools was given.
9626if test "${with_build_time_tools+set}" = set; then :
9627 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9628 x/*) ;;
9629 *)
9630 with_build_time_tools=
5213506e
RW
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9632$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9633 ;;
9634 esac
ca9f4b81 9635else
e8b05380 9636 with_build_time_tools=
5213506e
RW
9637fi
9638
ca9f4b81 9639
278a7a38
AO
9640
9641
9642if test -n "$CC_FOR_TARGET"; then
9643 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9644elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9645 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9646fi
9647
9648if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9649 for ncn_progname in cc gcc; do
9650 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9651set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9653$as_echo_n "checking for $ac_word... " >&6; }
9654if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9655 $as_echo_n "(cached) " >&6
278a7a38
AO
9656else
9657 if test -n "$CC_FOR_TARGET"; then
9658 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9659else
9660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9661for as_dir in $PATH
9662do
9663 IFS=$as_save_IFS
9664 test -z "$as_dir" && as_dir=.
5213506e
RW
9665 for ac_exec_ext in '' $ac_executable_extensions; do
9666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9667 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9669 break 2
9670 fi
9671done
5213506e
RW
9672 done
9673IFS=$as_save_IFS
278a7a38
AO
9674
9675fi
9676fi
9677CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9678if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9680$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9681else
5213506e
RW
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9683$as_echo "no" >&6; }
278a7a38
AO
9684fi
9685
5213506e 9686
278a7a38
AO
9687 done
9688fi
9689
9690if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9691 for ncn_progname in cc gcc; do
5213506e
RW
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9693$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9694 if test -x $with_build_time_tools/${ncn_progname}; then
9695 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9697$as_echo "yes" >&6; }
72a7ab82 9698 break
e8b05380 9699 else
5213506e
RW
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9701$as_echo "no" >&6; }
72a7ab82
AP
9702 fi
9703 done
4de997d1
PB
9704fi
9705
e8b05380
PB
9706if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9707 for ncn_progname in cc gcc; do
9708 if test -n "$ncn_target_tool_prefix"; then
9709 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9710set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9712$as_echo_n "checking for $ac_word... " >&6; }
9713if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9714 $as_echo_n "(cached) " >&6
4de997d1
PB
9715else
9716 if test -n "$CC_FOR_TARGET"; then
9717 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9718else
1c710c3c
DJ
9719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720for as_dir in $PATH
9721do
9722 IFS=$as_save_IFS
9723 test -z "$as_dir" && as_dir=.
5213506e
RW
9724 for ac_exec_ext in '' $ac_executable_extensions; do
9725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9726 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9728 break 2
9729 fi
9730done
5213506e
RW
9731 done
9732IFS=$as_save_IFS
1c710c3c 9733
4de997d1
PB
9734fi
9735fi
1c710c3c 9736CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9737if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9739$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9740else
5213506e
RW
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9742$as_echo "no" >&6; }
4de997d1
PB
9743fi
9744
5213506e 9745
e8b05380
PB
9746 fi
9747 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9748 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9749set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751$as_echo_n "checking for $ac_word... " >&6; }
9752if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9753 $as_echo_n "(cached) " >&6
4de997d1 9754else
2693c0b0
PB
9755 if test -n "$CC_FOR_TARGET"; then
9756 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9757else
1c710c3c
DJ
9758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9759for as_dir in $PATH
9760do
9761 IFS=$as_save_IFS
9762 test -z "$as_dir" && as_dir=.
5213506e
RW
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9765 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9767 break 2
9768 fi
9769done
5213506e
RW
9770 done
9771IFS=$as_save_IFS
1c710c3c 9772
4de997d1
PB
9773fi
9774fi
1c710c3c 9775CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9776if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9778$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9779else
5213506e
RW
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781$as_echo "no" >&6; }
4de997d1 9782fi
1c710c3c 9783
5213506e 9784
e8b05380
PB
9785 fi
9786 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9787 done
9788fi
1c710c3c 9789
2693c0b0
PB
9790if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9791 set dummy cc gcc
9792 if test $build = $target ; then
9793 CC_FOR_TARGET="$2"
4de997d1 9794 else
2693c0b0 9795 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9796 fi
1c00b503
PB
9797else
9798 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9799fi
9800
278a7a38
AO
9801
9802
9803if test -n "$CXX_FOR_TARGET"; then
9804 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9805elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9806 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9807fi
9808
9809if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9810 for ncn_progname in c++ g++ cxx gxx; do
9811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9812set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9814$as_echo_n "checking for $ac_word... " >&6; }
9815if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9816 $as_echo_n "(cached) " >&6
278a7a38
AO
9817else
9818 if test -n "$CXX_FOR_TARGET"; then
9819 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9820else
9821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822for as_dir in $PATH
9823do
9824 IFS=$as_save_IFS
9825 test -z "$as_dir" && as_dir=.
5213506e
RW
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9828 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9830 break 2
9831 fi
9832done
5213506e
RW
9833 done
9834IFS=$as_save_IFS
278a7a38
AO
9835
9836fi
9837fi
9838CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9839if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9841$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9842else
5213506e
RW
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9844$as_echo "no" >&6; }
278a7a38
AO
9845fi
9846
5213506e 9847
278a7a38
AO
9848 done
9849fi
9850
9851if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9852 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9854$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9855 if test -x $with_build_time_tools/${ncn_progname}; then
9856 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9858$as_echo "yes" >&6; }
e8b05380
PB
9859 break
9860 else
5213506e
RW
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9862$as_echo "no" >&6; }
e8b05380
PB
9863 fi
9864 done
9865fi
9866
9867if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9868 for ncn_progname in c++ g++ cxx gxx; do
9869 if test -n "$ncn_target_tool_prefix"; then
9870 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9871set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873$as_echo_n "checking for $ac_word... " >&6; }
9874if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9875 $as_echo_n "(cached) " >&6
4de997d1
PB
9876else
9877 if test -n "$CXX_FOR_TARGET"; then
9878 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9879else
1c710c3c
DJ
9880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881for as_dir in $PATH
9882do
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
5213506e
RW
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9887 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9889 break 2
9890 fi
9891done
5213506e
RW
9892 done
9893IFS=$as_save_IFS
1c710c3c 9894
4de997d1
PB
9895fi
9896fi
1c710c3c 9897CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9898if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9900$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9901else
5213506e
RW
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903$as_echo "no" >&6; }
4de997d1
PB
9904fi
9905
5213506e 9906
e8b05380
PB
9907 fi
9908 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9909 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9910set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912$as_echo_n "checking for $ac_word... " >&6; }
9913if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9914 $as_echo_n "(cached) " >&6
4de997d1 9915else
2693c0b0
PB
9916 if test -n "$CXX_FOR_TARGET"; then
9917 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 9918else
1c710c3c
DJ
9919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9920for as_dir in $PATH
9921do
9922 IFS=$as_save_IFS
9923 test -z "$as_dir" && as_dir=.
5213506e
RW
9924 for ac_exec_ext in '' $ac_executable_extensions; do
9925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9926 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9928 break 2
9929 fi
9930done
5213506e
RW
9931 done
9932IFS=$as_save_IFS
1c710c3c 9933
4de997d1
PB
9934fi
9935fi
1c710c3c 9936CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 9937if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9939$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9940else
5213506e
RW
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9942$as_echo "no" >&6; }
4de997d1 9943fi
1c710c3c 9944
5213506e 9945
e8b05380
PB
9946 fi
9947 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9948 done
9949fi
1c710c3c 9950
2693c0b0
PB
9951if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9952 set dummy c++ g++ cxx gxx
9953 if test $build = $target ; then
9954 CXX_FOR_TARGET="$2"
4de997d1 9955 else
2693c0b0 9956 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9957 fi
1c00b503
PB
9958else
9959 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
9960fi
9961
278a7a38
AO
9962
9963
9964if test -n "$GCC_FOR_TARGET"; then
9965 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9966elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9967 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9968fi
9969
9970if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9971 for ncn_progname in gcc; do
9972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9973set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9975$as_echo_n "checking for $ac_word... " >&6; }
9976if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9977 $as_echo_n "(cached) " >&6
278a7a38
AO
9978else
9979 if test -n "$GCC_FOR_TARGET"; then
9980 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9981else
9982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9983for as_dir in $PATH
9984do
9985 IFS=$as_save_IFS
9986 test -z "$as_dir" && as_dir=.
5213506e
RW
9987 for ac_exec_ext in '' $ac_executable_extensions; do
9988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9989 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 9990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9991 break 2
9992 fi
9993done
5213506e
RW
9994 done
9995IFS=$as_save_IFS
278a7a38
AO
9996
9997fi
9998fi
9999GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10000if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10002$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 10003else
5213506e
RW
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10005$as_echo "no" >&6; }
278a7a38
AO
10006fi
10007
5213506e 10008
278a7a38
AO
10009 done
10010fi
10011
10012if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10013 for ncn_progname in gcc; do
5213506e
RW
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10015$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10016 if test -x $with_build_time_tools/${ncn_progname}; then
10017 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10019$as_echo "yes" >&6; }
e8b05380
PB
10020 break
10021 else
5213506e
RW
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10023$as_echo "no" >&6; }
e8b05380
PB
10024 fi
10025 done
10026fi
10027
10028if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10029 for ncn_progname in gcc; do
10030 if test -n "$ncn_target_tool_prefix"; then
10031 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10032set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034$as_echo_n "checking for $ac_word... " >&6; }
10035if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
ca9f4b81 10037else
e8b05380
PB
10038 if test -n "$GCC_FOR_TARGET"; then
10039 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10040else
1c710c3c
DJ
10041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042for as_dir in $PATH
10043do
10044 IFS=$as_save_IFS
10045 test -z "$as_dir" && as_dir=.
5213506e
RW
10046 for ac_exec_ext in '' $ac_executable_extensions; do
10047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10048 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10050 break 2
10051 fi
10052done
5213506e
RW
10053 done
10054IFS=$as_save_IFS
1c710c3c 10055
ca9f4b81
AO
10056fi
10057fi
1c710c3c 10058GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10059if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10061$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10062else
5213506e
RW
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064$as_echo "no" >&6; }
ca9f4b81
AO
10065fi
10066
5213506e 10067
e8b05380
PB
10068 fi
10069 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10071set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10073$as_echo_n "checking for $ac_word... " >&6; }
10074if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10075 $as_echo_n "(cached) " >&6
ca9f4b81 10076else
e8b05380
PB
10077 if test -n "$GCC_FOR_TARGET"; then
10078 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10079else
1c710c3c
DJ
10080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081for as_dir in $PATH
10082do
10083 IFS=$as_save_IFS
10084 test -z "$as_dir" && as_dir=.
5213506e
RW
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10087 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10089 break 2
10090 fi
10091done
5213506e
RW
10092 done
10093IFS=$as_save_IFS
1c710c3c 10094
ca9f4b81
AO
10095fi
10096fi
1c710c3c 10097GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10098if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10100$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10101else
5213506e
RW
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10103$as_echo "no" >&6; }
ca9f4b81 10104fi
1c710c3c 10105
5213506e 10106
e8b05380
PB
10107 fi
10108 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10109 done
10110fi
1c710c3c 10111
e8b05380
PB
10112if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10113 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10114else
10115 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10116fi
10117
278a7a38
AO
10118
10119
10120if test -n "$GCJ_FOR_TARGET"; then
10121 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10122elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10123 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10124fi
10125
10126if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10127 for ncn_progname in gcj; do
10128 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10129set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131$as_echo_n "checking for $ac_word... " >&6; }
10132if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10133 $as_echo_n "(cached) " >&6
278a7a38
AO
10134else
10135 if test -n "$GCJ_FOR_TARGET"; then
10136 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10137else
10138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139for as_dir in $PATH
10140do
10141 IFS=$as_save_IFS
10142 test -z "$as_dir" && as_dir=.
5213506e
RW
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10145 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10147 break 2
10148 fi
10149done
5213506e
RW
10150 done
10151IFS=$as_save_IFS
278a7a38
AO
10152
10153fi
10154fi
10155GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10156if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10158$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10159else
5213506e
RW
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161$as_echo "no" >&6; }
278a7a38
AO
10162fi
10163
5213506e 10164
278a7a38
AO
10165 done
10166fi
10167
10168if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10169 for ncn_progname in gcj; do
5213506e
RW
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10171$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10172 if test -x $with_build_time_tools/${ncn_progname}; then
10173 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10175$as_echo "yes" >&6; }
e8b05380
PB
10176 break
10177 else
5213506e
RW
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179$as_echo "no" >&6; }
e8b05380
PB
10180 fi
10181 done
10182fi
10183
10184if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10185 for ncn_progname in gcj; do
10186 if test -n "$ncn_target_tool_prefix"; then
10187 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10188set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190$as_echo_n "checking for $ac_word... " >&6; }
10191if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10192 $as_echo_n "(cached) " >&6
e8b05380 10193else
fb0103e5
RG
10194 if test -n "$GCJ_FOR_TARGET"; then
10195 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10196else
1c710c3c
DJ
10197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198for as_dir in $PATH
10199do
10200 IFS=$as_save_IFS
10201 test -z "$as_dir" && as_dir=.
5213506e
RW
10202 for ac_exec_ext in '' $ac_executable_extensions; do
10203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10204 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10206 break 2
10207 fi
10208done
5213506e
RW
10209 done
10210IFS=$as_save_IFS
1c710c3c 10211
e8b05380
PB
10212fi
10213fi
278a7a38
AO
10214GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10215if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10217$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10218else
5213506e
RW
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220$as_echo "no" >&6; }
278a7a38
AO
10221fi
10222
5213506e 10223
278a7a38
AO
10224 fi
10225 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10227set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10229$as_echo_n "checking for $ac_word... " >&6; }
10230if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10231 $as_echo_n "(cached) " >&6
278a7a38
AO
10232else
10233 if test -n "$GCJ_FOR_TARGET"; then
10234 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10235else
10236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10237for as_dir in $PATH
10238do
10239 IFS=$as_save_IFS
10240 test -z "$as_dir" && as_dir=.
5213506e
RW
10241 for ac_exec_ext in '' $ac_executable_extensions; do
10242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10243 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10245 break 2
10246 fi
10247done
5213506e
RW
10248 done
10249IFS=$as_save_IFS
278a7a38
AO
10250
10251fi
10252fi
10253GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10254if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10256$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10257else
5213506e
RW
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10259$as_echo "no" >&6; }
278a7a38
AO
10260fi
10261
5213506e 10262
278a7a38
AO
10263 fi
10264 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10265 done
10266fi
10267
10268if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10269 set dummy gcj
10270 if test $build = $target ; then
10271 GCJ_FOR_TARGET="$2"
10272 else
10273 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10274 fi
1c00b503
PB
10275else
10276 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10277fi
10278
10279
10280
10281if test -n "$GFORTRAN_FOR_TARGET"; then
10282 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10283elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10284 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10285fi
10286
278a7a38
AO
10287if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10288 for ncn_progname in gfortran; do
10289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10290set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10292$as_echo_n "checking for $ac_word... " >&6; }
10293if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
e8b05380 10295else
278a7a38
AO
10296 if test -n "$GFORTRAN_FOR_TARGET"; then
10297 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10298else
1c710c3c
DJ
10299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10300for as_dir in $PATH
10301do
10302 IFS=$as_save_IFS
10303 test -z "$as_dir" && as_dir=.
5213506e
RW
10304 for ac_exec_ext in '' $ac_executable_extensions; do
10305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10306 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10308 break 2
10309 fi
10310done
5213506e
RW
10311 done
10312IFS=$as_save_IFS
1c710c3c 10313
e8b05380
PB
10314fi
10315fi
278a7a38
AO
10316GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10317if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10319$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10320else
5213506e
RW
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10322$as_echo "no" >&6; }
e8b05380 10323fi
1c710c3c 10324
5213506e 10325
e8b05380
PB
10326 done
10327fi
1c710c3c 10328
278a7a38 10329if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10330 for ncn_progname in gfortran; do
5213506e
RW
10331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10332$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10333 if test -x $with_build_time_tools/${ncn_progname}; then
10334 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10336$as_echo "yes" >&6; }
e8b05380
PB
10337 break
10338 else
5213506e
RW
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10340$as_echo "no" >&6; }
e8b05380
PB
10341 fi
10342 done
10343fi
10344
10345if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10346 for ncn_progname in gfortran; do
10347 if test -n "$ncn_target_tool_prefix"; then
10348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10349set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10351$as_echo_n "checking for $ac_word... " >&6; }
10352if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10353 $as_echo_n "(cached) " >&6
e8b05380
PB
10354else
10355 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10356 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10357else
10358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359for as_dir in $PATH
10360do
10361 IFS=$as_save_IFS
10362 test -z "$as_dir" && as_dir=.
5213506e
RW
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10365 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10367 break 2
10368 fi
10369done
5213506e
RW
10370 done
10371IFS=$as_save_IFS
1c710c3c 10372
e8b05380
PB
10373fi
10374fi
1c710c3c 10375GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10376if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10378$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10379else
5213506e
RW
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10381$as_echo "no" >&6; }
e8b05380
PB
10382fi
10383
5213506e 10384
e8b05380
PB
10385 fi
10386 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10388set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390$as_echo_n "checking for $ac_word... " >&6; }
10391if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10392 $as_echo_n "(cached) " >&6
e8b05380
PB
10393else
10394 if test -n "$GFORTRAN_FOR_TARGET"; then
10395 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10396else
1c710c3c
DJ
10397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398for as_dir in $PATH
10399do
10400 IFS=$as_save_IFS
10401 test -z "$as_dir" && as_dir=.
5213506e
RW
10402 for ac_exec_ext in '' $ac_executable_extensions; do
10403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10404 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10406 break 2
10407 fi
10408done
5213506e
RW
10409 done
10410IFS=$as_save_IFS
1c710c3c 10411
e8b05380
PB
10412fi
10413fi
1c710c3c 10414GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10415if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10417$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10418else
5213506e
RW
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420$as_echo "no" >&6; }
e8b05380 10421fi
1c710c3c 10422
5213506e 10423
e8b05380
PB
10424 fi
10425 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10426 done
10427fi
1c710c3c 10428
e8b05380
PB
10429if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10430 set dummy gfortran
2693c0b0 10431 if test $build = $target ; then
e8b05380 10432 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10433 else
e8b05380
PB
10434 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10435 fi
1c00b503
PB
10436else
10437 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10438fi
10439
10440
10441
632e2a07
ILT
10442if test -n "$GOC_FOR_TARGET"; then
10443 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10444elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10445 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10446fi
10447
10448if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10449 for ncn_progname in gccgo; do
10450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10451set dummy ${ncn_progname}; ac_word=$2
10452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453$as_echo_n "checking for $ac_word... " >&6; }
10454if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10455 $as_echo_n "(cached) " >&6
10456else
10457 if test -n "$GOC_FOR_TARGET"; then
10458 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10459else
10460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461for as_dir in $PATH
10462do
10463 IFS=$as_save_IFS
10464 test -z "$as_dir" && as_dir=.
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10467 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10469 break 2
10470 fi
10471done
10472 done
10473IFS=$as_save_IFS
10474
10475fi
10476fi
10477GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10478if test -n "$GOC_FOR_TARGET"; then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10480$as_echo "$GOC_FOR_TARGET" >&6; }
10481else
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483$as_echo "no" >&6; }
10484fi
10485
10486
10487 done
10488fi
10489
10490if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10491 for ncn_progname in gccgo; do
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10493$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10494 if test -x $with_build_time_tools/${ncn_progname}; then
10495 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10497$as_echo "yes" >&6; }
10498 break
10499 else
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10501$as_echo "no" >&6; }
10502 fi
10503 done
10504fi
10505
10506if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10507 for ncn_progname in gccgo; do
10508 if test -n "$ncn_target_tool_prefix"; then
10509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10510set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10512$as_echo_n "checking for $ac_word... " >&6; }
10513if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10514 $as_echo_n "(cached) " >&6
10515else
10516 if test -n "$GOC_FOR_TARGET"; then
10517 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10518else
10519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10520for as_dir in $PATH
10521do
10522 IFS=$as_save_IFS
10523 test -z "$as_dir" && as_dir=.
10524 for ac_exec_ext in '' $ac_executable_extensions; do
10525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10526 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10528 break 2
10529 fi
10530done
10531 done
10532IFS=$as_save_IFS
10533
10534fi
10535fi
10536GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10537if test -n "$GOC_FOR_TARGET"; then
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10539$as_echo "$GOC_FOR_TARGET" >&6; }
10540else
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10542$as_echo "no" >&6; }
10543fi
10544
10545
10546 fi
10547 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10549set dummy ${ncn_progname}; ac_word=$2
10550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10551$as_echo_n "checking for $ac_word... " >&6; }
10552if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10554else
10555 if test -n "$GOC_FOR_TARGET"; then
10556 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10557else
10558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559for as_dir in $PATH
10560do
10561 IFS=$as_save_IFS
10562 test -z "$as_dir" && as_dir=.
10563 for ac_exec_ext in '' $ac_executable_extensions; do
10564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10565 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10567 break 2
10568 fi
10569done
10570 done
10571IFS=$as_save_IFS
10572
10573fi
10574fi
10575GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10576if test -n "$GOC_FOR_TARGET"; then
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10578$as_echo "$GOC_FOR_TARGET" >&6; }
10579else
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10581$as_echo "no" >&6; }
10582fi
10583
10584
10585 fi
10586 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10587 done
10588fi
10589
10590if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10591 set dummy gccgo
10592 if test $build = $target ; then
10593 GOC_FOR_TARGET="$2"
10594 else
10595 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10596 fi
10597else
10598 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10599fi
10600
10601
10602
e8b05380
PB
10603cat > conftest.c << \EOF
10604#ifdef __GNUC__
10605 gcc_yay;
10606#endif
10607EOF
10608if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10609 have_gcc_for_target=yes
10610else
10611 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10612 have_gcc_for_target=no
10613fi
10614rm conftest.c
10615
10616
10617
10618
10619if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10620 if test -n "$with_build_time_tools"; then
5213506e
RW
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10622$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10623 if test -x $with_build_time_tools/ar; then
10624 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10625 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10627$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10628 else
5213506e
RW
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630$as_echo "no" >&6; }
d1f8db0c 10631 fi
e8b05380
PB
10632 elif test $build != $host && test $have_gcc_for_target = yes; then
10633 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10634 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10635 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10636 fi
10637fi
3e19841a 10638if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10639 # Extract the first word of "ar", so it can be a program name with args.
10640set dummy ar; ac_word=$2
5213506e
RW
10641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10642$as_echo_n "checking for $ac_word... " >&6; }
10643if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10644 $as_echo_n "(cached) " >&6
e8b05380 10645else
1c710c3c
DJ
10646 case $AR_FOR_TARGET in
10647 [\\/]* | ?:[\\/]*)
e8b05380
PB
10648 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10649 ;;
e8b05380 10650 *)
1c710c3c
DJ
10651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652for as_dir in $gcc_cv_tool_dirs
10653do
10654 IFS=$as_save_IFS
10655 test -z "$as_dir" && as_dir=.
5213506e
RW
10656 for ac_exec_ext in '' $ac_executable_extensions; do
10657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10658 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10660 break 2
10661 fi
10662done
5213506e
RW
10663 done
10664IFS=$as_save_IFS
1c710c3c 10665
e8b05380
PB
10666 ;;
10667esac
10668fi
1c710c3c 10669AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10670if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10672$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10673else
5213506e
RW
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675$as_echo "no" >&6; }
4de997d1
PB
10676fi
10677
5213506e 10678
e8b05380
PB
10679fi
10680if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10681
10682
10683if test -n "$AR_FOR_TARGET"; then
10684 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10685elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10686 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10687fi
10688
10689if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10690 for ncn_progname in ar; do
10691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10692set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694$as_echo_n "checking for $ac_word... " >&6; }
10695if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10696 $as_echo_n "(cached) " >&6
278a7a38
AO
10697else
10698 if test -n "$AR_FOR_TARGET"; then
10699 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10700else
10701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702for as_dir in $PATH
10703do
10704 IFS=$as_save_IFS
10705 test -z "$as_dir" && as_dir=.
5213506e
RW
10706 for ac_exec_ext in '' $ac_executable_extensions; do
10707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10708 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10710 break 2
10711 fi
10712done
5213506e
RW
10713 done
10714IFS=$as_save_IFS
278a7a38
AO
10715
10716fi
10717fi
10718AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10719if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10721$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10722else
5213506e
RW
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724$as_echo "no" >&6; }
278a7a38
AO
10725fi
10726
5213506e 10727
278a7a38
AO
10728 done
10729fi
10730
10731if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10732 for ncn_progname in ar; do
5213506e
RW
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10734$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10735 if test -x $with_build_time_tools/${ncn_progname}; then
10736 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10738$as_echo "yes" >&6; }
e8b05380
PB
10739 break
10740 else
5213506e
RW
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10742$as_echo "no" >&6; }
e8b05380
PB
10743 fi
10744 done
10745fi
10746
10747if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10748 for ncn_progname in ar; do
10749 if test -n "$ncn_target_tool_prefix"; then
10750 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10751set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10753$as_echo_n "checking for $ac_word... " >&6; }
10754if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10755 $as_echo_n "(cached) " >&6
4de997d1 10756else
e8b05380
PB
10757 if test -n "$AR_FOR_TARGET"; then
10758 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10759else
1c710c3c
DJ
10760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761for as_dir in $PATH
10762do
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
5213506e
RW
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10767 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10769 break 2
10770 fi
10771done
5213506e
RW
10772 done
10773IFS=$as_save_IFS
1c710c3c 10774
4de997d1
PB
10775fi
10776fi
1c710c3c 10777AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10778if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10780$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10781else
5213506e
RW
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783$as_echo "no" >&6; }
4de997d1
PB
10784fi
10785
5213506e 10786
e8b05380
PB
10787 fi
10788 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10790set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792$as_echo_n "checking for $ac_word... " >&6; }
10793if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
e8b05380
PB
10795else
10796 if test -n "$AR_FOR_TARGET"; then
10797 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10798else
1c710c3c
DJ
10799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800for as_dir in $PATH
10801do
10802 IFS=$as_save_IFS
10803 test -z "$as_dir" && as_dir=.
5213506e
RW
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10806 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10808 break 2
10809 fi
10810done
5213506e
RW
10811 done
10812IFS=$as_save_IFS
1c710c3c 10813
e8b05380
PB
10814fi
10815fi
1c710c3c 10816AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10817if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10819$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10820else
5213506e
RW
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822$as_echo "no" >&6; }
e8b05380 10823fi
1c710c3c 10824
5213506e 10825
e8b05380
PB
10826 fi
10827 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10828 done
10829fi
1c710c3c 10830
e8b05380
PB
10831if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10832 set dummy ar
10833 if test $build = $target ; then
10834 AR_FOR_TARGET="$2"
10835 else
10836 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10837 fi
1c00b503
PB
10838else
10839 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10840fi
10841
d1f8db0c
PB
10842else
10843 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10844fi
10845
10846
10847
10848
10849if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10850 if test -n "$with_build_time_tools"; then
5213506e
RW
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10852$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10853 if test -x $with_build_time_tools/as; then
10854 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10855 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10857$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10858 else
5213506e
RW
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860$as_echo "no" >&6; }
d1f8db0c 10861 fi
e8b05380
PB
10862 elif test $build != $host && test $have_gcc_for_target = yes; then
10863 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10864 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10865 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10866 fi
10867fi
3e19841a 10868if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10869 # Extract the first word of "as", so it can be a program name with args.
10870set dummy as; ac_word=$2
5213506e
RW
10871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10872$as_echo_n "checking for $ac_word... " >&6; }
10873if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10874 $as_echo_n "(cached) " >&6
e8b05380 10875else
1c710c3c
DJ
10876 case $AS_FOR_TARGET in
10877 [\\/]* | ?:[\\/]*)
e8b05380
PB
10878 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10879 ;;
e8b05380 10880 *)
1c710c3c
DJ
10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882for as_dir in $gcc_cv_tool_dirs
10883do
10884 IFS=$as_save_IFS
10885 test -z "$as_dir" && as_dir=.
5213506e
RW
10886 for ac_exec_ext in '' $ac_executable_extensions; do
10887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10888 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10890 break 2
10891 fi
10892done
5213506e
RW
10893 done
10894IFS=$as_save_IFS
1c710c3c 10895
e8b05380
PB
10896 ;;
10897esac
10898fi
1c710c3c 10899AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10900if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10902$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10903else
5213506e
RW
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10905$as_echo "no" >&6; }
e8b05380
PB
10906fi
10907
5213506e 10908
e8b05380
PB
10909fi
10910if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10911
10912
10913if test -n "$AS_FOR_TARGET"; then
10914 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10915elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10916 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10917fi
10918
10919if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10920 for ncn_progname in as; do
10921 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10922set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924$as_echo_n "checking for $ac_word... " >&6; }
10925if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10926 $as_echo_n "(cached) " >&6
278a7a38
AO
10927else
10928 if test -n "$AS_FOR_TARGET"; then
10929 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10930else
10931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932for as_dir in $PATH
10933do
10934 IFS=$as_save_IFS
10935 test -z "$as_dir" && as_dir=.
5213506e
RW
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10938 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10940 break 2
10941 fi
10942done
5213506e
RW
10943 done
10944IFS=$as_save_IFS
278a7a38
AO
10945
10946fi
10947fi
10948AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10949if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10951$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 10952else
5213506e
RW
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954$as_echo "no" >&6; }
278a7a38
AO
10955fi
10956
5213506e 10957
278a7a38
AO
10958 done
10959fi
10960
10961if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10962 for ncn_progname in as; do
5213506e
RW
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10964$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10965 if test -x $with_build_time_tools/${ncn_progname}; then
10966 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10968$as_echo "yes" >&6; }
e8b05380
PB
10969 break
10970 else
5213506e
RW
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972$as_echo "no" >&6; }
e8b05380
PB
10973 fi
10974 done
10975fi
10976
10977if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10978 for ncn_progname in as; do
10979 if test -n "$ncn_target_tool_prefix"; then
10980 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10981set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10983$as_echo_n "checking for $ac_word... " >&6; }
10984if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
e8b05380
PB
10986else
10987 if test -n "$AS_FOR_TARGET"; then
10988 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10989else
1c710c3c
DJ
10990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991for as_dir in $PATH
10992do
10993 IFS=$as_save_IFS
10994 test -z "$as_dir" && as_dir=.
5213506e
RW
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10997 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10999 break 2
11000 fi
11001done
5213506e
RW
11002 done
11003IFS=$as_save_IFS
1c710c3c 11004
e8b05380
PB
11005fi
11006fi
1c710c3c 11007AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11008if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11010$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11011else
5213506e
RW
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013$as_echo "no" >&6; }
e8b05380
PB
11014fi
11015
5213506e 11016
e8b05380
PB
11017 fi
11018 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11019 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11020set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11022$as_echo_n "checking for $ac_word... " >&6; }
11023if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11024 $as_echo_n "(cached) " >&6
4de997d1 11025else
e8b05380
PB
11026 if test -n "$AS_FOR_TARGET"; then
11027 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11028else
1c710c3c
DJ
11029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11030for as_dir in $PATH
11031do
11032 IFS=$as_save_IFS
11033 test -z "$as_dir" && as_dir=.
5213506e
RW
11034 for ac_exec_ext in '' $ac_executable_extensions; do
11035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11036 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11038 break 2
11039 fi
11040done
5213506e
RW
11041 done
11042IFS=$as_save_IFS
1c710c3c 11043
4de997d1
PB
11044fi
11045fi
1c710c3c 11046AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11047if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11049$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11050else
5213506e
RW
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11052$as_echo "no" >&6; }
4de997d1 11053fi
1c710c3c 11054
5213506e 11055
e8b05380
PB
11056 fi
11057 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11058 done
11059fi
1c710c3c 11060
e8b05380
PB
11061if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11062 set dummy as
11063 if test $build = $target ; then
11064 AS_FOR_TARGET="$2"
11065 else
11066 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11067 fi
1c00b503
PB
11068else
11069 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11070fi
2693c0b0 11071
d1f8db0c
PB
11072else
11073 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11074fi
11075
e8b05380
PB
11076
11077
11078
11079if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11080 if test -n "$with_build_time_tools"; then
5213506e
RW
11081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11082$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11083 if test -x $with_build_time_tools/dlltool; then
11084 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11085 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11087$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11088 else
5213506e
RW
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090$as_echo "no" >&6; }
d1f8db0c 11091 fi
e8b05380
PB
11092 elif test $build != $host && test $have_gcc_for_target = yes; then
11093 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11094 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11095 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11096 fi
11097fi
3e19841a 11098if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11099 # Extract the first word of "dlltool", so it can be a program name with args.
11100set dummy dlltool; ac_word=$2
5213506e
RW
11101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11102$as_echo_n "checking for $ac_word... " >&6; }
11103if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11104 $as_echo_n "(cached) " >&6
4de997d1 11105else
1c710c3c
DJ
11106 case $DLLTOOL_FOR_TARGET in
11107 [\\/]* | ?:[\\/]*)
e8b05380
PB
11108 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11109 ;;
e8b05380 11110 *)
1c710c3c
DJ
11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112for as_dir in $gcc_cv_tool_dirs
11113do
11114 IFS=$as_save_IFS
11115 test -z "$as_dir" && as_dir=.
5213506e
RW
11116 for ac_exec_ext in '' $ac_executable_extensions; do
11117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11118 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11120 break 2
11121 fi
11122done
5213506e
RW
11123 done
11124IFS=$as_save_IFS
1c710c3c 11125
e8b05380
PB
11126 ;;
11127esac
4de997d1 11128fi
1c710c3c 11129DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11130if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11132$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11133else
5213506e
RW
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11135$as_echo "no" >&6; }
4de997d1
PB
11136fi
11137
5213506e 11138
e8b05380
PB
11139fi
11140if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11141
11142
11143if test -n "$DLLTOOL_FOR_TARGET"; then
11144 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11145elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11146 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11147fi
11148
11149if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11150 for ncn_progname in dlltool; do
11151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11152set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11154$as_echo_n "checking for $ac_word... " >&6; }
11155if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11156 $as_echo_n "(cached) " >&6
278a7a38
AO
11157else
11158 if test -n "$DLLTOOL_FOR_TARGET"; then
11159 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11160else
11161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11162for as_dir in $PATH
11163do
11164 IFS=$as_save_IFS
11165 test -z "$as_dir" && as_dir=.
5213506e
RW
11166 for ac_exec_ext in '' $ac_executable_extensions; do
11167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11168 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11170 break 2
11171 fi
11172done
5213506e
RW
11173 done
11174IFS=$as_save_IFS
278a7a38
AO
11175
11176fi
11177fi
11178DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11179if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11181$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11182else
5213506e
RW
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184$as_echo "no" >&6; }
278a7a38
AO
11185fi
11186
5213506e 11187
278a7a38
AO
11188 done
11189fi
11190
11191if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11192 for ncn_progname in dlltool; do
5213506e
RW
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11194$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11195 if test -x $with_build_time_tools/${ncn_progname}; then
11196 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11198$as_echo "yes" >&6; }
e8b05380
PB
11199 break
11200 else
5213506e
RW
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11202$as_echo "no" >&6; }
e8b05380
PB
11203 fi
11204 done
11205fi
11206
11207if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11208 for ncn_progname in dlltool; do
11209 if test -n "$ncn_target_tool_prefix"; then
11210 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11211set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11213$as_echo_n "checking for $ac_word... " >&6; }
11214if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11215 $as_echo_n "(cached) " >&6
4de997d1 11216else
e8b05380
PB
11217 if test -n "$DLLTOOL_FOR_TARGET"; then
11218 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11219else
1c710c3c
DJ
11220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221for as_dir in $PATH
11222do
11223 IFS=$as_save_IFS
11224 test -z "$as_dir" && as_dir=.
5213506e
RW
11225 for ac_exec_ext in '' $ac_executable_extensions; do
11226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11227 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11229 break 2
11230 fi
11231done
5213506e
RW
11232 done
11233IFS=$as_save_IFS
1c710c3c 11234
4de997d1
PB
11235fi
11236fi
1c710c3c 11237DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11238if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11240$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11241else
5213506e
RW
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
4de997d1 11244fi
4de997d1 11245
5213506e 11246
e8b05380
PB
11247 fi
11248 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11250set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11252$as_echo_n "checking for $ac_word... " >&6; }
11253if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11254 $as_echo_n "(cached) " >&6
4de997d1 11255else
e8b05380
PB
11256 if test -n "$DLLTOOL_FOR_TARGET"; then
11257 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11258else
1c710c3c
DJ
11259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11260for as_dir in $PATH
11261do
11262 IFS=$as_save_IFS
11263 test -z "$as_dir" && as_dir=.
5213506e
RW
11264 for ac_exec_ext in '' $ac_executable_extensions; do
11265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11266 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11268 break 2
11269 fi
11270done
5213506e
RW
11271 done
11272IFS=$as_save_IFS
1c710c3c 11273
4de997d1
PB
11274fi
11275fi
1c710c3c 11276DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11277if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11279$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11280else
5213506e
RW
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11282$as_echo "no" >&6; }
4de997d1 11283fi
1c710c3c 11284
5213506e 11285
e8b05380
PB
11286 fi
11287 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11288 done
11289fi
1c710c3c 11290
e8b05380
PB
11291if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11292 set dummy dlltool
11293 if test $build = $target ; then
11294 DLLTOOL_FOR_TARGET="$2"
11295 else
11296 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11297 fi
1c00b503
PB
11298else
11299 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11300fi
11301
d1f8db0c
PB
11302else
11303 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11304fi
11305
4de997d1 11306
e8b05380
PB
11307
11308
11309if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11310 if test -n "$with_build_time_tools"; then
5213506e
RW
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11312$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11313 if test -x $with_build_time_tools/ld; then
11314 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11315 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11317$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11318 else
5213506e
RW
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320$as_echo "no" >&6; }
d1f8db0c 11321 fi
e8b05380
PB
11322 elif test $build != $host && test $have_gcc_for_target = yes; then
11323 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11324 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11325 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11326 fi
e8b05380 11327fi
3e19841a 11328if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11329 # Extract the first word of "ld", so it can be a program name with args.
11330set dummy ld; ac_word=$2
5213506e
RW
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11332$as_echo_n "checking for $ac_word... " >&6; }
11333if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11334 $as_echo_n "(cached) " >&6
4de997d1 11335else
1c710c3c
DJ
11336 case $LD_FOR_TARGET in
11337 [\\/]* | ?:[\\/]*)
e8b05380
PB
11338 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11339 ;;
e8b05380 11340 *)
1c710c3c
DJ
11341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342for as_dir in $gcc_cv_tool_dirs
11343do
11344 IFS=$as_save_IFS
11345 test -z "$as_dir" && as_dir=.
5213506e
RW
11346 for ac_exec_ext in '' $ac_executable_extensions; do
11347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11348 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11350 break 2
11351 fi
11352done
5213506e
RW
11353 done
11354IFS=$as_save_IFS
1c710c3c 11355
e8b05380
PB
11356 ;;
11357esac
4de997d1 11358fi
1c710c3c 11359LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11360if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11362$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11363else
5213506e
RW
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365$as_echo "no" >&6; }
4de997d1 11366fi
2693c0b0 11367
5213506e 11368
e8b05380
PB
11369fi
11370if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11371
11372
11373if test -n "$LD_FOR_TARGET"; then
11374 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11375elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11376 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11377fi
11378
11379if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11380 for ncn_progname in ld; do
11381 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11382set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384$as_echo_n "checking for $ac_word... " >&6; }
11385if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11386 $as_echo_n "(cached) " >&6
278a7a38
AO
11387else
11388 if test -n "$LD_FOR_TARGET"; then
11389 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11390else
11391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $PATH
11393do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
5213506e
RW
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11398 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11400 break 2
11401 fi
11402done
5213506e
RW
11403 done
11404IFS=$as_save_IFS
278a7a38
AO
11405
11406fi
11407fi
11408LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11409if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11411$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11412else
5213506e
RW
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414$as_echo "no" >&6; }
278a7a38
AO
11415fi
11416
5213506e 11417
278a7a38
AO
11418 done
11419fi
11420
11421if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11422 for ncn_progname in ld; do
5213506e
RW
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11424$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11425 if test -x $with_build_time_tools/${ncn_progname}; then
11426 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428$as_echo "yes" >&6; }
e8b05380
PB
11429 break
11430 else
5213506e
RW
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11432$as_echo "no" >&6; }
e8b05380
PB
11433 fi
11434 done
ca9f4b81
AO
11435fi
11436
e8b05380
PB
11437if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11438 for ncn_progname in ld; do
11439 if test -n "$ncn_target_tool_prefix"; then
11440 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11441set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11443$as_echo_n "checking for $ac_word... " >&6; }
11444if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11445 $as_echo_n "(cached) " >&6
ca9f4b81 11446else
4de997d1
PB
11447 if test -n "$LD_FOR_TARGET"; then
11448 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11449else
1c710c3c
DJ
11450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451for as_dir in $PATH
11452do
11453 IFS=$as_save_IFS
11454 test -z "$as_dir" && as_dir=.
5213506e
RW
11455 for ac_exec_ext in '' $ac_executable_extensions; do
11456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11457 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11459 break 2
11460 fi
11461done
5213506e
RW
11462 done
11463IFS=$as_save_IFS
1c710c3c 11464
ca9f4b81
AO
11465fi
11466fi
1c710c3c 11467LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11468if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11470$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11471else
5213506e
RW
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473$as_echo "no" >&6; }
ca9f4b81
AO
11474fi
11475
5213506e 11476
e8b05380
PB
11477 fi
11478 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11480set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482$as_echo_n "checking for $ac_word... " >&6; }
11483if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11484 $as_echo_n "(cached) " >&6
ca9f4b81 11485else
2693c0b0
PB
11486 if test -n "$LD_FOR_TARGET"; then
11487 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11488else
1c710c3c
DJ
11489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490for as_dir in $PATH
11491do
11492 IFS=$as_save_IFS
11493 test -z "$as_dir" && as_dir=.
5213506e
RW
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11496 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11498 break 2
11499 fi
11500done
5213506e
RW
11501 done
11502IFS=$as_save_IFS
1c710c3c 11503
ca9f4b81
AO
11504fi
11505fi
1c710c3c 11506LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11507if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11509$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11510else
5213506e
RW
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512$as_echo "no" >&6; }
ca9f4b81 11513fi
1c710c3c 11514
5213506e 11515
e8b05380
PB
11516 fi
11517 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11518 done
11519fi
1c710c3c 11520
2693c0b0
PB
11521if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11522 set dummy ld
11523 if test $build = $target ; then
11524 LD_FOR_TARGET="$2"
ca9f4b81 11525 else
2693c0b0 11526 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11527 fi
1c00b503
PB
11528else
11529 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11530fi
11531
d1f8db0c
PB
11532else
11533 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11534fi
11535
11536
11537
11538
11539if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11540 if test -n "$with_build_time_tools"; then
5213506e
RW
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11542$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11543 if test -x $with_build_time_tools/lipo; then
11544 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11545 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11547$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11548 else
5213506e
RW
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550$as_echo "no" >&6; }
d1f8db0c 11551 fi
e8b05380
PB
11552 elif test $build != $host && test $have_gcc_for_target = yes; then
11553 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11554 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11555 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11556 fi
11557fi
278a7a38
AO
11558if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11559 # Extract the first word of "lipo", so it can be a program name with args.
11560set dummy lipo; ac_word=$2
5213506e
RW
11561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11562$as_echo_n "checking for $ac_word... " >&6; }
11563if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11564 $as_echo_n "(cached) " >&6
278a7a38
AO
11565else
11566 case $LIPO_FOR_TARGET in
11567 [\\/]* | ?:[\\/]*)
11568 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11569 ;;
11570 *)
11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572for as_dir in $gcc_cv_tool_dirs
11573do
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
5213506e
RW
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11578 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11580 break 2
11581 fi
11582done
5213506e
RW
11583 done
11584IFS=$as_save_IFS
278a7a38
AO
11585
11586 ;;
11587esac
11588fi
11589LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11590if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11592$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11593else
5213506e
RW
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11595$as_echo "no" >&6; }
278a7a38
AO
11596fi
11597
5213506e 11598
278a7a38
AO
11599fi
11600if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11601
11602
11603if test -n "$LIPO_FOR_TARGET"; then
11604 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11605elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11606 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11607fi
11608
11609if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11610 for ncn_progname in lipo; do
11611 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11612set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614$as_echo_n "checking for $ac_word... " >&6; }
11615if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11616 $as_echo_n "(cached) " >&6
e8b05380 11617else
278a7a38
AO
11618 if test -n "$LIPO_FOR_TARGET"; then
11619 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11620else
11621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $PATH
1c710c3c
DJ
11623do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
5213506e
RW
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11628 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11630 break 2
11631 fi
11632done
5213506e
RW
11633 done
11634IFS=$as_save_IFS
1c710c3c 11635
e8b05380 11636fi
278a7a38
AO
11637fi
11638LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11639if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11641$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11642else
5213506e
RW
11643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644$as_echo "no" >&6; }
e8b05380
PB
11645fi
11646
5213506e 11647
278a7a38 11648 done
e8b05380 11649fi
278a7a38
AO
11650
11651if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11652 for ncn_progname in lipo; do
5213506e
RW
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11654$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11655 if test -x $with_build_time_tools/${ncn_progname}; then
11656 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658$as_echo "yes" >&6; }
e8b05380
PB
11659 break
11660 else
5213506e
RW
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662$as_echo "no" >&6; }
e8b05380
PB
11663 fi
11664 done
11665fi
11666
11667if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11668 for ncn_progname in lipo; do
11669 if test -n "$ncn_target_tool_prefix"; then
11670 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11671set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673$as_echo_n "checking for $ac_word... " >&6; }
11674if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11675 $as_echo_n "(cached) " >&6
040b1c5a
GK
11676else
11677 if test -n "$LIPO_FOR_TARGET"; then
11678 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11679else
1c710c3c
DJ
11680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11681for as_dir in $PATH
11682do
11683 IFS=$as_save_IFS
11684 test -z "$as_dir" && as_dir=.
5213506e
RW
11685 for ac_exec_ext in '' $ac_executable_extensions; do
11686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11687 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11689 break 2
11690 fi
11691done
5213506e
RW
11692 done
11693IFS=$as_save_IFS
1c710c3c 11694
040b1c5a
GK
11695fi
11696fi
1c710c3c 11697LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11698if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11700$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11701else
5213506e
RW
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703$as_echo "no" >&6; }
040b1c5a
GK
11704fi
11705
5213506e 11706
e8b05380
PB
11707 fi
11708 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11709 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11710set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11712$as_echo_n "checking for $ac_word... " >&6; }
11713if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11714 $as_echo_n "(cached) " >&6
040b1c5a
GK
11715else
11716 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11717 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11718else
1c710c3c
DJ
11719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $PATH
11721do
11722 IFS=$as_save_IFS
11723 test -z "$as_dir" && as_dir=.
5213506e
RW
11724 for ac_exec_ext in '' $ac_executable_extensions; do
11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11726 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11728 break 2
11729 fi
11730done
5213506e
RW
11731 done
11732IFS=$as_save_IFS
1c710c3c 11733
040b1c5a
GK
11734fi
11735fi
1c710c3c 11736LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11737if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11739$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11740else
5213506e
RW
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11742$as_echo "no" >&6; }
040b1c5a 11743fi
1c710c3c 11744
5213506e 11745
e8b05380
PB
11746 fi
11747 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11748 done
11749fi
1c710c3c 11750
040b1c5a
GK
11751if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11752 set dummy lipo
11753 if test $build = $target ; then
11754 LIPO_FOR_TARGET="$2"
11755 else
11756 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11757 fi
1c00b503
PB
11758else
11759 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11760fi
11761
d1f8db0c
PB
11762else
11763 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11764fi
11765
11766
11767
11768
11769if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11770 if test -n "$with_build_time_tools"; then
5213506e
RW
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11772$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11773 if test -x $with_build_time_tools/nm; then
11774 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11775 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11777$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11778 else
5213506e
RW
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780$as_echo "no" >&6; }
d1f8db0c 11781 fi
e8b05380
PB
11782 elif test $build != $host && test $have_gcc_for_target = yes; then
11783 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11784 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11785 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11786 fi
11787fi
3e19841a 11788if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11789 # Extract the first word of "nm", so it can be a program name with args.
11790set dummy nm; ac_word=$2
5213506e
RW
11791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11792$as_echo_n "checking for $ac_word... " >&6; }
11793if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11794 $as_echo_n "(cached) " >&6
e8b05380 11795else
1c710c3c
DJ
11796 case $NM_FOR_TARGET in
11797 [\\/]* | ?:[\\/]*)
e8b05380
PB
11798 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11799 ;;
e8b05380 11800 *)
1c710c3c
DJ
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802for as_dir in $gcc_cv_tool_dirs
11803do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
5213506e
RW
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11808 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11810 break 2
11811 fi
11812done
5213506e
RW
11813 done
11814IFS=$as_save_IFS
1c710c3c 11815
e8b05380
PB
11816 ;;
11817esac
11818fi
1c710c3c 11819NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11820if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11822$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11823else
5213506e
RW
11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825$as_echo "no" >&6; }
e8b05380
PB
11826fi
11827
5213506e 11828
e8b05380
PB
11829fi
11830if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11831
11832
11833if test -n "$NM_FOR_TARGET"; then
11834 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11835elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11836 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11837fi
11838
11839if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11840 for ncn_progname in nm; do
11841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11842set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11844$as_echo_n "checking for $ac_word... " >&6; }
11845if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11846 $as_echo_n "(cached) " >&6
278a7a38
AO
11847else
11848 if test -n "$NM_FOR_TARGET"; then
11849 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11850else
11851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852for as_dir in $PATH
11853do
11854 IFS=$as_save_IFS
11855 test -z "$as_dir" && as_dir=.
5213506e
RW
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11858 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11860 break 2
11861 fi
11862done
5213506e
RW
11863 done
11864IFS=$as_save_IFS
278a7a38
AO
11865
11866fi
11867fi
11868NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11869if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11871$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11872else
5213506e
RW
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11874$as_echo "no" >&6; }
278a7a38
AO
11875fi
11876
5213506e 11877
278a7a38
AO
11878 done
11879fi
11880
11881if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11882 for ncn_progname in nm; do
5213506e
RW
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11884$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11885 if test -x $with_build_time_tools/${ncn_progname}; then
11886 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11888$as_echo "yes" >&6; }
e8b05380
PB
11889 break
11890 else
5213506e
RW
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892$as_echo "no" >&6; }
e8b05380
PB
11893 fi
11894 done
11895fi
11896
11897if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11898 for ncn_progname in nm; do
11899 if test -n "$ncn_target_tool_prefix"; then
11900 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11901set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903$as_echo_n "checking for $ac_word... " >&6; }
11904if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11905 $as_echo_n "(cached) " >&6
ca9f4b81 11906else
4de997d1
PB
11907 if test -n "$NM_FOR_TARGET"; then
11908 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11909else
1c710c3c
DJ
11910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911for as_dir in $PATH
11912do
11913 IFS=$as_save_IFS
11914 test -z "$as_dir" && as_dir=.
5213506e
RW
11915 for ac_exec_ext in '' $ac_executable_extensions; do
11916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11917 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11919 break 2
11920 fi
11921done
5213506e
RW
11922 done
11923IFS=$as_save_IFS
1c710c3c 11924
ca9f4b81
AO
11925fi
11926fi
1c710c3c 11927NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11928if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11930$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11931else
5213506e
RW
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933$as_echo "no" >&6; }
ca9f4b81
AO
11934fi
11935
5213506e 11936
e8b05380
PB
11937 fi
11938 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11940set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942$as_echo_n "checking for $ac_word... " >&6; }
11943if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
ca9f4b81 11945else
2693c0b0
PB
11946 if test -n "$NM_FOR_TARGET"; then
11947 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11948else
1c710c3c
DJ
11949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11950for as_dir in $PATH
11951do
11952 IFS=$as_save_IFS
11953 test -z "$as_dir" && as_dir=.
5213506e
RW
11954 for ac_exec_ext in '' $ac_executable_extensions; do
11955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11956 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11958 break 2
11959 fi
11960done
5213506e
RW
11961 done
11962IFS=$as_save_IFS
1c710c3c 11963
ca9f4b81
AO
11964fi
11965fi
1c710c3c 11966NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 11967if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11969$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11970else
5213506e
RW
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11972$as_echo "no" >&6; }
ca9f4b81 11973fi
1c710c3c 11974
5213506e 11975
e8b05380
PB
11976 fi
11977 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11978 done
11979fi
1c710c3c 11980
2693c0b0
PB
11981if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11982 set dummy nm
11983 if test $build = $target ; then
11984 NM_FOR_TARGET="$2"
ca9f4b81 11985 else
2693c0b0 11986 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11987 fi
1c00b503
PB
11988else
11989 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
11990fi
11991
d1f8db0c
PB
11992else
11993 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
11994fi
11995
11996
11997
11998
11999if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12000 if test -n "$with_build_time_tools"; then
5213506e
RW
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12002$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12003 if test -x $with_build_time_tools/objdump; then
12004 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12005 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12007$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 12008 else
5213506e
RW
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010$as_echo "no" >&6; }
d1f8db0c 12011 fi
e8b05380
PB
12012 elif test $build != $host && test $have_gcc_for_target = yes; then
12013 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12014 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12015 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12016 fi
12017fi
3e19841a 12018if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12019 # Extract the first word of "objdump", so it can be a program name with args.
12020set dummy objdump; ac_word=$2
5213506e
RW
12021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12022$as_echo_n "checking for $ac_word... " >&6; }
12023if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12024 $as_echo_n "(cached) " >&6
e8b05380 12025else
1c710c3c
DJ
12026 case $OBJDUMP_FOR_TARGET in
12027 [\\/]* | ?:[\\/]*)
e8b05380
PB
12028 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12029 ;;
e8b05380 12030 *)
1c710c3c
DJ
12031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12032for as_dir in $gcc_cv_tool_dirs
12033do
12034 IFS=$as_save_IFS
12035 test -z "$as_dir" && as_dir=.
5213506e
RW
12036 for ac_exec_ext in '' $ac_executable_extensions; do
12037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12038 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12040 break 2
12041 fi
12042done
5213506e
RW
12043 done
12044IFS=$as_save_IFS
1c710c3c 12045
e8b05380
PB
12046 ;;
12047esac
12048fi
1c710c3c 12049OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12050if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12052$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12053else
5213506e
RW
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12055$as_echo "no" >&6; }
e8b05380
PB
12056fi
12057
5213506e 12058
e8b05380
PB
12059fi
12060if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12061
12062
12063if test -n "$OBJDUMP_FOR_TARGET"; then
12064 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12065elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12066 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12067fi
12068
12069if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12070 for ncn_progname in objdump; do
12071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12072set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12074$as_echo_n "checking for $ac_word... " >&6; }
12075if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12076 $as_echo_n "(cached) " >&6
278a7a38
AO
12077else
12078 if test -n "$OBJDUMP_FOR_TARGET"; then
12079 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12080else
12081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12082for as_dir in $PATH
12083do
12084 IFS=$as_save_IFS
12085 test -z "$as_dir" && as_dir=.
5213506e
RW
12086 for ac_exec_ext in '' $ac_executable_extensions; do
12087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12088 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12090 break 2
12091 fi
12092done
5213506e
RW
12093 done
12094IFS=$as_save_IFS
278a7a38
AO
12095
12096fi
12097fi
12098OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12099if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12101$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12102else
5213506e
RW
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12104$as_echo "no" >&6; }
278a7a38
AO
12105fi
12106
5213506e 12107
278a7a38
AO
12108 done
12109fi
12110
12111if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12112 for ncn_progname in objdump; do
5213506e
RW
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12114$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12115 if test -x $with_build_time_tools/${ncn_progname}; then
12116 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12118$as_echo "yes" >&6; }
e8b05380
PB
12119 break
12120 else
5213506e
RW
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12122$as_echo "no" >&6; }
e8b05380
PB
12123 fi
12124 done
12125fi
12126
12127if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12128 for ncn_progname in objdump; do
12129 if test -n "$ncn_target_tool_prefix"; then
12130 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12131set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12133$as_echo_n "checking for $ac_word... " >&6; }
12134if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12135 $as_echo_n "(cached) " >&6
d739199a
DJ
12136else
12137 if test -n "$OBJDUMP_FOR_TARGET"; then
12138 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12139else
1c710c3c
DJ
12140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
12142do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
5213506e
RW
12145 for ac_exec_ext in '' $ac_executable_extensions; do
12146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12147 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12149 break 2
12150 fi
12151done
5213506e
RW
12152 done
12153IFS=$as_save_IFS
1c710c3c 12154
d739199a
DJ
12155fi
12156fi
1c710c3c 12157OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12158if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12160$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12161else
5213506e
RW
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163$as_echo "no" >&6; }
d739199a
DJ
12164fi
12165
5213506e 12166
e8b05380
PB
12167 fi
12168 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12170set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12172$as_echo_n "checking for $ac_word... " >&6; }
12173if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12174 $as_echo_n "(cached) " >&6
d739199a
DJ
12175else
12176 if test -n "$OBJDUMP_FOR_TARGET"; then
12177 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12178else
1c710c3c
DJ
12179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180for as_dir in $PATH
12181do
12182 IFS=$as_save_IFS
12183 test -z "$as_dir" && as_dir=.
5213506e
RW
12184 for ac_exec_ext in '' $ac_executable_extensions; do
12185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12186 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12188 break 2
12189 fi
12190done
5213506e
RW
12191 done
12192IFS=$as_save_IFS
1c710c3c 12193
d739199a
DJ
12194fi
12195fi
1c710c3c 12196OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12197if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12199$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12200else
5213506e
RW
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12202$as_echo "no" >&6; }
d739199a 12203fi
1c710c3c 12204
5213506e 12205
e8b05380
PB
12206 fi
12207 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12208 done
12209fi
1c710c3c 12210
d739199a
DJ
12211if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12212 set dummy objdump
12213 if test $build = $target ; then
12214 OBJDUMP_FOR_TARGET="$2"
12215 else
12216 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12217 fi
1c00b503
PB
12218else
12219 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12220fi
12221
d1f8db0c
PB
12222else
12223 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12224fi
12225
12226
12227
12228
12229if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12230 if test -n "$with_build_time_tools"; then
5213506e
RW
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12232$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12233 if test -x $with_build_time_tools/ranlib; then
12234 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12235 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12237$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12238 else
5213506e
RW
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240$as_echo "no" >&6; }
d1f8db0c 12241 fi
e8b05380
PB
12242 elif test $build != $host && test $have_gcc_for_target = yes; then
12243 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12244 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12245 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12246 fi
12247fi
3e19841a 12248if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12249 # Extract the first word of "ranlib", so it can be a program name with args.
12250set dummy ranlib; ac_word=$2
5213506e
RW
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12252$as_echo_n "checking for $ac_word... " >&6; }
12253if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12254 $as_echo_n "(cached) " >&6
e8b05380 12255else
1c710c3c
DJ
12256 case $RANLIB_FOR_TARGET in
12257 [\\/]* | ?:[\\/]*)
e8b05380
PB
12258 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12259 ;;
e8b05380 12260 *)
1c710c3c
DJ
12261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262for as_dir in $gcc_cv_tool_dirs
12263do
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
5213506e
RW
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12268 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12270 break 2
12271 fi
12272done
5213506e
RW
12273 done
12274IFS=$as_save_IFS
1c710c3c 12275
e8b05380
PB
12276 ;;
12277esac
12278fi
1c710c3c 12279RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12280if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12282$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12283else
5213506e
RW
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12285$as_echo "no" >&6; }
e8b05380
PB
12286fi
12287
5213506e 12288
e8b05380
PB
12289fi
12290if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12291
12292
12293if test -n "$RANLIB_FOR_TARGET"; then
12294 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12295elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12296 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12297fi
12298
12299if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12300 for ncn_progname in ranlib; do
12301 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12302set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12304$as_echo_n "checking for $ac_word... " >&6; }
12305if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12306 $as_echo_n "(cached) " >&6
278a7a38
AO
12307else
12308 if test -n "$RANLIB_FOR_TARGET"; then
12309 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12310else
12311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312for as_dir in $PATH
12313do
12314 IFS=$as_save_IFS
12315 test -z "$as_dir" && as_dir=.
5213506e
RW
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12318 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12320 break 2
12321 fi
12322done
5213506e
RW
12323 done
12324IFS=$as_save_IFS
278a7a38
AO
12325
12326fi
12327fi
12328RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12329if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12331$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12332else
5213506e
RW
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334$as_echo "no" >&6; }
278a7a38
AO
12335fi
12336
5213506e 12337
278a7a38
AO
12338 done
12339fi
12340
12341if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12342 for ncn_progname in ranlib; do
5213506e
RW
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12344$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12345 if test -x $with_build_time_tools/${ncn_progname}; then
12346 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348$as_echo "yes" >&6; }
e8b05380
PB
12349 break
12350 else
5213506e
RW
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352$as_echo "no" >&6; }
e8b05380
PB
12353 fi
12354 done
12355fi
12356
12357if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12358 for ncn_progname in ranlib; do
12359 if test -n "$ncn_target_tool_prefix"; then
12360 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12361set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12363$as_echo_n "checking for $ac_word... " >&6; }
12364if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12365 $as_echo_n "(cached) " >&6
ca9f4b81 12366else
4de997d1
PB
12367 if test -n "$RANLIB_FOR_TARGET"; then
12368 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12369else
1c710c3c
DJ
12370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12371for as_dir in $PATH
12372do
12373 IFS=$as_save_IFS
12374 test -z "$as_dir" && as_dir=.
5213506e
RW
12375 for ac_exec_ext in '' $ac_executable_extensions; do
12376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12377 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12379 break 2
12380 fi
12381done
5213506e
RW
12382 done
12383IFS=$as_save_IFS
1c710c3c 12384
ca9f4b81
AO
12385fi
12386fi
1c710c3c 12387RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12388if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12390$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12391else
5213506e
RW
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393$as_echo "no" >&6; }
ca9f4b81
AO
12394fi
12395
5213506e 12396
e8b05380
PB
12397 fi
12398 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12399 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12400set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12402$as_echo_n "checking for $ac_word... " >&6; }
12403if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12404 $as_echo_n "(cached) " >&6
ca9f4b81 12405else
2693c0b0
PB
12406 if test -n "$RANLIB_FOR_TARGET"; then
12407 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12408else
1c710c3c
DJ
12409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12410for as_dir in $PATH
12411do
12412 IFS=$as_save_IFS
12413 test -z "$as_dir" && as_dir=.
5213506e
RW
12414 for ac_exec_ext in '' $ac_executable_extensions; do
12415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12416 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12418 break 2
12419 fi
12420done
5213506e
RW
12421 done
12422IFS=$as_save_IFS
1c710c3c 12423
ca9f4b81
AO
12424fi
12425fi
1c710c3c 12426RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12427if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12429$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12430else
5213506e
RW
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12432$as_echo "no" >&6; }
ca9f4b81 12433fi
1c710c3c 12434
5213506e 12435
e8b05380
PB
12436 fi
12437 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12438 done
12439fi
1c710c3c 12440
e8b05380
PB
12441if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12442 set dummy ranlib
12443 if test $build = $target ; then
12444 RANLIB_FOR_TARGET="$2"
12445 else
12446 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12447 fi
1c00b503
PB
12448else
12449 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12450fi
2693c0b0 12451
d1f8db0c
PB
12452else
12453 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12454fi
12455
e8b05380
PB
12456
12457
12458
12459if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12460 if test -n "$with_build_time_tools"; then
5213506e
RW
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12462$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12463 if test -x $with_build_time_tools/strip; then
12464 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12465 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12467$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12468 else
5213506e
RW
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470$as_echo "no" >&6; }
d1f8db0c 12471 fi
e8b05380
PB
12472 elif test $build != $host && test $have_gcc_for_target = yes; then
12473 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12474 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12475 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12476 fi
12477fi
3e19841a 12478if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12479 # Extract the first word of "strip", so it can be a program name with args.
12480set dummy strip; ac_word=$2
5213506e
RW
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12482$as_echo_n "checking for $ac_word... " >&6; }
12483if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12484 $as_echo_n "(cached) " >&6
e8b05380 12485else
1c710c3c
DJ
12486 case $STRIP_FOR_TARGET in
12487 [\\/]* | ?:[\\/]*)
e8b05380
PB
12488 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12489 ;;
e8b05380 12490 *)
1c710c3c
DJ
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492for as_dir in $gcc_cv_tool_dirs
12493do
12494 IFS=$as_save_IFS
12495 test -z "$as_dir" && as_dir=.
5213506e
RW
12496 for ac_exec_ext in '' $ac_executable_extensions; do
12497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12498 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12500 break 2
12501 fi
12502done
5213506e
RW
12503 done
12504IFS=$as_save_IFS
1c710c3c 12505
e8b05380
PB
12506 ;;
12507esac
12508fi
1c710c3c 12509STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12510if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12512$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12513else
5213506e
RW
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12515$as_echo "no" >&6; }
e8b05380
PB
12516fi
12517
5213506e 12518
e8b05380
PB
12519fi
12520if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12521
12522
12523if test -n "$STRIP_FOR_TARGET"; then
12524 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12525elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12526 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12527fi
12528
12529if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12530 for ncn_progname in strip; do
12531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12532set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12534$as_echo_n "checking for $ac_word... " >&6; }
12535if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12536 $as_echo_n "(cached) " >&6
278a7a38
AO
12537else
12538 if test -n "$STRIP_FOR_TARGET"; then
12539 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12540else
12541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542for as_dir in $PATH
12543do
12544 IFS=$as_save_IFS
12545 test -z "$as_dir" && as_dir=.
5213506e
RW
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12548 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12550 break 2
12551 fi
12552done
5213506e
RW
12553 done
12554IFS=$as_save_IFS
278a7a38
AO
12555
12556fi
12557fi
12558STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12559if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12561$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12562else
5213506e
RW
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564$as_echo "no" >&6; }
278a7a38
AO
12565fi
12566
5213506e 12567
278a7a38
AO
12568 done
12569fi
12570
12571if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12572 for ncn_progname in strip; do
5213506e
RW
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12574$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12575 if test -x $with_build_time_tools/${ncn_progname}; then
12576 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12578$as_echo "yes" >&6; }
e8b05380
PB
12579 break
12580 else
5213506e
RW
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582$as_echo "no" >&6; }
e8b05380
PB
12583 fi
12584 done
12585fi
12586
12587if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12588 for ncn_progname in strip; do
12589 if test -n "$ncn_target_tool_prefix"; then
12590 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12591set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12593$as_echo_n "checking for $ac_word... " >&6; }
12594if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12595 $as_echo_n "(cached) " >&6
af71363e
AS
12596else
12597 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12598 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12599else
12600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601for as_dir in $PATH
12602do
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
5213506e
RW
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12607 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12609 break 2
12610 fi
12611done
5213506e
RW
12612 done
12613IFS=$as_save_IFS
1c710c3c 12614
040b1c5a
GK
12615fi
12616fi
1c710c3c 12617STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12618if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12620$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12621else
5213506e
RW
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
040b1c5a
GK
12624fi
12625
5213506e 12626
e8b05380
PB
12627 fi
12628 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12629 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12630set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12632$as_echo_n "checking for $ac_word... " >&6; }
12633if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12634 $as_echo_n "(cached) " >&6
040b1c5a
GK
12635else
12636 if test -n "$STRIP_FOR_TARGET"; then
12637 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12638else
1c710c3c
DJ
12639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12640for as_dir in $PATH
12641do
12642 IFS=$as_save_IFS
12643 test -z "$as_dir" && as_dir=.
5213506e
RW
12644 for ac_exec_ext in '' $ac_executable_extensions; do
12645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12646 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12648 break 2
12649 fi
12650done
5213506e
RW
12651 done
12652IFS=$as_save_IFS
1c710c3c 12653
040b1c5a
GK
12654fi
12655fi
1c710c3c 12656STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12657if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12659$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12660else
5213506e
RW
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662$as_echo "no" >&6; }
040b1c5a 12663fi
1c710c3c 12664
5213506e 12665
e8b05380
PB
12666 fi
12667 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12668 done
12669fi
1c710c3c 12670
040b1c5a
GK
12671if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12672 set dummy strip
12673 if test $build = $target ; then
12674 STRIP_FOR_TARGET="$2"
12675 else
12676 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12677 fi
1c00b503
PB
12678else
12679 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
12680fi
12681
d1f8db0c
PB
12682else
12683 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
12684fi
12685
12686
12687
12688
12689if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12690 if test -n "$with_build_time_tools"; then
5213506e
RW
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12692$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12693 if test -x $with_build_time_tools/windres; then
12694 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12695 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12697$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 12698 else
5213506e
RW
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700$as_echo "no" >&6; }
d1f8db0c 12701 fi
e8b05380
PB
12702 elif test $build != $host && test $have_gcc_for_target = yes; then
12703 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
12704 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12705 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
12706 fi
12707fi
3e19841a 12708if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12709 # Extract the first word of "windres", so it can be a program name with args.
12710set dummy windres; ac_word=$2
5213506e
RW
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12712$as_echo_n "checking for $ac_word... " >&6; }
12713if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12714 $as_echo_n "(cached) " >&6
e8b05380 12715else
1c710c3c
DJ
12716 case $WINDRES_FOR_TARGET in
12717 [\\/]* | ?:[\\/]*)
e8b05380
PB
12718 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12719 ;;
e8b05380 12720 *)
1c710c3c
DJ
12721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12722for as_dir in $gcc_cv_tool_dirs
12723do
12724 IFS=$as_save_IFS
12725 test -z "$as_dir" && as_dir=.
5213506e
RW
12726 for ac_exec_ext in '' $ac_executable_extensions; do
12727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12728 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12730 break 2
12731 fi
12732done
5213506e
RW
12733 done
12734IFS=$as_save_IFS
1c710c3c 12735
e8b05380
PB
12736 ;;
12737esac
12738fi
1c710c3c 12739WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 12740if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12742$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 12743else
5213506e
RW
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745$as_echo "no" >&6; }
e8b05380
PB
12746fi
12747
5213506e 12748
e8b05380
PB
12749fi
12750if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
12751
12752
12753if test -n "$WINDRES_FOR_TARGET"; then
12754 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12755elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12756 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12757fi
12758
12759if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12760 for ncn_progname in windres; do
12761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12762set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12764$as_echo_n "checking for $ac_word... " >&6; }
12765if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12766 $as_echo_n "(cached) " >&6
278a7a38
AO
12767else
12768 if test -n "$WINDRES_FOR_TARGET"; then
12769 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12770else
12771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12772for as_dir in $PATH
12773do
12774 IFS=$as_save_IFS
12775 test -z "$as_dir" && as_dir=.
5213506e
RW
12776 for ac_exec_ext in '' $ac_executable_extensions; do
12777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12778 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12780 break 2
12781 fi
12782done
5213506e
RW
12783 done
12784IFS=$as_save_IFS
278a7a38
AO
12785
12786fi
12787fi
12788WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12789if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12791$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 12792else
5213506e
RW
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12794$as_echo "no" >&6; }
278a7a38
AO
12795fi
12796
5213506e 12797
278a7a38
AO
12798 done
12799fi
12800
12801if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12802 for ncn_progname in windres; do
5213506e
RW
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12804$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12805 if test -x $with_build_time_tools/${ncn_progname}; then
12806 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12808$as_echo "yes" >&6; }
e8b05380
PB
12809 break
12810 else
5213506e
RW
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12812$as_echo "no" >&6; }
e8b05380
PB
12813 fi
12814 done
12815fi
12816
12817if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12818 for ncn_progname in windres; do
12819 if test -n "$ncn_target_tool_prefix"; then
12820 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12821set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12823$as_echo_n "checking for $ac_word... " >&6; }
12824if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12825 $as_echo_n "(cached) " >&6
ca9f4b81 12826else
4de997d1
PB
12827 if test -n "$WINDRES_FOR_TARGET"; then
12828 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12829else
1c710c3c
DJ
12830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12831for as_dir in $PATH
12832do
12833 IFS=$as_save_IFS
12834 test -z "$as_dir" && as_dir=.
5213506e
RW
12835 for ac_exec_ext in '' $ac_executable_extensions; do
12836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12837 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12839 break 2
12840 fi
12841done
5213506e
RW
12842 done
12843IFS=$as_save_IFS
1c710c3c 12844
ca9f4b81
AO
12845fi
12846fi
1c710c3c 12847WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 12848if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12850$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12851else
5213506e
RW
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12853$as_echo "no" >&6; }
ca9f4b81
AO
12854fi
12855
5213506e 12856
e8b05380
PB
12857 fi
12858 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12860set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862$as_echo_n "checking for $ac_word... " >&6; }
12863if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12864 $as_echo_n "(cached) " >&6
ca9f4b81 12865else
2693c0b0
PB
12866 if test -n "$WINDRES_FOR_TARGET"; then
12867 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12868else
1c710c3c
DJ
12869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870for as_dir in $PATH
12871do
12872 IFS=$as_save_IFS
12873 test -z "$as_dir" && as_dir=.
5213506e
RW
12874 for ac_exec_ext in '' $ac_executable_extensions; do
12875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12876 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12878 break 2
12879 fi
12880done
5213506e
RW
12881 done
12882IFS=$as_save_IFS
1c710c3c 12883
ca9f4b81
AO
12884fi
12885fi
1c710c3c 12886WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 12887if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12889$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12890else
5213506e
RW
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892$as_echo "no" >&6; }
ca9f4b81 12893fi
1c710c3c 12894
5213506e 12895
e8b05380
PB
12896 fi
12897 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12898 done
12899fi
1c710c3c 12900
2693c0b0
PB
12901if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12902 set dummy windres
12903 if test $build = $target ; then
12904 WINDRES_FOR_TARGET="$2"
ca9f4b81 12905 else
2693c0b0 12906 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12907 fi
1c00b503
PB
12908else
12909 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
12910fi
12911
d1f8db0c
PB
12912else
12913 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
12914fi
12915
4977bab6 12916
901119ae
KT
12917
12918
12919if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12920 if test -n "$with_build_time_tools"; then
5213506e
RW
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12922$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
12923 if test -x $with_build_time_tools/windmc; then
12924 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12925 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12927$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 12928 else
5213506e
RW
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930$as_echo "no" >&6; }
901119ae
KT
12931 fi
12932 elif test $build != $host && test $have_gcc_for_target = yes; then
12933 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
12934 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12935 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
12936 fi
12937fi
12938if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12939 # Extract the first word of "windmc", so it can be a program name with args.
12940set dummy windmc; ac_word=$2
5213506e
RW
12941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12942$as_echo_n "checking for $ac_word... " >&6; }
12943if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12944 $as_echo_n "(cached) " >&6
901119ae
KT
12945else
12946 case $WINDMC_FOR_TARGET in
12947 [\\/]* | ?:[\\/]*)
12948 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12949 ;;
12950 *)
12951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12952for as_dir in $gcc_cv_tool_dirs
12953do
12954 IFS=$as_save_IFS
12955 test -z "$as_dir" && as_dir=.
5213506e
RW
12956 for ac_exec_ext in '' $ac_executable_extensions; do
12957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12958 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12960 break 2
12961 fi
12962done
5213506e
RW
12963 done
12964IFS=$as_save_IFS
901119ae
KT
12965
12966 ;;
12967esac
12968fi
12969WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 12970if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12972$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12973else
5213506e
RW
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12975$as_echo "no" >&6; }
901119ae
KT
12976fi
12977
5213506e 12978
901119ae
KT
12979fi
12980if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12981
12982
12983if test -n "$WINDMC_FOR_TARGET"; then
12984 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12985elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12986 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12987fi
12988
12989if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12990 for ncn_progname in windmc; do
12991 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12992set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12994$as_echo_n "checking for $ac_word... " >&6; }
12995if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12996 $as_echo_n "(cached) " >&6
901119ae
KT
12997else
12998 if test -n "$WINDMC_FOR_TARGET"; then
12999 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13000else
13001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002for as_dir in $PATH
13003do
13004 IFS=$as_save_IFS
13005 test -z "$as_dir" && as_dir=.
5213506e
RW
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13008 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13010 break 2
13011 fi
13012done
5213506e
RW
13013 done
13014IFS=$as_save_IFS
901119ae
KT
13015
13016fi
13017fi
13018WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13019if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13021$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13022else
5213506e
RW
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024$as_echo "no" >&6; }
901119ae
KT
13025fi
13026
5213506e 13027
901119ae
KT
13028 done
13029fi
13030
13031if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13032 for ncn_progname in windmc; do
5213506e
RW
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13034$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13035 if test -x $with_build_time_tools/${ncn_progname}; then
13036 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13038$as_echo "yes" >&6; }
901119ae
KT
13039 break
13040 else
5213506e
RW
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042$as_echo "no" >&6; }
901119ae
KT
13043 fi
13044 done
13045fi
13046
13047if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13048 for ncn_progname in windmc; do
13049 if test -n "$ncn_target_tool_prefix"; then
13050 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13051set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13053$as_echo_n "checking for $ac_word... " >&6; }
13054if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13055 $as_echo_n "(cached) " >&6
901119ae
KT
13056else
13057 if test -n "$WINDMC_FOR_TARGET"; then
13058 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13059else
13060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13061for as_dir in $PATH
13062do
13063 IFS=$as_save_IFS
13064 test -z "$as_dir" && as_dir=.
5213506e
RW
13065 for ac_exec_ext in '' $ac_executable_extensions; do
13066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13067 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13069 break 2
13070 fi
13071done
5213506e
RW
13072 done
13073IFS=$as_save_IFS
901119ae
KT
13074
13075fi
13076fi
13077WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13078if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13080$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13081else
5213506e
RW
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13083$as_echo "no" >&6; }
901119ae
KT
13084fi
13085
5213506e 13086
901119ae
KT
13087 fi
13088 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13090set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13092$as_echo_n "checking for $ac_word... " >&6; }
13093if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13094 $as_echo_n "(cached) " >&6
901119ae
KT
13095else
13096 if test -n "$WINDMC_FOR_TARGET"; then
13097 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13098else
13099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13100for as_dir in $PATH
13101do
13102 IFS=$as_save_IFS
13103 test -z "$as_dir" && as_dir=.
5213506e
RW
13104 for ac_exec_ext in '' $ac_executable_extensions; do
13105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13106 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13108 break 2
13109 fi
13110done
5213506e
RW
13111 done
13112IFS=$as_save_IFS
901119ae
KT
13113
13114fi
13115fi
13116WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13117if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13119$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13120else
5213506e
RW
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13122$as_echo "no" >&6; }
901119ae
KT
13123fi
13124
5213506e 13125
901119ae
KT
13126 fi
13127 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13128 done
13129fi
13130
13131if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13132 set dummy windmc
13133 if test $build = $target ; then
13134 WINDMC_FOR_TARGET="$2"
13135 else
13136 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13137 fi
1c00b503
PB
13138else
13139 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13140fi
13141
13142else
13143 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13144fi
13145
13146
2abefe3d
PB
13147RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13148
5213506e
RW
13149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13150$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13151if test "x${build}" != "x${host}" ; then
e8b05380
PB
13152 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13153 # We already found the complete path
172e41aa 13154 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13156$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13157 else
13158 # Canadian cross, just use what we found
5213506e
RW
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13160$as_echo "pre-installed" >&6; }
e8b05380 13161 fi
2abefe3d
PB
13162else
13163 ok=yes
13164 case " ${configdirs} " in
13165 *" binutils "*) ;;
13166 *) ok=no ;;
13167 esac
1c710c3c 13168
2abefe3d
PB
13169 if test $ok = yes; then
13170 # An in-tree tool is available and we can use it
13171 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13173$as_echo "just compiled" >&6; }
e8b05380
PB
13174 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13175 # We already found the complete path
172e41aa 13176 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13178$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13179 elif test "x$target" = "x$host"; then
13180 # We can use an host tool
13181 AR_FOR_TARGET='$(AR)'
5213506e
RW
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13183$as_echo "host tool" >&6; }
2abefe3d
PB
13184 else
13185 # We need a cross tool
5213506e
RW
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13187$as_echo "pre-installed" >&6; }
2abefe3d
PB
13188 fi
13189fi
0b0dc272 13190
5213506e
RW
13191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13192$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13193if test "x${build}" != "x${host}" ; then
e8b05380
PB
13194 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13195 # We already found the complete path
172e41aa 13196 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13198$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13199 else
13200 # Canadian cross, just use what we found
5213506e
RW
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13202$as_echo "pre-installed" >&6; }
e8b05380 13203 fi
2abefe3d
PB
13204else
13205 ok=yes
13206 case " ${configdirs} " in
13207 *" gas "*) ;;
13208 *) ok=no ;;
13209 esac
1c710c3c 13210
2abefe3d
PB
13211 if test $ok = yes; then
13212 # An in-tree tool is available and we can use it
13213 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13215$as_echo "just compiled" >&6; }
e8b05380
PB
13216 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13217 # We already found the complete path
172e41aa 13218 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13220$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13221 elif test "x$target" = "x$host"; then
13222 # We can use an host tool
13223 AS_FOR_TARGET='$(AS)'
5213506e
RW
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13225$as_echo "host tool" >&6; }
2abefe3d
PB
13226 else
13227 # We need a cross tool
5213506e
RW
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13229$as_echo "pre-installed" >&6; }
2abefe3d
PB
13230 fi
13231fi
0b0dc272 13232
5213506e
RW
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13234$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13235if test "x${build}" != "x${host}" ; then
e8b05380
PB
13236 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13237 # We already found the complete path
172e41aa 13238 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13240$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13241 else
13242 # Canadian cross, just use what we found
5213506e
RW
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13244$as_echo "pre-installed" >&6; }
e8b05380 13245 fi
2abefe3d
PB
13246else
13247 ok=yes
13248 case " ${configdirs} " in
13249 *" gcc "*) ;;
13250 *) ok=no ;;
13251 esac
1c710c3c 13252
2abefe3d
PB
13253 if test $ok = yes; then
13254 # An in-tree tool is available and we can use it
13255 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13257$as_echo "just compiled" >&6; }
e8b05380
PB
13258 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13259 # We already found the complete path
172e41aa 13260 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13262$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13263 elif test "x$target" = "x$host"; then
13264 # We can use an host tool
13265 CC_FOR_TARGET='$(CC)'
5213506e
RW
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13267$as_echo "host tool" >&6; }
2abefe3d
PB
13268 else
13269 # We need a cross tool
5213506e
RW
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13271$as_echo "pre-installed" >&6; }
2abefe3d
PB
13272 fi
13273fi
0b0dc272 13274
5213506e
RW
13275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13276$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13277if test "x${build}" != "x${host}" ; then
e8b05380
PB
13278 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13279 # We already found the complete path
172e41aa 13280 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13282$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13283 else
13284 # Canadian cross, just use what we found
5213506e
RW
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13286$as_echo "pre-installed" >&6; }
e8b05380 13287 fi
2abefe3d
PB
13288else
13289 ok=yes
13290 case " ${configdirs} " in
13291 *" gcc "*) ;;
13292 *) ok=no ;;
13293 esac
13294 case ,${enable_languages}, in
13295 *,c++,*) ;;
13296 *) ok=no ;;
13297 esac
13298 if test $ok = yes; then
13299 # An in-tree tool is available and we can use it
9aff220f 13300 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
13301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13302$as_echo "just compiled" >&6; }
e8b05380
PB
13303 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13304 # We already found the complete path
172e41aa 13305 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13307$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13308 elif test "x$target" = "x$host"; then
13309 # We can use an host tool
13310 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13312$as_echo "host tool" >&6; }
2abefe3d
PB
13313 else
13314 # We need a cross tool
5213506e
RW
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13316$as_echo "pre-installed" >&6; }
2abefe3d
PB
13317 fi
13318fi
0b0dc272 13319
5213506e
RW
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13321$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13322if test "x${build}" != "x${host}" ; then
e8b05380
PB
13323 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13324 # We already found the complete path
172e41aa 13325 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13327$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13328 else
13329 # Canadian cross, just use what we found
5213506e
RW
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13331$as_echo "pre-installed" >&6; }
e8b05380 13332 fi
2abefe3d
PB
13333else
13334 ok=yes
13335 case " ${configdirs} " in
13336 *" gcc "*) ;;
13337 *) ok=no ;;
13338 esac
13339 case ,${enable_languages}, in
13340 *,c++,*) ;;
13341 *) ok=no ;;
13342 esac
13343 if test $ok = yes; then
13344 # An in-tree tool is available and we can use it
13345 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
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13347$as_echo "just compiled" >&6; }
e8b05380
PB
13348 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13349 # We already found the complete path
172e41aa 13350 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13352$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13353 elif test "x$target" = "x$host"; then
13354 # We can use an host tool
13355 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13357$as_echo "host tool" >&6; }
2abefe3d
PB
13358 else
13359 # We need a cross tool
5213506e
RW
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13361$as_echo "pre-installed" >&6; }
2abefe3d
PB
13362 fi
13363fi
0b0dc272 13364
5213506e
RW
13365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13366$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13367if test "x${build}" != "x${host}" ; then
e8b05380
PB
13368 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13369 # We already found the complete path
172e41aa 13370 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13372$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13373 else
13374 # Canadian cross, just use what we found
5213506e
RW
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13376$as_echo "pre-installed" >&6; }
e8b05380 13377 fi
2abefe3d
PB
13378else
13379 ok=yes
13380 case " ${configdirs} " in
13381 *" binutils "*) ;;
13382 *) ok=no ;;
13383 esac
1c710c3c 13384
2abefe3d
PB
13385 if test $ok = yes; then
13386 # An in-tree tool is available and we can use it
13387 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13389$as_echo "just compiled" >&6; }
e8b05380
PB
13390 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13391 # We already found the complete path
172e41aa 13392 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13394$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13395 elif test "x$target" = "x$host"; then
13396 # We can use an host tool
13397 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13399$as_echo "host tool" >&6; }
2abefe3d
PB
13400 else
13401 # We need a cross tool
5213506e
RW
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13403$as_echo "pre-installed" >&6; }
2abefe3d
PB
13404 fi
13405fi
0b0dc272 13406
5213506e
RW
13407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13408$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13409if test "x${build}" != "x${host}" ; then
e8b05380
PB
13410 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13411 # We already found the complete path
172e41aa 13412 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13414$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13415 else
13416 # Canadian cross, just use what we found
5213506e
RW
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13418$as_echo "pre-installed" >&6; }
e8b05380 13419 fi
2abefe3d
PB
13420else
13421 ok=yes
13422 case " ${configdirs} " in
13423 *" gcc "*) ;;
13424 *) ok=no ;;
13425 esac
1c710c3c 13426
2abefe3d
PB
13427 if test $ok = yes; then
13428 # An in-tree tool is available and we can use it
13429 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13431$as_echo "just compiled" >&6; }
e8b05380
PB
13432 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13433 # We already found the complete path
172e41aa 13434 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13436$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13437 elif test "x$target" = "x$host"; then
13438 # We can use an host tool
13439 GCC_FOR_TARGET='$()'
5213506e
RW
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13441$as_echo "host tool" >&6; }
2abefe3d
PB
13442 else
13443 # We need a cross tool
5213506e
RW
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13445$as_echo "pre-installed" >&6; }
2abefe3d
PB
13446 fi
13447fi
0b0dc272 13448
5213506e
RW
13449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13450$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13451if test "x${build}" != "x${host}" ; then
e8b05380
PB
13452 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13453 # We already found the complete path
172e41aa 13454 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13456$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13457 else
13458 # Canadian cross, just use what we found
5213506e
RW
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13460$as_echo "pre-installed" >&6; }
e8b05380 13461 fi
2abefe3d
PB
13462else
13463 ok=yes
13464 case " ${configdirs} " in
13465 *" gcc "*) ;;
13466 *) ok=no ;;
13467 esac
13468 case ,${enable_languages}, in
13469 *,java,*) ;;
13470 *) ok=no ;;
13471 esac
13472 if test $ok = yes; then
13473 # An in-tree tool is available and we can use it
13474 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13476$as_echo "just compiled" >&6; }
e8b05380
PB
13477 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13478 # We already found the complete path
172e41aa 13479 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13481$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13482 elif test "x$target" = "x$host"; then
13483 # We can use an host tool
13484 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13486$as_echo "host tool" >&6; }
2abefe3d
PB
13487 else
13488 # We need a cross tool
5213506e
RW
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13490$as_echo "pre-installed" >&6; }
2abefe3d
PB
13491 fi
13492fi
0b0dc272 13493
5213506e
RW
13494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13495$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13496if test "x${build}" != "x${host}" ; then
e8b05380
PB
13497 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13498 # We already found the complete path
172e41aa 13499 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13501$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13502 else
13503 # Canadian cross, just use what we found
5213506e
RW
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13505$as_echo "pre-installed" >&6; }
e8b05380 13506 fi
2abefe3d
PB
13507else
13508 ok=yes
13509 case " ${configdirs} " in
13510 *" gcc "*) ;;
13511 *) ok=no ;;
13512 esac
13513 case ,${enable_languages}, in
13514 *,fortran,*) ;;
13515 *) ok=no ;;
13516 esac
13517 if test $ok = yes; then
13518 # An in-tree tool is available and we can use it
13519 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13521$as_echo "just compiled" >&6; }
e8b05380
PB
13522 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13523 # We already found the complete path
172e41aa 13524 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13526$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13527 elif test "x$target" = "x$host"; then
13528 # We can use an host tool
13529 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13531$as_echo "host tool" >&6; }
2abefe3d
PB
13532 else
13533 # We need a cross tool
5213506e
RW
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13535$as_echo "pre-installed" >&6; }
2abefe3d
PB
13536 fi
13537fi
0b0dc272 13538
632e2a07
ILT
13539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13540$as_echo_n "checking where to find the target gccgo... " >&6; }
13541if test "x${build}" != "x${host}" ; then
13542 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13543 # We already found the complete path
13544 ac_dir=`dirname $GOC_FOR_TARGET`
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13546$as_echo "pre-installed in $ac_dir" >&6; }
13547 else
13548 # Canadian cross, just use what we found
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13550$as_echo "pre-installed" >&6; }
13551 fi
13552else
13553 ok=yes
13554 case " ${configdirs} " in
13555 *" gcc "*) ;;
13556 *) ok=no ;;
13557 esac
13558 case ,${enable_languages}, in
13559 *,go,*) ;;
13560 *) ok=no ;;
13561 esac
13562 if test $ok = yes; then
13563 # An in-tree tool is available and we can use it
13564 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13566$as_echo "just compiled" >&6; }
13567 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13568 # We already found the complete path
13569 ac_dir=`dirname $GOC_FOR_TARGET`
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13571$as_echo "pre-installed in $ac_dir" >&6; }
13572 elif test "x$target" = "x$host"; then
13573 # We can use an host tool
13574 GOC_FOR_TARGET='$(GOC)'
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13576$as_echo "host tool" >&6; }
13577 else
13578 # We need a cross tool
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13580$as_echo "pre-installed" >&6; }
13581 fi
13582fi
13583
5213506e
RW
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13585$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13586if test "x${build}" != "x${host}" ; then
e8b05380
PB
13587 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13588 # We already found the complete path
172e41aa 13589 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13591$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13592 else
13593 # Canadian cross, just use what we found
5213506e
RW
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13595$as_echo "pre-installed" >&6; }
e8b05380 13596 fi
2abefe3d
PB
13597else
13598 ok=yes
13599 case " ${configdirs} " in
13600 *" ld "*) ;;
13601 *) ok=no ;;
13602 esac
1c710c3c 13603
2abefe3d
PB
13604 if test $ok = yes; then
13605 # An in-tree tool is available and we can use it
13606 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13608$as_echo "just compiled" >&6; }
e8b05380
PB
13609 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13610 # We already found the complete path
172e41aa 13611 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13613$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13614 elif test "x$target" = "x$host"; then
13615 # We can use an host tool
13616 LD_FOR_TARGET='$(LD)'
5213506e
RW
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13618$as_echo "host tool" >&6; }
2abefe3d
PB
13619 else
13620 # We need a cross tool
5213506e
RW
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13622$as_echo "pre-installed" >&6; }
2abefe3d
PB
13623 fi
13624fi
0b0dc272 13625
5213506e
RW
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13627$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13628if test "x${build}" != "x${host}" ; then
e8b05380
PB
13629 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13630 # We already found the complete path
172e41aa 13631 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13633$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13634 else
13635 # Canadian cross, just use what we found
5213506e
RW
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13637$as_echo "pre-installed" >&6; }
e8b05380 13638 fi
2abefe3d 13639else
e8b05380
PB
13640 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13641 # We already found the complete path
172e41aa 13642 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13644$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 13645 elif test "x$target" = "x$host"; then
2abefe3d
PB
13646 # We can use an host tool
13647 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13649$as_echo "host tool" >&6; }
2abefe3d
PB
13650 else
13651 # We need a cross tool
5213506e
RW
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13653$as_echo "pre-installed" >&6; }
2abefe3d
PB
13654 fi
13655fi
0b0dc272 13656
5213506e
RW
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13658$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 13659if test "x${build}" != "x${host}" ; then
e8b05380
PB
13660 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13661 # We already found the complete path
172e41aa 13662 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13664$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13665 else
13666 # Canadian cross, just use what we found
5213506e
RW
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13668$as_echo "pre-installed" >&6; }
e8b05380 13669 fi
2abefe3d
PB
13670else
13671 ok=yes
13672 case " ${configdirs} " in
13673 *" binutils "*) ;;
13674 *) ok=no ;;
13675 esac
1c710c3c 13676
2abefe3d
PB
13677 if test $ok = yes; then
13678 # An in-tree tool is available and we can use it
13679 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13681$as_echo "just compiled" >&6; }
e8b05380
PB
13682 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13683 # We already found the complete path
172e41aa 13684 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13686$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13687 elif test "x$target" = "x$host"; then
13688 # We can use an host tool
13689 NM_FOR_TARGET='$(NM)'
5213506e
RW
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13691$as_echo "host tool" >&6; }
2abefe3d
PB
13692 else
13693 # We need a cross tool
5213506e
RW
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13695$as_echo "pre-installed" >&6; }
2abefe3d
PB
13696 fi
13697fi
0b0dc272 13698
5213506e
RW
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13700$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 13701if test "x${build}" != "x${host}" ; then
e8b05380
PB
13702 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13703 # We already found the complete path
172e41aa 13704 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13706$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13707 else
13708 # Canadian cross, just use what we found
5213506e
RW
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13710$as_echo "pre-installed" >&6; }
e8b05380 13711 fi
2abefe3d
PB
13712else
13713 ok=yes
13714 case " ${configdirs} " in
13715 *" binutils "*) ;;
13716 *) ok=no ;;
13717 esac
1c710c3c 13718
2abefe3d
PB
13719 if test $ok = yes; then
13720 # An in-tree tool is available and we can use it
13721 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13723$as_echo "just compiled" >&6; }
e8b05380
PB
13724 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13725 # We already found the complete path
172e41aa 13726 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13728$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13729 elif test "x$target" = "x$host"; then
13730 # We can use an host tool
13731 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13733$as_echo "host tool" >&6; }
2abefe3d
PB
13734 else
13735 # We need a cross tool
5213506e
RW
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13737$as_echo "pre-installed" >&6; }
2abefe3d
PB
13738 fi
13739fi
0b0dc272 13740
5213506e
RW
13741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13742$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 13743if test "x${build}" != "x${host}" ; then
e8b05380
PB
13744 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13745 # We already found the complete path
172e41aa 13746 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13748$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13749 else
13750 # Canadian cross, just use what we found
5213506e
RW
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13752$as_echo "pre-installed" >&6; }
e8b05380 13753 fi
2abefe3d
PB
13754else
13755 ok=yes
13756 case " ${configdirs} " in
13757 *" binutils "*) ;;
13758 *) ok=no ;;
13759 esac
1c710c3c 13760
2abefe3d
PB
13761 if test $ok = yes; then
13762 # An in-tree tool is available and we can use it
13763 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13765$as_echo "just compiled" >&6; }
e8b05380
PB
13766 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13767 # We already found the complete path
172e41aa 13768 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13770$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13771 elif test "x$target" = "x$host"; then
13772 # We can use an host tool
13773 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13775$as_echo "host tool" >&6; }
2abefe3d
PB
13776 else
13777 # We need a cross tool
5213506e
RW
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13779$as_echo "pre-installed" >&6; }
2abefe3d
PB
13780 fi
13781fi
0b0dc272 13782
5213506e
RW
13783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13784$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 13785if test "x${build}" != "x${host}" ; then
e8b05380
PB
13786 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13787 # We already found the complete path
172e41aa 13788 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13790$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13791 else
13792 # Canadian cross, just use what we found
5213506e
RW
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13794$as_echo "pre-installed" >&6; }
e8b05380 13795 fi
2abefe3d
PB
13796else
13797 ok=yes
13798 case " ${configdirs} " in
13799 *" binutils "*) ;;
13800 *) ok=no ;;
13801 esac
1c710c3c 13802
2abefe3d
PB
13803 if test $ok = yes; then
13804 # An in-tree tool is available and we can use it
455c8f48 13805 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13807$as_echo "just compiled" >&6; }
e8b05380
PB
13808 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13809 # We already found the complete path
172e41aa 13810 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13812$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13813 elif test "x$target" = "x$host"; then
13814 # We can use an host tool
13815 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13817$as_echo "host tool" >&6; }
2abefe3d
PB
13818 else
13819 # We need a cross tool
5213506e
RW
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13821$as_echo "pre-installed" >&6; }
2abefe3d
PB
13822 fi
13823fi
0b0dc272 13824
5213506e
RW
13825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13826$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 13827if test "x${build}" != "x${host}" ; then
e8b05380
PB
13828 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13829 # We already found the complete path
172e41aa 13830 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13832$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13833 else
13834 # Canadian cross, just use what we found
5213506e
RW
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13836$as_echo "pre-installed" >&6; }
e8b05380 13837 fi
2abefe3d
PB
13838else
13839 ok=yes
13840 case " ${configdirs} " in
13841 *" binutils "*) ;;
13842 *) ok=no ;;
13843 esac
1c710c3c 13844
2abefe3d
PB
13845 if test $ok = yes; then
13846 # An in-tree tool is available and we can use it
13847 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13849$as_echo "just compiled" >&6; }
e8b05380
PB
13850 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13851 # We already found the complete path
172e41aa 13852 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13854$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13855 elif test "x$target" = "x$host"; then
13856 # We can use an host tool
13857 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13859$as_echo "host tool" >&6; }
2abefe3d
PB
13860 else
13861 # We need a cross tool
5213506e
RW
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13863$as_echo "pre-installed" >&6; }
2abefe3d 13864 fi
671aa708 13865fi
be912515 13866
5213506e
RW
13867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13868$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
13869if test "x${build}" != "x${host}" ; then
13870 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13871 # We already found the complete path
13872 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13874$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13875 else
13876 # Canadian cross, just use what we found
5213506e
RW
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13878$as_echo "pre-installed" >&6; }
901119ae
KT
13879 fi
13880else
13881 ok=yes
13882 case " ${configdirs} " in
13883 *" binutils "*) ;;
13884 *) ok=no ;;
13885 esac
13886
13887 if test $ok = yes; then
13888 # An in-tree tool is available and we can use it
13889 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13891$as_echo "just compiled" >&6; }
901119ae
KT
13892 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13893 # We already found the complete path
13894 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13896$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13897 elif test "x$target" = "x$host"; then
13898 # We can use an host tool
13899 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13901$as_echo "host tool" >&6; }
901119ae
KT
13902 else
13903 # We need a cross tool
5213506e
RW
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13905$as_echo "pre-installed" >&6; }
901119ae
KT
13906 fi
13907fi
13908
be912515
NN
13909
13910
2abefe3d 13911
0b0dc272 13912
671aa708
NN
13913# Certain tools may need extra flags.
13914AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13915RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13916NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13917
2abefe3d
PB
13918# When building target libraries, except in a Canadian cross, we use
13919# the same toolchain as the compiler we just built.
13920COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13921COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13922COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13923if test $host = $build; then
13924 case " $configdirs " in
13925 *" gcc "*)
13926 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13927 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13928 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13929 ;;
13930 esac
13931fi
13932
13933
13934
13935
13936
5213506e
RW
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13938$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13939# Check whether --enable-maintainer-mode was given.
13940if test "${enable_maintainer_mode+set}" = set; then :
13941 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
13942else
13943 USE_MAINTAINER_MODE=no
5213506e
RW
13944fi
13945
13946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13947$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
13948
13949
13950if test "$USE_MAINTAINER_MODE" = yes; then
13951 MAINTAINER_MODE_TRUE=
13952 MAINTAINER_MODE_FALSE='#'
13953else
13954 MAINTAINER_MODE_TRUE='#'
13955 MAINTAINER_MODE_FALSE=
1c710c3c 13956fi
ee03dc5e
AO
13957MAINT=$MAINTAINER_MODE_TRUE
13958
2805b53a
NN
13959# ---------------------
13960# GCC bootstrap support
13961# ---------------------
13962
13963# Stage specific cflags for build.
13964stage1_cflags="-g"
13965case $build in
13966 vax-*-*)
13967 case ${GCC} in
13968 yes) stage1_cflags="-g -Wa,-J" ;;
13969 *) stage1_cflags="-g -J" ;;
13970 esac ;;
2805b53a
NN
13971esac
13972
0b50988a 13973# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 13974if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
13975 saved_CFLAGS="$CFLAGS"
13976
13977 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13978 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13980$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
13982/* end confdefs.h. */
13983
9cc1244e
JJ
13984#if (__GNUC__ < 3) \
13985 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13986 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13987#error http://gcc.gnu.org/PR29382
13988#endif
13989
1c710c3c
DJ
13990int
13991main ()
13992{
13993
13994 ;
13995 return 0;
13996}
13997_ACEOF
5213506e
RW
13998if ac_fn_c_try_compile "$LINENO"; then :
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14000$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 14001else
5213506e
RW
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14003$as_echo "no" >&6; }
1c710c3c 14004fi
5213506e 14005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
14006
14007 CFLAGS="$saved_CFLAGS"
14008fi
14009
14010
2805b53a 14011
8efea775 14012# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14013# Check whether --enable-stage1-checking was given.
14014if test "${enable_stage1_checking+set}" = set; then :
14015 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14016else
e643dc23 14017 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14018 stage1_checking=--enable-checking=yes,types
8efea775 14019else
e643dc23 14020 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14021fi
5213506e 14022fi
8efea775
PB
14023
14024
2aeb72e9 14025
5213506e
RW
14026# Enable -Werror in bootstrap stage2 and later.
14027# Check whether --enable-werror was given.
14028if test "${enable_werror+set}" = set; then :
14029 enableval=$enable_werror;
2805b53a 14030else
416cfb5e 14031 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14032 enable_werror=yes
88fceb68
PB
14033else
14034 enable_werror=no
14035fi
5213506e
RW
14036fi
14037
09a9c095
NN
14038case ${enable_werror} in
14039 yes) stage2_werror_flag="--enable-werror-always" ;;
14040 *) stage2_werror_flag="" ;;
2805b53a
NN
14041esac
14042
14043
f2689b09
SE
14044# Specify what files to not compare during bootstrap.
14045
14046compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14047case "$target" in
14048 hppa*64*-*-hpux*) ;;
14049 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14050esac
f61428ed
AO
14051case " $configdirs " in
14052*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14053esac
f2689b09
SE
14054
14055
5213506e
RW
14056ac_config_files="$ac_config_files Makefile"
14057
1c710c3c 14058cat >confcache <<\_ACEOF
671aa708
NN
14059# This file is a shell script that caches the results of configure
14060# tests run on this system so they can be shared between configure
1c710c3c
DJ
14061# scripts and configure runs, see configure's option --config-cache.
14062# It is not useful on other systems. If it contains results you don't
14063# want to keep, you may remove or edit it.
671aa708 14064#
1c710c3c
DJ
14065# config.status only pays attention to the cache file if you give it
14066# the --recheck option to rerun configure.
671aa708 14067#
1c710c3c
DJ
14068# `ac_cv_env_foo' variables (set or unset) will be overridden when
14069# loading this file, other *unset* `ac_cv_foo' will be assigned the
14070# following values.
14071
14072_ACEOF
14073
671aa708
NN
14074# The following way of writing the cache mishandles newlines in values,
14075# but we know of no workaround that is simple, portable, and efficient.
5213506e 14076# So, we kill variables containing newlines.
671aa708
NN
14077# Ultrix sh set writes to stderr and can't be redirected directly,
14078# and sets the high bit in the cache file unless we assign to the vars.
5213506e
RW
14079(
14080 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14081 eval ac_val=\$$ac_var
14082 case $ac_val in #(
14083 *${as_nl}*)
14084 case $ac_var in #(
14085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14086$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14087 esac
14088 case $ac_var in #(
14089 _ | IFS | as_nl) ;; #(
14090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14091 *) { eval $ac_var=; unset $ac_var;} ;;
14092 esac ;;
14093 esac
14094 done
14095
1c710c3c 14096 (set) 2>&1 |
5213506e
RW
14097 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14098 *${as_nl}ac_space=\ *)
14099 # `set' does not quote correctly, so add quotes: double-quote
14100 # substitution turns \\\\ into \\, and sed turns \\ into \.
1c710c3c
DJ
14101 sed -n \
14102 "s/'/'\\\\''/g;
14103 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5213506e 14104 ;; #(
1c710c3c
DJ
14105 *)
14106 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213506e 14107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 14108 ;;
5213506e
RW
14109 esac |
14110 sort
14111) |
1c710c3c 14112 sed '
5213506e 14113 /^ac_cv_env_/b end
1c710c3c 14114 t clear
5213506e 14115 :clear
1c710c3c
DJ
14116 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14117 t end
5213506e
RW
14118 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14119 :end' >>confcache
14120if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14121 if test -w "$cache_file"; then
14122 test "x$cache_file" != "x/dev/null" &&
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14124$as_echo "$as_me: updating cache $cache_file" >&6;}
1c710c3c 14125 cat confcache >$cache_file
671aa708 14126 else
5213506e
RW
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14128$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
671aa708 14129 fi
4977bab6 14130fi
671aa708 14131rm -f confcache
79c06341 14132
671aa708
NN
14133test "x$prefix" = xNONE && prefix=$ac_default_prefix
14134# Let make expand exec_prefix.
14135test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4e77e8f1 14136
671aa708
NN
14137# Transform confdefs.h into DEFS.
14138# Protect against shell expansion while executing Makefile rules.
14139# Protect against Makefile macro expansion.
1c710c3c
DJ
14140#
14141# If the first sed substitution is executed (which looks for macros that
5213506e 14142# take arguments), then branch to the quote section. Otherwise,
1c710c3c 14143# look for a macro that doesn't take arguments.
5213506e
RW
14144ac_script='
14145:mline
14146/\\$/{
14147 N
14148 s,\\\n,,
14149 b mline
14150}
1c710c3c 14151t clear
5213506e
RW
14152:clear
14153s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14154t quote
5213506e 14155s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
1c710c3c 14156t quote
5213506e
RW
14157b any
14158:quote
14159s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14160s/\[/\\&/g
14161s/\]/\\&/g
14162s/\$/$$/g
14163H
14164:any
14165${
14166 g
14167 s/^\n//
14168 s/\n/ /g
14169 p
14170}
14171'
14172DEFS=`sed -n "$ac_script" confdefs.h`
1c710c3c
DJ
14173
14174
14175ac_libobjs=
14176ac_ltlibobjs=
14177for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14178 # 1. Remove the extension, and $U if already installed.
5213506e
RW
14179 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14180 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14181 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14182 # will be set to the directory where LIBOBJS objects are built.
14183 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14184 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
1c710c3c
DJ
14185done
14186LIBOBJS=$ac_libobjs
fb0103e5 14187
1c710c3c 14188LTLIBOBJS=$ac_ltlibobjs
0b0dc272 14189
af71363e 14190
1c710c3c
DJ
14191
14192: ${CONFIG_STATUS=./config.status}
5213506e 14193ac_write_fail=0
1c710c3c
DJ
14194ac_clean_files_save=$ac_clean_files
14195ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5213506e
RW
14196{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14197$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14198as_write_fail=0
14199cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
1c710c3c
DJ
14200#! $SHELL
14201# Generated by $as_me.
671aa708 14202# Run this file to recreate the current configuration.
671aa708 14203# Compiler output produced by configure, useful for debugging
1c710c3c 14204# configure, is in config.log if it exists.
0b0dc272 14205
1c710c3c
DJ
14206debug=false
14207ac_cs_recheck=false
14208ac_cs_silent=false
1c710c3c 14209
5213506e
RW
14210SHELL=\${CONFIG_SHELL-$SHELL}
14211export SHELL
14212_ASEOF
14213cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14214## -------------------- ##
14215## M4sh Initialization. ##
14216## -------------------- ##
14217
14218# Be more Bourne compatible
14219DUALCASE=1; export DUALCASE # for MKS sh
14220if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
1c710c3c
DJ
14221 emulate sh
14222 NULLCMD=:
5213506e 14223 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
1c710c3c
DJ
14224 # is contrary to our usage. Disable this feature.
14225 alias -g '${1+"$@"}'='"$@"'
5213506e
RW
14226 setopt NO_GLOB_SUBST
14227else
14228 case `(set -o) 2>/dev/null` in #(
14229 *posix*) :
14230 set -o posix ;; #(
14231 *) :
14232 ;;
14233esac
1c710c3c 14234fi
1c710c3c 14235
5213506e
RW
14236
14237as_nl='
14238'
14239export as_nl
14240# Printing a long string crashes Solaris 7 /usr/bin/printf.
14241as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14242as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14243as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14244# Prefer a ksh shell builtin over an external printf program on Solaris,
14245# but without wasting forks for bash or zsh.
14246if test -z "$BASH_VERSION$ZSH_VERSION" \
14247 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14248 as_echo='print -r --'
14249 as_echo_n='print -rn --'
14250elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14251 as_echo='printf %s\n'
14252 as_echo_n='printf %s'
14253else
14254 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14255 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14256 as_echo_n='/usr/ucb/echo -n'
14257 else
14258 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14259 as_echo_n_body='eval
14260 arg=$1;
14261 case $arg in #(
14262 *"$as_nl"*)
14263 expr "X$arg" : "X\\(.*\\)$as_nl";
14264 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14265 esac;
14266 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14267 '
14268 export as_echo_n_body
14269 as_echo_n='sh -c $as_echo_n_body as_echo'
14270 fi
14271 export as_echo_body
14272 as_echo='sh -c $as_echo_body as_echo'
1c710c3c
DJ
14273fi
14274
5213506e
RW
14275# The user is always right.
14276if test "${PATH_SEPARATOR+set}" != set; then
14277 PATH_SEPARATOR=:
14278 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14279 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14280 PATH_SEPARATOR=';'
14281 }
14282fi
14283
14284
14285# IFS
14286# We need space, tab and new line, in precisely that order. Quoting is
14287# there to prevent editors from complaining about space-tab.
14288# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14289# splitting by setting IFS to empty value.)
14290IFS=" "" $as_nl"
14291
14292# Find who we are. Look in the path if we contain no directory separator.
14293case $0 in #((
14294 *[\\/]* ) as_myself=$0 ;;
14295 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14296for as_dir in $PATH
14297do
14298 IFS=$as_save_IFS
14299 test -z "$as_dir" && as_dir=.
14300 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14301 done
14302IFS=$as_save_IFS
14303
14304 ;;
14305esac
14306# We did not find ourselves, most probably we were run as `sh COMMAND'
14307# in which case we are not to be found in the path.
14308if test "x$as_myself" = x; then
14309 as_myself=$0
14310fi
14311if test ! -f "$as_myself"; then
14312 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14313 exit 1
14314fi
1c710c3c 14315
5213506e
RW
14316# Unset variables that we do not need and which cause bugs (e.g. in
14317# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14318# suppresses any "Segmentation fault" message there. '((' could
14319# trigger a bug in pdksh 5.2.14.
14320for as_var in BASH_ENV ENV MAIL MAILPATH
14321do eval test x\${$as_var+set} = xset \
14322 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14323done
1c710c3c
DJ
14324PS1='$ '
14325PS2='> '
14326PS4='+ '
14327
14328# NLS nuisances.
5213506e
RW
14329LC_ALL=C
14330export LC_ALL
14331LANGUAGE=C
14332export LANGUAGE
14333
14334# CDPATH.
14335(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14336
14337
14338# as_fn_error ERROR [LINENO LOG_FD]
14339# ---------------------------------
14340# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14341# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14342# script with status $?, using 1 if that was 0.
14343as_fn_error ()
14344{
14345 as_status=$?; test $as_status -eq 0 && as_status=1
14346 if test "$3"; then
14347 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14348 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
1c710c3c 14349 fi
5213506e
RW
14350 $as_echo "$as_me: error: $1" >&2
14351 as_fn_exit $as_status
14352} # as_fn_error
14353
14354
14355# as_fn_set_status STATUS
14356# -----------------------
14357# Set $? to STATUS, without forking.
14358as_fn_set_status ()
14359{
14360 return $1
14361} # as_fn_set_status
14362
14363# as_fn_exit STATUS
14364# -----------------
14365# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14366as_fn_exit ()
14367{
14368 set +e
14369 as_fn_set_status $1
14370 exit $1
14371} # as_fn_exit
14372
14373# as_fn_unset VAR
14374# ---------------
14375# Portably unset VAR.
14376as_fn_unset ()
14377{
14378 { eval $1=; unset $1;}
14379}
14380as_unset=as_fn_unset
14381# as_fn_append VAR VALUE
14382# ----------------------
14383# Append the text in VALUE to the end of the definition contained in VAR. Take
14384# advantage of any shell optimizations that allow amortized linear growth over
14385# repeated appends, instead of the typical quadratic growth present in naive
14386# implementations.
14387if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14388 eval 'as_fn_append ()
14389 {
14390 eval $1+=\$2
14391 }'
14392else
14393 as_fn_append ()
14394 {
14395 eval $1=\$$1\$2
14396 }
14397fi # as_fn_append
14398
14399# as_fn_arith ARG...
14400# ------------------
14401# Perform arithmetic evaluation on the ARGs, and store the result in the
14402# global $as_val. Take advantage of shells that can avoid forks. The arguments
14403# must be portable across $(()) and expr.
14404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14405 eval 'as_fn_arith ()
14406 {
14407 as_val=$(( $* ))
14408 }'
14409else
14410 as_fn_arith ()
14411 {
14412 as_val=`expr "$@" || test $? -eq 1`
14413 }
14414fi # as_fn_arith
14415
1c710c3c 14416
5213506e
RW
14417if expr a : '\(a\)' >/dev/null 2>&1 &&
14418 test "X`expr 00001 : '.*\(...\)'`" = X001; then
1c710c3c
DJ
14419 as_expr=expr
14420else
14421 as_expr=false
14422fi
14423
5213506e 14424if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1c710c3c
DJ
14425 as_basename=basename
14426else
14427 as_basename=false
14428fi
14429
5213506e
RW
14430if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14431 as_dirname=dirname
14432else
14433 as_dirname=false
14434fi
1c710c3c 14435
5213506e 14436as_me=`$as_basename -- "$0" ||
1c710c3c
DJ
14437$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14438 X"$0" : 'X\(//\)$' \| \
5213506e
RW
14439 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14440$as_echo X/"$0" |
14441 sed '/^.*\/\([^/][^/]*\)\/*$/{
14442 s//\1/
14443 q
14444 }
14445 /^X\/\(\/\/\)$/{
14446 s//\1/
14447 q
14448 }
14449 /^X\/\(\/\).*/{
14450 s//\1/
14451 q
14452 }
14453 s/.*/./; q'`
2aeb72e9 14454
2aeb72e9
DD
14455# Avoid depending upon Character Ranges.
14456as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14457as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14458as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14459as_cr_digits='0123456789'
14460as_cr_alnum=$as_cr_Letters$as_cr_digits
14461
5213506e
RW
14462ECHO_C= ECHO_N= ECHO_T=
14463case `echo -n x` in #(((((
14464-n*)
14465 case `echo 'xy\c'` in
14466 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14467 xy) ECHO_C='\c';;
14468 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14469 ECHO_T=' ';;
14470 esac;;
14471*)
14472 ECHO_N='-n';;
1c710c3c
DJ
14473esac
14474
5213506e
RW
14475rm -f conf$$ conf$$.exe conf$$.file
14476if test -d conf$$.dir; then
14477 rm -f conf$$.dir/conf$$.file
1c710c3c 14478else
5213506e
RW
14479 rm -f conf$$.dir
14480 mkdir conf$$.dir 2>/dev/null
1c710c3c 14481fi
5213506e
RW
14482if (echo >conf$$.file) 2>/dev/null; then
14483 if ln -s conf$$.file conf$$ 2>/dev/null; then
2aeb72e9 14484 as_ln_s='ln -s'
5213506e
RW
14485 # ... but there are two gotchas:
14486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14488 # In both cases, we have to default to `cp -p'.
14489 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14490 as_ln_s='cp -p'
14491 elif ln conf$$.file conf$$ 2>/dev/null; then
14492 as_ln_s=ln
14493 else
14494 as_ln_s='cp -p'
2aeb72e9 14495 fi
1c710c3c
DJ
14496else
14497 as_ln_s='cp -p'
14498fi
5213506e
RW
14499rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14500rmdir conf$$.dir 2>/dev/null
14501
14502
14503# as_fn_mkdir_p
14504# -------------
14505# Create "$as_dir" as a directory, including parents if necessary.
14506as_fn_mkdir_p ()
14507{
14508
14509 case $as_dir in #(
14510 -*) as_dir=./$as_dir;;
14511 esac
14512 test -d "$as_dir" || eval $as_mkdir_p || {
14513 as_dirs=
14514 while :; do
14515 case $as_dir in #(
14516 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14517 *) as_qdir=$as_dir;;
14518 esac
14519 as_dirs="'$as_qdir' $as_dirs"
14520 as_dir=`$as_dirname -- "$as_dir" ||
14521$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14522 X"$as_dir" : 'X\(//\)[^/]' \| \
14523 X"$as_dir" : 'X\(//\)$' \| \
14524 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14525$as_echo X"$as_dir" |
14526 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14527 s//\1/
14528 q
14529 }
14530 /^X\(\/\/\)[^/].*/{
14531 s//\1/
14532 q
14533 }
14534 /^X\(\/\/\)$/{
14535 s//\1/
14536 q
14537 }
14538 /^X\(\/\).*/{
14539 s//\1/
14540 q
14541 }
14542 s/.*/./; q'`
14543 test -d "$as_dir" && break
14544 done
14545 test -z "$as_dirs" || eval "mkdir $as_dirs"
14546 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14547
1c710c3c 14548
5213506e 14549} # as_fn_mkdir_p
1c710c3c 14550if mkdir -p . 2>/dev/null; then
5213506e 14551 as_mkdir_p='mkdir -p "$as_dir"'
1c710c3c
DJ
14552else
14553 test -d ./-p && rmdir ./-p
14554 as_mkdir_p=false
14555fi
14556
5213506e
RW
14557if test -x / >/dev/null 2>&1; then
14558 as_test_x='test -x'
14559else
14560 if ls -dL / >/dev/null 2>&1; then
14561 as_ls_L_option=L
14562 else
14563 as_ls_L_option=
14564 fi
14565 as_test_x='
14566 eval sh -c '\''
14567 if test -d "$1"; then
14568 test -d "$1/.";
14569 else
14570 case $1 in #(
14571 -*)set "./$1";;
14572 esac;
14573 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14574 ???[sx]*):;;*)false;;esac;fi
14575 '\'' sh
14576 '
14577fi
14578as_executable_p=$as_test_x
1c710c3c
DJ
14579
14580# Sed expression to map a string onto a valid CPP name.
14581as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14582
14583# Sed expression to map a string onto a valid variable name.
14584as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14585
14586
1c710c3c 14587exec 6>&1
5213506e
RW
14588## ----------------------------------- ##
14589## Main body of $CONFIG_STATUS script. ##
14590## ----------------------------------- ##
14591_ASEOF
14592test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14593
14594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14595# Save the log message, to keep $0 and so on meaningful, and to
1c710c3c 14596# report actual input values of CONFIG_FILES etc. instead of their
5213506e
RW
14597# values after options handling.
14598ac_log="
1c710c3c 14599This file was extended by $as_me, which was
5213506e 14600generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
14601
14602 CONFIG_FILES = $CONFIG_FILES
14603 CONFIG_HEADERS = $CONFIG_HEADERS
14604 CONFIG_LINKS = $CONFIG_LINKS
14605 CONFIG_COMMANDS = $CONFIG_COMMANDS
14606 $ $0 $@
14607
5213506e
RW
14608on `(hostname || uname -n) 2>/dev/null | sed 1q`
14609"
14610
1c710c3c
DJ
14611_ACEOF
14612
5213506e
RW
14613case $ac_config_files in *"
14614"*) set x $ac_config_files; shift; ac_config_files=$*;;
14615esac
1c710c3c 14616
2aeb72e9 14617
2aeb72e9 14618
5213506e
RW
14619cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14620# Files that config.status was made for.
14621config_files="$ac_config_files"
1c710c3c 14622
5213506e 14623_ACEOF
2aeb72e9 14624
5213506e 14625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c 14626ac_cs_usage="\
5213506e
RW
14627\`$as_me' instantiates files and other configuration actions
14628from templates according to the current configuration. Unless the files
14629and actions are specified as TAGs, all are instantiated by default.
1c710c3c 14630
5213506e 14631Usage: $0 [OPTION]... [TAG]...
1c710c3c
DJ
14632
14633 -h, --help print this help, then exit
5213506e
RW
14634 -V, --version print version number and configuration settings, then exit
14635 -q, --quiet, --silent
14636 do not print progress messages
1c710c3c
DJ
14637 -d, --debug don't remove temporary files
14638 --recheck update $as_me by reconfiguring in the same conditions
5213506e
RW
14639 --file=FILE[:TEMPLATE]
14640 instantiate the configuration file FILE
1c710c3c
DJ
14641
14642Configuration files:
14643$config_files
14644
5213506e 14645Report bugs to the package provider."
2aeb72e9 14646
5213506e
RW
14647_ACEOF
14648cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c
DJ
14649ac_cs_version="\\
14650config.status
5213506e
RW
14651configured by $0, generated by GNU Autoconf 2.64,
14652 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1c710c3c 14653
5213506e 14654Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
14655This config.status script is free software; the Free Software Foundation
14656gives unlimited permission to copy, distribute and modify it."
5213506e
RW
14657
14658ac_pwd='$ac_pwd'
14659srcdir='$srcdir'
14660INSTALL='$INSTALL'
87264276 14661AWK='$AWK'
5213506e 14662test -n "\$AWK" || AWK=awk
1c710c3c
DJ
14663_ACEOF
14664
5213506e
RW
14665cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14666# The default lists apply if the user does not specify any file.
1c710c3c
DJ
14667ac_need_defaults=:
14668while test $# != 0
a4b9e93e 14669do
1c710c3c
DJ
14670 case $1 in
14671 --*=*)
5213506e
RW
14672 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14673 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
1c710c3c
DJ
14674 ac_shift=:
14675 ;;
5213506e 14676 *)
1c710c3c
DJ
14677 ac_option=$1
14678 ac_optarg=$2
14679 ac_shift=shift
14680 ;;
1c710c3c
DJ
14681 esac
14682
14683 case $ac_option in
14684 # Handling of the options.
671aa708 14685 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1c710c3c 14686 ac_cs_recheck=: ;;
5213506e
RW
14687 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14688 $as_echo "$ac_cs_version"; exit ;;
14689 --debug | --debu | --deb | --de | --d | -d )
1c710c3c
DJ
14690 debug=: ;;
14691 --file | --fil | --fi | --f )
14692 $ac_shift
5213506e
RW
14693 case $ac_optarg in
14694 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14695 esac
14696 as_fn_append CONFIG_FILES " '$ac_optarg'"
2aeb72e9 14697 ac_need_defaults=false;;
5213506e
RW
14698 --he | --h | --help | --hel | -h )
14699 $as_echo "$ac_cs_usage"; exit ;;
1c710c3c
DJ
14700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14701 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14702 ac_cs_silent=: ;;
14703
14704 # This is an error.
5213506e
RW
14705 -*) as_fn_error "unrecognized option: \`$1'
14706Try \`$0 --help' for more information." ;;
1c710c3c 14707
5213506e
RW
14708 *) as_fn_append ac_config_targets " $1"
14709 ac_need_defaults=false ;;
1c710c3c 14710
0b0dc272 14711 esac
1c710c3c 14712 shift
0b0dc272
AM
14713done
14714
1c710c3c 14715ac_configure_extra_args=
0b0dc272 14716
1c710c3c
DJ
14717if $ac_cs_silent; then
14718 exec 6>/dev/null
14719 ac_configure_extra_args="$ac_configure_extra_args --silent"
14720fi
0b0dc272 14721
1c710c3c 14722_ACEOF
5213506e 14723cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
1c710c3c 14724if \$ac_cs_recheck; then
5213506e
RW
14725 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14726 shift
14727 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14728 CONFIG_SHELL='$SHELL'
14729 export CONFIG_SHELL
14730 exec "\$@"
1c710c3c
DJ
14731fi
14732
14733_ACEOF
5213506e
RW
14734cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14735exec 5>>config.log
14736{
14737 echo
14738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14739## Running $as_me. ##
14740_ASBOX
14741 $as_echo "$ac_log"
14742} >&5
1c710c3c 14743
5213506e
RW
14744_ACEOF
14745cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
3e54529c
RW
14746#
14747# INIT-COMMANDS
14748#
14749extrasub_build="$extrasub_build"
14750 extrasub_host="$extrasub_host"
14751 extrasub_target="$extrasub_target"
14752
5213506e 14753_ACEOF
1c710c3c 14754
5213506e 14755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11a67599 14756
5213506e 14757# Handling of arguments.
1c710c3c
DJ
14758for ac_config_target in $ac_config_targets
14759do
5213506e
RW
14760 case $ac_config_target in
14761 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14762
14763 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
1c710c3c
DJ
14764 esac
14765done
14766
5213506e 14767
1c710c3c
DJ
14768# If the user did not use the arguments to specify the items to instantiate,
14769# then the envvar interface is used. Set only those that are not.
14770# We use the long form for the default assignment because of an extremely
14771# bizarre bug on SunOS 4.1.3.
14772if $ac_need_defaults; then
14773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14774fi
14775
14776# Have a temporary directory for convenience. Make it in the build tree
5213506e 14777# simply because there is no reason against having it here, and in addition,
1c710c3c 14778# creating and moving files from /tmp can sometimes cause problems.
5213506e
RW
14779# Hook for its removal unless debugging.
14780# Note that there is a small window in which the directory will not be cleaned:
14781# after its creation but before its name has been assigned to `$tmp'.
1c710c3c
DJ
14782$debug ||
14783{
5213506e
RW
14784 tmp=
14785 trap 'exit_status=$?
14786 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14787' 0
14788 trap 'as_fn_exit 1' 1 2 13 15
1c710c3c 14789}
1c710c3c
DJ
14790# Create a (secure) tmp directory for tmp files.
14791
14792{
5213506e 14793 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
1c710c3c
DJ
14794 test -n "$tmp" && test -d "$tmp"
14795} ||
14796{
5213506e
RW
14797 tmp=./conf$$-$RANDOM
14798 (umask 077 && mkdir "$tmp")
14799} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14800
14801# Set up the scripts for CONFIG_FILES section.
14802# No need to generate them if there are no CONFIG_FILES.
14803# This happens for instance with `./config.status config.h'.
14804if test -n "$CONFIG_FILES"; then
14805
14806if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14807 ac_cs_awk_getline=:
14808 ac_cs_awk_pipe_init=
14809 ac_cs_awk_read_file='
14810 while ((getline aline < (F[key])) > 0)
14811 print(aline)
14812 close(F[key])'
14813 ac_cs_awk_pipe_fini=
14814else
14815 ac_cs_awk_getline=false
14816 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14817 ac_cs_awk_read_file='
14818 print "|#_!!_#|"
14819 print "cat " F[key] " &&"
14820 '$ac_cs_awk_pipe_init
14821 # The final `:' finishes the AND list.
14822 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14823fi
14824ac_cr=`echo X | tr X '\015'`
14825# On cygwin, bash can eat \r inside `` if the user requested igncr.
14826# But we know of no other shell where ac_cr would be empty at this
14827# point, so we can use a bashism as a fallback.
14828if test "x$ac_cr" = x; then
14829 eval ac_cr=\$\'\\r\'
14830fi
14831ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14832if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14833 ac_cs_awk_cr='\r'
14834else
14835 ac_cs_awk_cr=$ac_cr
14836fi
14837
14838echo 'BEGIN {' >"$tmp/subs1.awk" &&
14839_ACEOF
14840
14841# Create commands to substitute file output variables.
1c710c3c 14842{
5213506e
RW
14843 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14844 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14845 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14846 echo "_ACAWK" &&
14847 echo "_ACEOF"
14848} >conf$$files.sh &&
14849. ./conf$$files.sh ||
14850 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14851rm -f conf$$files.sh
1c710c3c 14852
5213506e
RW
14853{
14854 echo "cat >conf$$subs.awk <<_ACEOF" &&
14855 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14856 echo "_ACEOF"
14857} >conf$$subs.sh ||
14858 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14859ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14860ac_delim='%!_!# '
14861for ac_last_try in false false false false false :; do
14862 . ./conf$$subs.sh ||
14863 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14864
14865 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14866 if test $ac_delim_n = $ac_delim_num; then
14867 break
14868 elif $ac_last_try; then
14869 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14870 else
14871 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14872 fi
14873done
14874rm -f conf$$subs.sh
14875
14876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14877cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
2aeb72e9 14878_ACEOF
5213506e
RW
14879sed -n '
14880h
14881s/^/S["/; s/!.*/"]=/
14882p
14883g
14884s/^[^!]*!//
14885:repl
14886t repl
14887s/'"$ac_delim"'$//
14888t delim
14889:nl
14890h
14891s/\(.\{148\}\).*/\1/
14892t more1
14893s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14894p
14895n
14896b repl
14897:more1
14898s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14899p
14900g
14901s/.\{148\}//
14902t nl
14903:delim
14904h
14905s/\(.\{148\}\).*/\1/
14906t more2
14907s/["\\]/\\&/g; s/^/"/; s/$/"/
14908p
14909b
14910:more2
14911s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14912p
14913g
14914s/.\{148\}//
14915t delim
14916' <conf$$subs.awk | sed '
14917/^[^""]/{
14918 N
14919 s/\n//
14920}
14921' >>$CONFIG_STATUS || ac_write_fail=1
14922rm -f conf$$subs.awk
14923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14924_ACAWK
14925cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14926 for (key in S) S_is_set[key] = 1
14927 FS = "\a"
14928 \$ac_cs_awk_pipe_init
14929}
14930{
14931 line = $ 0
14932 nfields = split(line, field, "@")
14933 substed = 0
14934 len = length(field[1])
14935 for (i = 2; i < nfields; i++) {
14936 key = field[i]
14937 keylen = length(key)
14938 if (S_is_set[key]) {
14939 value = S[key]
14940 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14941 len += length(value) + length(field[++i])
14942 substed = 1
14943 } else
14944 len += 1 + keylen
14945 }
14946 if (nfields == 3 && !substed) {
14947 key = field[2]
14948 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14949 \$ac_cs_awk_read_file
14950 next
14951 }
14952 }
14953 print line
14954}
14955\$ac_cs_awk_pipe_fini
14956_ACAWK
14957_ACEOF
14958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14959if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14960 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14961else
14962 cat
14963fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14964 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14965_ACEOF
14966
14967# VPATH may cause trouble with some makes, so we remove $(srcdir),
14968# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14969# trailing colons and then remove the whole line if VPATH becomes empty
14970# (actually we leave an empty line to preserve line numbers).
14971if test "x$srcdir" = x.; then
14972 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14973s/:*\$(srcdir):*/:/
14974s/:*\${srcdir}:*/:/
14975s/:*@srcdir@:*/:/
14976s/^\([^=]*=[ ]*\):*/\1/
14977s/:*$//
14978s/^[^=]*=[ ]*$//
14979}'
14980fi
2aeb72e9 14981
5213506e
RW
14982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14983fi # test -n "$CONFIG_FILES"
2aeb72e9 14984
1c710c3c 14985
5213506e
RW
14986eval set X " :F $CONFIG_FILES "
14987shift
14988for ac_tag
14989do
14990 case $ac_tag in
14991 :[FHLC]) ac_mode=$ac_tag; continue;;
14992 esac
14993 case $ac_mode$ac_tag in
14994 :[FHL]*:*);;
14995 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14996 :[FH]-) ac_tag=-:-;;
14997 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14998 esac
14999 ac_save_IFS=$IFS
15000 IFS=:
15001 set x $ac_tag
15002 IFS=$ac_save_IFS
15003 shift
15004 ac_file=$1
15005 shift
79c06341 15006
5213506e
RW
15007 case $ac_mode in
15008 :L) ac_source=$1;;
15009 :[FH])
15010 ac_file_inputs=
15011 for ac_f
15012 do
15013 case $ac_f in
15014 -) ac_f="$tmp/stdin";;
15015 *) # Look for the file first in the build tree, then in the source tree
15016 # (if the path is not absolute). The absolute path cannot be DOS-style,
15017 # because $ac_f cannot contain `:'.
15018 test -f "$ac_f" ||
15019 case $ac_f in
15020 [\\/$]*) false;;
15021 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15022 esac ||
15023 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15024 esac
15025 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15026 as_fn_append ac_file_inputs " '$ac_f'"
15027 done
1c710c3c 15028
5213506e
RW
15029 # Let's still pretend it is `configure' which instantiates (i.e., don't
15030 # use $as_me), people would be surprised to read:
15031 # /* config.h. Generated by config.status. */
15032 configure_input='Generated from '`
15033 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15034 `' by configure.'
15035 if test x"$ac_file" != x-; then
15036 configure_input="$ac_file. $configure_input"
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15038$as_echo "$as_me: creating $ac_file" >&6;}
2aeb72e9 15039 fi
5213506e
RW
15040 # Neutralize special characters interpreted by sed in replacement strings.
15041 case $configure_input in #(
15042 *\&* | *\|* | *\\* )
15043 ac_sed_conf_input=`$as_echo "$configure_input" |
15044 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15045 *) ac_sed_conf_input=$configure_input;;
15046 esac
11a67599 15047
5213506e
RW
15048 case $ac_tag in
15049 *:-:* | *:-) cat >"$tmp/stdin" \
15050 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15051 esac
15052 ;;
11a67599
ZW
15053 esac
15054
5213506e 15055 ac_dir=`$as_dirname -- "$ac_file" ||
1c710c3c
DJ
15056$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15057 X"$ac_file" : 'X\(//\)[^/]' \| \
15058 X"$ac_file" : 'X\(//\)$' \| \
5213506e
RW
15059 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15060$as_echo X"$ac_file" |
15061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15062 s//\1/
15063 q
15064 }
15065 /^X\(\/\/\)[^/].*/{
15066 s//\1/
15067 q
15068 }
15069 /^X\(\/\/\)$/{
15070 s//\1/
15071 q
15072 }
15073 /^X\(\/\).*/{
15074 s//\1/
15075 q
15076 }
15077 s/.*/./; q'`
15078 as_dir="$ac_dir"; as_fn_mkdir_p
1c710c3c 15079 ac_builddir=.
0b0dc272 15080
5213506e
RW
15081case "$ac_dir" in
15082.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15083*)
15084 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15085 # A ".." for each directory in $ac_dir_suffix.
15086 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15087 case $ac_top_builddir_sub in
15088 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15089 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15090 esac ;;
15091esac
15092ac_abs_top_builddir=$ac_pwd
15093ac_abs_builddir=$ac_pwd$ac_dir_suffix
15094# for backward compatibility:
15095ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
15096
15097case $srcdir in
5213506e 15098 .) # We are building in place.
1c710c3c 15099 ac_srcdir=.
5213506e
RW
15100 ac_top_srcdir=$ac_top_builddir_sub
15101 ac_abs_top_srcdir=$ac_pwd ;;
15102 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 15103 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
15104 ac_top_srcdir=$srcdir
15105 ac_abs_top_srcdir=$srcdir ;;
15106 *) # Relative name.
15107 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15108 ac_top_srcdir=$ac_top_build_prefix$srcdir
15109 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1c710c3c 15110esac
5213506e 15111ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a4b9e93e 15112
0b0dc272 15113
5213506e
RW
15114 case $ac_mode in
15115 :F)
15116 #
15117 # CONFIG_FILE
15118 #
1c710c3c
DJ
15119
15120 case $INSTALL in
15121 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5213506e 15122 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
671aa708 15123 esac
5213506e 15124_ACEOF
11a67599 15125
5213506e
RW
15126cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15127# If the template does not know about datarootdir, expand it.
15128# FIXME: This hack should be removed a few years after 2.60.
15129ac_datarootdir_hack=; ac_datarootdir_seen=
15130ac_sed_dataroot='
15131/datarootdir/ {
15132 p
15133 q
15134}
15135/@datadir@/p
15136/@docdir@/p
15137/@infodir@/p
15138/@localedir@/p
15139/@mandir@/p'
15140case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15141*datarootdir*) ac_datarootdir_seen=yes;;
15142*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15144$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11a67599 15145_ACEOF
5213506e
RW
15146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15147 ac_datarootdir_hack='
15148 s&@datadir@&$datadir&g
15149 s&@docdir@&$docdir&g
15150 s&@infodir@&$infodir&g
15151 s&@localedir@&$localedir&g
15152 s&@mandir@&$mandir&g
15153 s&\\\${datarootdir}&$datarootdir&g' ;;
15154esac
15155_ACEOF
15156
15157# Neutralize VPATH when `$srcdir' = `.'.
15158# Shell code in configure.ac might set extrasub.
15159# FIXME: do we really want to maintain this feature?
15160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15161ac_sed_extra="$ac_vpsub
1c710c3c
DJ
15162$extrasub
15163_ACEOF
5213506e 15164cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
1c710c3c
DJ
15165:t
15166/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5213506e
RW
15167s|@configure_input@|$ac_sed_conf_input|;t t
15168s&@top_builddir@&$ac_top_builddir_sub&;t t
15169s&@top_build_prefix@&$ac_top_build_prefix&;t t
15170s&@srcdir@&$ac_srcdir&;t t
15171s&@abs_srcdir@&$ac_abs_srcdir&;t t
15172s&@top_srcdir@&$ac_top_srcdir&;t t
15173s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15174s&@builddir@&$ac_builddir&;t t
15175s&@abs_builddir@&$ac_abs_builddir&;t t
15176s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15177s&@INSTALL@&$ac_INSTALL&;t t
15178$ac_datarootdir_hack
15179"
15180eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15181if $ac_cs_awk_getline; then
15182 $AWK -f "$tmp/subs.awk"
15183else
15184 $AWK -f "$tmp/subs.awk" | $SHELL
15185fi >$tmp/out \
15186 || as_fn_error "could not create $ac_file" "$LINENO" 5
15187
15188test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15189 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15190 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15192which seems to be undefined. Please make sure it is defined." >&5
15193$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15194which seems to be undefined. Please make sure it is defined." >&2;}
15195
15196 rm -f "$tmp/stdin"
15197 case $ac_file in
15198 -) cat "$tmp/out" && rm -f "$tmp/out";;
15199 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15200 esac \
15201 || as_fn_error "could not create $ac_file" "$LINENO" 5
15202 ;;
11a67599 15203
11a67599 15204
79c06341 15205
5213506e
RW
15206 esac
15207
3e54529c
RW
15208
15209 case $ac_file$ac_mode in
15210 "Makefile":F) sed "$extrasub_build" Makefile |
15211 sed "$extrasub_host" |
15212 sed "$extrasub_target" > mf$$
15213 mv -f mf$$ Makefile ;;
15214
15215 esac
5213506e
RW
15216done # for ac_tag
15217
15218
15219as_fn_exit 0
1c710c3c 15220_ACEOF
1c710c3c
DJ
15221ac_clean_files=$ac_clean_files_save
15222
5213506e
RW
15223test $ac_write_fail = 0 ||
15224 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15225
1c710c3c
DJ
15226
15227# configure is writing to config.log, and then calls config.status.
15228# config.status does its own redirection, appending to config.log.
15229# Unfortunately, on DOS this fails, as config.log is still kept open
15230# by configure, so config.status won't be able to write to it; its
15231# output is simply discarded. So we exec the FD to /dev/null,
15232# effectively closing config.log, so it can be properly (re)opened and
15233# appended to by config.status. When coming back to configure, we
15234# need to make the FD available again.
15235if test "$no_create" != yes; then
15236 ac_cs_success=:
15237 ac_config_status_args=
15238 test "$silent" = yes &&
15239 ac_config_status_args="$ac_config_status_args --quiet"
15240 exec 5>/dev/null
15241 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15242 exec 5>>config.log
15243 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15244 # would make configure fail if this is the last instruction.
5213506e
RW
15245 $ac_cs_success || as_fn_exit $?
15246fi
15247if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15249$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
1c710c3c 15250fi
79c06341 15251