]> git.ipfire.org Git - thirdparty/gcc.git/blame - configure
libitm: de-ELF-ize x86/sjlj.S.
[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
78767fd9 559POSTSTAGE1_CONFIGURE_FLAGS
5213506e
RW
560stage2_werror_flag
561stage1_checking
562stage1_cflags
563MAINT
564MAINTAINER_MODE_FALSE
565MAINTAINER_MODE_TRUE
566COMPILER_NM_FOR_TARGET
567COMPILER_LD_FOR_TARGET
568COMPILER_AS_FOR_TARGET
569FLAGS_FOR_TARGET
570RAW_CXX_FOR_TARGET
571WINDMC_FOR_TARGET
572WINDRES_FOR_TARGET
573STRIP_FOR_TARGET
574RANLIB_FOR_TARGET
575OBJDUMP_FOR_TARGET
576NM_FOR_TARGET
577LIPO_FOR_TARGET
578LD_FOR_TARGET
579DLLTOOL_FOR_TARGET
580AS_FOR_TARGET
581AR_FOR_TARGET
632e2a07 582GOC_FOR_TARGET
5213506e
RW
583GFORTRAN_FOR_TARGET
584GCJ_FOR_TARGET
585GCC_FOR_TARGET
586CXX_FOR_TARGET
587CC_FOR_TARGET
588OBJDUMP
589OBJCOPY
590WINDMC
591WINDRES
592STRIP
593RANLIB
594NM
595LIPO
596LD
597DLLTOOL
598AS
599AR
600RUNTEST
601EXPECT
602MAKEINFO
603FLEX
604LEX
605M4
606BISON
607YACC
5213506e
RW
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
6f57bdf6 638LDFLAGS_FOR_TARGET
5213506e
RW
639CXXFLAGS_FOR_TARGET
640CFLAGS_FOR_TARGET
641DEBUG_PREFIX_CFLAGS_FOR_TARGET
642SYSROOT_CFLAGS_FOR_TARGET
643stage1_languages
d7f09764 644extra_host_libiberty_configure_flags
5213506e
RW
645clooginc
646clooglibs
647pplinc
648ppllibs
5213506e 649poststage1_ldflags
ed2eaa9f 650poststage1_libs
5213506e
RW
651stage1_libs
652stage1_ldflags
653extra_mpc_mpfr_configure_flags
654extra_mpc_gmp_configure_flags
655extra_mpfr_configure_flags
656gmpinc
657gmplibs
658do_compare
659GNATMAKE
660GNATBIND
661ac_ct_CXX
662CXXFLAGS
663CXX
664OBJEXT
665EXEEXT
666ac_ct_CC
667CPPFLAGS
668LDFLAGS
669CFLAGS
670CC
a4a2c37d 671EXTRA_CONFIGARGS_LIBJAVA
5213506e
RW
672target_subdir
673host_subdir
674build_subdir
675build_libsubdir
87264276
PB
676AWK
677SED
5213506e
RW
678LN_S
679LN
680INSTALL_DATA
681INSTALL_SCRIPT
682INSTALL_PROGRAM
683target_os
684target_vendor
685target_cpu
686target
687host_os
688host_vendor
689host_cpu
690host
691target_noncanonical
692host_noncanonical
693build_noncanonical
694build_os
695build_vendor
696build_cpu
697build
698TOPLEVEL_CONFIGURE_ARGUMENTS
699target_alias
700host_alias
701build_alias
702LIBS
703ECHO_T
704ECHO_N
705ECHO_C
706DEFS
707mandir
708localedir
709libdir
710psdir
711pdfdir
712dvidir
713htmldir
714infodir
715docdir
716oldincludedir
717includedir
718localstatedir
719sharedstatedir
720sysconfdir
721datadir
722datarootdir
723libexecdir
724sbindir
725bindir
726program_transform_name
727prefix
728exec_prefix
729PACKAGE_URL
730PACKAGE_BUGREPORT
731PACKAGE_STRING
732PACKAGE_VERSION
733PACKAGE_TARNAME
734PACKAGE_NAME
735PATH_SEPARATOR
736SHELL'
737ac_subst_files='serialization_dependencies
738host_makefile_frag
739target_makefile_frag
740alphaieee_frag
741ospace_frag'
742ac_user_opts='
743enable_option_checking
744with_build_libsubdir
745enable_gold
21539e2e 746enable_ld
87e6d9dc
TB
747enable_libquadmath
748enable_libquadmath_support
5213506e
RW
749enable_libada
750enable_libssp
a4a2c37d 751enable_static_libjava
ff3ac0f4 752enable_bootstrap
5213506e 753enable_build_with_cxx
78767fd9 754enable_build_poststage1_with_cxx
5213506e
RW
755with_mpc
756with_mpc_include
757with_mpc_lib
758with_mpfr_dir
759with_mpfr
760with_mpfr_include
761with_mpfr_lib
762with_gmp_dir
763with_gmp
764with_gmp_include
765with_gmp_lib
766with_host_libstdcxx
767with_stage1_ldflags
768with_stage1_libs
5213506e 769with_boot_libs
ed2eaa9f 770with_boot_ldflags
5213506e
RW
771with_ppl
772with_ppl_include
773with_ppl_lib
774enable_ppl_version_check
775with_cloog
776with_cloog_include
777with_cloog_lib
f16e2237 778enable_cloog_backend
5213506e 779enable_cloog_version_check
d7f09764 780enable_lto
5213506e
RW
781enable_stage1_languages
782enable_objc_gc
783with_build_sysroot
784with_debug_prefix_map
5646b7b9 785with_build_config
5213506e
RW
786enable_serial_configure
787with_build_time_tools
788enable_maintainer_mode
789enable_stage1_checking
790enable_werror
5213506e
RW
791'
792 ac_precious_vars='build_alias
793host_alias
794target_alias
795CC
796CFLAGS
797LDFLAGS
798LIBS
799CPPFLAGS
800CXX
801CXXFLAGS
802CCC
ffedf511
RW
803build_configargs
804host_configargs
805target_configargs
5213506e
RW
806AR
807AS
808DLLTOOL
809LD
810LIPO
811NM
812RANLIB
813STRIP
814WINDRES
815WINDMC
816OBJCOPY
817OBJDUMP
818CC_FOR_TARGET
819CXX_FOR_TARGET
820GCC_FOR_TARGET
821GCJ_FOR_TARGET
822GFORTRAN_FOR_TARGET
632e2a07 823GOC_FOR_TARGET
5213506e
RW
824AR_FOR_TARGET
825AS_FOR_TARGET
826DLLTOOL_FOR_TARGET
827LD_FOR_TARGET
828LIPO_FOR_TARGET
829NM_FOR_TARGET
830OBJDUMP_FOR_TARGET
831RANLIB_FOR_TARGET
832STRIP_FOR_TARGET
833WINDRES_FOR_TARGET
834WINDMC_FOR_TARGET'
835
671aa708
NN
836
837# Initialize some variables set by options.
1c710c3c
DJ
838ac_init_help=
839ac_init_version=false
5213506e
RW
840ac_unrecognized_opts=
841ac_unrecognized_sep=
671aa708
NN
842# The variables have the same names as the options, with
843# dashes changed to underlines.
1c710c3c 844cache_file=/dev/null
671aa708 845exec_prefix=NONE
671aa708 846no_create=
671aa708
NN
847no_recursion=
848prefix=NONE
849program_prefix=NONE
850program_suffix=NONE
851program_transform_name=s,x,x,
852silent=
853site=
854srcdir=
671aa708
NN
855verbose=
856x_includes=NONE
857x_libraries=NONE
1c710c3c
DJ
858
859# Installation directory options.
860# These are left unexpanded so users can "make install exec_prefix=/foo"
861# and all the variables that are supposed to be based on exec_prefix
862# by default will actually change.
863# Use braces instead of parens because sh, perl, etc. also accept them.
5213506e 864# (The list follows the same order as the GNU Coding Standards.)
671aa708
NN
865bindir='${exec_prefix}/bin'
866sbindir='${exec_prefix}/sbin'
867libexecdir='${exec_prefix}/libexec'
5213506e
RW
868datarootdir='${prefix}/share'
869datadir='${datarootdir}'
671aa708
NN
870sysconfdir='${prefix}/etc'
871sharedstatedir='${prefix}/com'
872localstatedir='${prefix}/var'
671aa708
NN
873includedir='${prefix}/include'
874oldincludedir='/usr/include'
5213506e
RW
875docdir='${datarootdir}/doc/${PACKAGE}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
79c06341 884
671aa708 885ac_prev=
5213506e 886ac_dashdash=
671aa708
NN
887for ac_option
888do
671aa708
NN
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
5213506e 891 eval $ac_prev=\$ac_option
671aa708
NN
892 ac_prev=
893 continue
894 fi
79c06341 895
5213506e
RW
896 case $ac_option in
897 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *) ac_optarg=yes ;;
899 esac
671aa708
NN
900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
5213506e
RW
903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
671aa708
NN
906
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1c710c3c 910 bindir=$ac_optarg ;;
671aa708
NN
911
912 -build | --build | --buil | --bui | --bu)
1c710c3c 913 ac_prev=build_alias ;;
671aa708 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1c710c3c 915 build_alias=$ac_optarg ;;
671aa708
NN
916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1c710c3c
DJ
922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
671aa708 926
5213506e 927 -datadir | --datadir | --datadi | --datad)
671aa708 928 ac_prev=datadir ;;
5213506e 929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1c710c3c 930 datadir=$ac_optarg ;;
671aa708 931
5213506e
RW
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
671aa708 939 -disable-* | --disable-*)
5213506e 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
671aa708 941 # Reject names that are not valid shell variable names.
5213506e
RW
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
671aa708
NN
964
965 -enable-* | --enable-*)
5213506e 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
671aa708 967 # Reject names that are not valid shell variable names.
5213506e
RW
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974"enable_$ac_useropt"
975"*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
2aeb72e9 978 esac
5213506e 979 eval enable_$ac_useropt=\$ac_optarg ;;
671aa708
NN
980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
1c710c3c 988 exec_prefix=$ac_optarg ;;
671aa708
NN
989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
1c710c3c
DJ
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
671aa708
NN
1000
1001 -host | --host | --hos | --ho)
1c710c3c 1002 ac_prev=host_alias ;;
671aa708 1003 -host=* | --host=* | --hos=* | --ho=*)
1c710c3c 1004 host_alias=$ac_optarg ;;
671aa708 1005
5213506e
RW
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
671aa708
NN
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1c710c3c 1017 includedir=$ac_optarg ;;
671aa708
NN
1018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1c710c3c 1022 infodir=$ac_optarg ;;
671aa708
NN
1023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1c710c3c 1027 libdir=$ac_optarg ;;
671aa708
NN
1028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1c710c3c 1034 libexecdir=$ac_optarg ;;
671aa708 1035
5213506e
RW
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
671aa708 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
5213506e 1042 | --localstate | --localstat | --localsta | --localst | --locals)
671aa708
NN
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
5213506e 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1c710c3c 1046 localstatedir=$ac_optarg ;;
671aa708
NN
1047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1c710c3c 1051 mandir=$ac_optarg ;;
671aa708
NN
1052
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1c710c3c 1058 | --no-cr | --no-c | -n)
671aa708
NN
1059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1c710c3c 1072 oldincludedir=$ac_optarg ;;
671aa708
NN
1073
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1c710c3c 1077 prefix=$ac_optarg ;;
671aa708
NN
1078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1c710c3c 1084 program_prefix=$ac_optarg ;;
671aa708
NN
1085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1c710c3c 1091 program_suffix=$ac_optarg ;;
671aa708
NN
1092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1c710c3c 1108 program_transform_name=$ac_optarg ;;
671aa708 1109
5213506e
RW
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
671aa708
NN
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1c710c3c 1128 sbindir=$ac_optarg ;;
671aa708
NN
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1c710c3c 1139 sharedstatedir=$ac_optarg ;;
671aa708
NN
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1c710c3c 1144 site=$ac_optarg ;;
671aa708
NN
1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1c710c3c 1149 srcdir=$ac_optarg ;;
671aa708
NN
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1c710c3c 1156 sysconfdir=$ac_optarg ;;
671aa708
NN
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1c710c3c 1159 ac_prev=target_alias ;;
671aa708 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1c710c3c 1161 target_alias=$ac_optarg ;;
671aa708
NN
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
1c710c3c
DJ
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
671aa708
NN
1168
1169 -with-* | --with-*)
5213506e 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
671aa708 1171 # Reject names that are not valid shell variable names.
5213506e
RW
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178"with_$ac_useropt"
1179"*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
2aeb72e9 1182 esac
5213506e 1183 eval with_$ac_useropt=\$ac_optarg ;;
671aa708
NN
1184
1185 -without-* | --without-*)
5213506e 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
671aa708 1187 # Reject names that are not valid shell variable names.
5213506e
RW
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194"with_$ac_useropt"
1195"*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
671aa708
NN
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1c710c3c 1210 x_includes=$ac_optarg ;;
671aa708
NN
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1c710c3c 1217 x_libraries=$ac_optarg ;;
671aa708 1218
5213506e
RW
1219 -*) as_fn_error "unrecognized option: \`$ac_option'
1220Try \`$0 --help' for more information."
671aa708
NN
1221 ;;
1222
1c710c3c
DJ
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
5213506e
RW
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1c710c3c
DJ
1231 export $ac_envvar ;;
1232
671aa708 1233 *)
1c710c3c 1234 # FIXME: should be removed in autoconf 3.0.
5213506e 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1c710c3c 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
5213506e 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1c710c3c 1238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
671aa708
NN
1239 ;;
1240
1241 esac
1242done
1243
1244if test -n "$ac_prev"; then
1c710c3c 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
5213506e 1246 as_fn_error "missing argument to $ac_option"
af71363e 1247fi
af71363e 1248
5213506e
RW
1249if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2aeb72e9 1254 esac
5213506e 1255fi
2aeb72e9 1256
5213506e
RW
1257# Check all directory arguments for consistency.
1258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
2aeb72e9 1262do
5213506e
RW
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
2aeb72e9 1271 case $ac_val in
5213506e
RW
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
671aa708 1274 esac
5213506e 1275 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
671aa708
NN
1276done
1277
1c710c3c
DJ
1278# There might be people who depend on the old broken behavior: `$host'
1279# used to hold the argument of --host etc.
1280# FIXME: To remove some day.
1281build=$build_alias
1282host=$host_alias
1283target=$target_alias
0b0dc272 1284
1c710c3c
DJ
1285# FIXME: To remove some day.
1286if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
5213506e 1289 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1c710c3c
DJ
1290 If a cross compiler is detected then cross compile mode will be used." >&2
1291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294fi
1295
1296ac_tool_prefix=
1297test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299test "$silent" = yes && exec 6>/dev/null
671aa708 1300
671aa708 1301
5213506e
RW
1302ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303ac_ls_di=`ls -di .` &&
1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305 as_fn_error "working directory cannot be determined"
1306test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307 as_fn_error "pwd does not report name of working directory"
1308
1309
671aa708
NN
1310# Find the source files, if location was not specified.
1311if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
5213506e
RW
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319$as_echo X"$as_myself" |
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
671aa708 1337 srcdir=$ac_confdir
5213506e 1338 if test ! -r "$srcdir/$ac_unique_file"; then
671aa708
NN
1339 srcdir=..
1340 fi
1341else
1342 ac_srcdir_defaulted=no
1343fi
5213506e
RW
1344if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1347fi
1348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349ac_abs_confdir=`(
1350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1351 pwd)`
1352# When building in place, set srcdir=.
1353if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355fi
1356# Remove unnecessary trailing slashes from srcdir.
1357# Double slashes in file names in object file debugging info
1358# mess up M-x gdb in Emacs.
1359case $srcdir in
1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361esac
87841584
AM
1362case $srcdir in
1363 *" "*)
1364 as_fn_error "path to source, $srcdir, contains spaces"
1365 ;;
1366esac
ac9e6043
RW
1367ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1368
5213506e
RW
1369for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374done
1c710c3c
DJ
1375
1376#
1377# Report the --help message.
1378#
1379if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
1383\`configure' configures this package to adapt to many kinds of systems.
1384
1385Usage: $0 [OPTION]... [VAR=VALUE]...
1386
1387To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388VAR=VALUE. See below for descriptions of some of the useful variables.
1389
1390Defaults for the options are specified in brackets.
1391
1392Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
1397 -q, --quiet, --silent do not print \`checking...' messages
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
1c710c3c
DJ
1403Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
5213506e 1405 [$ac_default_prefix]
1c710c3c 1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5213506e 1407 [PREFIX]
1c710c3c
DJ
1408
1409By default, \`make install' will install all the files in
1410\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412for instance \`--prefix=\$HOME'.
1413
1414For better control, use the options below.
1415
1416Fine tuning of the installation directories:
5213506e
RW
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1423 --libdir=DIR object code libraries [EPREFIX/lib]
1424 --includedir=DIR C header files [PREFIX/include]
1425 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1426 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1427 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1428 --infodir=DIR info documentation [DATAROOTDIR/info]
1429 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1430 --mandir=DIR man documentation [DATAROOTDIR/man]
1431 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1432 --htmldir=DIR html documentation [DOCDIR]
1433 --dvidir=DIR dvi documentation [DOCDIR]
1434 --pdfdir=DIR pdf documentation [DOCDIR]
1435 --psdir=DIR ps documentation [DOCDIR]
1c710c3c
DJ
1436_ACEOF
1437
1438 cat <<\_ACEOF
1439
1440Program names:
1441 --program-prefix=PREFIX prepend PREFIX to installed program names
1442 --program-suffix=SUFFIX append SUFFIX to installed program names
1443 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1444
1445System types:
1446 --build=BUILD configure for building on BUILD [guessed]
1447 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 --target=TARGET configure for building compilers for TARGET [HOST]
1449_ACEOF
1450fi
1451
1452if test -n "$ac_init_help"; then
1453
1454 cat <<\_ACEOF
1455
1456Optional Features:
5213506e 1457 --disable-option-checking ignore unrecognized --enable/--with options
1c710c3c
DJ
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
21539e2e 1460 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
33e39b66 1461 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
87e6d9dc
TB
1462 --disable-libquadmath do not build libquadmath directory
1463 --disable-libquadmath-support
1464 disable libquadmath support for Fortran
30b74385
RW
1465 --enable-libada build libada directory
1466 --enable-libssp build libssp directory
a4a2c37d
MK
1467 --enable-static-libjava[=ARG]
1468 build static libjava [default=no]
ff3ac0f4 1469 --enable-bootstrap enable bootstrapping [yes if native build]
00020c16 1470 --enable-build-with-cxx build with C++ compiler instead of C compiler
78767fd9
ILT
1471 --enable-build-poststage1-with-cxx
1472 build stages 2 and 3 with C++, not C
33e39b66
AS
1473 --disable-ppl-version-check
1474 disable check for PPL version
39986460
TG
1475 --enable-cloog-backend[=BACKEND]
1476 set the CLooG BACKEND used to either isl, ppl or
1477 ppl-legacy (default)
d32ef397
AS
1478 --disable-cloog-version-check
1479 disable check for CLooG version
d7f09764 1480 --enable-lto enable link time optimization support
33e39b66
AS
1481 --enable-stage1-languages[=all]
1482 choose additional languages to build during stage1.
1483 Mostly useful for compiler development
1484 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1485 Objective-C runtime
30b74385 1486 --enable-serial-[{host,target,build}-]configure
33e39b66
AS
1487 force sequential configuration of sub-packages for
1488 the host, target or build machine, or all
1489 sub-packages
1490 --enable-maintainer-mode
1491 enable make rules and dependencies not useful (and
1492 sometimes confusing) to the casual installer
1493 --enable-stage1-checking[=all]
1494 choose additional checking for stage1 of the
1495 compiler
1c710c3c
DJ
1496 --enable-werror enable -Werror in bootstrap stage2 and later
1497
1498Optional Packages:
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-build-libsubdir=DIR Directory where to find libraries for build system
33e39b66
AS
1502 --with-mpc=PATH specify prefix directory for installed MPC package.
1503 Equivalent to --with-mpc-include=PATH/include plus
1504 --with-mpc-lib=PATH/lib
1505 --with-mpc-include=PATH specify directory for installed MPC include files
1506 --with-mpc-lib=PATH specify directory for the installed MPC library
30b74385
RW
1507 --with-mpfr-dir=PATH this option has been REMOVED
1508 --with-mpfr=PATH specify prefix directory for installed MPFR package.
33e39b66
AS
1509 Equivalent to --with-mpfr-include=PATH/include plus
1510 --with-mpfr-lib=PATH/lib
1c710c3c 1511 --with-mpfr-include=PATH
30b74385
RW
1512 specify directory for installed MPFR include files
1513 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1514 --with-gmp-dir=PATH this option has been REMOVED
33e39b66
AS
1515 --with-gmp=PATH specify prefix directory for the installed GMP
1516 package. Equivalent to
1517 --with-gmp-include=PATH/include plus
1518 --with-gmp-lib=PATH/lib
30b74385
RW
1519 --with-gmp-include=PATH specify directory for installed GMP include files
1520 --with-gmp-lib=PATH specify directory for the installed GMP library
33e39b66
AS
1521 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1522 linking with PPL
1523 --with-stage1-ldflags=FLAGS
1524 linker flags for stage1
1525 --with-stage1-libs=LIBS libraries for stage1
1526 --with-boot-libs=LIBS libraries for stage2 and later
1527 --with-boot-ldflags=FLAGS
1528 linker flags for stage2 and later
1529 --with-ppl=PATH specify prefix directory for the installed PPL
1530 package. Equivalent to
1531 --with-ppl-include=PATH/include plus
1532 --with-ppl-lib=PATH/lib
1533 --with-ppl-include=PATH specify directory for installed PPL include files
1534 --with-ppl-lib=PATH specify directory for the installed PPL library
d32ef397
AS
1535 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1536 package. Equivalent to
1537 --with-cloog-include=PATH/include plus
1538 --with-cloog-lib=PATH/lib
1539 --with-cloog-include=PATH
1540 Specify directory for installed CLooG include files
1541 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1542 library
30b74385 1543 --with-build-sysroot=SYSROOT
1c710c3c 1544 use sysroot as the system root during the build
c8aea42c 1545 --with-debug-prefix-map='A=B C=D ...'
33e39b66
AS
1546 map A to B, C to D ... in debug information
1547 --with-build-config='NAME NAME2...'
1548 use config/NAME.mk build configuration
30b74385 1549 --with-build-time-tools=PATH
1c710c3c 1550 use given path to find target tools during the build
1c710c3c
DJ
1551
1552Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
5213506e
RW
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
c3a86da9
DJ
1560 CXX C++ compiler command
1561 CXXFLAGS C++ compiler flags
ffedf511
RW
1562 build_configargs
1563 additional configure arguments for build directories
1564 host_configargs
1565 additional configure arguments for host directories
1566 target_configargs
1567 additional configure arguments for target directories
278a7a38
AO
1568 AR AR for the host
1569 AS AS for the host
1570 DLLTOOL DLLTOOL for the host
1571 LD LD for the host
1572 LIPO LIPO for the host
1573 NM NM for the host
1574 RANLIB RANLIB for the host
1575 STRIP STRIP for the host
1576 WINDRES WINDRES for the host
901119ae 1577 WINDMC WINDMC for the host
278a7a38
AO
1578 OBJCOPY OBJCOPY for the host
1579 OBJDUMP OBJDUMP for the host
1580 CC_FOR_TARGET
1581 CC for the target
1582 CXX_FOR_TARGET
1583 CXX for the target
1584 GCC_FOR_TARGET
1585 GCC for the target
1586 GCJ_FOR_TARGET
1587 GCJ for the target
1588 GFORTRAN_FOR_TARGET
1589 GFORTRAN for the target
632e2a07
ILT
1590 GOC_FOR_TARGET
1591 GOC for the target
278a7a38
AO
1592 AR_FOR_TARGET
1593 AR for the target
1594 AS_FOR_TARGET
1595 AS for the target
1596 DLLTOOL_FOR_TARGET
1597 DLLTOOL for the target
1598 LD_FOR_TARGET
1599 LD for the target
1600 LIPO_FOR_TARGET
1601 LIPO for the target
1602 NM_FOR_TARGET
1603 NM for the target
1604 OBJDUMP_FOR_TARGET
1605 OBJDUMP for the target
1606 RANLIB_FOR_TARGET
1607 RANLIB for the target
1608 STRIP_FOR_TARGET
1609 STRIP for the target
1610 WINDRES_FOR_TARGET
1611 WINDRES for the target
901119ae
KT
1612 WINDMC_FOR_TARGET
1613 WINDMC for the target
1c710c3c
DJ
1614
1615Use these variables to override the choices made by `configure' or to help
1616it to find libraries and programs with nonstandard names/locations.
1617
5213506e 1618Report bugs to the package provider.
1c710c3c 1619_ACEOF
5213506e 1620ac_status=$?
1c710c3c
DJ
1621fi
1622
1623if test "$ac_init_help" = "recursive"; then
1624 # If there are subdirs, report their specific --help.
1c710c3c 1625 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
5213506e
RW
1626 test -d "$ac_dir" ||
1627 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1628 continue
1c710c3c
DJ
1629 ac_builddir=.
1630
5213506e
RW
1631case "$ac_dir" in
1632.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1633*)
1634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1635 # A ".." for each directory in $ac_dir_suffix.
1636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1637 case $ac_top_builddir_sub in
1638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1640 esac ;;
1641esac
1642ac_abs_top_builddir=$ac_pwd
1643ac_abs_builddir=$ac_pwd$ac_dir_suffix
1644# for backward compatibility:
1645ac_top_builddir=$ac_top_build_prefix
1c710c3c
DJ
1646
1647case $srcdir in
5213506e 1648 .) # We are building in place.
1c710c3c 1649 ac_srcdir=.
5213506e
RW
1650 ac_top_srcdir=$ac_top_builddir_sub
1651 ac_abs_top_srcdir=$ac_pwd ;;
1652 [\\/]* | ?:[\\/]* ) # Absolute name.
1c710c3c 1653 ac_srcdir=$srcdir$ac_dir_suffix;
5213506e
RW
1654 ac_top_srcdir=$srcdir
1655 ac_abs_top_srcdir=$srcdir ;;
1656 *) # Relative name.
1657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1658 ac_top_srcdir=$ac_top_build_prefix$srcdir
1659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2aeb72e9 1660esac
5213506e
RW
1661ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1662
1663 cd "$ac_dir" || { ac_status=$?; continue; }
1664 # Check for guested configure.
1665 if test -f "$ac_srcdir/configure.gnu"; then
1666 echo &&
1667 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1668 elif test -f "$ac_srcdir/configure"; then
1669 echo &&
1670 $SHELL "$ac_srcdir/configure" --help=recursive
1c710c3c 1671 else
5213506e
RW
1672 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1673 fi || ac_status=$?
1674 cd "$ac_pwd" || { ac_status=$?; break; }
1c710c3c
DJ
1675 done
1676fi
1677
5213506e 1678test -n "$ac_init_help" && exit $ac_status
1c710c3c
DJ
1679if $ac_init_version; then
1680 cat <<\_ACEOF
5213506e
RW
1681configure
1682generated by GNU Autoconf 2.64
1c710c3c 1683
5213506e 1684Copyright (C) 2009 Free Software Foundation, Inc.
1c710c3c
DJ
1685This configure script is free software; the Free Software Foundation
1686gives unlimited permission to copy, distribute and modify it.
1687_ACEOF
5213506e 1688 exit
0b0dc272 1689fi
5213506e
RW
1690
1691## ------------------------ ##
1692## Autoconf initialization. ##
1693## ------------------------ ##
1694
1695# ac_fn_c_try_compile LINENO
1696# --------------------------
1697# Try to compile conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_compile ()
1699{
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext
1702 if { { ac_try="$ac_compile"
1703case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_compile") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest.$ac_objext; then :
1721 ac_retval=0
1722else
1723 $as_echo "$as_me: failed program was:" >&5
1724sed 's/^/| /' conftest.$ac_ext >&5
1725
1726 ac_retval=1
1727fi
1728 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1729 return $ac_retval
1730
1731} # ac_fn_c_try_compile
1732
1733# ac_fn_cxx_try_compile LINENO
1734# ----------------------------
1735# Try to compile conftest.$ac_ext, and return whether this succeeded.
1736ac_fn_cxx_try_compile ()
1737{
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 rm -f conftest.$ac_objext
1740 if { { ac_try="$ac_compile"
1741case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744esac
1745eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746$as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_compile") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1753 fi
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && {
1756 test -z "$ac_cxx_werror_flag" ||
1757 test ! -s conftest.err
1758 } && test -s conftest.$ac_objext; then :
1759 ac_retval=0
1760else
1761 $as_echo "$as_me: failed program was:" >&5
1762sed 's/^/| /' conftest.$ac_ext >&5
1763
1764 ac_retval=1
1765fi
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1767 return $ac_retval
1768
1769} # ac_fn_cxx_try_compile
1770
1771# ac_fn_c_try_link LINENO
1772# -----------------------
1773# Try to link conftest.$ac_ext, and return whether this succeeded.
1774ac_fn_c_try_link ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext conftest$ac_exeext
1778 if { { ac_try="$ac_link"
1779case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782esac
1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784$as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>conftest.err
1786 ac_status=$?
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1791 fi
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest$ac_exeext && {
1797 test "$cross_compiling" = yes ||
1798 $as_test_x conftest$ac_exeext
1799 }; then :
1800 ac_retval=0
1801else
1802 $as_echo "$as_me: failed program was:" >&5
1803sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=1
1806fi
1807 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1808 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1809 # interfere with the next link command; also delete a directory that is
1810 # left behind by Apple's compiler. We do this before executing the actions.
1811 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813 return $ac_retval
1814
1815} # ac_fn_c_try_link
1816cat >config.log <<_ACEOF
1c710c3c
DJ
1817This file contains any messages produced by compilers while
1818running configure, to aid debugging if configure makes a mistake.
1819
1820It was created by $as_me, which was
5213506e 1821generated by GNU Autoconf 2.64. Invocation command line was
1c710c3c
DJ
1822
1823 $ $0 $@
1824
1825_ACEOF
5213506e 1826exec 5>>config.log
1c710c3c
DJ
1827{
1828cat <<_ASUNAME
1829## --------- ##
1830## Platform. ##
1831## --------- ##
1832
1833hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1834uname -m = `(uname -m) 2>/dev/null || echo unknown`
1835uname -r = `(uname -r) 2>/dev/null || echo unknown`
1836uname -s = `(uname -s) 2>/dev/null || echo unknown`
1837uname -v = `(uname -v) 2>/dev/null || echo unknown`
1838
1839/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1840/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1841
1842/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1843/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1844/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
5213506e 1845/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1c710c3c
DJ
1846/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1847/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1848/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1849
1850_ASUNAME
1851
1852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853for as_dir in $PATH
1854do
1855 IFS=$as_save_IFS
1856 test -z "$as_dir" && as_dir=.
5213506e
RW
1857 $as_echo "PATH: $as_dir"
1858 done
1859IFS=$as_save_IFS
1c710c3c
DJ
1860
1861} >&5
1862
1863cat >&5 <<_ACEOF
1864
1865
1866## ----------- ##
1867## Core tests. ##
1868## ----------- ##
1869
1870_ACEOF
1871
1872
1873# Keep a trace of the command line.
1874# Strip out --no-create and --no-recursion so they do not pile up.
1875# Strip out --silent because we don't want to record it for future runs.
1876# Also quote any args containing shell meta-characters.
1877# Make two passes to allow for proper duplicate-argument suppression.
1878ac_configure_args=
1879ac_configure_args0=
1880ac_configure_args1=
1c710c3c
DJ
1881ac_must_keep_next=false
1882for ac_pass in 1 2
1883do
1884 for ac_arg
1885 do
1886 case $ac_arg in
1887 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1888 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1889 | -silent | --silent | --silen | --sile | --sil)
1890 continue ;;
5213506e
RW
1891 *\'*)
1892 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
1893 esac
1894 case $ac_pass in
5213506e 1895 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1c710c3c 1896 2)
5213506e 1897 as_fn_append ac_configure_args1 " '$ac_arg'"
1c710c3c
DJ
1898 if test $ac_must_keep_next = true; then
1899 ac_must_keep_next=false # Got value, back to normal.
1900 else
1901 case $ac_arg in
1902 *=* | --config-cache | -C | -disable-* | --disable-* \
1903 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1904 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1905 | -with-* | --with-* | -without-* | --without-* | --x)
1906 case "$ac_configure_args0 " in
1907 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1908 esac
1909 ;;
1910 -* ) ac_must_keep_next=true ;;
1911 esac
1912 fi
5213506e 1913 as_fn_append ac_configure_args " '$ac_arg'"
1c710c3c
DJ
1914 ;;
1915 esac
1916 done
1917done
5213506e
RW
1918{ ac_configure_args0=; unset ac_configure_args0;}
1919{ ac_configure_args1=; unset ac_configure_args1;}
1c710c3c
DJ
1920
1921# When interrupted or exit'd, cleanup temporary files, and complete
1922# config.log. We remove comments because anyway the quotes in there
1923# would cause problems or look ugly.
5213506e
RW
1924# WARNING: Use '\'' to represent an apostrophe within the trap.
1925# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1c710c3c
DJ
1926trap 'exit_status=$?
1927 # Save into config.log some information that might help in debugging.
1928 {
1929 echo
1930
1931 cat <<\_ASBOX
1932## ---------------- ##
1933## Cache variables. ##
1934## ---------------- ##
1935_ASBOX
1936 echo
1937 # The following way of writing the cache mishandles newlines in values,
5213506e
RW
1938(
1939 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1940 eval ac_val=\$$ac_var
1941 case $ac_val in #(
1942 *${as_nl}*)
1943 case $ac_var in #(
1944 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1945$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1946 esac
1947 case $ac_var in #(
1948 _ | IFS | as_nl) ;; #(
1949 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1950 *) { eval $ac_var=; unset $ac_var;} ;;
1951 esac ;;
1952 esac
1953 done
1c710c3c 1954 (set) 2>&1 |
5213506e
RW
1955 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1956 *${as_nl}ac_space=\ *)
1c710c3c 1957 sed -n \
5213506e
RW
1958 "s/'\''/'\''\\\\'\'''\''/g;
1959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1960 ;; #(
1c710c3c 1961 *)
5213506e 1962 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1c710c3c 1963 ;;
5213506e
RW
1964 esac |
1965 sort
1966)
1c710c3c
DJ
1967 echo
1968
1969 cat <<\_ASBOX
1970## ----------------- ##
1971## Output variables. ##
1972## ----------------- ##
1973_ASBOX
1974 echo
1975 for ac_var in $ac_subst_vars
1976 do
5213506e
RW
1977 eval ac_val=\$$ac_var
1978 case $ac_val in
1979 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1980 esac
1981 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1982 done | sort
1983 echo
1984
1985 if test -n "$ac_subst_files"; then
1986 cat <<\_ASBOX
5213506e
RW
1987## ------------------- ##
1988## File substitutions. ##
1989## ------------------- ##
1c710c3c
DJ
1990_ASBOX
1991 echo
1992 for ac_var in $ac_subst_files
1993 do
5213506e
RW
1994 eval ac_val=\$$ac_var
1995 case $ac_val in
1996 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1997 esac
1998 $as_echo "$ac_var='\''$ac_val'\''"
1c710c3c
DJ
1999 done | sort
2000 echo
2001 fi
2002
2003 if test -s confdefs.h; then
2004 cat <<\_ASBOX
2005## ----------- ##
2006## confdefs.h. ##
2007## ----------- ##
2008_ASBOX
2009 echo
5213506e 2010 cat confdefs.h
1c710c3c
DJ
2011 echo
2012 fi
2013 test "$ac_signal" != 0 &&
5213506e
RW
2014 $as_echo "$as_me: caught signal $ac_signal"
2015 $as_echo "$as_me: exit $exit_status"
1c710c3c 2016 } >&5
5213506e
RW
2017 rm -f core *.core core.conftest.* &&
2018 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1c710c3c 2019 exit $exit_status
5213506e 2020' 0
1c710c3c 2021for ac_signal in 1 2 13 15; do
5213506e 2022 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1c710c3c
DJ
2023done
2024ac_signal=0
2025
2026# confdefs.h avoids OS command line length limits that DEFS can exceed.
5213506e
RW
2027rm -f -r conftest* confdefs.h
2028
2029$as_echo "/* confdefs.h */" > confdefs.h
1c710c3c
DJ
2030
2031# Predefined preprocessor variables.
2032
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_NAME "$PACKAGE_NAME"
2035_ACEOF
2036
1c710c3c
DJ
2037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2039_ACEOF
2040
1c710c3c
DJ
2041cat >>confdefs.h <<_ACEOF
2042#define PACKAGE_VERSION "$PACKAGE_VERSION"
2043_ACEOF
0b0dc272 2044
1c710c3c
DJ
2045cat >>confdefs.h <<_ACEOF
2046#define PACKAGE_STRING "$PACKAGE_STRING"
2047_ACEOF
2048
1c710c3c
DJ
2049cat >>confdefs.h <<_ACEOF
2050#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2051_ACEOF
2052
5213506e
RW
2053cat >>confdefs.h <<_ACEOF
2054#define PACKAGE_URL "$PACKAGE_URL"
2055_ACEOF
2056
1c710c3c
DJ
2057
2058# Let the site file select an alternate cache file if it wants to.
5213506e
RW
2059# Prefer an explicitly selected file to automatically selected ones.
2060ac_site_file1=NONE
2061ac_site_file2=NONE
2062if test -n "$CONFIG_SITE"; then
2063 ac_site_file1=$CONFIG_SITE
2064elif test "x$prefix" != xNONE; then
2065 ac_site_file1=$prefix/share/config.site
2066 ac_site_file2=$prefix/etc/config.site
2067else
2068 ac_site_file1=$ac_default_prefix/share/config.site
2069 ac_site_file2=$ac_default_prefix/etc/config.site
671aa708 2070fi
5213506e
RW
2071for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2072do
2073 test "x$ac_site_file" = xNONE && continue
671aa708 2074 if test -r "$ac_site_file"; then
5213506e
RW
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2076$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1c710c3c 2077 sed 's/^/| /' "$ac_site_file" >&5
671aa708
NN
2078 . "$ac_site_file"
2079 fi
2080done
2081
2082if test -r "$cache_file"; then
1c710c3c
DJ
2083 # Some versions of bash will fail to source /dev/null (special
2084 # files actually), so we avoid doing that.
2085 if test -f "$cache_file"; then
5213506e
RW
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2087$as_echo "$as_me: loading cache $cache_file" >&6;}
1c710c3c 2088 case $cache_file in
5213506e
RW
2089 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2090 *) . "./$cache_file";;
1c710c3c
DJ
2091 esac
2092 fi
671aa708 2093else
5213506e
RW
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2095$as_echo "$as_me: creating cache $cache_file" >&6;}
1c710c3c
DJ
2096 >$cache_file
2097fi
2098
2099# Check that the precious variables saved in the cache have kept the same
2100# value.
2101ac_cache_corrupted=false
5213506e 2102for ac_var in $ac_precious_vars; do
1c710c3c
DJ
2103 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2104 eval ac_new_set=\$ac_env_${ac_var}_set
5213506e
RW
2105 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2106 eval ac_new_val=\$ac_env_${ac_var}_value
1c710c3c
DJ
2107 case $ac_old_set,$ac_new_set in
2108 set,)
5213506e
RW
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2110$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1c710c3c
DJ
2111 ac_cache_corrupted=: ;;
2112 ,set)
5213506e
RW
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2114$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1c710c3c
DJ
2115 ac_cache_corrupted=: ;;
2116 ,);;
2117 *)
2118 if test "x$ac_old_val" != "x$ac_new_val"; then
5213506e
RW
2119 # differences in whitespace do not lead to failure.
2120 ac_old_val_w=`echo x $ac_old_val`
2121 ac_new_val_w=`echo x $ac_new_val`
2122 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2124$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2125 ac_cache_corrupted=:
2126 else
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2128$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2129 eval $ac_var=\$ac_old_val
2130 fi
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2132$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2134$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1c710c3c
DJ
2135 fi;;
2136 esac
2137 # Pass precious variables to config.status.
2138 if test "$ac_new_set" = set; then
2139 case $ac_new_val in
5213506e 2140 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1c710c3c
DJ
2141 *) ac_arg=$ac_var=$ac_new_val ;;
2142 esac
2143 case " $ac_configure_args " in
2144 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
5213506e 2145 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1c710c3c
DJ
2146 esac
2147 fi
2148done
2149if $ac_cache_corrupted; then
5213506e
RW
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2151$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2153$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2154 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
671aa708 2155fi
5213506e
RW
2156## -------------------- ##
2157## Main body of script. ##
2158## -------------------- ##
671aa708 2159
2aeb72e9
DD
2160ac_ext=c
2161ac_cpp='$CPP $CPPFLAGS'
2162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2164ac_compiler_gnu=$ac_cv_c_compiler_gnu
2165
1c710c3c
DJ
2166
2167
2168
1c710c3c
DJ
2169
2170
0115d4a3 2171
1c710c3c 2172
ad33ff57
RW
2173
2174progname=$0
2175# if PWD already has a value, it is probably wrong.
2176if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2177
2178# Export original configure arguments for use by sub-configures.
2179# Quote arguments with shell meta charatcers.
2180TOPLEVEL_CONFIGURE_ARGUMENTS=
2181set -- "$progname" "$@"
2182for ac_arg
2183do
2184 case "$ac_arg" in
2185 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2186 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2187 # if the argument is of the form -foo=baz, quote the baz part only
2188 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2189 *) ;;
2190 esac
2191 # Add the quoted argument to the list.
2192 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2193done
2194if test "$silent" = yes; then
2195 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2196fi
2197# Remove the initial space we just introduced and, as these will be
2198# expanded by make, quote '$'.
2199TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2200
1c710c3c
DJ
2201
2202# Find the build, host, and target systems.
671aa708 2203ac_aux_dir=
5213506e
RW
2204for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2205 for ac_t in install-sh install.sh shtool; do
2206 if test -f "$ac_dir/$ac_t"; then
2207 ac_aux_dir=$ac_dir
2208 ac_install_sh="$ac_aux_dir/$ac_t -c"
2209 break 2
2210 fi
2211 done
671aa708
NN
2212done
2213if test -z "$ac_aux_dir"; then
5213506e 2214 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
671aa708 2215fi
5213506e
RW
2216
2217# These three variables are undocumented and unsupported,
2218# and are intended to be withdrawn in a future Autoconf release.
2219# They can cause serious problems if a builder's source tree is in a directory
2220# whose full name contains unusual characters.
2221ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2222ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2223ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2224
671aa708 2225
1c710c3c 2226# Make sure we can run config.sub.
5213506e
RW
2227$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2228 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2229
2230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2231$as_echo_n "checking build system type... " >&6; }
2232if test "${ac_cv_build+set}" = set; then :
2233 $as_echo_n "(cached) " >&6
2234else
2235 ac_build_alias=$build_alias
2236test "x$ac_build_alias" = x &&
2237 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2238test "x$ac_build_alias" = x &&
2239 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2240ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2241 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2242
2243fi
2244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2245$as_echo "$ac_cv_build" >&6; }
2246case $ac_cv_build in
2247*-*-*) ;;
2248*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2249esac
1c710c3c 2250build=$ac_cv_build
5213506e
RW
2251ac_save_IFS=$IFS; IFS='-'
2252set x $ac_cv_build
2253shift
2254build_cpu=$1
2255build_vendor=$2
2256shift; shift
2257# Remember, the first character of IFS is used to create $*,
2258# except with old shells:
2259build_os=$*
2260IFS=$ac_save_IFS
2261case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
671aa708 2262
671aa708 2263
1c710c3c
DJ
2264 case ${build_alias} in
2265 "") build_noncanonical=${build} ;;
2266 *) build_noncanonical=${build_alias} ;;
af71363e
AS
2267esac
2268
2269
af71363e 2270
1c710c3c
DJ
2271 case ${host_alias} in
2272 "") host_noncanonical=${build_noncanonical} ;;
2273 *) host_noncanonical=${host_alias} ;;
af71363e
AS
2274esac
2275
af71363e 2276
1c710c3c
DJ
2277
2278 case ${target_alias} in
2279 "") target_noncanonical=${host_noncanonical} ;;
2280 *) target_noncanonical=${target_alias} ;;
af71363e
AS
2281esac
2282
af71363e 2283
1c710c3c
DJ
2284
2285
2286test "$host_noncanonical" = "$target_noncanonical" &&
671aa708
NN
2287 test "$program_prefix$program_suffix$program_transform_name" = \
2288 NONENONEs,x,x, &&
1c710c3c 2289 program_transform_name=s,y,y,
af71363e 2290
5213506e
RW
2291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2292$as_echo_n "checking host system type... " >&6; }
2293if test "${ac_cv_host+set}" = set; then :
2294 $as_echo_n "(cached) " >&6
af71363e 2295else
5213506e
RW
2296 if test "x$host_alias" = x; then
2297 ac_cv_host=$ac_cv_build
2298else
2299 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2300 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2301fi
1c710c3c 2302
af71363e 2303fi
5213506e
RW
2304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2305$as_echo "$ac_cv_host" >&6; }
2306case $ac_cv_host in
2307*-*-*) ;;
2308*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2309esac
1c710c3c 2310host=$ac_cv_host
5213506e
RW
2311ac_save_IFS=$IFS; IFS='-'
2312set x $ac_cv_host
2313shift
2314host_cpu=$1
2315host_vendor=$2
2316shift; shift
2317# Remember, the first character of IFS is used to create $*,
2318# except with old shells:
2319host_os=$*
2320IFS=$ac_save_IFS
2321case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2aeb72e9
DD
2322
2323
5213506e
RW
2324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2325$as_echo_n "checking target system type... " >&6; }
2326if test "${ac_cv_target+set}" = set; then :
2327 $as_echo_n "(cached) " >&6
1c710c3c 2328else
5213506e
RW
2329 if test "x$target_alias" = x; then
2330 ac_cv_target=$ac_cv_host
2331else
2332 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2333 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2334fi
1c710c3c
DJ
2335
2336fi
5213506e
RW
2337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2338$as_echo "$ac_cv_target" >&6; }
2339case $ac_cv_target in
2340*-*-*) ;;
2341*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2342esac
1c710c3c 2343target=$ac_cv_target
5213506e
RW
2344ac_save_IFS=$IFS; IFS='-'
2345set x $ac_cv_target
2346shift
2347target_cpu=$1
2348target_vendor=$2
2349shift; shift
2350# Remember, the first character of IFS is used to create $*,
2351# except with old shells:
2352target_os=$*
2353IFS=$ac_save_IFS
2354case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
1c710c3c
DJ
2355
2356
2357# The aliases save the names the user supplied, while $host etc.
2358# will get canonicalized.
2359test -n "$target_alias" &&
2360 test "$program_prefix$program_suffix$program_transform_name" = \
2361 NONENONEs,x,x, &&
2362 program_prefix=${target_alias}-
5213506e 2363
671aa708 2364test "$program_prefix" != NONE &&
5213506e 2365 program_transform_name="s&^&$program_prefix&;$program_transform_name"
671aa708
NN
2366# Use a double $ so make ignores it.
2367test "$program_suffix" != NONE &&
5213506e
RW
2368 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2369# Double any \ or $.
1c710c3c 2370# By default was `s,x,x', remove it if useless.
5213506e
RW
2371ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2372program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
af71363e 2373
671aa708
NN
2374
2375
775956d0
NN
2376# Get 'install' or 'install-sh' and its variants.
2377# Find a good install program. We prefer a C program (faster),
2378# so one script is as good as another. But avoid the broken or
2379# incompatible versions:
2380# SysV /etc/install, /usr/sbin/install
2381# SunOS /usr/etc/install
2382# IRIX /sbin/install
2383# AIX /bin/install
1c710c3c 2384# AmigaOS /C/install, which installs bootblocks on floppy discs
775956d0
NN
2385# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2386# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2387# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1c710c3c 2388# OS/2's system install, which has a completely different semantic
775956d0 2389# ./install, which can be erroneously created by make from ./install.sh.
38d24731 2390# Reject install programs that cannot install multiple files.
5213506e
RW
2391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2392$as_echo_n "checking for a BSD-compatible install... " >&6; }
775956d0 2393if test -z "$INSTALL"; then
5213506e
RW
2394if test "${ac_cv_path_install+set}" = set; then :
2395 $as_echo_n "(cached) " >&6
1c710c3c
DJ
2396else
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
5213506e
RW
2402 # Account for people who put trailing slashes in PATH elements.
2403case $as_dir/ in #((
2404 ./ | .// | /[cC]/* | \
1c710c3c 2405 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5213506e 2406 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1c710c3c
DJ
2407 /usr/ucb/* ) ;;
2408 *)
2409 # OSF1 and SCO ODT 3.0 have their own names for install.
2410 # Don't use installbsd from OSF since it installs stuff as root
2411 # by default.
2412 for ac_prog in ginstall scoinst install; do
2413 for ac_exec_ext in '' $ac_executable_extensions; do
5213506e 2414 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
775956d0 2415 if test $ac_prog = install &&
1c710c3c 2416 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
775956d0
NN
2417 # AIX install. It has an incompatible calling convention.
2418 :
1c710c3c
DJ
2419 elif test $ac_prog = install &&
2420 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2421 # program-specific install script used by HP pwplus--don't use.
2422 :
775956d0 2423 else
38d24731
RW
2424 rm -rf conftest.one conftest.two conftest.dir
2425 echo one > conftest.one
2426 echo two > conftest.two
2427 mkdir conftest.dir
2428 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2429 test -s conftest.one && test -s conftest.two &&
2430 test -s conftest.dir/conftest.one &&
2431 test -s conftest.dir/conftest.two
2432 then
2433 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2434 break 3
2435 fi
775956d0
NN
2436 fi
2437 fi
2438 done
1c710c3c
DJ
2439 done
2440 ;;
2441esac
5213506e
RW
2442
2443 done
2444IFS=$as_save_IFS
1c710c3c 2445
38d24731 2446rm -rf conftest.one conftest.two conftest.dir
775956d0
NN
2447
2448fi
2449 if test "${ac_cv_path_install+set}" = set; then
1c710c3c 2450 INSTALL=$ac_cv_path_install
775956d0 2451 else
38d24731
RW
2452 # As a last resort, use the slow shell script. Don't cache a
2453 # value for INSTALL within a source directory, because that will
775956d0 2454 # break other packages using the cache if that directory is
38d24731 2455 # removed, or if the value is a relative name.
1c710c3c 2456 INSTALL=$ac_install_sh
775956d0
NN
2457 fi
2458fi
5213506e
RW
2459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2460$as_echo "$INSTALL" >&6; }
775956d0
NN
2461
2462# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2463# It thinks the first close brace ends the variable substitution.
2464test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2465
1c710c3c 2466test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
775956d0
NN
2467
2468test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2469
5213506e
RW
2470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2471$as_echo_n "checking whether ln works... " >&6; }
2472if test "${acx_cv_prog_LN+set}" = set; then :
2473 $as_echo_n "(cached) " >&6
ad6717df
PB
2474else
2475 rm -f conftestdata_t
2476echo >conftestdata_f
2477if ln conftestdata_f conftestdata_t 2>/dev/null
2478then
2479 acx_cv_prog_LN=ln
2480else
2481 acx_cv_prog_LN=no
2482fi
2483rm -f conftestdata_f conftestdata_t
2484
2485fi
2486if test $acx_cv_prog_LN = no; then
2487 LN="cp"
5213506e
RW
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2489$as_echo "no, using $LN" >&6; }
ad6717df
PB
2490else
2491 LN="$acx_cv_prog_LN"
5213506e
RW
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2493$as_echo "yes" >&6; }
ad6717df
PB
2494fi
2495
5213506e
RW
2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2497$as_echo_n "checking whether ln -s works... " >&6; }
1c710c3c
DJ
2498LN_S=$as_ln_s
2499if test "$LN_S" = "ln -s"; then
5213506e
RW
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2501$as_echo "yes" >&6; }
fb0103e5 2502else
5213506e
RW
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2504$as_echo "no, using $LN_S" >&6; }
148907ea
PB
2505fi
2506
87264276
PB
2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2508$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2509if test "${ac_cv_path_SED+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2511else
2512 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2513 for ac_i in 1 2 3 4 5 6 7; do
2514 ac_script="$ac_script$as_nl$ac_script"
2515 done
2516 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2517 { ac_script=; unset ac_script;}
2518 if test -z "$SED"; then
2519 ac_path_SED_found=false
2520 # Loop through the user's path and test for each of PROGNAME-LIST
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522for as_dir in $PATH
2523do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_prog in sed gsed; do
2527 for ac_exec_ext in '' $ac_executable_extensions; do
2528 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2529 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2530# Check for GNU ac_path_SED and select it if it is found.
2531 # Check for GNU $ac_path_SED
2532case `"$ac_path_SED" --version 2>&1` in
2533*GNU*)
2534 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2535*)
2536 ac_count=0
2537 $as_echo_n 0123456789 >"conftest.in"
2538 while :
2539 do
2540 cat "conftest.in" "conftest.in" >"conftest.tmp"
2541 mv "conftest.tmp" "conftest.in"
2542 cp "conftest.in" "conftest.nl"
2543 $as_echo '' >> "conftest.nl"
2544 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2545 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2546 as_fn_arith $ac_count + 1 && ac_count=$as_val
2547 if test $ac_count -gt ${ac_path_SED_max-0}; then
2548 # Best one so far, save it but keep looking for a better one
2549 ac_cv_path_SED="$ac_path_SED"
2550 ac_path_SED_max=$ac_count
2551 fi
2552 # 10*(2^10) chars as input seems more than enough
2553 test $ac_count -gt 10 && break
2554 done
2555 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2556esac
2557
2558 $ac_path_SED_found && break 3
2559 done
2560 done
2561 done
2562IFS=$as_save_IFS
2563 if test -z "$ac_cv_path_SED"; then
2564 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2565 fi
2566else
2567 ac_cv_path_SED=$SED
2568fi
2569
2570fi
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2572$as_echo "$ac_cv_path_SED" >&6; }
2573 SED="$ac_cv_path_SED"
2574 rm -f conftest.sed
2575
2576for ac_prog in gawk mawk nawk awk
2577do
2578 # Extract the first word of "$ac_prog", so it can be a program name with args.
2579set dummy $ac_prog; ac_word=$2
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581$as_echo_n "checking for $ac_word... " >&6; }
2582if test "${ac_cv_prog_AWK+set}" = set; then :
2583 $as_echo_n "(cached) " >&6
2584else
2585 if test -n "$AWK"; then
2586 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595 ac_cv_prog_AWK="$ac_prog"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599done
2600 done
2601IFS=$as_save_IFS
2602
2603fi
2604fi
2605AWK=$ac_cv_prog_AWK
2606if test -n "$AWK"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2608$as_echo "$AWK" >&6; }
2609else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611$as_echo "no" >&6; }
2612fi
2613
2614
2615 test -n "$AWK" && break
2616done
2617
775956d0 2618
ee6a22df
L
2619srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2620
2621# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2622# a relative path.
2623if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2624 INSTALL="${srcpwd}/install-sh -c"
2625fi
2626
671aa708
NN
2627# Set srcdir to "." if that's what it is.
2628# This is important for multilib support.
2629pwd=`${PWDCMD-pwd}`
671aa708
NN
2630if test "${pwd}" = "${srcpwd}" ; then
2631 srcdir=.
79c06341
JL
2632fi
2633
671aa708 2634topsrcdir=$srcpwd
5d4a5ee6 2635
671aa708 2636extra_host_args=
afabd8e6 2637
671aa708
NN
2638### To add a new directory to the tree, first choose whether it is a target
2639### or a host dependent tool. Then put it into the appropriate list
2640### (library or tools, host or target), doing a dependency sort.
79c06341 2641
1c710c3c 2642# Subdirs will be configured in the order listed in build_configdirs,
671aa708 2643# configdirs, or target_configdirs; see the serialization section below.
79c06341 2644
1c710c3c
DJ
2645# Dependency sorting is only needed when *configuration* must be done in
2646# a particular order. In all cases a dependency should be specified in
671aa708 2647# the Makefile, whether or not it's implicitly specified here.
79c06341 2648
671aa708
NN
2649# Double entries in build_configdirs, configdirs, or target_configdirs may
2650# cause circular dependencies and break everything horribly.
79c06341 2651
23f6b2f9
PB
2652# these library is used by various programs built for the build
2653# environment
2654#
2655build_libs="build-libiberty"
2656
2657# these tools are built for the build environment
85bfb75e 2658build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
23f6b2f9 2659
671aa708
NN
2660# these libraries are used by various programs built for the host environment
2661#
85bfb75e 2662host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
671aa708 2663
671aa708
NN
2664# these tools are built for the host environment
2665# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2666# know that we are building the simulator.
2667# binutils, gas and ld appear in that order because it makes sense to run
2668# "make check" in that particular order.
38e3d868 2669# If --enable-gold is used, "gold" may replace "ld".
85bfb75e 2670host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
671aa708
NN
2671
2672# libgcj represents the runtime libraries only used by gcj.
2673libgcj="target-libffi \
671aa708 2674 target-zlib \
671aa708
NN
2675 target-libjava"
2676
2677# these libraries are built for the target environment, and are built after
2678# the host libraries and the host tools (which may be a cross compiler)
8499116a 2679# Note that libiberty is not a target library.
291f172e 2680target_libraries="target-libgcc \
671aa708
NN
2681 target-libgloss \
2682 target-newlib \
6d3b5aea 2683 target-libgomp \
0a35513e 2684 target-libitm \
cb543528 2685 target-libstdc++-v3 \
6de9cd9a 2686 target-libmudflap \
77008252 2687 target-libssp \
1ec601bf 2688 target-libquadmath \
6de9cd9a 2689 target-libgfortran \
7cd0cf9c 2690 target-boehm-gc \
77d187bc 2691 ${libgcj} \
d9cdb878 2692 target-libobjc \
632e2a07
ILT
2693 target-libada \
2694 target-libgo"
671aa708 2695
4dbda6f0
NN
2696# these tools are built using the target libraries, and are intended to
2697# run only in the target environment
671aa708 2698#
4dbda6f0 2699# note: any program that *uses* libraries that are in the "target_libraries"
1bcce263 2700# list belongs in this list.
671aa708 2701#
85bfb75e 2702target_tools="target-rda"
79c06341 2703
671aa708 2704################################################################################
79c06341 2705
671aa708
NN
2706## All tools belong in one of the four categories, and are assigned above
2707## We assign ${configdirs} this way to remove all embedded newlines. This
2708## is important because configure will choke if they ever get through.
2709## ${configdirs} is directories we build using the host tools.
2710## ${target_configdirs} is directories we build using the target tools.
671aa708 2711configdirs=`echo ${host_libs} ${host_tools}`
4dbda6f0 2712target_configdirs=`echo ${target_libraries} ${target_tools}`
71b5d516 2713build_configdirs=`echo ${build_libs} ${build_tools}`
8b87bb96 2714
ac9e6043
RW
2715
2716
671aa708 2717################################################################################
79c06341 2718
671aa708 2719srcname="gnu development package"
79c06341 2720
671aa708
NN
2721# This gets set non-empty for some net releases of packages.
2722appdirs=""
79c06341 2723
671aa708
NN
2724# Define is_cross_compiler to save on calls to 'test'.
2725is_cross_compiler=
2726if test x"${host}" = x"${target}" ; then
2727 is_cross_compiler=no
79c06341 2728else
671aa708 2729 is_cross_compiler=yes
1c710c3c 2730fi
79c06341 2731
b4acb5ef 2732# Find the build and target subdir names.
8b87bb96 2733
2e9e6f68
DJ
2734# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2735# have matching libraries, they should use host libraries: Makefile.tpl
2736# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2737# However, they still use the build modules, because the corresponding
2738# host modules (e.g. bison) are only built for the host when bootstrap
2739# finishes. So:
2740# - build_subdir is where we find build modules, and never changes.
2741# - build_libsubdir is where we find build libraries, and can be overridden.
2742
2743# Prefix 'build-' so this never conflicts with target_subdir.
8b87bb96 2744build_subdir="build-${build_noncanonical}"
1c710c3c 2745
5213506e
RW
2746# Check whether --with-build-libsubdir was given.
2747if test "${with_build_libsubdir+set}" = set; then :
2748 withval=$with_build_libsubdir; build_libsubdir="$withval"
2e9e6f68
DJ
2749else
2750 build_libsubdir="$build_subdir"
5213506e
RW
2751fi
2752
215c351a
PB
2753# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2754if ( test $srcdir = . && test -d gcc ) \
2755 || test -d $srcdir/../host-${host_noncanonical}; then
2756 host_subdir="host-${host_noncanonical}"
2757else
2758 host_subdir=.
2759fi
8b87bb96
NN
2760# No prefix.
2761target_subdir=${target_noncanonical}
1c710c3c 2762
0db770bd
RW
2763# Be sure to cover against remnants of an in-tree build.
2764if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2765 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2766Use a pristine source tree when building in a separate tree" "$LINENO" 5
2767fi
79c06341 2768
671aa708
NN
2769# Skipdirs are removed silently.
2770skipdirs=
2771# Noconfigdirs are removed loudly.
2772noconfigdirs=""
79c06341 2773
671aa708
NN
2774use_gnu_ld=
2775# Make sure we don't let GNU ld be added if we didn't want it.
2776if test x$with_gnu_ld = xno ; then
2777 use_gnu_ld=no
5afab7ad 2778 noconfigdirs="$noconfigdirs ld gold"
79c06341
JL
2779fi
2780
671aa708
NN
2781use_gnu_as=
2782# Make sure we don't let GNU as be added if we didn't want it.
2783if test x$with_gnu_as = xno ; then
2784 use_gnu_as=no
2785 noconfigdirs="$noconfigdirs gas"
79c06341
JL
2786fi
2787
d7f09764
DN
2788use_included_zlib=
2789# Make sure we don't let ZLIB be added if we didn't want it.
2790if test x$with_system_zlib = xyes ; then
2791 use_included_zlib=no
2792 noconfigdirs="$noconfigdirs zlib"
2793fi
2794
1c710c3c 2795# some tools are so dependent upon X11 that if we're not building with X,
671aa708 2796# it's not even worth trying to configure, much less build, that tool.
79c06341 2797
671aa708
NN
2798case ${with_x} in
2799 yes | "") ;; # the default value for this tree is that X11 is available
2800 no)
b4f96efe 2801 skipdirs="${skipdirs} tk itcl libgui"
671aa708 2802 # We won't be able to build gdbtk without X.
1c710c3c 2803 enable_gdbtk=no
671aa708
NN
2804 ;;
2805 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2806esac
79c06341 2807
1bcce263 2808# Some are only suitable for cross toolchains.
671aa708
NN
2809# Remove these if host=target.
2810cross_only="target-libgloss target-newlib target-opcodes"
2811
2812case $is_cross_compiler in
2813 no) skipdirs="${skipdirs} ${cross_only}" ;;
671aa708 2814esac
79c06341 2815
671aa708
NN
2816# If both --with-headers and --with-libs are specified, default to
2817# --without-newlib.
ee6a22df
L
2818if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2819 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
671aa708
NN
2820 if test x"${with_newlib}" = x ; then
2821 with_newlib=no
2822 fi
79c06341
JL
2823fi
2824
671aa708
NN
2825# Recognize --with-newlib/--without-newlib.
2826case ${with_newlib} in
2827 no) skipdirs="${skipdirs} target-newlib" ;;
2828 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2829esac
79c06341 2830
21539e2e
MK
2831# Handle --enable-gold, --enable-ld.
2832# --disable-gold [--enable-ld]
2833# Build only ld. Default option.
9580395f
L
2834# --enable-gold [--enable-ld]
2835# Build both gold and ld. Install gold as "ld.gold", install ld
2836# as "ld.bfd" and "ld".
2837# --enable-gold=default [--enable-ld]
21539e2e
MK
2838# Build both gold and ld. Install gold as "ld.gold" and "ld",
2839# install ld as "ld.bfd".
2840# --enable-gold[=default] --disable-ld
2841# Build only gold, which is then installed as both "ld.gold" and "ld".
2842# --enable-gold --enable-ld=default
9580395f
L
2843# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2844# and ld.bfd).
21539e2e
MK
2845# In other words, ld is default
2846# --enable-gold=default --enable-ld=default
2847# Error.
2848
2849default_ld=
5213506e
RW
2850# Check whether --enable-gold was given.
2851if test "${enable_gold+set}" = set; then :
2852 enableval=$enable_gold; ENABLE_GOLD=$enableval
5afab7ad
ILT
2853else
2854 ENABLE_GOLD=no
5213506e
RW
2855fi
2856
21539e2e
MK
2857case "${ENABLE_GOLD}" in
2858 yes|default)
38e3d868
RM
2859 # Check for ELF target.
2860 is_elf=no
2861 case "${target}" in
2862 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2863 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
8c6d158a
JM
2864 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2865 | *-*-solaris2* | *-*-nto*)
38e3d868
RM
2866 case "${target}" in
2867 *-*-linux*aout* | *-*-linux*oldld*)
2868 ;;
2869 *)
2870 is_elf=yes
2871 ;;
2872 esac
2873 esac
2874
2875 if test "$is_elf" = "yes"; then
2876 # Check for target supported by gold.
5afab7ad 2877 case "${target}" in
38e3d868 2878 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
21539e2e
MK
2879 configdirs="$configdirs gold"
2880 if test x${ENABLE_GOLD} = xdefault; then
2881 default_ld=gold
2882 fi
38e3d868 2883 ENABLE_GOLD=yes
5afab7ad
ILT
2884 ;;
2885 esac
38e3d868
RM
2886 fi
2887 ;;
2888 no)
2889 ;;
2890 *)
2891 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2892 ;;
21539e2e
MK
2893esac
2894
2895# Check whether --enable-ld was given.
2896if test "${enable_ld+set}" = set; then :
2897 enableval=$enable_ld; ENABLE_LD=$enableval
2898else
2899 ENABLE_LD=yes
2900fi
2901
2902
2903case "${ENABLE_LD}" in
2904 default)
9580395f 2905 if test x${default_ld} != x; then
21539e2e
MK
2906 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2907 fi
2908 ;;
2909 yes)
2910 ;;
2911 no)
2912 if test x${ENABLE_GOLD} != xyes; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2914$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2915 fi
2916 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2917 ;;
2918 *)
2919 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2920 ;;
2921esac
5afab7ad 2922
671aa708 2923# Configure extra directories which are host specific
79c06341 2924
671aa708
NN
2925case "${host}" in
2926 *-cygwin*)
2927 configdirs="$configdirs libtermcap" ;;
2928esac
79c06341 2929
4fab7234
HPN
2930# A target can indicate whether a language isn't supported for some reason.
2931# Only spaces may be used in this macro; not newlines or tabs.
2932unsupported_languages=
2933
1c710c3c 2934# Remove more programs from consideration, based on the host or
671aa708
NN
2935# target this usually means that a port of the program doesn't
2936# exist yet.
ec8d6ddc 2937
671aa708 2938case "${host}" in
111eeb6e 2939 i[3456789]86-*-msdosdjgpp*)
c9bdb152 2940 noconfigdirs="$noconfigdirs tcl tk itcl"
671aa708 2941 ;;
671aa708 2942esac
ec8d6ddc 2943
6de9cd9a 2944
87e6d9dc
TB
2945# Check whether --enable-libquadmath was given.
2946if test "${enable_libquadmath+set}" = set; then :
2947 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2948else
2949 ENABLE_LIBQUADMATH=yes
2950fi
2951
2952if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2953 noconfigdirs="$noconfigdirs target-libquadmath"
2954fi
2955
2956
2957# Check whether --enable-libquadmath-support was given.
2958if test "${enable_libquadmath_support+set}" = set; then :
2959 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2960else
2961 ENABLE_LIBQUADMATH_SUPPORT=yes
2962fi
2963
2964enable_libquadmath_support=
2965if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2966 enable_libquadmath_support=no
2967fi
2968
2969
5213506e
RW
2970# Check whether --enable-libada was given.
2971if test "${enable_libada+set}" = set; then :
2972 enableval=$enable_libada; ENABLE_LIBADA=$enableval
d9cdb878
AC
2973else
2974 ENABLE_LIBADA=yes
5213506e
RW
2975fi
2976
d9cdb878 2977if test "${ENABLE_LIBADA}" != "yes" ; then
5395b47b 2978 noconfigdirs="$noconfigdirs gnattools"
d9cdb878
AC
2979fi
2980
5213506e
RW
2981# Check whether --enable-libssp was given.
2982if test "${enable_libssp+set}" = set; then :
2983 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
ef0087a7
KH
2984else
2985 ENABLE_LIBSSP=yes
5213506e
RW
2986fi
2987
ef0087a7 2988
671aa708
NN
2989# Save it here so that, even in case of --enable-libgcj, if the Java
2990# front-end isn't enabled, we still get libgcj disabled.
2991libgcj_saved=$libgcj
2992case $enable_libgcj in
2993yes)
2994 # If we reset it here, it won't get added to noconfigdirs in the
2995 # target-specific build rules, so it will be forcibly enabled
2996 # (unless the Java language itself isn't enabled).
2997 libgcj=
2998 ;;
2999no)
3000 # Make sure we get it printed in the list of not supported target libs.
4da3b0f8
ILT
3001 # Don't disable libffi, though, other languages use it.
3002 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
d479b128
ILT
3003 # Clear libgcj_saved so that even if java is enabled libffi won't be
3004 # built.
3005 libgcj_saved=
671aa708
NN
3006 ;;
3007esac
ec8d6ddc 3008
a4a2c37d
MK
3009# Check whether --enable-static-libjava was given.
3010if test "${enable_static_libjava+set}" = set; then :
3011 enableval=$enable_static_libjava; ENABLE_STATIC_LIBJAVA=$enableval
3012else
3013 ENABLE_STATIC_LIBJAVA=no
3014fi
3015
3016enable_static_libjava=
3017if test "${ENABLE_STATIC_LIBJAVA}" = "yes" ; then
3018 enable_static_libjava=yes
3019fi
3020
3021if test x$enable_static_libjava != xyes ; then
3022 EXTRA_CONFIGARGS_LIBJAVA=--disable-static
3023fi
3024
6de9cd9a 3025
27079765
AH
3026# Disable libmudflap on some systems.
3027if test x$enable_libmudflap = x ; then
dfcada9a 3028 case "${target}" in
416ac4d4 3029 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
98a5bb3b 3030 # Enable libmudflap by default in GNU and friends.
dfcada9a 3031 ;;
a3e8d8b4
LR
3032 *-*-freebsd*)
3033 # Enable libmudflap by default in FreeBSD.
3034 ;;
dfcada9a
MM
3035 *)
3036 # Disable it by default everywhere else.
3037 noconfigdirs="$noconfigdirs target-libmudflap"
3038 ;;
3039 esac
27079765 3040fi
6de9cd9a 3041
27079765
AH
3042# Disable libgomp on non POSIX hosted systems.
3043if test x$enable_libgomp = x ; then
953ff289
DN
3044 # Enable libgomp by default on hosted POSIX systems.
3045 case "${target}" in
416ac4d4 3046 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
953ff289 3047 ;;
8c6d158a 3048 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
953ff289 3049 ;;
6de66370 3050 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
953ff289 3051 ;;
cac90078 3052 *-*-darwin* | *-*-aix*)
953ff289
DN
3053 ;;
3054 *)
3055 noconfigdirs="$noconfigdirs target-libgomp"
3056 ;;
3057 esac
27079765 3058fi
953ff289 3059
e948157d
RH
3060# Disable libitm on unsupported systems.
3061if test -d ${srcdir}/libitm; then
3062 if test x$enable_libitm = x; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
01f3428c 3064$as_echo_n "checking for libitm support... " >&6; }
e948157d
RH
3065 if (srcdir=${srcdir}/libitm; \
3066 . ${srcdir}/configure.tgt; \
3067 test -n "$UNSUPPORTED")
3068 then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
01f3428c 3070$as_echo "no" >&6; }
e948157d
RH
3071 noconfigdirs="$noconfigdirs target-libitm"
3072 else
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
01f3428c 3074$as_echo "yes" >&6; }
e948157d
RH
3075 fi
3076 fi
0a35513e
AH
3077fi
3078
1e9e0e23
JM
3079# Disable libssp for some systems.
3080case "${target}" in
3081 avr-*-*)
b318fb4b 3082 # No hosted I/O support.
1e9e0e23
JM
3083 noconfigdirs="$noconfigdirs target-libssp"
3084 ;;
3085 powerpc-*-aix* | rs6000-*-aix*)
3086 noconfigdirs="$noconfigdirs target-libssp"
3087 ;;
1e9e0e23
JM
3088esac
3089
1e9e0e23
JM
3090# Disable libstdc++-v3 for some systems.
3091case "${target}" in
3092 *-*-vxworks*)
3093 # VxWorks uses the Dinkumware C++ library.
3094 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3095 ;;
3096 arm*-wince-pe*)
3097 # the C++ libraries don't build on top of CE's C libraries
3098 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3099 ;;
3100 avr-*-*)
3101 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3102 ;;
3103esac
3104
3105# Disable Fortran for some systems.
3106case "${target}" in
3107 mmix-*-*)
3108 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3109 unsupported_languages="$unsupported_languages fortran"
3110 ;;
3111esac
3112
80f81134 3113# Disable Java if libffi is not supported.
2909494b 3114case "${target}" in
80f81134
JM
3115 alpha*-*-*)
3116 ;;
3117 arm*-*-*)
3118 ;;
3119 cris-*-*)
3120 ;;
3121 frv-*-*)
3122 ;;
3123 hppa*-*-linux*)
3124 ;;
3125 hppa*-*-hpux*)
3126 ;;
3127 i?86-*-*)
3128 ;;
3129 ia64*-*-*)
3130 ;;
3131 m32r*-*-*)
3132 ;;
3133 m68k-*-*)
3134 ;;
3135 mips-sgi-irix6.* | mips*-*-rtems*)
3136 ;;
3137 mips*-*-linux*)
3138 ;;
3139 powerpc*-*-linux*)
3140 ;;
3141 powerpc-*-darwin*)
3142 ;;
3143 powerpc-*-aix* | rs6000-*-aix*)
3144 ;;
3145 powerpc-*-freebsd*)
3146 ;;
3147 powerpc64-*-freebsd*)
3148 ;;
3149 powerpc*-*-rtems*)
2909494b 3150 ;;
80f81134
JM
3151 s390-*-* | s390x-*-*)
3152 ;;
3153 sh-*-* | sh[34]*-*-*)
3154 ;;
3155 sh64-*-* | sh5*-*-*)
3156 ;;
3157 sparc*-*-*)
3158 ;;
3159 x86_64-*-*)
3160 ;;
3161 *-*-*)
3162 unsupported_languages="$unsupported_languages java"
3163 ;;
3164esac
3165
3166# Disable Java, libgcj or related libraries for some systems.
3167case "${target}" in
2909494b
JM
3168 powerpc-*-darwin*)
3169 ;;
3170 i[3456789]86-*-darwin*)
3171 ;;
3172 x86_64-*-darwin[912]*)
3173 ;;
3174 *-*-darwin*)
3175 noconfigdirs="$noconfigdirs ${libgcj}"
3176 ;;
2909494b
JM
3177 *-*-netware*)
3178 noconfigdirs="$noconfigdirs ${libgcj}"
3179 ;;
3180 *-*-rtems*)
3181 noconfigdirs="$noconfigdirs ${libgcj}"
3182 ;;
3183 *-*-tpf*)
3184 noconfigdirs="$noconfigdirs ${libgcj}"
3185 ;;
3186 *-*-uclinux*)
3187 noconfigdirs="$noconfigdirs ${libgcj}"
3188 ;;
3189 *-*-vxworks*)
3190 noconfigdirs="$noconfigdirs ${libgcj}"
3191 ;;
2909494b
JM
3192 alpha*-*-*vms*)
3193 noconfigdirs="$noconfigdirs ${libgcj}"
3194 ;;
80f81134 3195 arm-wince-pe)
2909494b
JM
3196 noconfigdirs="$noconfigdirs ${libgcj}"
3197 ;;
2909494b
JM
3198 arm*-*-symbianelf*)
3199 noconfigdirs="$noconfigdirs ${libgcj}"
3200 ;;
2909494b 3201 bfin-*-*)
2909494b
JM
3202 noconfigdirs="$noconfigdirs target-boehm-gc"
3203 ;;
2909494b
JM
3204 cris-*-* | crisv32-*-*)
3205 unsupported_languages="$unsupported_languages java"
3206 case "${target}" in
3207 *-*-linux*)
3208 ;;
3209 *) # See PR46792 regarding target-libffi.
3210 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3211 esac
3212 ;;
2909494b
JM
3213 hppa*64*-*-linux*)
3214 # In this case, it's because the hppa64-linux target is for
3215 # the kernel only at this point and has no libc, and thus no
3216 # headers, crt*.o, etc., all of which are needed by these.
fddf9ee7 3217 unsupported_languages="$unsupported_languages java"
2909494b 3218 ;;
fddf9ee7 3219 hppa*64*-*-hpux*)
2909494b
JM
3220 noconfigdirs="$noconfigdirs ${libgcj}"
3221 ;;
3222 hppa*-hp-hpux11*)
3223 ;;
fddf9ee7 3224 hppa*-*-hpux*)
2909494b
JM
3225 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3226 # build on HP-UX 10.20.
3227 noconfigdirs="$noconfigdirs ${libgcj}"
3228 ;;
2909494b
JM
3229 ia64*-*-*vms*)
3230 noconfigdirs="$noconfigdirs ${libgcj}"
3231 ;;
2909494b
JM
3232 i[3456789]86-w64-mingw*)
3233 noconfigdirs="$noconfigdirs ${libgcj}"
3234 ;;
3235 i[3456789]86-*-mingw*)
3236 noconfigdirs="$noconfigdirs ${libgcj}"
3237 ;;
3238 x86_64-*-mingw*)
3239 noconfigdirs="$noconfigdirs ${libgcj}"
3240 ;;
2909494b
JM
3241 mmix-*-*)
3242 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
2909494b
JM
3243 ;;
3244 powerpc-*-aix*)
3245 # copied from rs6000-*-* entry
3246 noconfigdirs="$noconfigdirs ${libgcj}"
3247 ;;
2909494b
JM
3248 rs6000-*-aix*)
3249 noconfigdirs="$noconfigdirs ${libgcj}"
3250 ;;
2909494b
JM
3251 mips*-*-irix6*)
3252 # Linking libjava exceeds command-line length limits on at least
3253 # IRIX 6.2, but not on IRIX 6.5.
3254 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3255 # <oldham@codesourcery.com>
3256 noconfigdirs="$noconfigdirs ${libgcj}"
3257 ;;
2909494b
JM
3258 *-*-lynxos*)
3259 noconfigdirs="$noconfigdirs ${libgcj}"
3260 ;;
2909494b
JM
3261esac
3262
c03353e2
RIL
3263# Default libgloss CPU subdirectory.
3264libgloss_dir="$target_cpu"
6de9cd9a 3265
fbcf0dca
JM
3266case "${target}" in
3267 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3268 libgloss_dir=wince
3269 ;;
3270 arm*-*-*)
3271 libgloss_dir=arm
3272 ;;
3273 cris-*-* | crisv32-*-*)
3274 libgloss_dir=cris
3275 ;;
3276 hppa*-*-*)
3277 libgloss_dir=pa
3278 ;;
3279 i[3456789]86-*-*)
3280 libgloss_dir=i386
3281 ;;
3282 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3283 libgloss_dir=m68hc11
3284 ;;
3285 m68*-*-* | fido-*-*)
3286 libgloss_dir=m68k
3287 ;;
3288 mips*-*-*)
3289 libgloss_dir=mips
3290 ;;
3291 powerpc*-*-*)
3292 libgloss_dir=rs6000
3293 ;;
3294 sparc*-*-*)
3295 libgloss_dir=sparc
3296 ;;
3297esac
3298
6a789d5e 3299# Disable newlib and libgloss for various target OSes.
671aa708 3300case "${target}" in
6a789d5e
JM
3301 alpha*-dec-osf*)
3302 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3303 ;;
3304 i[3456789]86-*-linux*)
3305 # This section makes it possible to build newlib natively on linux.
3306 # If we are using a cross compiler then don't configure newlib.
3307 if test x${is_cross_compiler} != xno ; then
3308 noconfigdirs="$noconfigdirs target-newlib"
3309 fi
3310 noconfigdirs="$noconfigdirs target-libgloss"
3311 # If we are not using a cross compiler, do configure newlib.
3312 # Note however, that newlib will only be configured in this situation
3313 # if the --with-newlib option has been given, because otherwise
3314 # 'target-newlib' will appear in skipdirs.
3315 ;;
3316 i[3456789]86-*-rdos*)
3317 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3318 ;;
3319 sh*-*-pe|mips*-*-pe|arm-wince-pe)
3320 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3321 ;;
3322 sparc-*-sunos4*)
3323 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3324 ;;
3325 *-*-aix*)
3326 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3327 ;;
3328 *-*-beos*)
3329 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3330 ;;
671aa708 3331 *-*-chorusos)
0036370f 3332 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3333 ;;
6a789d5e
JM
3334 *-*-dragonfly*)
3335 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3336 ;;
3337 *-*-freebsd*)
3338 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3339 ;;
3340 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3341 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3342 ;;
3343 *-*-lynxos*)
3344 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3345 ;;
3346 *-*-mingw*)
3347 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3348 ;;
3349 *-*-netbsd*)
3350 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3351 ;;
3352 *-*-netware*)
3353 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3354 ;;
3355 *-*-tpf*)
3356 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3357 ;;
3358 *-*-uclinux*)
3359 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3360 ;;
3361 *-*-vxworks*)
3362 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3363 ;;
3364esac
3365
3366case "${target}" in
3367 *-*-chorusos)
3368 ;;
75eeae1a 3369 powerpc-*-darwin*)
e1514c3f 3370 noconfigdirs="$noconfigdirs ld gas gdb gprof"
9c8f9ec2 3371 noconfigdirs="$noconfigdirs sim target-rda"
940cde4d 3372 ;;
354ebf88
RW
3373 i[3456789]86-*-darwin*)
3374 noconfigdirs="$noconfigdirs ld gprof"
3375 noconfigdirs="$noconfigdirs sim target-rda"
3376 ;;
3377 x86_64-*-darwin[912]*)
0db3a858
TG
3378 noconfigdirs="$noconfigdirs ld gas gprof"
3379 noconfigdirs="$noconfigdirs sim target-rda"
3380 ;;
42c1cd8a
AT
3381 *-*-darwin*)
3382 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3383 noconfigdirs="$noconfigdirs sim target-rda"
42c1cd8a 3384 ;;
8c6d158a 3385 *-*-dragonfly*)
8c6d158a 3386 ;;
c3f84f61 3387 *-*-freebsd*)
6de9cd9a
DN
3388 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3389 && test -f /usr/local/include/gmp.h; then
3390 with_gmp=/usr/local
3391 fi
6de9cd9a 3392 ;;
ef4e7569
US
3393 *-*-kaos*)
3394 # Remove unsupported stuff on all kaOS configurations.
ef4e7569
US
3395 noconfigdirs="$noconfigdirs target-libgloss"
3396 ;;
671aa708 3397 *-*-netbsd*)
671aa708 3398 ;;
61fec9ff 3399 *-*-netware*)
671aa708
NN
3400 ;;
3401 *-*-rtems*)
2909494b 3402 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3403 ;;
a8ba31f2
EC
3404 # The tpf target doesn't support gdb yet.
3405 *-*-tpf*)
6a789d5e 3406 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
a8ba31f2 3407 ;;
5785c0ed 3408 *-*-uclinux*)
6a789d5e 3409 noconfigdirs="$noconfigdirs target-rda"
5785c0ed 3410 ;;
671aa708 3411 *-*-vxworks*)
671aa708
NN
3412 ;;
3413 alpha*-dec-osf*)
3414 # ld works, but does not support shared libraries.
671aa708 3415 # gas doesn't generate exception information.
6a789d5e 3416 noconfigdirs="$noconfigdirs gas ld"
671aa708
NN
3417 ;;
3418 alpha*-*-*vms*)
2909494b 3419 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
671aa708 3420 ;;
671aa708
NN
3421 alpha*-*-*)
3422 # newlib is not 64 bit ready
2909494b 3423 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3424 ;;
671aa708 3425 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
b4f96efe 3426 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
671aa708
NN
3427 ;;
3428 arc-*-*)
ebb9f8b0 3429 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3430 ;;
671aa708 3431 arm-*-pe*)
2909494b 3432 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3433 ;;
671aa708 3434 arm-*-riscix*)
0036370f 3435 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3436 ;;
671aa708 3437 c4x-*-* | tic4x-*-*)
0036370f 3438 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3439 ;;
0036370f
JM
3440 tic54x-*-*)
3441 noconfigdirs="$noconfigdirs target-libgloss gdb"
671aa708 3442 ;;
c993ae60 3443 cr16-*-*)
2909494b 3444 noconfigdirs="$noconfigdirs gdb"
c993ae60 3445 ;;
671aa708 3446 d10v-*-*)
0036370f 3447 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3448 ;;
3449 d30v-*-*)
0036370f 3450 noconfigdirs="$noconfigdirs gdb"
671aa708
NN
3451 ;;
3452 fr30-*-elf*)
2909494b 3453 noconfigdirs="$noconfigdirs gdb"
671aa708 3454 ;;
55f2d967 3455 moxie-*-*)
55f2d967
AG
3456 noconfigdirs="$noconfigdirs gprof"
3457 ;;
671aa708 3458 h8300*-*-*)
2909494b 3459 noconfigdirs="$noconfigdirs target-libgloss"
671aa708
NN
3460 ;;
3461 h8500-*-*)
0036370f 3462 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3463 ;;
ee6a22df 3464 hppa1.1-*-osf* | hppa1.1-*-bsd* )
ee6a22df 3465 ;;
4569f85e 3466 hppa*64*-*-linux*)
671aa708 3467 ;;
56f8587a 3468 hppa*-*-linux*)
3e732ba0 3469 ;;
671aa708 3470 hppa*-*-*elf* | \
671aa708
NN
3471 hppa*-*-lites* | \
3472 hppa*-*-openbsd* | \
3473 hppa*64*-*-*)
671aa708 3474 ;;
2a332582 3475 hppa*-hp-hpux11*)
1bcce263 3476 noconfigdirs="$noconfigdirs ld"
2a332582 3477 ;;
c03353e2 3478 hppa*-*-pro*)
c03353e2 3479 ;;
671aa708 3480 hppa*-*-*)
2909494b 3481 noconfigdirs="$noconfigdirs ld"
671aa708 3482 ;;
fb87ad5d 3483 i960-*-*)
0036370f 3484 noconfigdirs="$noconfigdirs gdb"
fb87ad5d 3485 ;;
671aa708
NN
3486 ia64*-*-elf*)
3487 # No gdb support yet.
1bcce263 3488 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
671aa708
NN
3489 ;;
3490 ia64*-**-hpux*)
5a2931d1 3491 # No ld support yet.
2909494b 3492 noconfigdirs="$noconfigdirs libgui itcl ld"
671aa708 3493 ;;
52535a64
DR
3494 ia64*-*-*vms*)
3495 # No gdb or ld support yet.
2909494b 3496 noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
52535a64 3497 ;;
ef4c4300 3498 i[3456789]86-w64-mingw*)
ef4c4300
KT
3499 ;;
3500 i[3456789]86-*-mingw*)
b91f0a41 3501 target_configdirs="$target_configdirs target-winsup"
1c710c3c 3502 ;;
671aa708
NN
3503 *-*-cygwin*)
3504 target_configdirs="$target_configdirs target-libtermcap target-winsup"
1bcce263 3505 noconfigdirs="$noconfigdirs target-libgloss"
801e2270 3506 # always build newlib if winsup directory is present.
b91f0a41 3507 if test -d "$srcdir/winsup/cygwin"; then
801e2270 3508 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ee6a22df 3509 elif test -d "$srcdir/newlib"; then
b91f0a41 3510 echo "Warning: winsup/cygwin is missing so newlib can't be built."
801e2270 3511 fi
1c710c3c 3512 ;;
f2a0e225 3513 i[3456789]86-*-pe)
ebb9f8b0 3514 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3515 ;;
f2a0e225 3516 i[3456789]86-*-sco3.2v5*)
671aa708
NN
3517 # The linker does not yet know about weak symbols in COFF,
3518 # and is not configured to handle mixed ELF and COFF.
0036370f 3519 noconfigdirs="$noconfigdirs ld target-libgloss"
671aa708 3520 ;;
f2a0e225 3521 i[3456789]86-*-sco*)
0036370f 3522 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3523 ;;
fbdd5d87 3524 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
671aa708
NN
3525 noconfigdirs="$noconfigdirs target-libgloss"
3526 ;;
f2a0e225 3527 i[3456789]86-*-sysv4*)
0036370f 3528 noconfigdirs="$noconfigdirs target-libgloss"
671aa708 3529 ;;
f2a0e225 3530 i[3456789]86-*-beos*)
6a789d5e 3531 noconfigdirs="$noconfigdirs gdb"
3aa83176 3532 ;;
d1f8db0c 3533 i[3456789]86-*-rdos*)
6a789d5e 3534 noconfigdirs="$noconfigdirs gdb"
c03353e2 3535 ;;
671aa708 3536 mmix-*-*)
2909494b 3537 noconfigdirs="$noconfigdirs gdb"
671aa708 3538 ;;
ab34901f 3539 mt-*-*)
79dd769c
AH
3540 noconfigdirs="$noconfigdirs sim"
3541 ;;
671aa708
NN
3542 powerpc-*-aix*)
3543 # copied from rs6000-*-* entry
6a789d5e 3544 noconfigdirs="$noconfigdirs gprof"
671aa708 3545 ;;
4569f85e 3546 powerpc*-*-winnt* | powerpc*-*-pe*)
671aa708 3547 target_configdirs="$target_configdirs target-winsup"
0036370f 3548 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
671aa708
NN
3549 # always build newlib.
3550 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3551 ;;
3552 # This is temporary until we can link against shared libraries
3553 powerpcle-*-solaris*)
0036370f 3554 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
671aa708
NN
3555 ;;
3556 powerpc-*-beos*)
6a789d5e 3557 noconfigdirs="$noconfigdirs gdb"
671aa708 3558 ;;
671aa708 3559 rs6000-*-lynxos*)
6a789d5e 3560 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3561 ;;
3562 rs6000-*-aix*)
6a789d5e 3563 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3564 ;;
3565 rs6000-*-*)
2909494b 3566 noconfigdirs="$noconfigdirs gprof"
671aa708
NN
3567 ;;
3568 m68k-apollo-*)
0036370f 3569 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
671aa708 3570 ;;
ca9fe997 3571 microblaze*)
2909494b 3572 noconfigdirs="$noconfigdirs gprof"
ca9fe997 3573 ;;
d9dced13 3574 mips*-sde-elf*)
d9dced13
RS
3575 if test x$with_newlib = xyes; then
3576 noconfigdirs="$noconfigdirs gprof"
3577 fi
d9dced13 3578 ;;
671aa708 3579 mips*-*-irix5*)
0036370f 3580 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708
NN
3581 ;;
3582 mips*-*-irix6*)
2909494b 3583 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3584 ;;
671aa708 3585 mips*-*-bsd*)
0036370f 3586 noconfigdirs="$noconfigdirs gprof target-libgloss"
671aa708 3587 ;;
671aa708 3588 mips*-*-linux*)
671aa708
NN
3589 ;;
3590 mips*-*-*)
2909494b 3591 noconfigdirs="$noconfigdirs gprof"
671aa708 3592 ;;
669f01d8 3593 sh-*-* | sh64-*-*)
ea2002ba
CB
3594 case "${target}" in
3595 sh*-*-elf)
2909494b 3596 ;;
ea2002ba 3597 *)
2909494b 3598 noconfigdirs="$noconfigdirs target-libgloss" ;;
ea2002ba 3599 esac
671aa708 3600 ;;
671aa708 3601 sparc-*-sunos4*)
6a789d5e 3602 if test x${is_cross_compiler} = xno ; then
671aa708
NN
3603 use_gnu_ld=no
3604 fi
3605 ;;
b42f0d7e 3606 tic6x-*-*)
0d557ff8 3607 noconfigdirs="$noconfigdirs sim"
b42f0d7e 3608 ;;
db1d217c
WL
3609 tilepro-*-* | tilegx-*-*)
3610 noconfigdirs="$noconfigdirs sim"
3611 ;;
671aa708 3612 v810-*-*)
0036370f 3613 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
671aa708
NN
3614 ;;
3615 vax-*-*)
2909494b 3616 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
671aa708 3617 ;;
671aa708 3618esac
79c06341 3619
671aa708
NN
3620# If we aren't building newlib, then don't build libgloss, since libgloss
3621# depends upon some newlib header files.
3622case "${noconfigdirs}" in
3623 *target-libgloss*) ;;
3624 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3625esac
3626
671aa708 3627# Work in distributions that contain no compiler tools, like Autoconf.
671aa708
NN
3628host_makefile_frag=/dev/null
3629if test -d ${srcdir}/config ; then
3630case "${host}" in
f2a0e225 3631 i[3456789]86-*-msdosdjgpp*)
671aa708
NN
3632 host_makefile_frag="config/mh-djgpp"
3633 ;;
3634 *-cygwin*)
2a79c47f 3635
5213506e
RW
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3637$as_echo_n "checking to see if cat works as expected... " >&6; }
2a79c47f 3638echo a >cygwin-cat-check
e25a8c82 3639if test `cat cygwin-cat-check` = a ; then
2a79c47f 3640 rm cygwin-cat-check
5213506e
RW
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642$as_echo "yes" >&6; }
2a79c47f
NC
3643else
3644 rm cygwin-cat-check
5213506e
RW
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646$as_echo "no" >&6; }
3647 as_fn_error "The cat command does not ignore carriage return characters.
2a79c47f
NC
3648 Please either mount the build directory in binary mode or run the following
3649 commands before running any configure script:
3650set -o igncr
3651export SHELLOPTS
5213506e 3652 " "$LINENO" 5
2a79c47f
NC
3653fi
3654
671aa708
NN
3655 host_makefile_frag="config/mh-cygwin"
3656 ;;
c53a18d3 3657 *-mingw*)
1f5a6b84 3658 host_makefile_frag="config/mh-mingw"
95af8923 3659 ;;
671aa708
NN
3660 *-interix*)
3661 host_makefile_frag="config/mh-interix"
3662 ;;
efd41714 3663 hppa*-hp-hpux10*)
efd41714 3664 host_makefile_frag="config/mh-pa-hpux10"
671aa708 3665 ;;
111eeb6e 3666 hppa*-hp-hpux*)
efd41714
PB
3667 host_makefile_frag="config/mh-pa"
3668 ;;
3669 hppa*-*)
3670 host_makefile_frag="config/mh-pa"
3671 ;;
d8ed14ce
IS
3672 *-*-darwin*)
3673 host_makefile_frag="config/mh-darwin"
be8fff81 3674 ;;
d19bca38
PB
3675 powerpc-*-aix*)
3676 host_makefile_frag="config/mh-ppc-aix"
3677 ;;
3678 rs6000-*-aix*)
3679 host_makefile_frag="config/mh-ppc-aix"
3680 ;;
671aa708
NN
3681esac
3682fi
3683
55ffb5ed 3684if test "${build}" != "${host}" ; then
0999159b
PB
3685 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3686 AS_FOR_BUILD=${AS_FOR_BUILD-as}
55ffb5ed 3687 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
0999159b
PB
3688 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3689 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3690 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
632e2a07 3691 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
0999159b
PB
3692 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3693 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3694 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3695 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3696 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3697 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3698else
3699 AR_FOR_BUILD="\$(AR)"
3700 AS_FOR_BUILD="\$(AS)"
fb0103e5 3701 CC_FOR_BUILD="\$(CC)"
0999159b
PB
3702 CXX_FOR_BUILD="\$(CXX)"
3703 GCJ_FOR_BUILD="\$(GCJ)"
3704 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
632e2a07 3705 GOC_FOR_BUILD="\$(GOC)"
0999159b
PB
3706 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3707 LD_FOR_BUILD="\$(LD)"
3708 NM_FOR_BUILD="\$(NM)"
3709 RANLIB_FOR_BUILD="\$(RANLIB)"
3710 WINDRES_FOR_BUILD="\$(WINDRES)"
3711 WINDMC_FOR_BUILD="\$(WINDMC)"
c3a86da9
DJ
3712fi
3713
3714ac_ext=c
1c710c3c
DJ
3715ac_cpp='$CPP $CPPFLAGS'
3716ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719if test -n "$ac_tool_prefix"; then
3720 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3721set dummy ${ac_tool_prefix}gcc; ac_word=$2
5213506e
RW
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723$as_echo_n "checking for $ac_word... " >&6; }
3724if test "${ac_cv_prog_CC+set}" = set; then :
3725 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3726else
3727 if test -n "$CC"; then
3728 ac_cv_prog_CC="$CC" # Let the user override the test.
3729else
3730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731for as_dir in $PATH
3732do
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
5213506e
RW
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3737 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5213506e 3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3739 break 2
3740 fi
3741done
5213506e
RW
3742 done
3743IFS=$as_save_IFS
1c710c3c
DJ
3744
3745fi
3746fi
3747CC=$ac_cv_prog_CC
3748if test -n "$CC"; then
5213506e
RW
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750$as_echo "$CC" >&6; }
1c710c3c 3751else
5213506e
RW
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753$as_echo "no" >&6; }
1c710c3c
DJ
3754fi
3755
5213506e 3756
1c710c3c
DJ
3757fi
3758if test -z "$ac_cv_prog_CC"; then
3759 ac_ct_CC=$CC
fb0103e5
RG
3760 # Extract the first word of "gcc", so it can be a program name with args.
3761set dummy gcc; ac_word=$2
5213506e
RW
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763$as_echo_n "checking for $ac_word... " >&6; }
3764if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3765 $as_echo_n "(cached) " >&6
1c710c3c
DJ
3766else
3767 if test -n "$ac_ct_CC"; then
3768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3769else
3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
5213506e
RW
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3777 ac_cv_prog_ac_ct_CC="gcc"
5213506e 3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3779 break 2
3780 fi
3781done
5213506e
RW
3782 done
3783IFS=$as_save_IFS
1c710c3c
DJ
3784
3785fi
3786fi
3787ac_ct_CC=$ac_cv_prog_ac_ct_CC
3788if test -n "$ac_ct_CC"; then
5213506e
RW
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3790$as_echo "$ac_ct_CC" >&6; }
1c710c3c 3791else
5213506e
RW
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793$as_echo "no" >&6; }
1c710c3c
DJ
3794fi
3795
5213506e
RW
3796 if test "x$ac_ct_CC" = x; then
3797 CC=""
3798 else
3799 case $cross_compiling:$ac_tool_warned in
3800yes:)
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3802$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3803ac_tool_warned=yes ;;
3804esac
3805 CC=$ac_ct_CC
3806 fi
1c710c3c
DJ
3807else
3808 CC="$ac_cv_prog_CC"
3809fi
3810
3811if test -z "$CC"; then
5213506e
RW
3812 if test -n "$ac_tool_prefix"; then
3813 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1c710c3c 3814set dummy ${ac_tool_prefix}cc; ac_word=$2
5213506e
RW
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3816$as_echo_n "checking for $ac_word... " >&6; }
3817if test "${ac_cv_prog_CC+set}" = set; then :
3818 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3819else
3820 if test -n "$CC"; then
3821 ac_cv_prog_CC="$CC" # Let the user override the test.
3822else
1c710c3c
DJ
3823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824for as_dir in $PATH
3825do
3826 IFS=$as_save_IFS
3827 test -z "$as_dir" && as_dir=.
5213506e
RW
3828 for ac_exec_ext in '' $ac_executable_extensions; do
3829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3830 ac_cv_prog_CC="${ac_tool_prefix}cc"
5213506e 3831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3832 break 2
3833 fi
3834done
5213506e
RW
3835 done
3836IFS=$as_save_IFS
1c710c3c 3837
0b0dc272 3838fi
0b0dc272 3839fi
1c710c3c 3840CC=$ac_cv_prog_CC
af71363e 3841if test -n "$CC"; then
5213506e
RW
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3843$as_echo "$CC" >&6; }
2aeb72e9 3844else
5213506e
RW
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846$as_echo "no" >&6; }
2aeb72e9
DD
3847fi
3848
2aeb72e9 3849
5213506e 3850 fi
1c710c3c 3851fi
55ffb5ed
NN
3852if test -z "$CC"; then
3853 # Extract the first word of "cc", so it can be a program name with args.
3854set dummy cc; ac_word=$2
5213506e
RW
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856$as_echo_n "checking for $ac_word... " >&6; }
3857if test "${ac_cv_prog_CC+set}" = set; then :
3858 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3859else
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3862else
0b0dc272 3863 ac_prog_rejected=no
1c710c3c
DJ
3864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865for as_dir in $PATH
3866do
3867 IFS=$as_save_IFS
3868 test -z "$as_dir" && as_dir=.
5213506e
RW
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c
DJ
3871 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3872 ac_prog_rejected=yes
3873 continue
3874 fi
3875 ac_cv_prog_CC="cc"
5213506e 3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3877 break 2
3878 fi
3879done
5213506e
RW
3880 done
3881IFS=$as_save_IFS
1c710c3c 3882
55ffb5ed
NN
3883if test $ac_prog_rejected = yes; then
3884 # We found a bogon in the path, so make sure we never use it.
3885 set dummy $ac_cv_prog_CC
3886 shift
1c710c3c 3887 if test $# != 0; then
55ffb5ed
NN
3888 # We chose a different compiler from the bogus one.
3889 # However, it has the same basename, so the bogon will be chosen
3890 # first if we set CC to just the basename; use the full file name.
3891 shift
1c710c3c 3892 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
55ffb5ed
NN
3893 fi
3894fi
3895fi
3896fi
1c710c3c 3897CC=$ac_cv_prog_CC
55ffb5ed 3898if test -n "$CC"; then
5213506e
RW
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3900$as_echo "$CC" >&6; }
55ffb5ed 3901else
5213506e
RW
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3903$as_echo "no" >&6; }
55ffb5ed
NN
3904fi
3905
5213506e 3906
1c710c3c
DJ
3907fi
3908if test -z "$CC"; then
3909 if test -n "$ac_tool_prefix"; then
5213506e 3910 for ac_prog in cl.exe
1c710c3c
DJ
3911 do
3912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3913set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3915$as_echo_n "checking for $ac_word... " >&6; }
3916if test "${ac_cv_prog_CC+set}" = set; then :
3917 $as_echo_n "(cached) " >&6
55ffb5ed
NN
3918else
3919 if test -n "$CC"; then
3920 ac_cv_prog_CC="$CC" # Let the user override the test.
3921else
1c710c3c
DJ
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
5213506e
RW
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3929 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5213506e 3930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3931 break 2
3932 fi
3933done
5213506e
RW
3934 done
3935IFS=$as_save_IFS
1c710c3c 3936
55ffb5ed
NN
3937fi
3938fi
1c710c3c 3939CC=$ac_cv_prog_CC
55ffb5ed 3940if test -n "$CC"; then
5213506e
RW
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3942$as_echo "$CC" >&6; }
a4b9e93e 3943else
5213506e
RW
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945$as_echo "no" >&6; }
fb0103e5 3946fi
af71363e 3947
5213506e 3948
1c710c3c
DJ
3949 test -n "$CC" && break
3950 done
af71363e 3951fi
1c710c3c
DJ
3952if test -z "$CC"; then
3953 ac_ct_CC=$CC
5213506e 3954 for ac_prog in cl.exe
1c710c3c
DJ
3955do
3956 # Extract the first word of "$ac_prog", so it can be a program name with args.
3957set dummy $ac_prog; ac_word=$2
5213506e
RW
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959$as_echo_n "checking for $ac_word... " >&6; }
3960if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
0b0dc272 3962else
1c710c3c
DJ
3963 if test -n "$ac_ct_CC"; then
3964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
0b0dc272 3965else
1c710c3c
DJ
3966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3967for as_dir in $PATH
3968do
3969 IFS=$as_save_IFS
3970 test -z "$as_dir" && as_dir=.
5213506e
RW
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 3973 ac_cv_prog_ac_ct_CC="$ac_prog"
5213506e 3974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
3975 break 2
3976 fi
3977done
5213506e
RW
3978 done
3979IFS=$as_save_IFS
1c710c3c 3980
af71363e
AS
3981fi
3982fi
1c710c3c
DJ
3983ac_ct_CC=$ac_cv_prog_ac_ct_CC
3984if test -n "$ac_ct_CC"; then
5213506e
RW
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3986$as_echo "$ac_ct_CC" >&6; }
fb0103e5 3987else
5213506e
RW
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989$as_echo "no" >&6; }
af71363e 3990fi
0b0dc272 3991
5213506e 3992
1c710c3c
DJ
3993 test -n "$ac_ct_CC" && break
3994done
3995
5213506e
RW
3996 if test "x$ac_ct_CC" = x; then
3997 CC=""
3998 else
3999 case $cross_compiling:$ac_tool_warned in
4000yes:)
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4002$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4003ac_tool_warned=yes ;;
4004esac
4005 CC=$ac_ct_CC
4006 fi
1c710c3c
DJ
4007fi
4008
4009fi
4010
4011
5213506e
RW
4012test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4014as_fn_error "no acceptable C compiler found in \$PATH
4015See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4016
4017# Provide some information about the compiler.
5213506e
RW
4018$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4019set X $ac_compile
4020ac_compiler=$2
4021for ac_option in --version -v -V -qversion; do
4022 { { ac_try="$ac_compiler $ac_option >&5"
4023case "(($ac_try" in
4024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025 *) ac_try_echo=$ac_try;;
4026esac
4027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4028$as_echo "$ac_try_echo"; } >&5
4029 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1c710c3c 4030 ac_status=$?
5213506e
RW
4031 if test -s conftest.err; then
4032 sed '10a\
4033... rest of stderr output deleted ...
4034 10q' conftest.err >conftest.er1
4035 cat conftest.er1 >&5
4036 rm -f conftest.er1 conftest.err
4037 fi
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }
4040done
1c710c3c 4041
5213506e 4042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4043/* end confdefs.h. */
4044
4045int
4046main ()
4047{
4048
4049 ;
4050 return 0;
4051}
4052_ACEOF
4053ac_clean_files_save=$ac_clean_files
5213506e 4054ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
1c710c3c
DJ
4055# Try to create an executable without -o first, disregard a.out.
4056# It will help us diagnose broken compilers, and finding out an intuition
4057# of exeext.
5213506e
RW
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4059$as_echo_n "checking for C compiler default output file name... " >&6; }
4060ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4061
4062# The possible output files:
4063ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4064
4065ac_rmfiles=
4066for ac_file in $ac_files
4067do
4068 case $ac_file in
4069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4070 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4071 esac
4072done
4073rm -f $ac_rmfiles
4074
4075if { { ac_try="$ac_link_default"
4076case "(($ac_try" in
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4081$as_echo "$ac_try_echo"; } >&5
4082 (eval "$ac_link_default") 2>&5
1c710c3c 4083 ac_status=$?
5213506e
RW
4084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4085 test $ac_status = 0; }; then :
4086 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4087# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4088# in a Makefile. We should not override ac_cv_exeext if it was cached,
4089# so that the user can short-circuit this test for compilers unknown to
4090# Autoconf.
4091for ac_file in $ac_files ''
1c710c3c
DJ
4092do
4093 test -f "$ac_file" || continue
4094 case $ac_file in
5213506e 4095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1c710c3c
DJ
4096 ;;
4097 [ab].out )
4098 # We found the default executable, but exeext='' is most
4099 # certainly right.
4100 break;;
4101 *.* )
5213506e
RW
4102 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4103 then :; else
4104 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4105 fi
4106 # We set ac_cv_exeext here because the later test for it is not
4107 # safe: cross compilers may not add the suffix if given an `-o'
4108 # argument, so we may need to know it at that point already.
4109 # Even if this section looks crufty: it has the advantage of
4110 # actually working.
1c710c3c
DJ
4111 break;;
4112 * )
4113 break;;
4114 esac
4115done
5213506e
RW
4116test "$ac_cv_exeext" = no && ac_cv_exeext=
4117
1c710c3c 4118else
5213506e
RW
4119 ac_file=''
4120fi
4121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4122$as_echo "$ac_file" >&6; }
4123if test -z "$ac_file"; then :
4124 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4125sed 's/^/| /' conftest.$ac_ext >&5
4126
5213506e
RW
4127{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4128$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4129{ as_fn_set_status 77
4130as_fn_error "C compiler cannot create executables
4131See \`config.log' for more details." "$LINENO" 5; }; }
1c710c3c 4132fi
1c710c3c 4133ac_exeext=$ac_cv_exeext
1c710c3c 4134
5213506e 4135# Check that the compiler produces executables we can run. If not, either
1c710c3c 4136# the compiler is broken, or we cross compile.
5213506e
RW
4137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4138$as_echo_n "checking whether the C compiler works... " >&6; }
1c710c3c
DJ
4139# If not cross compiling, check that we can run a simple program.
4140if test "$cross_compiling" != yes; then
4141 if { ac_try='./$ac_file'
5213506e
RW
4142 { { case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145esac
4146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4147$as_echo "$ac_try_echo"; } >&5
4148 (eval "$ac_try") 2>&5
1c710c3c 4149 ac_status=$?
5213506e
RW
4150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4151 test $ac_status = 0; }; }; then
1c710c3c
DJ
4152 cross_compiling=no
4153 else
4154 if test "$cross_compiling" = maybe; then
4155 cross_compiling=yes
4156 else
5213506e
RW
4157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4159as_fn_error "cannot run C compiled programs.
1c710c3c 4160If you meant to cross compile, use \`--host'.
5213506e 4161See \`config.log' for more details." "$LINENO" 5; }
1c710c3c
DJ
4162 fi
4163 fi
4164fi
5213506e
RW
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4166$as_echo "yes" >&6; }
1c710c3c 4167
5213506e 4168rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
1c710c3c 4169ac_clean_files=$ac_clean_files_save
5213506e 4170# Check that the compiler produces executables we can run. If not, either
1c710c3c 4171# the compiler is broken, or we cross compile.
5213506e
RW
4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4173$as_echo_n "checking whether we are cross compiling... " >&6; }
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4175$as_echo "$cross_compiling" >&6; }
4176
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4178$as_echo_n "checking for suffix of executables... " >&6; }
4179if { { ac_try="$ac_link"
4180case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4183esac
4184eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4185$as_echo "$ac_try_echo"; } >&5
4186 (eval "$ac_link") 2>&5
1c710c3c 4187 ac_status=$?
5213506e
RW
4188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4189 test $ac_status = 0; }; then :
1c710c3c
DJ
4190 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4191# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4192# work properly (i.e., refer to `conftest.exe'), while it won't with
4193# `rm'.
4194for ac_file in conftest.exe conftest conftest.*; do
4195 test -f "$ac_file" || continue
4196 case $ac_file in
5213506e 4197 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1c710c3c 4198 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1c710c3c
DJ
4199 break;;
4200 * ) break;;
4201 esac
4202done
af71363e 4203else
5213506e
RW
4204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4206as_fn_error "cannot compute suffix of executables: cannot compile and link
4207See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4208fi
1c710c3c 4209rm -f conftest$ac_cv_exeext
5213506e
RW
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4211$as_echo "$ac_cv_exeext" >&6; }
1c710c3c
DJ
4212
4213rm -f conftest.$ac_ext
4214EXEEXT=$ac_cv_exeext
4215ac_exeext=$EXEEXT
5213506e
RW
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4217$as_echo_n "checking for suffix of object files... " >&6; }
4218if test "${ac_cv_objext+set}" = set; then :
4219 $as_echo_n "(cached) " >&6
1c710c3c 4220else
5213506e 4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4222/* end confdefs.h. */
4223
4224int
4225main ()
4226{
4227
4228 ;
4229 return 0;
4230}
4231_ACEOF
4232rm -f conftest.o conftest.obj
5213506e
RW
4233if { { ac_try="$ac_compile"
4234case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237esac
4238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239$as_echo "$ac_try_echo"; } >&5
4240 (eval "$ac_compile") 2>&5
1c710c3c 4241 ac_status=$?
5213506e
RW
4242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243 test $ac_status = 0; }; then :
4244 for ac_file in conftest.o conftest.obj conftest.*; do
4245 test -f "$ac_file" || continue;
1c710c3c 4246 case $ac_file in
5213506e 4247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1c710c3c
DJ
4248 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4249 break;;
4250 esac
4251done
4252else
5213506e 4253 $as_echo "$as_me: failed program was:" >&5
1c710c3c
DJ
4254sed 's/^/| /' conftest.$ac_ext >&5
4255
5213506e
RW
4256{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4258as_fn_error "cannot compute suffix of object files: cannot compile
4259See \`config.log' for more details." "$LINENO" 5; }
1c710c3c 4260fi
1c710c3c
DJ
4261rm -f conftest.$ac_cv_objext conftest.$ac_ext
4262fi
5213506e
RW
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4264$as_echo "$ac_cv_objext" >&6; }
1c710c3c
DJ
4265OBJEXT=$ac_cv_objext
4266ac_objext=$OBJEXT
5213506e
RW
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4268$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4269if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4270 $as_echo_n "(cached) " >&6
1c710c3c 4271else
5213506e 4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4273/* end confdefs.h. */
4274
4275int
4276main ()
4277{
4278#ifndef __GNUC__
4279 choke me
4280#endif
4281
4282 ;
4283 return 0;
4284}
4285_ACEOF
5213506e 4286if ac_fn_c_try_compile "$LINENO"; then :
1c710c3c
DJ
4287 ac_compiler_gnu=yes
4288else
5213506e 4289 ac_compiler_gnu=no
1c710c3c 4290fi
5213506e 4291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c
DJ
4292ac_cv_c_compiler_gnu=$ac_compiler_gnu
4293
4294fi
5213506e
RW
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4296$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4297if test $ac_compiler_gnu = yes; then
4298 GCC=yes
4299else
4300 GCC=
4301fi
1c710c3c
DJ
4302ac_test_CFLAGS=${CFLAGS+set}
4303ac_save_CFLAGS=$CFLAGS
5213506e
RW
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4305$as_echo_n "checking whether $CC accepts -g... " >&6; }
4306if test "${ac_cv_prog_cc_g+set}" = set; then :
4307 $as_echo_n "(cached) " >&6
4308else
4309 ac_save_c_werror_flag=$ac_c_werror_flag
4310 ac_c_werror_flag=yes
4311 ac_cv_prog_cc_g=no
4312 CFLAGS="-g"
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4314/* end confdefs.h. */
4315
4316int
4317main ()
4318{
4319
4320 ;
4321 return 0;
4322}
4323_ACEOF
5213506e 4324if ac_fn_c_try_compile "$LINENO"; then :
55ffb5ed
NN
4325 ac_cv_prog_cc_g=yes
4326else
5213506e
RW
4327 CFLAGS=""
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329/* end confdefs.h. */
4330
4331int
4332main ()
4333{
4334
4335 ;
4336 return 0;
4337}
4338_ACEOF
4339if ac_fn_c_try_compile "$LINENO"; then :
4340
4341else
4342 ac_c_werror_flag=$ac_save_c_werror_flag
4343 CFLAGS="-g"
4344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345/* end confdefs.h. */
af71363e 4346
5213506e
RW
4347int
4348main ()
4349{
4350
4351 ;
4352 return 0;
4353}
4354_ACEOF
4355if ac_fn_c_try_compile "$LINENO"; then :
4356 ac_cv_prog_cc_g=yes
4357fi
4358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b0dc272 4359fi
5213506e 4360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 4361fi
5213506e
RW
4362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 ac_c_werror_flag=$ac_save_c_werror_flag
4364fi
4365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4366$as_echo "$ac_cv_prog_cc_g" >&6; }
55ffb5ed 4367if test "$ac_test_CFLAGS" = set; then
1c710c3c 4368 CFLAGS=$ac_save_CFLAGS
55ffb5ed
NN
4369elif test $ac_cv_prog_cc_g = yes; then
4370 if test "$GCC" = yes; then
4371 CFLAGS="-g -O2"
4372 else
4373 CFLAGS="-g"
4374 fi
4375else
4376 if test "$GCC" = yes; then
4377 CFLAGS="-O2"
4378 else
4379 CFLAGS=
4380 fi
4381fi
5213506e
RW
4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4383$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4384if test "${ac_cv_prog_cc_c89+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
1c710c3c 4386else
5213506e 4387 ac_cv_prog_cc_c89=no
1c710c3c 4388ac_save_CC=$CC
5213506e 4389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
4390/* end confdefs.h. */
4391#include <stdarg.h>
4392#include <stdio.h>
4393#include <sys/types.h>
4394#include <sys/stat.h>
4395/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4396struct buf { int x; };
4397FILE * (*rcsopen) (struct buf *, struct stat *, int);
4398static char *e (p, i)
4399 char **p;
4400 int i;
4401{
4402 return p[i];
4403}
4404static char *f (char * (*g) (char **, int), char **p, ...)
4405{
4406 char *s;
4407 va_list v;
4408 va_start (v,p);
4409 s = g (p, va_arg (v,int));
4410 va_end (v);
4411 return s;
4412}
4413
4414/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4415 function prototypes and stuff, but not '\xHH' hex character constants.
4416 These don't provoke an error unfortunately, instead are silently treated
5213506e 4417 as 'x'. The following induces an error, until -std is added to get
1c710c3c
DJ
4418 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4419 array size at least. It's necessary to write '\x00'==0 to get something
5213506e 4420 that's true only with -std. */
1c710c3c
DJ
4421int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4422
5213506e
RW
4423/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4424 inside strings and character constants. */
4425#define FOO(x) 'x'
4426int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4427
1c710c3c
DJ
4428int test (int i, double x);
4429struct s1 {int (*f) (int a);};
4430struct s2 {int (*f) (double a);};
4431int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4432int argc;
4433char **argv;
4434int
4435main ()
4436{
4437return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4438 ;
4439 return 0;
4440}
4441_ACEOF
5213506e
RW
4442for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4443 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1c710c3c
DJ
4444do
4445 CC="$ac_save_CC $ac_arg"
5213506e
RW
4446 if ac_fn_c_try_compile "$LINENO"; then :
4447 ac_cv_prog_cc_c89=$ac_arg
1c710c3c 4448fi
5213506e
RW
4449rm -f core conftest.err conftest.$ac_objext
4450 test "x$ac_cv_prog_cc_c89" != "xno" && break
1c710c3c 4451done
5213506e 4452rm -f conftest.$ac_ext
1c710c3c
DJ
4453CC=$ac_save_CC
4454
4455fi
5213506e
RW
4456# AC_CACHE_VAL
4457case "x$ac_cv_prog_cc_c89" in
4458 x)
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4460$as_echo "none needed" >&6; } ;;
4461 xno)
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4463$as_echo "unsupported" >&6; } ;;
1c710c3c 4464 *)
5213506e
RW
4465 CC="$CC $ac_cv_prog_cc_c89"
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4467$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
1c710c3c 4468esac
5213506e 4469if test "x$ac_cv_prog_cc_c89" != xno; then :
1c710c3c 4470
2aeb72e9
DD
4471fi
4472
2aeb72e9
DD
4473ac_ext=c
4474ac_cpp='$CPP $CPPFLAGS'
4475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477ac_compiler_gnu=$ac_cv_c_compiler_gnu
4478
5213506e 4479ac_ext=cpp
2aeb72e9
DD
4480ac_cpp='$CXXCPP $CPPFLAGS'
4481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5213506e
RW
4484if test -z "$CXX"; then
4485 if test -n "$CCC"; then
4486 CXX=$CCC
4487 else
4488 if test -n "$ac_tool_prefix"; then
4489 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2aeb72e9
DD
4490 do
4491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4492set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213506e
RW
4493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4494$as_echo_n "checking for $ac_word... " >&6; }
4495if test "${ac_cv_prog_CXX+set}" = set; then :
4496 $as_echo_n "(cached) " >&6
2aeb72e9
DD
4497else
4498 if test -n "$CXX"; then
4499 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4500else
4501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502for as_dir in $PATH
4503do
4504 IFS=$as_save_IFS
4505 test -z "$as_dir" && as_dir=.
5213506e
RW
4506 for ac_exec_ext in '' $ac_executable_extensions; do
4507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2aeb72e9 4508 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5213506e 4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2aeb72e9
DD
4510 break 2
4511 fi
4512done
5213506e
RW
4513 done
4514IFS=$as_save_IFS
55ffb5ed 4515
c3a86da9
DJ
4516fi
4517fi
4518CXX=$ac_cv_prog_CXX
4519if test -n "$CXX"; then
5213506e
RW
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4521$as_echo "$CXX" >&6; }
c3a86da9 4522else
5213506e
RW
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4524$as_echo "no" >&6; }
c3a86da9
DJ
4525fi
4526
5213506e 4527
c3a86da9
DJ
4528 test -n "$CXX" && break
4529 done
4530fi
4531if test -z "$CXX"; then
4532 ac_ct_CXX=$CXX
5213506e 4533 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
c3a86da9
DJ
4534do
4535 # Extract the first word of "$ac_prog", so it can be a program name with args.
4536set dummy $ac_prog; ac_word=$2
5213506e
RW
4537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538$as_echo_n "checking for $ac_word... " >&6; }
4539if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
c3a86da9
DJ
4541else
4542 if test -n "$ac_ct_CXX"; then
4543 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4544else
4545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546for as_dir in $PATH
4547do
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
5213506e
RW
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c3a86da9 4552 ac_cv_prog_ac_ct_CXX="$ac_prog"
5213506e 4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c3a86da9
DJ
4554 break 2
4555 fi
4556done
5213506e
RW
4557 done
4558IFS=$as_save_IFS
c3a86da9
DJ
4559
4560fi
4561fi
4562ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4563if test -n "$ac_ct_CXX"; then
5213506e
RW
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4565$as_echo "$ac_ct_CXX" >&6; }
c3a86da9 4566else
5213506e
RW
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568$as_echo "no" >&6; }
c3a86da9
DJ
4569fi
4570
5213506e 4571
c3a86da9
DJ
4572 test -n "$ac_ct_CXX" && break
4573done
c3a86da9 4574
5213506e
RW
4575 if test "x$ac_ct_CXX" = x; then
4576 CXX="g++"
4577 else
4578 case $cross_compiling:$ac_tool_warned in
4579yes:)
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4582ac_tool_warned=yes ;;
4583esac
4584 CXX=$ac_ct_CXX
4585 fi
c3a86da9
DJ
4586fi
4587
5213506e
RW
4588 fi
4589fi
c3a86da9 4590# Provide some information about the compiler.
5213506e
RW
4591$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4592set X $ac_compile
4593ac_compiler=$2
4594for ac_option in --version -v -V -qversion; do
4595 { { ac_try="$ac_compiler $ac_option >&5"
4596case "(($ac_try" in
4597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4598 *) ac_try_echo=$ac_try;;
4599esac
4600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4601$as_echo "$ac_try_echo"; } >&5
4602 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c3a86da9 4603 ac_status=$?
5213506e
RW
4604 if test -s conftest.err; then
4605 sed '10a\
4606... rest of stderr output deleted ...
4607 10q' conftest.err >conftest.er1
4608 cat conftest.er1 >&5
4609 rm -f conftest.er1 conftest.err
4610 fi
4611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4612 test $ac_status = 0; }
4613done
c3a86da9 4614
5213506e
RW
4615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4616$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4617if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
c3a86da9 4619else
5213506e 4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4621/* end confdefs.h. */
4622
4623int
4624main ()
4625{
4626#ifndef __GNUC__
4627 choke me
4628#endif
4629
4630 ;
4631 return 0;
4632}
4633_ACEOF
5213506e 4634if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4635 ac_compiler_gnu=yes
4636else
5213506e 4637 ac_compiler_gnu=no
c3a86da9 4638fi
5213506e 4639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c3a86da9
DJ
4640ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4641
4642fi
5213506e
RW
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4644$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4645if test $ac_compiler_gnu = yes; then
4646 GXX=yes
4647else
4648 GXX=
4649fi
c3a86da9
DJ
4650ac_test_CXXFLAGS=${CXXFLAGS+set}
4651ac_save_CXXFLAGS=$CXXFLAGS
5213506e
RW
4652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4653$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4654if test "${ac_cv_prog_cxx_g+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4656else
4657 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4658 ac_cxx_werror_flag=yes
4659 ac_cv_prog_cxx_g=no
4660 CXXFLAGS="-g"
4661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9
DJ
4662/* end confdefs.h. */
4663
4664int
4665main ()
4666{
4667
4668 ;
4669 return 0;
4670}
4671_ACEOF
5213506e 4672if ac_fn_cxx_try_compile "$LINENO"; then :
c3a86da9
DJ
4673 ac_cv_prog_cxx_g=yes
4674else
5213506e
RW
4675 CXXFLAGS=""
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4677/* end confdefs.h. */
5213506e 4678
c3a86da9
DJ
4679int
4680main ()
4681{
5213506e 4682
c3a86da9
DJ
4683 ;
4684 return 0;
4685}
4686_ACEOF
5213506e 4687if ac_fn_cxx_try_compile "$LINENO"; then :
23f6b2f9 4688
5213506e
RW
4689else
4690 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4691 CXXFLAGS="-g"
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c3a86da9 4693/* end confdefs.h. */
5213506e 4694
c3a86da9
DJ
4695int
4696main ()
4697{
5213506e 4698
c3a86da9
DJ
4699 ;
4700 return 0;
4701}
4702_ACEOF
5213506e
RW
4703if ac_fn_cxx_try_compile "$LINENO"; then :
4704 ac_cv_prog_cxx_g=yes
11a67599 4705fi
5213506e
RW
4706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4707fi
4708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4709fi
4710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4712fi
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4714$as_echo "$ac_cv_prog_cxx_g" >&6; }
4715if test "$ac_test_CXXFLAGS" = set; then
4716 CXXFLAGS=$ac_save_CXXFLAGS
4717elif test $ac_cv_prog_cxx_g = yes; then
4718 if test "$GXX" = yes; then
4719 CXXFLAGS="-g -O2"
4720 else
4721 CXXFLAGS="-g"
4722 fi
4723else
4724 if test "$GXX" = yes; then
4725 CXXFLAGS="-O2"
4726 else
4727 CXXFLAGS=
4728 fi
c3a86da9 4729fi
c3a86da9
DJ
4730ac_ext=c
4731ac_cpp='$CPP $CPPFLAGS'
4732ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4733ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4734ac_compiler_gnu=$ac_cv_c_compiler_gnu
4735
4736
4737# We must set the default linker to the linker used by gcc for the correct
4738# operation of libtool. If LD is not defined and we are using gcc, try to
4739# set the LD default to the ld used by gcc.
4740if test -z "$LD"; then
4741 if test "$GCC" = yes; then
4742 case $build in
4743 *-*-mingw*)
4744 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4745 *)
4746 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4747 esac
4748 case $gcc_prog_ld in
4749 # Accept absolute paths.
4750 [\\/]* | [A-Za-z]:[\\/]*)
4751 LD="$gcc_prog_ld" ;;
4752 esac
4753 fi
23f6b2f9
PB
4754fi
4755
23f6b2f9
PB
4756
4757
55ffb5ed 4758
1c710c3c
DJ
4759if test -n "$ac_tool_prefix"; then
4760 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
55ffb5ed 4761set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5213506e
RW
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763$as_echo_n "checking for $ac_word... " >&6; }
4764if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4765 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4766else
4767 if test -n "$GNATBIND"; then
4768 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
4769else
1c710c3c
DJ
4770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771for as_dir in $PATH
4772do
4773 IFS=$as_save_IFS
4774 test -z "$as_dir" && as_dir=.
5213506e
RW
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4777 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5213506e 4778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4779 break 2
4780 fi
4781done
5213506e
RW
4782 done
4783IFS=$as_save_IFS
1c710c3c 4784
55ffb5ed
NN
4785fi
4786fi
1c710c3c 4787GNATBIND=$ac_cv_prog_GNATBIND
55ffb5ed 4788if test -n "$GNATBIND"; then
5213506e
RW
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4790$as_echo "$GNATBIND" >&6; }
55ffb5ed 4791else
5213506e
RW
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4793$as_echo "no" >&6; }
55ffb5ed
NN
4794fi
4795
5213506e 4796
1c710c3c 4797fi
55ffb5ed 4798if test -z "$ac_cv_prog_GNATBIND"; then
1c710c3c 4799 ac_ct_GNATBIND=$GNATBIND
55ffb5ed
NN
4800 # Extract the first word of "gnatbind", so it can be a program name with args.
4801set dummy gnatbind; ac_word=$2
5213506e
RW
4802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803$as_echo_n "checking for $ac_word... " >&6; }
4804if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
55ffb5ed 4806else
1c710c3c
DJ
4807 if test -n "$ac_ct_GNATBIND"; then
4808 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
55ffb5ed 4809else
1c710c3c
DJ
4810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH
4812do
4813 IFS=$as_save_IFS
4814 test -z "$as_dir" && as_dir=.
5213506e
RW
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4817 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5213506e 4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4819 break 2
4820 fi
4821done
5213506e
RW
4822 done
4823IFS=$as_save_IFS
1c710c3c 4824
55ffb5ed
NN
4825fi
4826fi
1c710c3c
DJ
4827ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4828if test -n "$ac_ct_GNATBIND"; then
5213506e
RW
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4830$as_echo "$ac_ct_GNATBIND" >&6; }
55ffb5ed 4831else
5213506e
RW
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833$as_echo "no" >&6; }
55ffb5ed
NN
4834fi
4835
5213506e
RW
4836 if test "x$ac_ct_GNATBIND" = x; then
4837 GNATBIND="no"
4838 else
4839 case $cross_compiling:$ac_tool_warned in
4840yes:)
4841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4843ac_tool_warned=yes ;;
4844esac
4845 GNATBIND=$ac_ct_GNATBIND
4846 fi
55ffb5ed 4847else
1c710c3c 4848 GNATBIND="$ac_cv_prog_GNATBIND"
55ffb5ed
NN
4849fi
4850
1c710c3c
DJ
4851if test -n "$ac_tool_prefix"; then
4852 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5305be7e 4853set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5213506e
RW
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4855$as_echo_n "checking for $ac_word... " >&6; }
4856if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4857 $as_echo_n "(cached) " >&6
5305be7e
RG
4858else
4859 if test -n "$GNATMAKE"; then
4860 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
4861else
1c710c3c
DJ
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
5213506e
RW
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4869 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5213506e 4870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4871 break 2
4872 fi
4873done
5213506e
RW
4874 done
4875IFS=$as_save_IFS
1c710c3c 4876
5305be7e
RG
4877fi
4878fi
1c710c3c 4879GNATMAKE=$ac_cv_prog_GNATMAKE
5305be7e 4880if test -n "$GNATMAKE"; then
5213506e
RW
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4882$as_echo "$GNATMAKE" >&6; }
5305be7e 4883else
5213506e
RW
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4885$as_echo "no" >&6; }
5305be7e
RG
4886fi
4887
5213506e 4888
1c710c3c 4889fi
5305be7e 4890if test -z "$ac_cv_prog_GNATMAKE"; then
1c710c3c 4891 ac_ct_GNATMAKE=$GNATMAKE
5305be7e
RG
4892 # Extract the first word of "gnatmake", so it can be a program name with args.
4893set dummy gnatmake; ac_word=$2
5213506e
RW
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4895$as_echo_n "checking for $ac_word... " >&6; }
4896if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4897 $as_echo_n "(cached) " >&6
5305be7e 4898else
1c710c3c
DJ
4899 if test -n "$ac_ct_GNATMAKE"; then
4900 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5305be7e 4901else
1c710c3c
DJ
4902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903for as_dir in $PATH
4904do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
5213506e
RW
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 4909 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5213506e 4910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
4911 break 2
4912 fi
4913done
5213506e
RW
4914 done
4915IFS=$as_save_IFS
1c710c3c 4916
5305be7e
RG
4917fi
4918fi
1c710c3c
DJ
4919ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4920if test -n "$ac_ct_GNATMAKE"; then
5213506e
RW
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4922$as_echo "$ac_ct_GNATMAKE" >&6; }
5305be7e 4923else
5213506e
RW
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4925$as_echo "no" >&6; }
5305be7e
RG
4926fi
4927
5213506e
RW
4928 if test "x$ac_ct_GNATMAKE" = x; then
4929 GNATMAKE="no"
4930 else
4931 case $cross_compiling:$ac_tool_warned in
4932yes:)
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4935ac_tool_warned=yes ;;
4936esac
4937 GNATMAKE=$ac_ct_GNATMAKE
4938 fi
5305be7e 4939else
1c710c3c 4940 GNATMAKE="$ac_cv_prog_GNATMAKE"
5305be7e
RG
4941fi
4942
5213506e
RW
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
4944$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
4945if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
4946 $as_echo_n "(cached) " >&6
55ffb5ed
NN
4947else
4948 cat >conftest.adb <<EOF
4949procedure conftest is begin null; end conftest;
4950EOF
4951acx_cv_cc_gcc_supports_ada=no
4952# There is a bug in old released versions of GCC which causes the
4953# driver to exit successfully when the appropriate language module
4954# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
4955# Therefore we must check for the error message as well as an
4956# unsuccessful exit.
1db673ca
RO
4957# Other compilers, like HP Tru64 UNIX cc, exit successfully when
4958# given a .adb file, but produce no object file. So we must check
4959# if an object file was really produced to guard against this.
55ffb5ed 4960errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
1db673ca 4961if test x"$errors" = x && test -f conftest.$ac_objext; then
55ffb5ed 4962 acx_cv_cc_gcc_supports_ada=yes
55ffb5ed
NN
4963fi
4964rm -f conftest.*
4965fi
5213506e
RW
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
4967$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
55ffb5ed 4968
5305be7e 4969if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
55ffb5ed
NN
4970 have_gnat=yes
4971else
4972 have_gnat=no
4973fi
4974
5213506e
RW
4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
4976$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
4977if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
4978 $as_echo_n "(cached) " >&6
a76494aa
PB
4979else
4980 echo abfoo >t1
4981 echo cdfoo >t2
4982 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
6cf1ac42
PB
4983 if cmp t1 t2 2 2 > /dev/null 2>&1; then
4984 if cmp t1 t2 1 1 > /dev/null 2>&1; then
4985 :
4986 else
4987 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
4988 fi
4989 fi
a76494aa
PB
4990 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
4991 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
6cf1ac42 4992 :
a76494aa
PB
4993 else
4994 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
4995 fi
4996 fi
4997 rm t1 t2
4998
4999fi
5213506e
RW
5000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5001$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
a76494aa
PB
5002do_compare="$gcc_cv_prog_cmp_skip"
5003
5004
55ffb5ed 5005
ff3ac0f4
ILT
5006# Check whether --enable-bootstrap was given.
5007if test "${enable_bootstrap+set}" = set; then :
5008 enableval=$enable_bootstrap;
5009else
5010 enable_bootstrap=default
5011fi
5012
5013
5014# Issue errors and warnings for invalid/strange bootstrap combinations.
bf03b9ff
ILT
5015if test -r $srcdir/gcc/configure; then
5016 have_compiler=yes
5017else
5018 have_compiler=no
5019fi
ff3ac0f4
ILT
5020
5021case "$have_compiler:$host:$target:$enable_bootstrap" in
5022 *:*:*:no) ;;
5023
5024 # Default behavior. Enable bootstrap if we have a compiler
5025 # and we are in a native configuration.
5026 yes:$build:$build:default)
5027 enable_bootstrap=yes ;;
5028
5029 *:*:*:default)
5030 enable_bootstrap=no ;;
5031
5032 # We have a compiler and we are in a native configuration, bootstrap is ok
5033 yes:$build:$build:yes)
5034 ;;
5035
5036 # Other configurations, but we have a compiler. Assume the user knows
5037 # what he's doing.
5038 yes:*:*:yes)
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5040$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5041 ;;
5042
5043 # No compiler: if they passed --enable-bootstrap explicitly, fail
5044 no:*:*:yes)
5045 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5046
5047 # Fail if wrong command line
5048 *)
5049 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
5050 ;;
5051esac
5052
00020c16 5053# See if we are building gcc with C++.
5213506e
RW
5054# Check whether --enable-build-with-cxx was given.
5055if test "${enable_build_with_cxx+set}" = set; then :
5056 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
00020c16
ILT
5057else
5058 ENABLE_BUILD_WITH_CXX=no
5213506e
RW
5059fi
5060
00020c16 5061
78767fd9
ILT
5062# Build stage1 with C and build stages 2 and 3 with C++.
5063# Check whether --enable-build-poststage1-with-cxx was given.
5064if test "${enable_build_poststage1_with_cxx+set}" = set; then :
5065 enableval=$enable_build_poststage1_with_cxx; ENABLE_BUILD_POSTSTAGE1_WITH_CXX=$enableval
5066else
5067 ENABLE_BUILD_POSTSTAGE1_WITH_CXX=yes
5068fi
5069
5070
592c90ff
KG
5071# Used for setting $lt_cv_objdir
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5073$as_echo_n "checking for objdir... " >&6; }
5074if test "${lt_cv_objdir+set}" = set; then :
5075 $as_echo_n "(cached) " >&6
5076else
5077 rm -f .libs 2>/dev/null
5078mkdir .libs 2>/dev/null
5079if test -d .libs; then
5080 lt_cv_objdir=.libs
5081else
5082 # MS-DOS does not allow filenames that begin with a dot.
5083 lt_cv_objdir=_libs
5084fi
5085rmdir .libs 2>/dev/null
5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5088$as_echo "$lt_cv_objdir" >&6; }
5089objdir=$lt_cv_objdir
5090
5091
5092
5093
5094
5095cat >>confdefs.h <<_ACEOF
5096#define LT_OBJDIR "$lt_cv_objdir/"
5097_ACEOF
5098
5099
5100
acd26225 5101# Check for GMP, MPFR and MPC
3a5729ea 5102gmplibs="-lmpc -lmpfr -lgmp"
6de9cd9a 5103gmpinc=
e69bf64b 5104have_gmp=no
acd26225
KG
5105
5106# Specify a location for mpc
5107# check for this first so it ends up on the link line before mpfr.
5108
5213506e
RW
5109# Check whether --with-mpc was given.
5110if test "${with_mpc+set}" = set; then :
5111 withval=$with_mpc;
5112fi
acd26225 5113
acd26225 5114
9965e3cd 5115# Check whether --with-mpc-include was given.
5213506e
RW
5116if test "${with_mpc_include+set}" = set; then :
5117 withval=$with_mpc_include;
5118fi
acd26225 5119
acd26225 5120
9965e3cd 5121# Check whether --with-mpc-lib was given.
5213506e
RW
5122if test "${with_mpc_lib+set}" = set; then :
5123 withval=$with_mpc_lib;
5124fi
acd26225 5125
acd26225
KG
5126
5127if test "x$with_mpc" != x; then
3a5729ea
KG
5128 gmplibs="-L$with_mpc/lib $gmplibs"
5129 gmpinc="-I$with_mpc/include $gmpinc"
acd26225
KG
5130fi
5131if test "x$with_mpc_include" != x; then
3a5729ea 5132 gmpinc="-I$with_mpc_include $gmpinc"
acd26225
KG
5133fi
5134if test "x$with_mpc_lib" != x; then
3a5729ea 5135 gmplibs="-L$with_mpc_lib $gmplibs"
acd26225
KG
5136fi
5137if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
592c90ff 5138 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
3a5729ea 5139 gmpinc='-I$$s/mpc/src '"$gmpinc"
acd26225
KG
5140 # Do not test the mpc version. Assume that it is sufficient, since
5141 # it is in the source tree, and the library has not been built yet
5142 # but it would be included on the link line in the version check below
5143 # hence making the test fail.
3a5729ea 5144 have_gmp=yes
acd26225 5145fi
e69bf64b 5146
bebf829d
PB
5147# Specify a location for mpfr
5148# check for this first so it ends up on the link line before gmp.
1c710c3c 5149
5213506e
RW
5150# Check whether --with-mpfr-dir was given.
5151if test "${with_mpfr_dir+set}" = set; then :
5152 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5153Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5154fi
5155
bebf829d
PB
5156
5157
5213506e
RW
5158# Check whether --with-mpfr was given.
5159if test "${with_mpfr+set}" = set; then :
5160 withval=$with_mpfr;
5161fi
1c710c3c 5162
bebf829d 5163
9965e3cd 5164# Check whether --with-mpfr-include was given.
5213506e
RW
5165if test "${with_mpfr_include+set}" = set; then :
5166 withval=$with_mpfr_include;
5167fi
1c710c3c 5168
8a877c9c 5169
9965e3cd 5170# Check whether --with-mpfr-lib was given.
5213506e
RW
5171if test "${with_mpfr_lib+set}" = set; then :
5172 withval=$with_mpfr_lib;
5173fi
8a877c9c 5174
bebf829d
PB
5175
5176if test "x$with_mpfr" != x; then
5177 gmplibs="-L$with_mpfr/lib $gmplibs"
3a5729ea 5178 gmpinc="-I$with_mpfr/include $gmpinc"
bebf829d 5179fi
8a877c9c 5180if test "x$with_mpfr_include" != x; then
3a5729ea 5181 gmpinc="-I$with_mpfr_include $gmpinc"
8a877c9c
KG
5182fi
5183if test "x$with_mpfr_lib" != x; then
5184 gmplibs="-L$with_mpfr_lib $gmplibs"
5185fi
e69bf64b 5186if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
592c90ff 5187 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
e69bf64b 5188 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
592c90ff 5189 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
e69bf64b
PB
5190 # Do not test the mpfr version. Assume that it is sufficient, since
5191 # it is in the source tree, and the library has not been built yet
5192 # but it would be included on the link line in the version check below
5193 # hence making the test fail.
5194 have_gmp=yes
5195fi
bebf829d 5196
6de9cd9a 5197# Specify a location for gmp
1c710c3c 5198
5213506e
RW
5199# Check whether --with-gmp-dir was given.
5200if test "${with_gmp_dir+set}" = set; then :
5201 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5202Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5203fi
5204
6de9cd9a 5205
6de9cd9a 5206
5213506e
RW
5207# Check whether --with-gmp was given.
5208if test "${with_gmp+set}" = set; then :
5209 withval=$with_gmp;
5210fi
1c710c3c 5211
6de9cd9a 5212
9965e3cd 5213# Check whether --with-gmp-include was given.
5213506e
RW
5214if test "${with_gmp_include+set}" = set; then :
5215 withval=$with_gmp_include;
5216fi
1c710c3c 5217
8a877c9c 5218
9965e3cd 5219# Check whether --with-gmp-lib was given.
5213506e
RW
5220if test "${with_gmp_lib+set}" = set; then :
5221 withval=$with_gmp_lib;
5222fi
8a877c9c
KG
5223
5224
6de9cd9a 5225
bebf829d
PB
5226if test "x$with_gmp" != x; then
5227 gmplibs="-L$with_gmp/lib $gmplibs"
5228 gmpinc="-I$with_gmp/include $gmpinc"
6de9cd9a 5229fi
8a877c9c
KG
5230if test "x$with_gmp_include" != x; then
5231 gmpinc="-I$with_gmp_include $gmpinc"
5232fi
5233if test "x$with_gmp_lib" != x; then
5234 gmplibs="-L$with_gmp_lib $gmplibs"
5235fi
e69bf64b 5236if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
592c90ff 5237 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
e69bf64b 5238 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
9183bdcf 5239 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
592c90ff 5240 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
e69bf64b
PB
5241 # Do not test the gmp version. Assume that it is sufficient, since
5242 # it is in the source tree, and the library has not been built yet
5243 # but it would be included on the link line in the version check below
5244 # hence making the test fail.
5245 have_gmp=yes
5246fi
6de9cd9a 5247
d943d7c4 5248if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
e69bf64b
PB
5249 have_gmp=yes
5250 saved_CFLAGS="$CFLAGS"
5251 CFLAGS="$CFLAGS $gmpinc"
362c6d2f
KG
5252 # Check for the recommended and required versions of GMP.
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5254$as_echo_n "checking for the correct version of gmp.h... " >&6; }
e8fd69bb
SP
5255
5256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
362c6d2f
KG
5257/* end confdefs.h. */
5258#include "gmp.h"
5259int
5260main ()
5261{
5262
5263 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5264 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5265 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5266 choke me
5267 #endif
5268
5269 ;
5270 return 0;
5271}
5272_ACEOF
5273if ac_fn_c_try_compile "$LINENO"; then :
e8fd69bb 5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5275/* end confdefs.h. */
362c6d2f 5276#include <gmp.h>
1c710c3c
DJ
5277int
5278main ()
5279{
6de9cd9a 5280
362c6d2f
KG
5281 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5282 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5283 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
e69bf64b
PB
5284 choke me
5285 #endif
1c710c3c
DJ
5286
5287 ;
5288 return 0;
5289}
5290_ACEOF
5213506e
RW
5291if ac_fn_c_try_compile "$LINENO"; then :
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5293$as_echo "yes" >&6; }
362c6d2f
KG
5294else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5296$as_echo "buggy but acceptable" >&6; }
5297fi
5298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1c710c3c 5299else
5213506e
RW
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5302fi
5213506e 5303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6de9cd9a 5304
acd26225 5305 # If we have GMP, check the MPFR version.
e69bf64b 5306 if test x"$have_gmp" = xyes; then
362c6d2f
KG
5307 # Check for the recommended and required versions of MPFR.
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5309$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
5213506e 5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5311/* end confdefs.h. */
70ec446f 5312#include <gmp.h>
e69bf64b 5313 #include <mpfr.h>
1c710c3c
DJ
5314int
5315main ()
5316{
e48d66a9 5317
a3337ea2 5318 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
e69bf64b
PB
5319 choke me
5320 #endif
1c710c3c
DJ
5321
5322 ;
5323 return 0;
5324}
5325_ACEOF
5213506e
RW
5326if ac_fn_c_try_compile "$LINENO"; then :
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c 5328/* end confdefs.h. */
a3993f33 5329#include <gmp.h>
e69bf64b 5330 #include <mpfr.h>
1c710c3c
DJ
5331int
5332main ()
5333{
a3993f33 5334
362c6d2f 5335 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
e69bf64b
PB
5336 choke me
5337 #endif
acd26225
KG
5338
5339 ;
5340 return 0;
5341}
5342_ACEOF
5213506e
RW
5343if ac_fn_c_try_compile "$LINENO"; then :
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5345$as_echo "yes" >&6; }
acd26225 5346else
5213506e
RW
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5348$as_echo "buggy but acceptable" >&6; }
acd26225 5349fi
5213506e 5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5351else
5213506e
RW
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353$as_echo "no" >&6; }; have_gmp=no
acd26225 5354fi
5213506e 5355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5356 fi
5357
5358 # Check for the MPC header version.
3a5729ea 5359 if test x"$have_gmp" = xyes ; then
362c6d2f 5360 # Check for the recommended and required versions of MPC.
5213506e
RW
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5362$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225
KG
5364/* end confdefs.h. */
5365#include <mpc.h>
5366int
5367main ()
5368{
5369
362c6d2f
KG
5370 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5371 choke me
5372 #endif
5373
5374 ;
5375 return 0;
5376}
5377_ACEOF
5378if ac_fn_c_try_compile "$LINENO"; then :
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380/* end confdefs.h. */
5381#include <mpc.h>
5382int
5383main ()
5384{
5385
5386 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
acd26225
KG
5387 choke me
5388 #endif
5389
5390 ;
5391 return 0;
5392}
5393_ACEOF
5213506e
RW
5394if ac_fn_c_try_compile "$LINENO"; then :
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3a5729ea 5396$as_echo "yes" >&6; }
362c6d2f
KG
5397else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5399$as_echo "buggy but acceptable" >&6; }
5400fi
5401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225 5402else
5213506e 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3a5729ea 5404$as_echo "no" >&6; }; have_gmp=no
acd26225 5405fi
5213506e 5406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
acd26225
KG
5407 fi
5408
5409 # Now check the MPFR library.
5410 if test x"$have_gmp" = xyes; then
5411 saved_LIBS="$LIBS"
5412 LIBS="$LIBS $gmplibs"
3a5729ea
KG
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5414$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
5213506e 5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acd26225 5416/* end confdefs.h. */
3a5729ea 5417#include <mpc.h>
acd26225
KG
5418int
5419main ()
5420{
5421
5422 mpfr_t n;
5423 mpfr_t x;
3a5729ea 5424 mpc_t c;
acd26225
KG
5425 int t;
5426 mpfr_init (n);
5427 mpfr_init (x);
5428 mpfr_atan2 (n, n, x, GMP_RNDN);
5429 mpfr_erfc (n, x, GMP_RNDN);
5430 mpfr_subnormalize (x, t, GMP_RNDN);
3a5729ea
KG
5431 mpfr_clear(n);
5432 mpfr_clear(x);
5433 mpc_init2 (c, 53);
5434 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5435 mpc_cosh (c, c, MPC_RNDNN);
5436 mpc_pow (c, c, c, MPC_RNDNN);
5437 mpc_acosh (c, c, MPC_RNDNN);
5438 mpc_clear (c);
1c710c3c
DJ
5439
5440 ;
5441 return 0;
5442}
5443_ACEOF
5213506e
RW
5444if ac_fn_c_try_link "$LINENO"; then :
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5446$as_echo "yes" >&6; }
1c710c3c 5447else
5213506e
RW
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449$as_echo "no" >&6; }; have_gmp=no
1c710c3c 5450fi
5213506e
RW
5451rm -f core conftest.err conftest.$ac_objext \
5452 conftest$ac_exeext conftest.$ac_ext
acd26225
KG
5453 LIBS="$saved_LIBS"
5454 fi
5455
e69bf64b 5456 CFLAGS="$saved_CFLAGS"
6de9cd9a 5457
362c6d2f
KG
5458# The library versions listed in the error message below should match
5459# the HARD-minimums enforced above.
e69bf64b 5460 if test x$have_gmp != xyes; then
362c6d2f 5461 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
3a5729ea
KG
5462Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5463their locations. Source code for these libraries can be found at
5464their respective hosting sites as well as at
5465ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5466http://gcc.gnu.org/install/prerequisites.html for additional info. If
5467you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5468make sure that you have installed both the libraries and the header
5469files. They may be located in separate packages." "$LINENO" 5
e69bf64b 5470 fi
70ec446f
KG
5471fi
5472
acd26225
KG
5473# Flags needed for both GMP, MPFR and/or MPC.
5474
5475
6de9cd9a
DN
5476
5477
5478
9e3eba15 5479
f38095f3
JM
5480# Allow host libstdc++ to be specified for static linking with PPL.
5481
5213506e
RW
5482# Check whether --with-host-libstdcxx was given.
5483if test "${with_host_libstdcxx+set}" = set; then :
5484 withval=$with_host_libstdcxx;
5485fi
f38095f3 5486
f38095f3
JM
5487
5488case $with_host_libstdcxx in
5489 no|yes)
5213506e 5490 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
f38095f3
JM
5491 ;;
5492esac
f8bf9252 5493
00020c16
ILT
5494# Linker flags to use for stage1 or when not boostrapping.
5495
5213506e
RW
5496# Check whether --with-stage1-ldflags was given.
5497if test "${with_stage1_ldflags+set}" = set; then :
5498 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5499 stage1_ldflags=
5500 else
5501 stage1_ldflags=$withval
5502 fi
5503else
5504 stage1_ldflags=
5213506e
RW
5505fi
5506
00020c16
ILT
5507
5508
5509# Libraries to use for stage1 or when not bootstrapping.
5510
5213506e
RW
5511# Check whether --with-stage1-libs was given.
5512if test "${with_stage1_libs+set}" = set; then :
5513 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
00020c16
ILT
5514 stage1_libs=
5515 else
5516 stage1_libs=$withval
5517 fi
5518else
5519 stage1_libs=$with_host_libstdcxx
5213506e
RW
5520fi
5521
00020c16
ILT
5522
5523
00020c16
ILT
5524# Libraries to use for stage2 and later builds. This defaults to the
5525# argument passed to --with-host-libstdcxx.
5526
5213506e
RW
5527# Check whether --with-boot-libs was given.
5528if test "${with_boot_libs+set}" = set; then :
5529 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e90e6bd7
ILT
5530 poststage1_libs=
5531 else
5532 poststage1_libs=$withval
5533 fi
5534else
00020c16 5535 poststage1_libs=$with_host_libstdcxx
5213506e
RW
5536fi
5537
00020c16
ILT
5538
5539
ed2eaa9f
ILT
5540# Linker flags to use for stage2 and later builds.
5541
5542# Check whether --with-boot-ldflags was given.
5543if test "${with_boot_ldflags+set}" = set; then :
5544 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5545 poststage1_ldflags=
5546 else
5547 poststage1_ldflags=$withval
5548 fi
5549else
5550 poststage1_ldflags=
bec93d73
ILT
5551 # In stages 2 and 3, default to linking libstdc++ and libgcc
5552 # statically. But if the user explicitly specified the libraries to
5553 # use, trust that they are doing what they want.
5554 if test "$poststage1_libs" = ""; then
ed2eaa9f
ILT
5555 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5556 fi
5557fi
5558
5559
5560
f8bf9252 5561# Check for PPL
7d32a440 5562ppllibs=
f8bf9252 5563pplinc=
7d32a440 5564pwllib=
f8bf9252
SP
5565
5566
5213506e
RW
5567# Check whether --with-ppl was given.
5568if test "${with_ppl+set}" = set; then :
5569 withval=$with_ppl;
5213506e 5570fi
f8bf9252 5571
f8bf9252 5572
9965e3cd 5573# Check whether --with-ppl-include was given.
5213506e
RW
5574if test "${with_ppl_include+set}" = set; then :
5575 withval=$with_ppl_include;
5576fi
5577
f8bf9252 5578
9965e3cd 5579# Check whether --with-ppl-lib was given.
5213506e
RW
5580if test "${with_ppl_lib+set}" = set; then :
5581 withval=$with_ppl_lib;
5582fi
f8bf9252 5583
f8bf9252 5584
7d32a440
SP
5585# Check whether --enable-ppl-version-check was given.
5586if test "${enable_ppl_version_check+set}" = set; then :
5587 enableval=$enable_ppl_version_check;
5588fi
5589
5590
53095c56 5591case $with_ppl in
7d32a440 5592 yes | no | "")
ad0abd3c 5593 ;;
53095c56 5594 *)
7d32a440 5595 ppllibs="-L$with_ppl/lib"
53095c56 5596 pplinc="-I$with_ppl/include $pplinc"
7d32a440
SP
5597 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5598 with_ppl=yes
5599 else
5600 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5601 fi
53095c56
SP
5602 ;;
5603esac
7d32a440
SP
5604
5605if test x"$with_ppl_include" != x; then
f8bf9252 5606 pplinc="-I$with_ppl_include $pplinc"
7d32a440 5607 with_ppl=yes
f8bf9252 5608fi
7d32a440 5609
f8bf9252 5610if test "x$with_ppl_lib" != x; then
7d32a440
SP
5611 ppllibs="-L$with_ppl_lib"
5612 with_ppl=yes
f8bf9252 5613fi
7d32a440
SP
5614
5615if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5616 if test x"$enable_watchdog" = xyes; then
5617 pwllib="-lpwl"
5618 fi
5619 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
f61428ed
AO
5620 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5621 enable_ppl_version_check=no
7d32a440 5622 with_ppl=yes
f8bf9252
SP
5623fi
5624
f158c8d0 5625if test "x$with_ppl" != xno; then
7d32a440 5626 if test "x$pwllib" = x; then
474ee908
RO
5627 saved_LIBS="$LIBS"
5628 LIBS="$LIBS $ppllibs -lstdc++ -lm"
7d32a440
SP
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5630$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5631if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5632 $as_echo_n "(cached) " >&6
5633else
5634 ac_check_lib_save_LIBS=$LIBS
5635LIBS="-lpwl $LIBS"
5636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637/* end confdefs.h. */
5638
5639/* Override any GCC internal prototype to avoid an error.
5640 Use char because int might match the return type of a GCC
5641 builtin and then its argument prototype would still apply. */
5642#ifdef __cplusplus
5643extern "C"
5644#endif
5645char PWL_handle_timeout ();
5646int
5647main ()
5648{
5649return PWL_handle_timeout ();
5650 ;
5651 return 0;
5652}
5653_ACEOF
5654if ac_fn_c_try_link "$LINENO"; then :
5655 ac_cv_lib_pwl_PWL_handle_timeout=yes
d789184e 5656else
7d32a440
SP
5657 ac_cv_lib_pwl_PWL_handle_timeout=no
5658fi
5659rm -f core conftest.err conftest.$ac_objext \
5660 conftest$ac_exeext conftest.$ac_ext
5661LIBS=$ac_check_lib_save_LIBS
5662fi
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5664$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5665if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5666 pwllib="-lpwl"
5213506e
RW
5667fi
5668
474ee908 5669 LIBS="$saved_LIBS"
7d32a440 5670 fi
f8bf9252 5671
7d32a440
SP
5672 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5673
5674 if test "$enable_ppl_version_check" != no; then
5675 saved_CFLAGS="$CFLAGS"
5676 CFLAGS="$CFLAGS $pplinc $gmpinc"
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5678$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5680/* end confdefs.h. */
5681#include "ppl_c.h"
5682int
5683main ()
5684{
5685
7d32a440
SP
5686 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5687 choke me
5688 #endif
f8bf9252
SP
5689
5690 ;
5691 return 0;
5692}
5693_ACEOF
5213506e
RW
5694if ac_fn_c_try_compile "$LINENO"; then :
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5696$as_echo "yes" >&6; }
f8bf9252 5697else
5213506e 5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ed3a56f3 5699$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
f8bf9252 5700fi
5213506e 5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7d32a440
SP
5702 CFLAGS="$saved_CFLAGS"
5703 fi
d789184e
SP
5704fi
5705
5706# Flags needed for PPL
5707
5708
f8bf9252 5709
f8bf9252 5710
d789184e 5711# Check for CLOOG
d32ef397 5712
d789184e
SP
5713
5714
5213506e
RW
5715# Check whether --with-cloog was given.
5716if test "${with_cloog+set}" = set; then :
5717 withval=$with_cloog;
5213506e
RW
5718fi
5719
d789184e 5720
9965e3cd 5721# Check whether --with-cloog-include was given.
5213506e
RW
5722if test "${with_cloog_include+set}" = set; then :
5723 withval=$with_cloog_include;
5724fi
d789184e 5725
d789184e 5726
9965e3cd 5727# Check whether --with-cloog-lib was given.
5213506e
RW
5728if test "${with_cloog_lib+set}" = set; then :
5729 withval=$with_cloog_lib;
5730fi
d789184e 5731
d789184e 5732
f16e2237
TG
5733 # Check whether --enable-cloog-backend was given.
5734if test "${enable_cloog_backend+set}" = set; then :
5735 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5736 cloog_backend=isl
5737 elif test "x${enableval}" = "xppl"; then
5738 cloog_backend=ppl
5739 else
5740 cloog_backend=ppl-legacy
5741 fi
5742else
5743 cloog_backend=ppl-legacy
5744fi
5745
d32ef397
AS
5746 # Check whether --enable-cloog-version-check was given.
5747if test "${enable_cloog_version_check+set}" = set; then :
5748 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5749else
5750 ENABLE_CLOOG_CHECK=yes
5751fi
5752
5753
5754 # Initialize clooglibs and clooginc.
5755 case $with_cloog in
5756 no)
5757 clooglibs=
5758 clooginc=
5759 ;;
5760 "" | yes)
5761 ;;
5762 *)
5763 clooglibs="-L$with_cloog/lib"
5764 clooginc="-I$with_cloog/include"
5765 ;;
5766 esac
5767 if test "x${with_cloog_include}" != x ; then
5768 clooginc="-I$with_cloog_include"
5769 fi
5770 if test "x${with_cloog_lib}" != x; then
5771 clooglibs="-L$with_cloog_lib"
5772 fi
5773
5774
5775
5776
5777
17e72e5d 5778if test "x$with_ppl" = "xno"; then
ab4173cf
SP
5779
5780
5781
6be7b668
JJ
5782 if test "x${with_cloog}" = xno; then
5783 graphite_requested=no
5784 elif test "x${with_cloog}" != x \
ab4173cf
SP
5785 || test "x${with_cloog_include}" != x \
5786 || test "x${with_cloog_lib}" != x ; then
5787 graphite_requested=yes
5788 else
5789 graphite_requested=no
5790 fi
5791
5792
5793 if test "${graphite_requested}" = yes; then
f33d8408 5794 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
ab4173cf 5795 fi
6be7b668 5796 with_cloog=no
ad0abd3c 5797fi
d32ef397
AS
5798if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5799 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5800 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5801 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5802fi
5803if test "x$with_cloog" != "xno"; then
ad0abd3c 5804
d32ef397
AS
5805
5806
5807 _cloog_saved_CFLAGS=$CFLAGS
5808 _cloog_saved_CPPFLAGS=$CPPFLAGS
5809 _cloog_saved_LDFLAGS=$LDFLAGS
5810 _cloog_saved_LIBS=$LIBS
5811
d32ef397
AS
5812 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5813
f16e2237 5814 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
0bb52d68 5815 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
f16e2237
TG
5816 LDFLAGS="${LDFLAGS} ${clooglibs}"
5817
5818 case $cloog_backend in
5819 "ppl-legacy")
5820 CFLAGS="${CFLAGS} ${pplinc}"
5821 LDFLAGS="${LDFLAGS} ${ppllibs}"
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5823$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
d32ef397
AS
5824if test "${gcc_cv_cloog_type+set}" = set; then :
5825 $as_echo_n "(cached) " >&6
5826else
5827 LIBS="-lcloog ${_cloog_saved_LIBS}"
f16e2237 5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5829/* end confdefs.h. */
0bb52d68 5830#include "cloog/cloog.h"
d32ef397
AS
5831int
5832main ()
5833{
0bb52d68
TG
5834#ifndef CLOOG_PPL_BACKEND
5835 choke me
5836 #endif
d32ef397
AS
5837 ;
5838 return 0;
5839}
5840_ACEOF
5841if ac_fn_c_try_link "$LINENO"; then :
5842 gcc_cv_cloog_type="PPL Legacy"
5843else
f16e2237
TG
5844 gcc_cv_cloog_type=no
5845fi
5846rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5848fi
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5850$as_echo "$gcc_cv_cloog_type" >&6; }
5851 ;;
5852 "isl")
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5854$as_echo_n "checking for installed CLooG ISL... " >&6; }
5855if test "${gcc_cv_cloog_type+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857else
5858 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5860/* end confdefs.h. */
0bb52d68 5861#include "cloog/cloog.h"
d32ef397
AS
5862int
5863main ()
5864{
5865cloog_version ()
5866 ;
5867 return 0;
5868}
5869_ACEOF
5870if ac_fn_c_try_link "$LINENO"; then :
f16e2237
TG
5871 gcc_cv_cloog_type="ISL"
5872else
5873 gcc_cv_cloog_type=no
5874fi
5875rm -f core conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5877fi
5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5879$as_echo "$gcc_cv_cloog_type" >&6; }
5880 ;;
5881 "ppl")
5882 CFLAGS="${CFLAGS} ${pplinc}"
5883 LDFLAGS="${LDFLAGS} ${ppllibs}"
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5885$as_echo_n "checking for installed CLooG PPL... " >&6; }
5886if test "${gcc_cv_cloog_type+set}" = set; then :
5887 $as_echo_n "(cached) " >&6
d32ef397
AS
5888else
5889 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
f16e2237 5890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d32ef397 5891/* end confdefs.h. */
0bb52d68 5892#include "cloog/cloog.h"
f16e2237 5893 #include "cloog/ppl/cloog.h"
d32ef397
AS
5894int
5895main ()
5896{
5897cloog_version ()
5898 ;
5899 return 0;
5900}
5901_ACEOF
5902if ac_fn_c_try_link "$LINENO"; then :
f16e2237 5903 gcc_cv_cloog_type="PPL"
d32ef397
AS
5904else
5905 gcc_cv_cloog_type=no
d789184e 5906fi
d32ef397
AS
5907rm -f core conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext conftest.$ac_ext
d789184e 5909fi
d32ef397
AS
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5911$as_echo "$gcc_cv_cloog_type" >&6; }
f16e2237
TG
5912 ;;
5913 *)
5914 gcc_cv_cloog_type=""
5915 esac
5213506e 5916
d32ef397
AS
5917 case $gcc_cv_cloog_type in
5918 "PPL Legacy")
0bb52d68 5919 clooginc="${clooginc}"
d32ef397
AS
5920 clooglibs="${clooglibs} -lcloog"
5921 cloog_org=no
5922 ;;
5923 "ISL")
5924 clooginc="${clooginc} ${_cloogorginc}"
3d2bc11b 5925 clooglibs="${clooglibs} -lcloog-isl -lisl"
d32ef397
AS
5926 cloog_org=yes
5927 ;;
5928 "PPL")
5929 clooginc="${clooginc} ${_cloogorginc}"
5930 clooglibs="${clooglibs} -lcloog-ppl"
5931 cloog_org=yes
5932 ;;
5933 *)
5934 clooglibs=
5935 clooginc=
5936 cloog_org=
5937 ;;
5938 esac
d789184e 5939
d32ef397
AS
5940 LIBS=$_cloog_saved_LIBS
5941 CFLAGS=$_cloog_saved_CFLAGS
5942 CPPFLAGS=$_cloog_saved_CPPFLAGS
5943 LDFLAGS=$_cloog_saved_LDFLAGS
5944
5945
5946
5947
5948
5949 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
5950 _cloog_saved_CFLAGS=$CFLAGS
5951 _cloog_saved_LDFLAGS=$LDFLAGS
5952
5953 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
27882098 5954 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
d32ef397
AS
5955
5956 if test "${cloog_org}" = yes ; then
27b9aa80
TG
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
5958$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
d32ef397
AS
5959if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
5960 $as_echo_n "(cached) " >&6
5961else
5962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5963/* end confdefs.h. */
5964#include "cloog/cloog.h"
5965int
5966main ()
5967{
5968#if CLOOG_VERSION_MAJOR != 0 \
27b9aa80
TG
5969 || CLOOG_VERSION_MINOR != 16 \
5970 || CLOOG_VERSION_REVISION < 1
d32ef397
AS
5971 choke me
5972 #endif
5973 ;
5974 return 0;
5975}
5976_ACEOF
5977if ac_fn_c_try_compile "$LINENO"; then :
5978 gcc_cv_cloog_ct_0_14_0=yes
5979else
5980 gcc_cv_cloog_ct_0_14_0=no
5981fi
5982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983fi
5984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
5985$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
5986 elif test "${cloog_org}" = no ; then
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
f264ed56 5988$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
d32ef397
AS
5989if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5991else
5213506e 5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f8bf9252
SP
5993/* end confdefs.h. */
5994#include "cloog/cloog.h"
5995int
5996main ()
5997{
d32ef397
AS
5998#if CLOOG_VERSION_MAJOR != 0 \
5999 || CLOOG_VERSION_MINOR != 15 \
6000 || CLOOG_VERSION_REVISION < 5
6001 choke me
6002 #endif
f8bf9252
SP
6003 ;
6004 return 0;
6005}
6006_ACEOF
0333b9a6
SP
6007if ac_fn_c_try_compile "$LINENO"; then :
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009/* end confdefs.h. */
6010#include "cloog/cloog.h"
6011int
6012main ()
6013{
d32ef397
AS
6014#if CLOOG_VERSION_MAJOR != 0 \
6015 || CLOOG_VERSION_MINOR != 15 \
6016 || CLOOG_VERSION_REVISION < 9
6017 choke me
6018 #endif
0333b9a6
SP
6019 ;
6020 return 0;
6021}
6022_ACEOF
5213506e 6023if ac_fn_c_try_compile "$LINENO"; then :
d32ef397 6024 gcc_cv_cloog_ct_0_15_5=yes
0333b9a6 6025else
d32ef397 6026 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
0333b9a6
SP
6027fi
6028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f8bf9252 6029else
d32ef397 6030 gcc_cv_cloog_ct_0_15_5=no
f8bf9252 6031fi
5213506e 6032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d789184e 6033fi
d32ef397
AS
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6035$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6036 fi
6037
6038 CFLAGS=$_cloog_saved_CFLAGS
6039 LDFLAGS=$_cloog_saved_LDFLAGS
6040 fi
f8bf9252 6041
f8bf9252
SP
6042
6043
6044
d32ef397
AS
6045
6046
6047
6be7b668
JJ
6048 if test "x${with_cloog}" = xno; then
6049 graphite_requested=no
6050 elif test "x${with_cloog}" != x \
d32ef397
AS
6051 || test "x${with_cloog_include}" != x \
6052 || test "x${with_cloog_lib}" != x ; then
6053 graphite_requested=yes
6054 else
6055 graphite_requested=no
6056 fi
6057
6058
6059
6060 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6061 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6062 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6063 clooglibs=
6064 clooginc=
6065 fi
6066
6067 if test "${graphite_requested}" = yes \
6068 && test "x${clooglibs}" = x \
6069 && test "x${clooginc}" = x ; then
6070
ab4173cf 6071 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
d32ef397
AS
6072 fi
6073
6074
6075fi
6076
d7f09764
DN
6077# Check for LTO support.
6078# Check whether --enable-lto was given.
6079if test "${enable_lto+set}" = set; then :
6080 enableval=$enable_lto; enable_lto=$enableval
6081else
6082 enable_lto=yes; default_enable_lto=yes
6083fi
6084
6085
7413962d 6086
9a02962b
DK
6087
6088
6089target_elf=no
6090case $target in
6091 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
e44dbbe1 6092 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
9a02962b
DK
6093 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
6094 target_elf=no
6095 ;;
6096 *)
6097 target_elf=yes
6098 ;;
6099esac
6100
6101if test $target_elf = yes; then :
48215350
DK
6102 # ELF platforms build the lto-plugin always.
6103 build_lto_plugin=yes
9a02962b 6104
9a02962b
DK
6105else
6106 if test x"$default_enable_lto" = x"yes" ; then
bb79486c 6107 case $target in
2cd815e7 6108 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
48215350 6109 # On other non-ELF platforms, LTO has yet to be validated.
bb79486c
JH
6110 *) enable_lto=no ;;
6111 esac
9a02962b 6112 else
db50fe7d
IS
6113 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6114 # It would also be nice to check the binutils support, but we don't
9a02962b
DK
6115 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6116 # warn during gcc/ subconfigure; unless you're bootstrapping with
6117 # -flto it won't be needed until after installation anyway.
6118 case $target in
1cd0b716 6119 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
9a02962b
DK
6120 *) if test x"$enable_lto" = x"yes"; then
6121 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6122 fi
6123 ;;
6124 esac
6125 fi
1cd0b716 6126 # Among non-ELF, only Windows platforms support the lto-plugin so far.
48215350 6127 # Build it unless LTO was explicitly disabled.
1cd0b716 6128 case $target in
48215350 6129 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
1cd0b716
DK
6130 *) ;;
6131 esac
48215350 6132
9a02962b
DK
6133fi
6134
d7f09764 6135
f8bf9252 6136
1e0f07d3 6137# By default, C is the only stage 1 language.
e1888513 6138stage1_languages=,c,
2805b53a 6139
00020c16 6140# Target libraries that we bootstrap.
ad1e5170 6141bootstrap_target_libs=,target-libgcc,
00020c16 6142
55ffb5ed
NN
6143# Figure out what language subdirectories are present.
6144# Look if the user specified --enable-languages="..."; if not, use
6145# the environment variable $LANGUAGES if defined. $LANGUAGES might
6146# go away some day.
6147# NB: embedded tabs in this IF block -- do not untabify
6148if test -d ${srcdir}/gcc; then
6149 if test x"${enable_languages+set}" != xset; then
6150 if test x"${LANGUAGES+set}" = xset; then
6151 enable_languages="${LANGUAGES}"
6152 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6153 else
6154 enable_languages=all
6155 fi
6156 else
6157 if test x"${enable_languages}" = x ||
6158 test x"${enable_languages}" = xyes;
6159 then
6160 echo configure.in: --enable-languages needs at least one language argument 1>&2
6161 exit 1
6162 fi
6163 fi
6164 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6165
7f26dfa3
FXC
6166 # 'f95' is the old name for the 'fortran' language. We issue a warning
6167 # and make the substitution.
6168 case ,${enable_languages}, in
6169 *,f95,*)
6170 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6171 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6172 ;;
6173 esac
6174
ff3ac0f4
ILT
6175 # If bootstrapping, then using --enable-build-with-cxx or
6176 # --enable-build-poststage1-with-cxx requires enabling C++.
6177 case ",$enable_languages,:,$ENABLE_BUILD_WITH_CXX,$ENABLE_BUILD_POSTSTAGE1_WITH_CXX,:$enable_bootstrap" in
6178 *,c++,*:*:*) ;;
6179 *:*,yes,*:yes)
6180 if test -f ${srcdir}/gcc/cp/config-lang.in; then
6181 enable_languages="${enable_languages},c++"
6182 else
6183 as_fn_error "bootstrapping with --enable-build-with-cxx or --enable-build-poststage1-with-cxx requires c++ sources" "$LINENO" 5
6184 fi
6185 ;;
6186 esac
6187
55ffb5ed
NN
6188 # First scan to see if an enabled language requires some other language.
6189 # We assume that a given config-lang.in will list all the language
6190 # front ends it requires, even if some are required indirectly.
6191 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6192 case ${lang_frag} in
6193 ..) ;;
6194 # The odd quoting in the next line works around
6195 # an apparent bug in bash 1.12 on linux.
6196 ${srcdir}/gcc/[*]/config-lang.in) ;;
6197 *)
69ecd18f
ILT
6198 # From the config-lang.in, get $language, $lang_requires, and
6199 # $lang_requires_boot_languages.
55ffb5ed
NN
6200 language=
6201 lang_requires=
69ecd18f 6202 lang_requires_boot_languages=
55ffb5ed 6203 . ${lang_frag}
69ecd18f 6204 for other in ${lang_requires} ${lang_requires_boot_languages}; do
55ffb5ed
NN
6205 case ,${enable_languages}, in
6206 *,$other,*) ;;
6207 *,all,*) ;;
6208 *,$language,*)
6209 echo " \`$other' language required by \`$language'; enabling" 1>&2
6210 enable_languages="${enable_languages},${other}"
6211 ;;
6212 esac
6213 done
69ecd18f
ILT
6214 for other in ${lang_requires_boot_languages} ; do
6215 if test "$other" != "c"; then
6216 case ,${enable_stage1_languages}, in
6217 *,$other,*) ;;
6218 *,all,*) ;;
6219 *)
6220 case ,${enable_languages}, in
6221 *,$language,*)
6222 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6223 enable_stage1_languages="$enable_stage1_languages,${other}"
6224 ;;
6225 esac
6226 ;;
6227 esac
6228 fi
6229 done
55ffb5ed
NN
6230 ;;
6231 esac
6232 done
6233
e1888513 6234 new_enable_languages=,c,
d7f09764
DN
6235
6236 # If LTO is enabled, add the LTO front end.
6237 extra_host_libiberty_configure_flags=
6238 if test "$enable_lto" = "yes" ; then
e4c5bd48
RW
6239 case ,${enable_languages}, in
6240 *,lto,*) ;;
6241 *) enable_languages="${enable_languages},lto" ;;
6242 esac
1cd0b716 6243 if test "${build_lto_plugin}" = "yes" ; then
d7f09764
DN
6244 configdirs="$configdirs lto-plugin"
6245 extra_host_libiberty_configure_flags=--enable-shared
6246 fi
6247 fi
6248
6249
55ffb5ed 6250 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
e1888513 6251 potential_languages=,c,
55ffb5ed 6252
4da3b0f8
ILT
6253 enabled_target_libs=
6254 disabled_target_libs=
6255
55ffb5ed
NN
6256 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6257 case ${lang_frag} in
6258 ..) ;;
6259 # The odd quoting in the next line works around
6260 # an apparent bug in bash 1.12 on linux.
6261 ${srcdir}/gcc/[*]/config-lang.in) ;;
6262 *)
1c710c3c 6263 # From the config-lang.in, get $language, $target_libs,
2805b53a 6264 # $lang_dirs, $boot_language, and $build_by_default
55ffb5ed
NN
6265 language=
6266 target_libs=
6267 lang_dirs=
1546bb64 6268 subdir_requires=
e1888513
PB
6269 boot_language=no
6270 build_by_default=yes
55ffb5ed 6271 . ${lang_frag}
e1888513
PB
6272 if test x${language} = x; then
6273 echo "${lang_frag} doesn't set \$language." 1>&2
6274 exit 1
6275 fi
6276
78767fd9
ILT
6277 if test "$language" = "c++"; then
6278 if test "$ENABLE_BUILD_WITH_CXX" = "yes" \
6279 || test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
6280 boot_language=yes
6281 fi
00020c16
ILT
6282 fi
6283
e1888513
PB
6284 case ,${enable_languages}, in
6285 *,${language},*)
55ffb5ed
NN
6286 # Language was explicitly selected; include it.
6287 add_this_lang=yes
6288 ;;
e1888513
PB
6289 *,all,*)
6290 # 'all' was selected, select it if it is a default language
6291 add_this_lang=${build_by_default}
55ffb5ed
NN
6292 ;;
6293 *)
6294 add_this_lang=no
6295 ;;
6296 esac
6de9cd9a 6297
1546bb64 6298 # Disable languages that need other directories if these aren't available.
95695ad3 6299 for i in $subdir_requires; do
b6348cb3 6300 test -f "$srcdir/gcc/$i/config-lang.in" && continue
1546bb64
PB
6301 case ,${enable_languages}, in
6302 *,${language},*)
6303 # Specifically requested language; tell them.
5213506e 6304 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
1546bb64
PB
6305 ;;
6306 *)
6307 # Silently disable.
e1888513 6308 add_this_lang=unsupported
1546bb64
PB
6309 ;;
6310 esac
6311 done
6312
e1888513
PB
6313 # Disable Ada if no preexisting GNAT is available.
6314 case ,${enable_languages},:${language}:${have_gnat} in
6315 *,${language},*:ada:no)
6316 # Specifically requested language; tell them.
5213506e 6317 as_fn_error "GNAT is required to build $language" "$LINENO" 5
e1888513
PB
6318 ;;
6319 *:ada:no)
6320 # Silently disable.
6321 add_this_lang=unsupported
6322 ;;
6323 esac
6324
4fab7234
HPN
6325 # Disable a language that is unsupported by the target.
6326 case " $unsupported_languages " in
6327 *" $language "*)
e1888513 6328 add_this_lang=unsupported
4fab7234
HPN
6329 ;;
6330 esac
6331
6de9cd9a 6332 case $add_this_lang in
e1888513 6333 unsupported)
55ffb5ed 6334 # Remove language-dependent dirs.
4da3b0f8
ILT
6335 disabled_target_libs="$disabled_target_libs $target_libs"
6336 noconfigdirs="$noconfigdirs $lang_dirs"
2805b53a 6337 ;;
e1888513
PB
6338 no)
6339 # Remove language-dependent dirs; still show language as supported.
4da3b0f8
ILT
6340 disabled_target_libs="$disabled_target_libs $target_libs"
6341 noconfigdirs="$noconfigdirs $lang_dirs"
e1888513
PB
6342 potential_languages="${potential_languages}${language},"
6343 ;;
6344 yes)
6345 new_enable_languages="${new_enable_languages}${language},"
6346 potential_languages="${potential_languages}${language},"
2805b53a 6347 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
4da3b0f8 6348 enabled_target_libs="$enabled_target_libs $target_libs"
ab9dcd0c
RW
6349 case "${boot_language}:,$enable_stage1_languages," in
6350 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
340de83f 6351 # Add to (comma-separated) list of stage 1 languages.
ab9dcd0c
RW
6352 case ",$stage1_languages," in
6353 *,$language,* | ,yes, | ,all,) ;;
6354 *) stage1_languages="${stage1_languages}${language}," ;;
6355 esac
00020c16
ILT
6356 # We need to bootstrap any supporting libraries.
6357 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
2805b53a
NN
6358 ;;
6359 esac
6360 ;;
55ffb5ed
NN
6361 esac
6362 ;;
6363 esac
6364 done
6365
4da3b0f8
ILT
6366 # Add target libraries which are only needed for disabled languages
6367 # to noconfigdirs.
6368 if test -n "$disabled_target_libs"; then
6369 for dir in $disabled_target_libs; do
6370 case " $enabled_target_libs " in
6371 *" ${dir} "*) ;;
6372 *) noconfigdirs="$noconfigdirs $dir" ;;
6373 esac
6374 done
6375 fi
6376
5213506e
RW
6377 # Check whether --enable-stage1-languages was given.
6378if test "${enable_stage1_languages+set}" = set; then :
6379 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
e1888513
PB
6380 ,no,|,,)
6381 # Set it to something that will have no effect in the loop below
6382 enable_stage1_languages=c ;;
6383 ,yes,)
6384 enable_stage1_languages=`echo $new_enable_languages | \
6385 sed -e "s/^,//" -e "s/,$//" ` ;;
6386 *,all,*)
6387 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6388 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6389 esac
6390
6391 # Add "good" languages from enable_stage1_languages to stage1_languages,
6392 # while "bad" languages go in missing_languages. Leave no duplicates.
6393 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6394 case $potential_languages in
6395 *,$i,*)
6396 case $stage1_languages in
6397 *,$i,*) ;;
6398 *) stage1_languages="$stage1_languages$i," ;;
6399 esac ;;
6400 *)
6401 case $missing_languages in
6402 *,$i,*) ;;
6403 *) missing_languages="$missing_languages$i," ;;
6404 esac ;;
6405 esac
6406 done
5213506e
RW
6407fi
6408
e1888513
PB
6409
6410 # Remove leading/trailing commas that were added for simplicity
6411 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
79b4b7d2 6412 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
e1888513
PB
6413 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6414 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6415
55ffb5ed 6416 if test "x$missing_languages" != x; then
5213506e 6417 as_fn_error "
0cf085e4 6418The following requested languages could not be built: ${missing_languages}
5213506e 6419Supported languages are: ${potential_languages}" "$LINENO" 5
55ffb5ed 6420 fi
55ffb5ed
NN
6421 if test "x$new_enable_languages" != "x$enable_languages"; then
6422 echo The following languages will be built: ${new_enable_languages}
e1888513 6423 enable_languages="$new_enable_languages"
55ffb5ed 6424 fi
e1888513 6425
1c710c3c 6426
b2eaac4a 6427 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
55ffb5ed
NN
6428fi
6429
27079765
AH
6430# Handle --disable-<component> generically.
6431for dir in $configdirs $build_configdirs $target_configdirs ; do
6432 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
ac9e6043
RW
6433 varname=`echo $dirname | sed -e s/+/_/g`
6434 if eval test x\${enable_${varname}} "=" xno ; then
27079765
AH
6435 noconfigdirs="$noconfigdirs $dir"
6436 fi
6437done
6438
7cd0cf9c 6439# Check for Boehm's garbage collector
5213506e
RW
6440# Check whether --enable-objc-gc was given.
6441if test "${enable_objc_gc+set}" = set; then :
6442 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
7cd0cf9c 6443 *,objc,*:*:yes:*target-boehm-gc*)
5213506e 6444 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
7cd0cf9c
DA
6445 ;;
6446esac
5213506e
RW
6447fi
6448
7cd0cf9c
DA
6449
6450# Make sure we only build Boehm's garbage collector if required.
2a79fd67
DA
6451case ,${enable_languages},:${enable_objc_gc} in
6452 *,objc,*:yes)
7cd0cf9c
DA
6453 # Keep target-boehm-gc if requested for Objective-C.
6454 ;;
7cd0cf9c 6455 *)
2a79fd67
DA
6456 # Otherwise remove target-boehm-gc depending on target-libjava.
6457 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6458 noconfigdirs="$noconfigdirs target-boehm-gc"
6459 fi
7cd0cf9c
DA
6460 ;;
6461esac
6462
ee6a22df
L
6463# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6464# $build_configdirs and $target_configdirs.
55ffb5ed
NN
6465# If we have the source for $noconfigdirs entries, add them to $notsupp.
6466
6467notsupp=""
6468for dir in . $skipdirs $noconfigdirs ; do
ee6a22df 6469 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
55ffb5ed
NN
6470 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6471 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6472 if test -r $srcdir/$dirname/configure ; then
6473 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6474 true
6475 else
6476 notsupp="$notsupp $dir"
6477 fi
6478 fi
6479 fi
ee6a22df
L
6480 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6481 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6482 if test -r $srcdir/$dirname/configure ; then
6483 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6484 true
6485 else
6486 notsupp="$notsupp $dir"
6487 fi
6488 fi
6489 fi
55ffb5ed
NN
6490 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6491 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6492 if test -r $srcdir/$dirname/configure ; then
6493 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6494 true
6495 else
6496 notsupp="$notsupp $dir"
6497 fi
6498 fi
6499 fi
6500done
6501
55ffb5ed
NN
6502# Quietly strip out all directories which aren't configurable in this tree.
6503# This relies on all configurable subdirectories being autoconfiscated, which
6504# is now the case.
23f6b2f9
PB
6505build_configdirs_all="$build_configdirs"
6506build_configdirs=
6507for i in ${build_configdirs_all} ; do
1c710c3c 6508 j=`echo $i | sed -e s/build-//g`
23f6b2f9
PB
6509 if test -f ${srcdir}/$j/configure ; then
6510 build_configdirs="${build_configdirs} $i"
6511 fi
6512done
6513
55ffb5ed
NN
6514configdirs_all="$configdirs"
6515configdirs=
6516for i in ${configdirs_all} ; do
6517 if test -f ${srcdir}/$i/configure ; then
6518 configdirs="${configdirs} $i"
6519 fi
6520done
23f6b2f9 6521
55ffb5ed
NN
6522target_configdirs_all="$target_configdirs"
6523target_configdirs=
6524for i in ${target_configdirs_all} ; do
1c710c3c 6525 j=`echo $i | sed -e s/target-//g`
55ffb5ed
NN
6526 if test -f ${srcdir}/$j/configure ; then
6527 target_configdirs="${target_configdirs} $i"
6528 fi
6529done
6530
6531# Produce a warning message for the subdirs we can't configure.
6532# This isn't especially interesting in the Cygnus tree, but in the individual
6533# FSF releases, it's important to let people know when their machine isn't
6534# supported by the one or two programs in a package.
6535
6536if test -n "${notsupp}" && test -z "${norecursion}" ; then
6537 # If $appdirs is non-empty, at least one of those directories must still
6538 # be configured, or we error out. (E.g., if the gas release supports a
6539 # specified target in some subdirs but not the gas subdir, we shouldn't
6540 # pretend that all is well.)
6541 if test -n "$appdirs" ; then
6542 for dir in $appdirs ; do
6543 if test -r $dir/Makefile.in ; then
6544 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6545 appdirs=""
6546 break
6547 fi
23f6b2f9 6548 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
55ffb5ed
NN
6549 appdirs=""
6550 break
6551 fi
6552 fi
6553 done
6554 if test -n "$appdirs" ; then
6555 echo "*** This configuration is not supported by this package." 1>&2
6556 exit 1
6557 fi
6558 fi
6559 # Okay, some application will build, or we don't care to check. Still
6560 # notify of subdirs not getting built.
6561 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6562 echo " ${notsupp}" 1>&2
6563 echo " (Any other directories should still work fine.)" 1>&2
6564fi
6565
6566case "$host" in
6567 *msdosdjgpp*)
6568 enable_gdbtk=no ;;
6569esac
6570
c3a86da9
DJ
6571# To find our prefix, in gcc_cv_tool_prefix.
6572
6573# The user is always right.
6574if test "${PATH_SEPARATOR+set}" != set; then
6575 echo "#! /bin/sh" >conf$$.sh
6576 echo "exit 0" >>conf$$.sh
6577 chmod +x conf$$.sh
6578 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6579 PATH_SEPARATOR=';'
6580 else
6581 PATH_SEPARATOR=:
6582 fi
6583 rm -f conf$$.sh
6584fi
6585
6586
6587
6588if test "x$exec_prefix" = xNONE; then
6589 if test "x$prefix" = xNONE; then
6590 gcc_cv_tool_prefix=$ac_default_prefix
6591 else
6592 gcc_cv_tool_prefix=$prefix
6593 fi
6594else
6595 gcc_cv_tool_prefix=$exec_prefix
6596fi
6597
6598# If there is no compiler in the tree, use the PATH only. In any
6599# case, if there is no compiler in the tree nobody should use
6600# AS_FOR_TARGET and LD_FOR_TARGET.
6601if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6602 gcc_version=`cat $srcdir/gcc/BASE-VER`
6603 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6604 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6605 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6606 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6607 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6608 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6609else
6610 gcc_cv_tool_dirs=
6611fi
6612
6613if test x$build = x$target && test -n "$md_exec_prefix"; then
6614 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6615fi
6616
6617
6618
55ffb5ed
NN
6619copy_dirs=
6620
1c710c3c 6621
5213506e
RW
6622# Check whether --with-build-sysroot was given.
6623if test "${with_build_sysroot+set}" = set; then :
6624 withval=$with_build_sysroot; if test x"$withval" != x ; then
526635cb
MM
6625 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6626 fi
6627else
6628 SYSROOT_CFLAGS_FOR_TARGET=
5213506e 6629fi
526635cb
MM
6630
6631
c8aea42c 6632
5213506e
RW
6633
6634# Check whether --with-debug-prefix-map was given.
6635if test "${with_debug_prefix_map+set}" = set; then :
6636 withval=$with_debug_prefix_map; if test x"$withval" != x; then
c8aea42c
PB
6637 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6638 for debug_map in $withval; do
6639 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6640 done
6641 fi
6642else
6643 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
5213506e
RW
6644fi
6645
c8aea42c
PB
6646
6647
1c8bd6a3
PB
6648# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6649# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6650# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6651# We want to ensure that TARGET libraries (which we know are built with
6652# gcc) are built with "-O2 -g", so include those options when setting
6653# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6654if test "x$CFLAGS_FOR_TARGET" = x; then
6655 CFLAGS_FOR_TARGET=$CFLAGS
6656 case " $CFLAGS " in
6657 *" -O2 "*) ;;
6658 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6659 esac
6660 case " $CFLAGS " in
6661 *" -g "* | *" -g3 "*) ;;
6662 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6663 esac
6664fi
6665
6666
6667if test "x$CXXFLAGS_FOR_TARGET" = x; then
6668 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6669 case " $CXXFLAGS " in
6670 *" -O2 "*) ;;
6671 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6672 esac
6673 case " $CXXFLAGS " in
6674 *" -g "* | *" -g3 "*) ;;
6675 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6676 esac
6677fi
6678
6679
6f57bdf6
DK
6680
6681
55ffb5ed
NN
6682# Handle --with-headers=XXX. If the value is not "yes", the contents of
6683# the named directory are copied to $(tooldir)/sys-include.
6684if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6685 if test x${is_cross_compiler} = xno ; then
6686 echo 1>&2 '***' --with-headers is only supported when cross compiling
6687 exit 1
6688 fi
6689 if test x"${with_headers}" != xyes ; then
c3a86da9 6690 x=${gcc_cv_tool_prefix}
1c710c3c 6691 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
55ffb5ed
NN
6692 fi
6693fi
6694
6695# Handle --with-libs=XXX. If the value is not "yes", the contents of
6696# the name directories are copied to $(tooldir)/lib. Multiple directories
6697# are permitted.
6698if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6699 if test x${is_cross_compiler} = xno ; then
6700 echo 1>&2 '***' --with-libs is only supported when cross compiling
6701 exit 1
6702 fi
6703 if test x"${with_libs}" != xyes ; then
6704 # Copy the libraries in reverse order, so that files in the first named
6705 # library override files in subsequent libraries.
c3a86da9 6706 x=${gcc_cv_tool_prefix}
55ffb5ed 6707 for l in ${with_libs}; do
1c710c3c 6708 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
55ffb5ed
NN
6709 done
6710 fi
6711fi
6712
d7f09764 6713# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
e8b05380
PB
6714#
6715# This is done by determining whether or not the appropriate directory
6716# is available, and by checking whether or not specific configurations
6717# have requested that this magic not happen.
1c710c3c
DJ
6718#
6719# The command line options always override the explicit settings in
e8b05380
PB
6720# configure.in, and the settings in configure.in override this magic.
6721#
1c710c3c 6722# If the default for a toolchain is to use GNU as and ld, and you don't
e8b05380 6723# want to do that, then you should use the --without-gnu-as and
d7f09764
DN
6724# --without-gnu-ld options for the configure script. Similarly, if
6725# the default is to use the included zlib and you don't want to do that,
6726# you should use the --with-system-zlib option for the configure script.
e8b05380
PB
6727
6728if test x${use_gnu_as} = x &&
6729 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6730 with_gnu_as=yes
6731 extra_host_args="$extra_host_args --with-gnu-as"
6732fi
6733
6734if test x${use_gnu_ld} = x &&
5afab7ad 6735 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
e8b05380
PB
6736 with_gnu_ld=yes
6737 extra_host_args="$extra_host_args --with-gnu-ld"
6738fi
6739
d7f09764
DN
6740if test x${use_included_zlib} = x &&
6741 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6742 :
6743else
6744 with_system_zlib=yes
6745 extra_host_args="$extra_host_args --with-system-zlib"
6746fi
6747
e8b05380
PB
6748# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6749# can detect this case.
6750
6751if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6752 with_newlib=yes
6753 extra_host_args="$extra_host_args --with-newlib"
6754fi
6755
55ffb5ed
NN
6756# Handle ${copy_dirs}
6757set fnord ${copy_dirs}
6758shift
6759while test $# != 0 ; do
6760 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6761 :
6762 else
6763 echo Copying $1 to $2
6764
6765 # Use the install script to create the directory and all required
6766 # parent directories.
6767 if test -d $2 ; then
6768 :
6769 else
6770 echo >config.temp
6771 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6772 fi
6773
6774 # Copy the directory, assuming we have tar.
6775 # FIXME: Should we use B in the second tar? Not all systems support it.
6776 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6777
6778 # It is the responsibility of the user to correctly adjust all
6779 # symlinks. If somebody can figure out how to handle them correctly
6780 # here, feel free to add the code.
6781
6782 echo $1 > $2/COPIED
6783 fi
6784 shift; shift
6785done
6786
e8b05380
PB
6787# Determine a target-dependent exec_prefix that the installed
6788# gcc will search in. Keep this list sorted by triplet, with
6789# the *-*-osname triplets last.
6790md_exec_prefix=
6791case "${target}" in
30b74385 6792 i[34567]86-pc-msdosdjgpp*)
e8b05380
PB
6793 md_exec_prefix=/dev/env/DJDIR/bin
6794 ;;
e8b05380 6795 *-*-hpux* | \
e8b05380 6796 *-*-nto-qnx* | \
6de66370 6797 *-*-solaris2*)
e8b05380
PB
6798 md_exec_prefix=/usr/ccs/bin
6799 ;;
6800esac
6801
671aa708
NN
6802extra_arflags_for_target=
6803extra_nmflags_for_target=
6804extra_ranlibflags_for_target=
6805target_makefile_frag=/dev/null
6806case "${target}" in
58e24147
AM
6807 spu-*-*)
6808 target_makefile_frag="config/mt-spu"
6809 ;;
4bf6c438
RS
6810 mips*-sde-elf*)
6811 target_makefile_frag="config/mt-sde"
6812 ;;
1ec3b87b
RS
6813 mipsisa*-*-elfoabi*)
6814 target_makefile_frag="config/mt-mips-elfoabi"
6815 ;;
08d0963a
RS
6816 mips*-*-*linux* | mips*-*-gnu*)
6817 target_makefile_frag="config/mt-mips-gnu"
6818 ;;
416ac4d4 6819 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
98a5bb3b 6820 target_makefile_frag="config/mt-gnu"
671aa708
NN
6821 ;;
6822 *-*-aix4.[3456789]* | *-*-aix[56789].*)
1c710c3c 6823 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
671aa708
NN
6824 # commands to handle both 32-bit and 64-bit objects. These flags are
6825 # harmless if we're using GNU nm or ar.
6826 extra_arflags_for_target=" -X32_64"
6827 extra_nmflags_for_target=" -B -X32_64"
6828 ;;
0aeb3cc6
JH
6829 *-*-darwin[3-9]*)
6830 # ranlib before Darwin10 requires the -c flag to look at common symbols.
671aa708
NN
6831 extra_ranlibflags_for_target=" -c"
6832 ;;
671aa708
NN
6833esac
6834
6835alphaieee_frag=/dev/null
6836case $target in
6837 alpha*-*-*)
6838 # This just makes sure to use the -mieee option to build target libs.
6839 # This should probably be set individually by each library.
6840 alphaieee_frag="config/mt-alphaieee"
6841 ;;
6842esac
6843
6844# If --enable-target-optspace always use -Os instead of -O2 to build
6845# the target libraries, similarly if it is not specified, use -Os
6846# on selected platforms.
6847ospace_frag=/dev/null
6848case "${enable_target_optspace}:${target}" in
6849 yes:*)
6850 ospace_frag="config/mt-ospace"
6851 ;;
6852 :d30v-*)
6853 ospace_frag="config/mt-d30v"
6854 ;;
6855 :m32r-* | :d10v-* | :fr30-*)
6856 ospace_frag="config/mt-ospace"
6857 ;;
6858 no:* | :*)
6859 ;;
6860 *)
6861 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6862 ;;
6863esac
6864
671aa708
NN
6865# Default to using --with-stabs for certain targets.
6866if test x${with_stabs} = x ; then
6867 case "${target}" in
89a95129 6868 mips*-*-irix[56]*)
671aa708
NN
6869 ;;
6870 mips*-*-* | alpha*-*-osf*)
6871 with_stabs=yes;
6872 extra_host_args="${extra_host_args} --with-stabs"
6873 ;;
6874 esac
6875fi
6876
671aa708
NN
6877# Some systems (e.g., one of the i386-aix systems the gas testers are
6878# using) don't handle "\$" correctly, so don't use it here.
1c710c3c 6879tooldir='${exec_prefix}'/${target_noncanonical}
671aa708
NN
6880build_tooldir=${tooldir}
6881
671aa708
NN
6882# Create a .gdbinit file which runs the one in srcdir
6883# and tells GDB to look there for source files.
6884
6885if test -r ${srcdir}/.gdbinit ; then
6886 case ${srcdir} in
6887 .) ;;
6888 *) cat > ./.gdbinit <<EOF
6889# ${NO_EDIT}
6890dir ${srcdir}
6891dir .
6892source ${srcdir}/.gdbinit
6893EOF
6894 ;;
6895 esac
6896fi
6897
671aa708
NN
6898# Make sure that the compiler is able to generate an executable. If it
6899# can't, we are probably in trouble. We don't care whether we can run the
6900# executable--we might be using a cross compiler--we only care whether it
6901# can be created. At this point the main configure script has set CC.
6902we_are_ok=no
6903echo "int main () { return 0; }" > conftest.c
6904${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6905if test $? = 0 ; then
6906 if test -s conftest || test -s conftest.exe ; then
6907 we_are_ok=yes
6908 fi
1c710c3c 6909fi
671aa708
NN
6910case $we_are_ok in
6911 no)
6912 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6913 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6914 rm -f conftest*
6915 exit 1
6916 ;;
6917esac
6918rm -f conftest*
6919
d89f0ad6 6920# Decide which environment variable is used to find dynamic libraries.
671aa708
NN
6921case "${host}" in
6922 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
111eeb6e 6923 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
d89f0ad6 6924 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
671aa708
NN
6925 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6926esac
6927
d89f0ad6
AL
6928# On systems where the dynamic library environment variable is PATH,
6929# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6930# built executables to PATH.
6931if test "$RPATH_ENVVAR" = PATH; then
6932 GCC_SHLIB_SUBDIR=/shlib
6933else
6934 GCC_SHLIB_SUBDIR=
6935fi
6936
671aa708
NN
6937# Record target_configdirs and the configure arguments for target and
6938# build configuration in Makefile.
6939target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
23f6b2f9 6940build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
671aa708 6941
ad1e5170
JR
6942# If we are building libgomp, bootstrap it.
6943if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6944 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6945fi
6946
671aa708
NN
6947# Determine whether gdb needs tk/tcl or not.
6948# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6949# and in that case we want gdb to be built without tk. Ugh!
6950# In fact I believe gdb is the *only* package directly dependent on tk,
6951# so we should be able to put the 'maybe's in unconditionally and
6952# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6953# 100% sure that that's safe though.
e914a571 6954
b4f96efe 6955gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
671aa708
NN
6956case "$enable_gdbtk" in
6957 no)
6958 GDB_TK="" ;;
e914a571
AC
6959 yes)
6960 GDB_TK="${gdb_tk}" ;;
671aa708 6961 *)
e914a571
AC
6962 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6963 # distro. Eventually someone will fix this and move Insight, nee
6964 # gdbtk to a separate directory.
6965 if test -d ${srcdir}/gdb/gdbtk ; then
6966 GDB_TK="${gdb_tk}"
6967 else
6968 GDB_TK=""
6969 fi
6970 ;;
671aa708 6971esac
ef9db8d5
DJ
6972CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6973INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
671aa708 6974
60975492 6975# Strip out unwanted targets.
8b87bb96
NN
6976
6977# While at that, we remove Makefiles if we were started for recursive
6978# configuration, so that the top-level Makefile reconfigures them,
6979# like we used to do when configure itself was recursive.
8b87bb96 6980
3e54529c
RW
6981# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6982# but now we're fixing up the Makefile ourselves with the additional
6983# commands passed to AC_CONFIG_FILES. Use separate variables
6984# extrasub-{build,host,target} not because there is any reason to split
6985# the substitutions up that way, but only to remain below the limit of
6986# 99 commands in a script, for HP-UX sed.
6987# Do not nest @if/@endif pairs, because configure will not warn you at all.
8b87bb96 6988
79cd2b23
RW
6989case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6990 yes:yes:*\ gold\ *:*,c++,*) ;;
6991 yes:yes:*\ gold\ *:*)
6992 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6993 ;;
6994esac
6995
ce521a9c 6996# Adjust the toplevel makefile according to whether bootstrap was selected.
e12c4094 6997case $enable_bootstrap in
f516a7da 6998 yes)
e12c4094
AO
6999 bootstrap_suffix=bootstrap
7000 BUILD_CONFIG=bootstrap-debug
7001 ;;
f516a7da 7002 no)
e12c4094
AO
7003 bootstrap_suffix=no-bootstrap
7004 BUILD_CONFIG=
7005 ;;
f516a7da
PB
7006esac
7007
e12c4094
AO
7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7009$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
5646b7b9
AO
7010
7011
7012# Check whether --with-build-config was given.
7013if test "${with_build_config+set}" = set; then :
7014 withval=$with_build_config; case $with_build_config in
7015 yes) with_build_config= ;;
7016 no) with_build_config= BUILD_CONFIG= ;;
7017 esac
7018fi
7019
7020
e12c4094
AO
7021if test "x${with_build_config}" != x; then
7022 BUILD_CONFIG=$with_build_config
7023else
7024 case $BUILD_CONFIG in
7025 bootstrap-debug)
7026 if echo "int f (void) { return 0; }" > conftest.c &&
7027 ${CC} -c conftest.c &&
7028 mv conftest.o conftest.o.g0 &&
7029 ${CC} -c -g conftest.c &&
7030 mv conftest.o conftest.o.g &&
615c8ffa 7031 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
e12c4094
AO
7032 :
7033 else
7034 BUILD_CONFIG=
7035 fi
7036 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7037 ;;
7038 esac
7039fi
7040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7041$as_echo "$BUILD_CONFIG" >&6; }
7042
7043
3e54529c 7044extrasub_build=
23f6b2f9 7045for module in ${build_configdirs} ; do
5607edfd
PB
7046 if test -z "${no_recursion}" \
7047 && test -f ${build_subdir}/${module}/Makefile; then
7048 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7049 rm -f ${build_subdir}/${module}/Makefile
7050 fi
3e54529c 7051 extrasub_build="$extrasub_build
5607edfd
PB
7052/^@if build-$module\$/d
7053/^@endif build-$module\$/d
7054/^@if build-$module-$bootstrap_suffix\$/d
7055/^@endif build-$module-$bootstrap_suffix\$/d"
7056done
3e54529c 7057extrasub_host=
5607edfd 7058for module in ${configdirs} ; do
a6fbc1e2 7059 if test -z "${no_recursion}"; then
f063a9ed 7060 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
a6fbc1e2
AS
7061 if test -f ${file}; then
7062 echo 1>&2 "*** removing ${file} to force reconfigure"
7063 rm -f ${file}
7064 fi
7065 done
5607edfd 7066 fi
3e54529c 7067 extrasub_host="$extrasub_host
5607edfd
PB
7068/^@if $module\$/d
7069/^@endif $module\$/d
7070/^@if $module-$bootstrap_suffix\$/d
7071/^@endif $module-$bootstrap_suffix\$/d"
7072done
3e54529c 7073extrasub_target=
5607edfd
PB
7074for module in ${target_configdirs} ; do
7075 if test -z "${no_recursion}" \
7076 && test -f ${target_subdir}/${module}/Makefile; then
7077 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7078 rm -f ${target_subdir}/${module}/Makefile
7079 fi
00020c16
ILT
7080
7081 # We only bootstrap target libraries listed in bootstrap_target_libs.
7082 case $bootstrap_target_libs in
7083 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7084 *) target_bootstrap_suffix=no-bootstrap ;;
7085 esac
7086
3e54529c 7087 extrasub_target="$extrasub_target
5607edfd
PB
7088/^@if target-$module\$/d
7089/^@endif target-$module\$/d
00020c16
ILT
7090/^@if target-$module-$target_bootstrap_suffix\$/d
7091/^@endif target-$module-$target_bootstrap_suffix\$/d"
5607edfd
PB
7092done
7093
3e54529c
RW
7094# Do the final fixup along with target modules.
7095extrasub_target="$extrasub_target
60975492 7096/^@if /,/^@endif /d"
671aa708
NN
7097
7098# Create the serialization dependencies. This uses a temporary file.
7099
5213506e
RW
7100# Check whether --enable-serial-configure was given.
7101if test "${enable_serial_configure+set}" = set; then :
7102 enableval=$enable_serial_configure;
7103fi
ade82b16
AO
7104
7105
bf1d3e81
NN
7106case ${enable_serial_configure} in
7107 yes)
7108 enable_serial_build_configure=yes
7109 enable_serial_host_configure=yes
7110 enable_serial_target_configure=yes
7111 ;;
7112esac
7113
671aa708
NN
7114# These force 'configure's to be done one at a time, to avoid problems
7115# with contention over a shared config.cache.
7116rm -f serdep.tmp
ade82b16 7117echo '# serdep.tmp' > serdep.tmp
671aa708 7118olditem=
bf1d3e81 7119test "x${enable_serial_build_configure}" = xyes &&
671aa708
NN
7120for item in ${build_configdirs} ; do
7121 case ${olditem} in
7122 "") ;;
ade82b16 7123 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
671aa708
NN
7124 esac
7125 olditem=${item}
7126done
7127olditem=
bf1d3e81 7128test "x${enable_serial_host_configure}" = xyes &&
671aa708
NN
7129for item in ${configdirs} ; do
7130 case ${olditem} in
7131 "") ;;
ade82b16 7132 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
671aa708
NN
7133 esac
7134 olditem=${item}
7135done
7136olditem=
bf1d3e81 7137test "x${enable_serial_target_configure}" = xyes &&
671aa708
NN
7138for item in ${target_configdirs} ; do
7139 case ${olditem} in
7140 "") ;;
ade82b16 7141 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
671aa708
NN
7142 esac
7143 olditem=${item}
7144done
7145serialization_dependencies=serdep.tmp
7146
7147
ade82b16 7148# Base args. Strip norecursion, cache-file, srcdir, host, build,
1c710c3c 7149# target, nonopt, and variable assignments. These are the ones we
f1a036e4
NC
7150# might not want to pass down to subconfigures. The exception being
7151# --cache-file=/dev/null, which is used to turn off the use of cache
7152# files altogether, and which should be passed on to subconfigures.
7153# Also strip program-prefix, program-suffix, and program-transform-name,
7154# so that we can pass down a consistent program-transform-name.
1c710c3c 7155baseargs=
29a63921 7156tbaseargs=
1c710c3c
DJ
7157keep_next=no
7158skip_next=no
7159eval "set -- $ac_configure_args"
44bfc3ac
DJ
7160for ac_arg
7161do
1c710c3c
DJ
7162 if test X"$skip_next" = X"yes"; then
7163 skip_next=no
7164 continue
7165 fi
7166 if test X"$keep_next" = X"yes"; then
7167 case $ac_arg in
7168 *\'*)
7169 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7170 esac
7171 baseargs="$baseargs '$ac_arg'"
29a63921 7172 tbaseargs="$tbaseargs '$ac_arg'"
1c710c3c
DJ
7173 keep_next=no
7174 continue
7175 fi
7176
7177 # Handle separated arguments. Based on the logic generated by
7178 # autoconf 2.59.
7179 case $ac_arg in
7180 *=* | --config-cache | -C | -disable-* | --disable-* \
7181 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7182 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7183 | -with-* | --with-* | -without-* | --without-* | --x)
7184 separate_arg=no
7185 ;;
7186 -*)
7187 separate_arg=yes
7188 ;;
7189 *)
7190 separate_arg=no
7191 ;;
7192 esac
7193
29a63921
AO
7194 skip_targ=no
7195 case $ac_arg in
7196
7197 --with-* | --without-*)
7198 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7199
7200 case $libopt in
7201 *[-_]include)
7202 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7203 ;;
7204 *[-_]lib)
7205 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7206 ;;
7207 *)
7208 lib=$libopt
7209 ;;
7210 esac
7211
7212
7213 case $lib in
7214 mpc | mpfr | gmp | ppl | cloog)
7215 # If we're processing --with-$lib, --with-$lib-include or
7216 # --with-$lib-lib, for one of the libs above, and target is
7217 # different from host, don't pass the current argument to any
7218 # target library's configure.
7219 if test x$is_cross_compiler = xyes; then
7220 skip_targ=yes
7221 fi
7222 ;;
7223 esac
7224 ;;
7225 esac
7226
1c710c3c 7227 case "$ac_arg" in
f1a036e4
NC
7228 --cache-file=/dev/null | \
7229 -cache-file=/dev/null )
7230 # Handled here to avoid the test to skip args below.
7231 baseargs="$baseargs '$ac_arg'"
29a63921 7232 tbaseargs="$tbaseargs '$ac_arg'"
f1a036e4
NC
7233 # Assert: $separate_arg should always be no.
7234 keep_next=$separate_arg
7235 ;;
1c710c3c
DJ
7236 --no*)
7237 continue
7238 ;;
7239 --c* | \
7240 --sr* | \
7241 --ho* | \
7242 --bu* | \
7243 --t* | \
7244 --program-* | \
7245 -cache_file* | \
7246 -srcdir* | \
7247 -host* | \
7248 -build* | \
7249 -target* | \
7250 -program-prefix* | \
7251 -program-suffix* | \
7252 -program-transform-name* )
7253 skip_next=$separate_arg
7254 continue
7255 ;;
7256 -*)
7257 # An option. Add it.
7258 case $ac_arg in
7259 *\'*)
7260 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7261 esac
7262 baseargs="$baseargs '$ac_arg'"
29a63921
AO
7263 if test X"$skip_targ" = Xno; then
7264 tbaseargs="$tbaseargs '$ac_arg'"
7265 fi
1c710c3c
DJ
7266 keep_next=$separate_arg
7267 ;;
7268 *)
7269 # Either a variable assignment, or a nonopt (triplet). Don't
7270 # pass it down; let the Makefile handle this.
7271 continue
7272 ;;
7273 esac
7274done
7275# Remove the initial space we just introduced and, as these will be
7276# expanded by make, quote '$'.
7277baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
671aa708 7278
43bb47c2
DJ
7279# Add in --program-transform-name, after --program-prefix and
7280# --program-suffix have been applied to it. Autoconf has already
7281# doubled dollar signs and backslashes in program_transform_name; we want
7282# the backslashes un-doubled, and then the entire thing wrapped in single
1c710c3c 7283# quotes, because this will be expanded first by make and then by the shell.
43bb47c2
DJ
7284# Also, because we want to override the logic in subdir configure scripts to
7285# choose program_transform_name, replace any s,x,x, with s,y,y,.
7286sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7287${program_transform_name}
7288EOF_SED
7289gcc_transform_name=`cat conftestsed.out`
7290rm -f conftestsed.out
7291baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
29a63921 7292tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
d9acb717
RW
7293if test "$silent" = yes; then
7294 baseargs="$baseargs --silent"
29a63921 7295 tbaseargs="$tbaseargs --silent"
d9acb717 7296fi
0115d4a3 7297baseargs="$baseargs --disable-option-checking"
29a63921 7298tbaseargs="$tbaseargs --disable-option-checking"
43bb47c2 7299
ffedf511
RW
7300# Record and document user additions to sub configure arguments.
7301
7302
7303
7304
671aa708
NN
7305# For the build-side libraries, we just need to pretend we're native,
7306# and not use the same cache file. Multilibs are neither needed nor
7307# desired.
ffedf511 7308build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
671aa708
NN
7309
7310# For host modules, accept cache file option, or specification as blank.
7311case "${cache_file}" in
7312"") # empty
7313 cache_file_option="" ;;
7314/* | [A-Za-z]:[\\/]* ) # absolute path
7315 cache_file_option="--cache-file=${cache_file}" ;;
7316*) # relative path
7317 cache_file_option="--cache-file=../${cache_file}" ;;
7318esac
7319
09438bde
NN
7320# Host dirs don't like to share a cache file either, horribly enough.
7321# This seems to be due to autoconf 2.5x stupidity.
ffedf511 7322host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
671aa708 7323
29a63921 7324target_configargs="$target_configargs ${tbaseargs}"
671aa708
NN
7325
7326# Passing a --with-cross-host argument lets the target libraries know
7327# whether they are being built with a cross-compiler or being built
7328# native. However, it would be better to use other mechanisms to make the
7329# sorts of decisions they want to make on this basis. Please consider
7330# this option to be deprecated. FIXME.
7331if test x${is_cross_compiler} = xyes ; then
1c710c3c 7332 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
671aa708
NN
7333fi
7334
dc683a3f
RW
7335# Default to --enable-multilib.
7336if test x${enable_multilib} = x ; then
671aa708 7337 target_configargs="--enable-multilib ${target_configargs}"
dc683a3f 7338fi
671aa708
NN
7339
7340# Pass --with-newlib if appropriate. Note that target_configdirs has
7341# changed from the earlier setting of with_newlib.
7342if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7343 target_configargs="--with-newlib ${target_configargs}"
7344fi
7345
6b9eb62c
NN
7346# Different target subdirs use different values of certain variables
7347# (notably CXX). Worse, multilibs use *lots* of different values.
7348# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7349# it doesn't automatically accept command-line overrides of them.
7350# This means it's not safe for target subdirs to share a cache file,
7351# which is disgusting, but there you have it. Hopefully this can be
7352# fixed in future. It's still worthwhile to use a cache file for each
7353# directory. I think.
7354
bebcd931
MS
7355# Pass the appropriate --build, --host, --target and --cache-file arguments.
7356# We need to pass --target, as newer autoconf's requires consistency
7357# for target_alias and gcc doesn't manage it consistently.
e69bf64b 7358target_configargs="--cache-file=./config.cache ${target_configargs}"
671aa708 7359
671aa708
NN
7360FLAGS_FOR_TARGET=
7361case " $target_configdirs " in
7362 *" newlib "*)
7363 case " $target_configargs " in
7364 *" --with-newlib "*)
7365 case "$target" in
5d571eaa
OS
7366 *-cygwin*)
7367 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'
7368 ;;
671aa708
NN
7369 esac
7370
7371 # If we're not building GCC, don't discard standard headers.
7372 if test -d ${srcdir}/gcc; then
7373 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7374
7375 if test "${build}" != "${host}"; then
7376 # On Canadian crosses, CC_FOR_TARGET will have already been set
7377 # by `configure', so we won't have an opportunity to add -Bgcc/
7378 # to it. This is right: we don't want to search that directory
7379 # for binaries, but we want the header files in there, so add
7380 # them explicitly.
0463992b 7381 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
671aa708
NN
7382
7383 # Someone might think of using the pre-installed headers on
7384 # Canadian crosses, in case the installed compiler is not fully
7385 # compatible with the compiler being built. In this case, it
7386 # would be better to flag an error than risking having
7387 # incompatible object files being constructed. We can't
7388 # guarantee that an error will be flagged, but let's hope the
7389 # compiler will do it, when presented with incompatible header
7390 # files.
7391 fi
7392 fi
7393
7394 case "${target}-${is_cross_compiler}" in
f2a0e225 7395 i[3456789]86-*-linux*-no)
671aa708
NN
7396 # Here host == target, so we don't need to build gcc,
7397 # so we don't want to discard standard headers.
7398 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7399 ;;
7400 *)
7401 # If we're building newlib, use its generic headers last, but search
7402 # for any libc-related directories first (so make it the last -B
7403 # switch).
7404 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
7405
7406 # If we're building libgloss, find the startup file, simulator library
7407 # and linker script.
7408 case " $target_configdirs " in
7409 *" libgloss "*)
7410 # Look for startup file, simulator library and maybe linker script.
7411 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7412 # Look for libnosys.a in case the target needs it.
7413 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7414 # Most targets have the linker script in the source directory.
7415 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7416 ;;
7417 esac
671aa708
NN
7418 ;;
7419 esac
7420 ;;
7421 esac
7422 ;;
7423esac
5d571eaa 7424
b91f0a41 7425case "$target" in
5d571eaa
OS
7426 x86_64-*mingw* | *-w64-mingw*)
7427 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7428 # however, use a symlink named 'mingw' in ${prefix} .
7429 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7430 ;;
7431 *-mingw*)
7432 # MinGW can't be handled as Cygwin above since it does not use newlib.
7433 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'
7434 ;;
b91f0a41 7435esac
671aa708 7436
6691a79e
ME
7437# Allow the user to override the flags for
7438# our build compiler if desired.
f019adc1
MF
7439if test x"${build}" = x"${host}" ; then
7440 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7441 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7442 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7443fi
6691a79e 7444
671aa708
NN
7445# On Canadian crosses, we'll be searching the right directories for
7446# the previously-installed cross compiler, so don't bother to add
7447# flags for directories within the install tree of the compiler
7448# being built; programs in there won't even run.
7449if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7450 # Search for pre-installed headers if nothing else fits.
9124bc53 7451 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
7452fi
7453
7454if test "x${use_gnu_ld}" = x &&
7455 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7456 # Arrange for us to find uninstalled linker scripts.
215c351a 7457 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
671aa708
NN
7458fi
7459
e88a2c09
DD
7460# Search for other target-specific linker scripts and such.
7461case "${target}" in
3e19841a
PB
7462 mep*)
7463 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7464 ;;
e88a2c09
DD
7465esac
7466
671aa708 7467# Makefile fragments.
7b61653a
PE
7468for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7469do
7470 eval fragval=\$$frag
7471 if test $fragval != /dev/null; then
7472 eval $frag=${srcdir}/$fragval
7473 fi
7474done
671aa708
NN
7475
7476
7477
7478
7479
7480# Miscellanea: directories, flags, etc.
7481
7482
7483
7484
7485
7486
7487
d89f0ad6 7488
23f6b2f9 7489# Build module lists & subconfigure args.
671aa708
NN
7490
7491
7492
2abefe3d
PB
7493# Host module lists & subconfigure args.
7494
7495
7496
aae29963 7497
2abefe3d
PB
7498# Target module lists & subconfigure args.
7499
7500
7501
7502# Build tools.
7503
7504
7505
0999159b
PB
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
2abefe3d
PB
7520# Generate default definitions for YACC, M4, LEX and other programs that run
7521# on the build machine. These are used if the Makefile can't locate these
7522# programs in objdir.
7523MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7524
7525for ac_prog in 'bison -y' byacc yacc
7526do
1c710c3c 7527 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7528set dummy $ac_prog; ac_word=$2
5213506e
RW
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7530$as_echo_n "checking for $ac_word... " >&6; }
7531if test "${ac_cv_prog_YACC+set}" = set; then :
7532 $as_echo_n "(cached) " >&6
2abefe3d
PB
7533else
7534 if test -n "$YACC"; then
7535 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7536else
1c710c3c
DJ
7537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7538for as_dir in $PATH
7539do
7540 IFS=$as_save_IFS
7541 test -z "$as_dir" && as_dir=.
5213506e
RW
7542 for ac_exec_ext in '' $ac_executable_extensions; do
7543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7544 ac_cv_prog_YACC="$ac_prog"
5213506e 7545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7546 break 2
7547 fi
7548done
5213506e
RW
7549 done
7550IFS=$as_save_IFS
1c710c3c 7551
2abefe3d
PB
7552fi
7553fi
1c710c3c 7554YACC=$ac_cv_prog_YACC
2abefe3d 7555if test -n "$YACC"; then
5213506e
RW
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7557$as_echo "$YACC" >&6; }
2abefe3d 7558else
5213506e
RW
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7560$as_echo "no" >&6; }
2abefe3d
PB
7561fi
7562
5213506e 7563
1c710c3c 7564 test -n "$YACC" && break
2abefe3d
PB
7565done
7566test -n "$YACC" || YACC="$MISSING bison -y"
7567
7568case " $build_configdirs " in
7569 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
2abefe3d
PB
7570esac
7571
7572for ac_prog in bison
7573do
1c710c3c 7574 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7575set dummy $ac_prog; ac_word=$2
5213506e
RW
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577$as_echo_n "checking for $ac_word... " >&6; }
7578if test "${ac_cv_prog_BISON+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
2abefe3d
PB
7580else
7581 if test -n "$BISON"; then
7582 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7583else
1c710c3c
DJ
7584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
5213506e
RW
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7591 ac_cv_prog_BISON="$ac_prog"
5213506e 7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7593 break 2
7594 fi
7595done
5213506e
RW
7596 done
7597IFS=$as_save_IFS
1c710c3c 7598
2abefe3d
PB
7599fi
7600fi
1c710c3c 7601BISON=$ac_cv_prog_BISON
2abefe3d 7602if test -n "$BISON"; then
5213506e
RW
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7604$as_echo "$BISON" >&6; }
2abefe3d 7605else
5213506e
RW
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607$as_echo "no" >&6; }
2abefe3d
PB
7608fi
7609
5213506e 7610
1c710c3c 7611 test -n "$BISON" && break
2abefe3d
PB
7612done
7613test -n "$BISON" || BISON="$MISSING bison"
7614
7615case " $build_configdirs " in
7616 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7617esac
7618
7619for ac_prog in gm4 gnum4 m4
7620do
1c710c3c 7621 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7622set dummy $ac_prog; ac_word=$2
5213506e
RW
7623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624$as_echo_n "checking for $ac_word... " >&6; }
7625if test "${ac_cv_prog_M4+set}" = set; then :
7626 $as_echo_n "(cached) " >&6
2abefe3d
PB
7627else
7628 if test -n "$M4"; then
7629 ac_cv_prog_M4="$M4" # Let the user override the test.
7630else
1c710c3c
DJ
7631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632for as_dir in $PATH
7633do
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
5213506e
RW
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7638 ac_cv_prog_M4="$ac_prog"
5213506e 7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7640 break 2
7641 fi
7642done
5213506e
RW
7643 done
7644IFS=$as_save_IFS
1c710c3c 7645
2abefe3d
PB
7646fi
7647fi
1c710c3c 7648M4=$ac_cv_prog_M4
2abefe3d 7649if test -n "$M4"; then
5213506e
RW
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7651$as_echo "$M4" >&6; }
2abefe3d 7652else
5213506e
RW
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654$as_echo "no" >&6; }
2abefe3d
PB
7655fi
7656
5213506e 7657
1c710c3c 7658 test -n "$M4" && break
2abefe3d
PB
7659done
7660test -n "$M4" || M4="$MISSING m4"
7661
7662case " $build_configdirs " in
7663 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7664esac
7665
7666for ac_prog in flex lex
7667do
1c710c3c 7668 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7669set dummy $ac_prog; ac_word=$2
5213506e
RW
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671$as_echo_n "checking for $ac_word... " >&6; }
7672if test "${ac_cv_prog_LEX+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
2abefe3d
PB
7674else
7675 if test -n "$LEX"; then
7676 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7677else
1c710c3c
DJ
7678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679for as_dir in $PATH
7680do
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
5213506e
RW
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7685 ac_cv_prog_LEX="$ac_prog"
5213506e 7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7687 break 2
7688 fi
7689done
5213506e
RW
7690 done
7691IFS=$as_save_IFS
1c710c3c 7692
2abefe3d
PB
7693fi
7694fi
1c710c3c 7695LEX=$ac_cv_prog_LEX
2abefe3d 7696if test -n "$LEX"; then
5213506e
RW
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7698$as_echo "$LEX" >&6; }
2abefe3d 7699else
5213506e
RW
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701$as_echo "no" >&6; }
2abefe3d
PB
7702fi
7703
5213506e 7704
1c710c3c 7705 test -n "$LEX" && break
2abefe3d
PB
7706done
7707test -n "$LEX" || LEX="$MISSING flex"
7708
7709case " $build_configdirs " in
7710 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7711 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7712esac
7713
7714for ac_prog in flex
7715do
1c710c3c 7716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7717set dummy $ac_prog; ac_word=$2
5213506e
RW
7718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719$as_echo_n "checking for $ac_word... " >&6; }
7720if test "${ac_cv_prog_FLEX+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
2abefe3d
PB
7722else
7723 if test -n "$FLEX"; then
7724 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7725else
1c710c3c
DJ
7726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7727for as_dir in $PATH
7728do
7729 IFS=$as_save_IFS
7730 test -z "$as_dir" && as_dir=.
5213506e
RW
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7733 ac_cv_prog_FLEX="$ac_prog"
5213506e 7734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7735 break 2
7736 fi
7737done
5213506e
RW
7738 done
7739IFS=$as_save_IFS
1c710c3c 7740
2abefe3d
PB
7741fi
7742fi
1c710c3c 7743FLEX=$ac_cv_prog_FLEX
2abefe3d 7744if test -n "$FLEX"; then
5213506e
RW
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7746$as_echo "$FLEX" >&6; }
2abefe3d 7747else
5213506e
RW
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749$as_echo "no" >&6; }
2abefe3d
PB
7750fi
7751
5213506e 7752
1c710c3c 7753 test -n "$FLEX" && break
2abefe3d
PB
7754done
7755test -n "$FLEX" || FLEX="$MISSING flex"
7756
7757case " $build_configdirs " in
7758 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7759esac
7760
7761for ac_prog in makeinfo
7762do
1c710c3c 7763 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7764set dummy $ac_prog; ac_word=$2
5213506e
RW
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766$as_echo_n "checking for $ac_word... " >&6; }
7767if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
2abefe3d
PB
7769else
7770 if test -n "$MAKEINFO"; then
7771 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7772else
1c710c3c
DJ
7773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774for as_dir in $PATH
7775do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
5213506e
RW
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7780 ac_cv_prog_MAKEINFO="$ac_prog"
5213506e 7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7782 break 2
7783 fi
7784done
5213506e
RW
7785 done
7786IFS=$as_save_IFS
1c710c3c 7787
2abefe3d
PB
7788fi
7789fi
1c710c3c 7790MAKEINFO=$ac_cv_prog_MAKEINFO
2abefe3d 7791if test -n "$MAKEINFO"; then
5213506e
RW
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7793$as_echo "$MAKEINFO" >&6; }
2abefe3d 7794else
5213506e
RW
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796$as_echo "no" >&6; }
2abefe3d
PB
7797fi
7798
5213506e 7799
1c710c3c 7800 test -n "$MAKEINFO" && break
2abefe3d
PB
7801done
7802test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7803
7804case " $build_configdirs " in
7805 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7806 *)
7807
d18ff35a 7808 # For an installed makeinfo, we require it to be from texinfo 4.7 or
2abefe3d
PB
7809 # higher, else we use the "missing" dummy.
7810 if ${MAKEINFO} --version \
d18ff35a 7811 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
2abefe3d
PB
7812 :
7813 else
7814 MAKEINFO="$MISSING makeinfo"
7815 fi
7816 ;;
7817
7818esac
671aa708 7819
2abefe3d 7820# FIXME: expect and dejagnu may become build tools?
671aa708 7821
2abefe3d
PB
7822for ac_prog in expect
7823do
1c710c3c 7824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7825set dummy $ac_prog; ac_word=$2
5213506e
RW
7826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7827$as_echo_n "checking for $ac_word... " >&6; }
7828if test "${ac_cv_prog_EXPECT+set}" = set; then :
7829 $as_echo_n "(cached) " >&6
2abefe3d
PB
7830else
7831 if test -n "$EXPECT"; then
7832 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7833else
1c710c3c
DJ
7834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7835for as_dir in $PATH
7836do
7837 IFS=$as_save_IFS
7838 test -z "$as_dir" && as_dir=.
5213506e
RW
7839 for ac_exec_ext in '' $ac_executable_extensions; do
7840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7841 ac_cv_prog_EXPECT="$ac_prog"
5213506e 7842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7843 break 2
7844 fi
7845done
5213506e
RW
7846 done
7847IFS=$as_save_IFS
1c710c3c 7848
2abefe3d
PB
7849fi
7850fi
1c710c3c 7851EXPECT=$ac_cv_prog_EXPECT
2abefe3d 7852if test -n "$EXPECT"; then
5213506e
RW
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7854$as_echo "$EXPECT" >&6; }
2abefe3d 7855else
5213506e
RW
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7857$as_echo "no" >&6; }
2abefe3d 7858fi
671aa708 7859
5213506e 7860
1c710c3c 7861 test -n "$EXPECT" && break
2abefe3d
PB
7862done
7863test -n "$EXPECT" || EXPECT="expect"
671aa708 7864
2abefe3d
PB
7865case " $configdirs " in
7866 *" expect "*)
7867 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7868 ;;
7869esac
671aa708 7870
2abefe3d
PB
7871for ac_prog in runtest
7872do
1c710c3c 7873 # Extract the first word of "$ac_prog", so it can be a program name with args.
2abefe3d 7874set dummy $ac_prog; ac_word=$2
5213506e
RW
7875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876$as_echo_n "checking for $ac_word... " >&6; }
7877if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7878 $as_echo_n "(cached) " >&6
2abefe3d
PB
7879else
7880 if test -n "$RUNTEST"; then
7881 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
fb0103e5 7882else
1c710c3c
DJ
7883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884for as_dir in $PATH
7885do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
5213506e
RW
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7890 ac_cv_prog_RUNTEST="$ac_prog"
5213506e 7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7892 break 2
7893 fi
7894done
5213506e
RW
7895 done
7896IFS=$as_save_IFS
1c710c3c 7897
2abefe3d
PB
7898fi
7899fi
1c710c3c 7900RUNTEST=$ac_cv_prog_RUNTEST
2abefe3d 7901if test -n "$RUNTEST"; then
5213506e
RW
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7903$as_echo "$RUNTEST" >&6; }
2abefe3d 7904else
5213506e
RW
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906$as_echo "no" >&6; }
2abefe3d 7907fi
671aa708 7908
5213506e 7909
1c710c3c 7910 test -n "$RUNTEST" && break
2abefe3d
PB
7911done
7912test -n "$RUNTEST" || RUNTEST="runtest"
671aa708 7913
2abefe3d
PB
7914case " $configdirs " in
7915 *" dejagnu "*)
c394e891 7916 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
2abefe3d
PB
7917 ;;
7918esac
671aa708
NN
7919
7920
671aa708 7921# Host tools.
ca9f4b81
AO
7922ncn_tool_prefix=
7923test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7924ncn_target_tool_prefix=
7925test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7926
278a7a38
AO
7927
7928
7929if test -n "$AR"; then
7930 ac_cv_prog_AR=$AR
7931elif test -n "$ac_cv_prog_AR"; then
7932 AR=$ac_cv_prog_AR
7933fi
7934
7935if test -n "$ac_cv_prog_AR"; then
7936 for ncn_progname in ar; do
7937 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7938set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
7939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7940$as_echo_n "checking for $ac_word... " >&6; }
7941if test "${ac_cv_prog_AR+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
278a7a38
AO
7943else
7944 if test -n "$AR"; then
7945 ac_cv_prog_AR="$AR" # Let the user override the test.
7946else
7947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7948for as_dir in $PATH
7949do
7950 IFS=$as_save_IFS
7951 test -z "$as_dir" && as_dir=.
5213506e
RW
7952 for ac_exec_ext in '' $ac_executable_extensions; do
7953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 7954 ac_cv_prog_AR="${ncn_progname}"
5213506e 7955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
7956 break 2
7957 fi
7958done
5213506e
RW
7959 done
7960IFS=$as_save_IFS
278a7a38
AO
7961
7962fi
7963fi
7964AR=$ac_cv_prog_AR
7965if test -n "$AR"; then
5213506e
RW
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7967$as_echo "$AR" >&6; }
278a7a38 7968else
5213506e
RW
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7970$as_echo "no" >&6; }
278a7a38
AO
7971fi
7972
5213506e 7973
278a7a38
AO
7974 done
7975fi
7976
7977for ncn_progname in ar; do
2693c0b0
PB
7978 if test -n "$ncn_tool_prefix"; then
7979 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7980set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7982$as_echo_n "checking for $ac_word... " >&6; }
7983if test "${ac_cv_prog_AR+set}" = set; then :
7984 $as_echo_n "(cached) " >&6
ca9f4b81
AO
7985else
7986 if test -n "$AR"; then
7987 ac_cv_prog_AR="$AR" # Let the user override the test.
7988else
1c710c3c
DJ
7989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990for as_dir in $PATH
7991do
7992 IFS=$as_save_IFS
7993 test -z "$as_dir" && as_dir=.
5213506e
RW
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 7996 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
5213506e 7997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
7998 break 2
7999 fi
8000done
5213506e
RW
8001 done
8002IFS=$as_save_IFS
1c710c3c 8003
ca9f4b81
AO
8004fi
8005fi
1c710c3c 8006AR=$ac_cv_prog_AR
ca9f4b81 8007if test -n "$AR"; then
5213506e
RW
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8009$as_echo "$AR" >&6; }
ca9f4b81 8010else
5213506e
RW
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8012$as_echo "no" >&6; }
ca9f4b81
AO
8013fi
8014
5213506e 8015
2693c0b0
PB
8016 fi
8017 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8019set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8021$as_echo_n "checking for $ac_word... " >&6; }
8022if test "${ac_cv_prog_AR+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
ca9f4b81 8024else
2693c0b0 8025 if test -n "$AR"; then
af71363e
AS
8026 ac_cv_prog_AR="$AR" # Let the user override the test.
8027else
1c710c3c
DJ
8028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029for as_dir in $PATH
8030do
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
5213506e
RW
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8035 ac_cv_prog_AR="${ncn_progname}"
5213506e 8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8037 break 2
8038 fi
8039done
5213506e
RW
8040 done
8041IFS=$as_save_IFS
1c710c3c 8042
ca9f4b81
AO
8043fi
8044fi
1c710c3c 8045AR=$ac_cv_prog_AR
2693c0b0 8046if test -n "$AR"; then
5213506e
RW
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8048$as_echo "$AR" >&6; }
ca9f4b81 8049else
5213506e
RW
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051$as_echo "no" >&6; }
ca9f4b81 8052fi
1c710c3c 8053
5213506e 8054
2693c0b0
PB
8055 fi
8056 test -n "$ac_cv_prog_AR" && break
8057done
8058
8059if test -z "$ac_cv_prog_AR" ; then
8060 set dummy ar
8061 if test $build = $host ; then
8062 AR="$2"
ca9f4b81 8063 else
2693c0b0 8064 AR="${ncn_tool_prefix}$2"
ca9f4b81 8065 fi
ca9f4b81
AO
8066fi
8067
278a7a38
AO
8068
8069
8070if test -n "$AS"; then
8071 ac_cv_prog_AS=$AS
8072elif test -n "$ac_cv_prog_AS"; then
8073 AS=$ac_cv_prog_AS
8074fi
8075
8076if test -n "$ac_cv_prog_AS"; then
8077 for ncn_progname in as; do
8078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8079set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081$as_echo_n "checking for $ac_word... " >&6; }
8082if test "${ac_cv_prog_AS+set}" = set; then :
8083 $as_echo_n "(cached) " >&6
278a7a38
AO
8084else
8085 if test -n "$AS"; then
8086 ac_cv_prog_AS="$AS" # Let the user override the test.
8087else
8088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089for as_dir in $PATH
8090do
8091 IFS=$as_save_IFS
8092 test -z "$as_dir" && as_dir=.
5213506e
RW
8093 for ac_exec_ext in '' $ac_executable_extensions; do
8094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8095 ac_cv_prog_AS="${ncn_progname}"
5213506e 8096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8097 break 2
8098 fi
8099done
5213506e
RW
8100 done
8101IFS=$as_save_IFS
278a7a38
AO
8102
8103fi
8104fi
8105AS=$ac_cv_prog_AS
8106if test -n "$AS"; then
5213506e
RW
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8108$as_echo "$AS" >&6; }
278a7a38 8109else
5213506e
RW
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111$as_echo "no" >&6; }
278a7a38
AO
8112fi
8113
5213506e 8114
278a7a38
AO
8115 done
8116fi
8117
8118for ncn_progname in as; do
2693c0b0
PB
8119 if test -n "$ncn_tool_prefix"; then
8120 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8121set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123$as_echo_n "checking for $ac_word... " >&6; }
8124if test "${ac_cv_prog_AS+set}" = set; then :
8125 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8126else
8127 if test -n "$AS"; then
8128 ac_cv_prog_AS="$AS" # Let the user override the test.
0b0dc272 8129else
1c710c3c
DJ
8130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131for as_dir in $PATH
8132do
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
5213506e
RW
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8137 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
5213506e 8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8139 break 2
8140 fi
8141done
5213506e
RW
8142 done
8143IFS=$as_save_IFS
1c710c3c 8144
ca9f4b81
AO
8145fi
8146fi
1c710c3c 8147AS=$ac_cv_prog_AS
ca9f4b81 8148if test -n "$AS"; then
5213506e
RW
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8150$as_echo "$AS" >&6; }
ca9f4b81 8151else
5213506e
RW
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153$as_echo "no" >&6; }
ca9f4b81
AO
8154fi
8155
5213506e 8156
2693c0b0
PB
8157 fi
8158 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8159 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8160set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8162$as_echo_n "checking for $ac_word... " >&6; }
8163if test "${ac_cv_prog_AS+set}" = set; then :
8164 $as_echo_n "(cached) " >&6
ca9f4b81 8165else
2693c0b0
PB
8166 if test -n "$AS"; then
8167 ac_cv_prog_AS="$AS" # Let the user override the test.
ca9f4b81 8168else
1c710c3c
DJ
8169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170for as_dir in $PATH
8171do
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
5213506e
RW
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8176 ac_cv_prog_AS="${ncn_progname}"
5213506e 8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8178 break 2
8179 fi
8180done
5213506e
RW
8181 done
8182IFS=$as_save_IFS
1c710c3c 8183
ca9f4b81
AO
8184fi
8185fi
1c710c3c 8186AS=$ac_cv_prog_AS
2693c0b0 8187if test -n "$AS"; then
5213506e
RW
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8189$as_echo "$AS" >&6; }
ca9f4b81 8190else
5213506e
RW
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8192$as_echo "no" >&6; }
ca9f4b81 8193fi
1c710c3c 8194
5213506e 8195
2693c0b0
PB
8196 fi
8197 test -n "$ac_cv_prog_AS" && break
8198done
8199
8200if test -z "$ac_cv_prog_AS" ; then
8201 set dummy as
8202 if test $build = $host ; then
8203 AS="$2"
ca9f4b81 8204 else
2693c0b0 8205 AS="${ncn_tool_prefix}$2"
ca9f4b81 8206 fi
ca9f4b81
AO
8207fi
8208
278a7a38
AO
8209
8210
8211if test -n "$DLLTOOL"; then
8212 ac_cv_prog_DLLTOOL=$DLLTOOL
8213elif test -n "$ac_cv_prog_DLLTOOL"; then
8214 DLLTOOL=$ac_cv_prog_DLLTOOL
8215fi
8216
8217if test -n "$ac_cv_prog_DLLTOOL"; then
8218 for ncn_progname in dlltool; do
8219 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8220set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222$as_echo_n "checking for $ac_word... " >&6; }
8223if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8224 $as_echo_n "(cached) " >&6
278a7a38
AO
8225else
8226 if test -n "$DLLTOOL"; then
8227 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8228else
8229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230for as_dir in $PATH
8231do
8232 IFS=$as_save_IFS
8233 test -z "$as_dir" && as_dir=.
5213506e
RW
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8236 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8238 break 2
8239 fi
8240done
5213506e
RW
8241 done
8242IFS=$as_save_IFS
278a7a38
AO
8243
8244fi
8245fi
8246DLLTOOL=$ac_cv_prog_DLLTOOL
8247if test -n "$DLLTOOL"; then
5213506e
RW
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8249$as_echo "$DLLTOOL" >&6; }
278a7a38 8250else
5213506e
RW
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252$as_echo "no" >&6; }
278a7a38
AO
8253fi
8254
5213506e 8255
278a7a38
AO
8256 done
8257fi
8258
8259for ncn_progname in dlltool; do
2693c0b0
PB
8260 if test -n "$ncn_tool_prefix"; then
8261 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8262set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264$as_echo_n "checking for $ac_word... " >&6; }
8265if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8266 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8267else
8268 if test -n "$DLLTOOL"; then
8269 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8270else
1c710c3c
DJ
8271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272for as_dir in $PATH
8273do
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
5213506e
RW
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8278 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
5213506e 8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8280 break 2
8281 fi
8282done
5213506e
RW
8283 done
8284IFS=$as_save_IFS
1c710c3c 8285
ca9f4b81
AO
8286fi
8287fi
1c710c3c 8288DLLTOOL=$ac_cv_prog_DLLTOOL
ca9f4b81 8289if test -n "$DLLTOOL"; then
5213506e
RW
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8291$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8292else
5213506e
RW
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294$as_echo "no" >&6; }
ca9f4b81
AO
8295fi
8296
5213506e 8297
2693c0b0
PB
8298 fi
8299 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8301set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303$as_echo_n "checking for $ac_word... " >&6; }
8304if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8305 $as_echo_n "(cached) " >&6
ca9f4b81 8306else
2693c0b0
PB
8307 if test -n "$DLLTOOL"; then
8308 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
ca9f4b81 8309else
1c710c3c
DJ
8310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311for as_dir in $PATH
8312do
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
5213506e
RW
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8317 ac_cv_prog_DLLTOOL="${ncn_progname}"
5213506e 8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8319 break 2
8320 fi
8321done
5213506e
RW
8322 done
8323IFS=$as_save_IFS
1c710c3c 8324
ca9f4b81
AO
8325fi
8326fi
1c710c3c 8327DLLTOOL=$ac_cv_prog_DLLTOOL
2693c0b0 8328if test -n "$DLLTOOL"; then
5213506e
RW
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8330$as_echo "$DLLTOOL" >&6; }
ca9f4b81 8331else
5213506e
RW
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333$as_echo "no" >&6; }
ca9f4b81 8334fi
1c710c3c 8335
5213506e 8336
2693c0b0
PB
8337 fi
8338 test -n "$ac_cv_prog_DLLTOOL" && break
8339done
8340
8341if test -z "$ac_cv_prog_DLLTOOL" ; then
8342 set dummy dlltool
8343 if test $build = $host ; then
8344 DLLTOOL="$2"
ca9f4b81 8345 else
2693c0b0 8346 DLLTOOL="${ncn_tool_prefix}$2"
ca9f4b81 8347 fi
ca9f4b81
AO
8348fi
8349
278a7a38
AO
8350
8351
8352if test -n "$LD"; then
8353 ac_cv_prog_LD=$LD
8354elif test -n "$ac_cv_prog_LD"; then
8355 LD=$ac_cv_prog_LD
8356fi
8357
8358if test -n "$ac_cv_prog_LD"; then
8359 for ncn_progname in ld; do
8360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8361set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363$as_echo_n "checking for $ac_word... " >&6; }
8364if test "${ac_cv_prog_LD+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
278a7a38
AO
8366else
8367 if test -n "$LD"; then
8368 ac_cv_prog_LD="$LD" # Let the user override the test.
8369else
8370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371for as_dir in $PATH
8372do
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
5213506e
RW
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8377 ac_cv_prog_LD="${ncn_progname}"
5213506e 8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8379 break 2
8380 fi
8381done
5213506e
RW
8382 done
8383IFS=$as_save_IFS
278a7a38
AO
8384
8385fi
8386fi
8387LD=$ac_cv_prog_LD
8388if test -n "$LD"; then
5213506e
RW
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8390$as_echo "$LD" >&6; }
278a7a38 8391else
5213506e
RW
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393$as_echo "no" >&6; }
278a7a38
AO
8394fi
8395
5213506e 8396
278a7a38
AO
8397 done
8398fi
8399
8400for ncn_progname in ld; do
2693c0b0
PB
8401 if test -n "$ncn_tool_prefix"; then
8402 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8403set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8405$as_echo_n "checking for $ac_word... " >&6; }
8406if test "${ac_cv_prog_LD+set}" = set; then :
8407 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8408else
8409 if test -n "$LD"; then
8410 ac_cv_prog_LD="$LD" # Let the user override the test.
8411else
1c710c3c
DJ
8412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413for as_dir in $PATH
8414do
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
5213506e
RW
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8419 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
5213506e 8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8421 break 2
8422 fi
8423done
5213506e
RW
8424 done
8425IFS=$as_save_IFS
1c710c3c 8426
ca9f4b81
AO
8427fi
8428fi
1c710c3c 8429LD=$ac_cv_prog_LD
ca9f4b81 8430if test -n "$LD"; then
5213506e
RW
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8432$as_echo "$LD" >&6; }
ca9f4b81 8433else
5213506e
RW
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435$as_echo "no" >&6; }
ca9f4b81
AO
8436fi
8437
5213506e 8438
2693c0b0
PB
8439 fi
8440 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8442set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8444$as_echo_n "checking for $ac_word... " >&6; }
8445if test "${ac_cv_prog_LD+set}" = set; then :
8446 $as_echo_n "(cached) " >&6
ca9f4b81 8447else
2693c0b0
PB
8448 if test -n "$LD"; then
8449 ac_cv_prog_LD="$LD" # Let the user override the test.
6b65a26d 8450else
1c710c3c
DJ
8451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452for as_dir in $PATH
8453do
8454 IFS=$as_save_IFS
8455 test -z "$as_dir" && as_dir=.
5213506e
RW
8456 for ac_exec_ext in '' $ac_executable_extensions; do
8457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8458 ac_cv_prog_LD="${ncn_progname}"
5213506e 8459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8460 break 2
8461 fi
8462done
5213506e
RW
8463 done
8464IFS=$as_save_IFS
1c710c3c 8465
ca9f4b81
AO
8466fi
8467fi
1c710c3c 8468LD=$ac_cv_prog_LD
2693c0b0 8469if test -n "$LD"; then
5213506e
RW
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8471$as_echo "$LD" >&6; }
ca9f4b81 8472else
5213506e
RW
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474$as_echo "no" >&6; }
ca9f4b81 8475fi
1c710c3c 8476
5213506e 8477
2693c0b0
PB
8478 fi
8479 test -n "$ac_cv_prog_LD" && break
8480done
8481
8482if test -z "$ac_cv_prog_LD" ; then
8483 set dummy ld
8484 if test $build = $host ; then
8485 LD="$2"
ca9f4b81 8486 else
2693c0b0 8487 LD="${ncn_tool_prefix}$2"
ca9f4b81 8488 fi
ca9f4b81
AO
8489fi
8490
278a7a38
AO
8491
8492
8493if test -n "$LIPO"; then
8494 ac_cv_prog_LIPO=$LIPO
8495elif test -n "$ac_cv_prog_LIPO"; then
8496 LIPO=$ac_cv_prog_LIPO
8497fi
8498
8499if test -n "$ac_cv_prog_LIPO"; then
8500 for ncn_progname in lipo; do
8501 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8502set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8504$as_echo_n "checking for $ac_word... " >&6; }
8505if test "${ac_cv_prog_LIPO+set}" = set; then :
8506 $as_echo_n "(cached) " >&6
278a7a38
AO
8507else
8508 if test -n "$LIPO"; then
8509 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8510else
8511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512for as_dir in $PATH
8513do
8514 IFS=$as_save_IFS
8515 test -z "$as_dir" && as_dir=.
5213506e
RW
8516 for ac_exec_ext in '' $ac_executable_extensions; do
8517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8518 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8520 break 2
8521 fi
8522done
5213506e
RW
8523 done
8524IFS=$as_save_IFS
278a7a38
AO
8525
8526fi
8527fi
8528LIPO=$ac_cv_prog_LIPO
8529if test -n "$LIPO"; then
5213506e
RW
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8531$as_echo "$LIPO" >&6; }
278a7a38 8532else
5213506e
RW
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8534$as_echo "no" >&6; }
278a7a38
AO
8535fi
8536
5213506e 8537
278a7a38
AO
8538 done
8539fi
8540
8541for ncn_progname in lipo; do
2abefe3d
PB
8542 if test -n "$ncn_tool_prefix"; then
8543 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8544set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546$as_echo_n "checking for $ac_word... " >&6; }
8547if test "${ac_cv_prog_LIPO+set}" = set; then :
8548 $as_echo_n "(cached) " >&6
2abefe3d
PB
8549else
8550 if test -n "$LIPO"; then
8551 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8552else
1c710c3c
DJ
8553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554for as_dir in $PATH
8555do
8556 IFS=$as_save_IFS
8557 test -z "$as_dir" && as_dir=.
5213506e
RW
8558 for ac_exec_ext in '' $ac_executable_extensions; do
8559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8560 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
5213506e 8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8562 break 2
8563 fi
8564done
5213506e
RW
8565 done
8566IFS=$as_save_IFS
1c710c3c 8567
2abefe3d
PB
8568fi
8569fi
1c710c3c 8570LIPO=$ac_cv_prog_LIPO
2abefe3d 8571if test -n "$LIPO"; then
5213506e
RW
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8573$as_echo "$LIPO" >&6; }
2abefe3d 8574else
5213506e
RW
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576$as_echo "no" >&6; }
2abefe3d
PB
8577fi
8578
5213506e 8579
2abefe3d
PB
8580 fi
8581 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8583set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585$as_echo_n "checking for $ac_word... " >&6; }
8586if test "${ac_cv_prog_LIPO+set}" = set; then :
8587 $as_echo_n "(cached) " >&6
2abefe3d
PB
8588else
8589 if test -n "$LIPO"; then
8590 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8591else
1c710c3c
DJ
8592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8593for as_dir in $PATH
8594do
8595 IFS=$as_save_IFS
8596 test -z "$as_dir" && as_dir=.
5213506e
RW
8597 for ac_exec_ext in '' $ac_executable_extensions; do
8598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8599 ac_cv_prog_LIPO="${ncn_progname}"
5213506e 8600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8601 break 2
8602 fi
8603done
5213506e
RW
8604 done
8605IFS=$as_save_IFS
1c710c3c 8606
2abefe3d
PB
8607fi
8608fi
1c710c3c 8609LIPO=$ac_cv_prog_LIPO
2abefe3d 8610if test -n "$LIPO"; then
5213506e
RW
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8612$as_echo "$LIPO" >&6; }
2abefe3d 8613else
5213506e
RW
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615$as_echo "no" >&6; }
2abefe3d 8616fi
1c710c3c 8617
5213506e 8618
2abefe3d
PB
8619 fi
8620 test -n "$ac_cv_prog_LIPO" && break
8621done
8622
8623if test -z "$ac_cv_prog_LIPO" ; then
8624 set dummy lipo
8625 if test $build = $host ; then
8626 LIPO="$2"
8627 else
8628 LIPO="${ncn_tool_prefix}$2"
8629 fi
8630fi
8631
278a7a38
AO
8632
8633
8634if test -n "$NM"; then
8635 ac_cv_prog_NM=$NM
8636elif test -n "$ac_cv_prog_NM"; then
8637 NM=$ac_cv_prog_NM
8638fi
8639
8640if test -n "$ac_cv_prog_NM"; then
8641 for ncn_progname in nm; do
8642 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8643set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8645$as_echo_n "checking for $ac_word... " >&6; }
8646if test "${ac_cv_prog_NM+set}" = set; then :
8647 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8648else
8649 if test -n "$NM"; then
8650 ac_cv_prog_NM="$NM" # Let the user override the test.
8651else
1c710c3c
DJ
8652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653for as_dir in $PATH
8654do
8655 IFS=$as_save_IFS
8656 test -z "$as_dir" && as_dir=.
5213506e
RW
8657 for ac_exec_ext in '' $ac_executable_extensions; do
8658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8659 ac_cv_prog_NM="${ncn_progname}"
5213506e 8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8661 break 2
8662 fi
8663done
5213506e
RW
8664 done
8665IFS=$as_save_IFS
1c710c3c 8666
ca9f4b81
AO
8667fi
8668fi
1c710c3c 8669NM=$ac_cv_prog_NM
ca9f4b81 8670if test -n "$NM"; then
5213506e
RW
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8672$as_echo "$NM" >&6; }
ca9f4b81 8673else
5213506e
RW
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675$as_echo "no" >&6; }
ca9f4b81
AO
8676fi
8677
5213506e 8678
278a7a38
AO
8679 done
8680fi
8681
8682for ncn_progname in nm; do
8683 if test -n "$ncn_tool_prefix"; then
8684 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8685set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8687$as_echo_n "checking for $ac_word... " >&6; }
8688if test "${ac_cv_prog_NM+set}" = set; then :
8689 $as_echo_n "(cached) " >&6
ca9f4b81 8690else
2693c0b0
PB
8691 if test -n "$NM"; then
8692 ac_cv_prog_NM="$NM" # Let the user override the test.
ca9f4b81 8693else
1c710c3c
DJ
8694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695for as_dir in $PATH
8696do
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
5213506e
RW
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8701 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
5213506e 8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8703 break 2
8704 fi
8705done
5213506e
RW
8706 done
8707IFS=$as_save_IFS
1c710c3c 8708
ca9f4b81
AO
8709fi
8710fi
1c710c3c 8711NM=$ac_cv_prog_NM
2693c0b0 8712if test -n "$NM"; then
5213506e
RW
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8714$as_echo "$NM" >&6; }
ca9f4b81 8715else
5213506e
RW
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717$as_echo "no" >&6; }
ca9f4b81 8718fi
1c710c3c 8719
5213506e 8720
2693c0b0 8721 fi
278a7a38
AO
8722 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8723 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8724set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726$as_echo_n "checking for $ac_word... " >&6; }
8727if test "${ac_cv_prog_NM+set}" = set; then :
8728 $as_echo_n "(cached) " >&6
278a7a38
AO
8729else
8730 if test -n "$NM"; then
8731 ac_cv_prog_NM="$NM" # Let the user override the test.
8732else
8733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8734for as_dir in $PATH
8735do
8736 IFS=$as_save_IFS
8737 test -z "$as_dir" && as_dir=.
5213506e
RW
8738 for ac_exec_ext in '' $ac_executable_extensions; do
8739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8740 ac_cv_prog_NM="${ncn_progname}"
5213506e 8741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8742 break 2
8743 fi
8744done
5213506e
RW
8745 done
8746IFS=$as_save_IFS
278a7a38
AO
8747
8748fi
8749fi
8750NM=$ac_cv_prog_NM
8751if test -n "$NM"; then
5213506e
RW
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8753$as_echo "$NM" >&6; }
278a7a38 8754else
5213506e
RW
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756$as_echo "no" >&6; }
278a7a38
AO
8757fi
8758
5213506e 8759
278a7a38
AO
8760 fi
8761 test -n "$ac_cv_prog_NM" && break
8762done
8763
8764if test -z "$ac_cv_prog_NM" ; then
8765 set dummy nm
8766 if test $build = $host ; then
8767 NM="$2"
8768 else
8769 NM="${ncn_tool_prefix}$2"
8770 fi
8771fi
8772
8773
8774
8775if test -n "$RANLIB"; then
8776 ac_cv_prog_RANLIB=$RANLIB
8777elif test -n "$ac_cv_prog_RANLIB"; then
8778 RANLIB=$ac_cv_prog_RANLIB
8779fi
8780
8781if test -n "$ac_cv_prog_RANLIB"; then
8782 for ncn_progname in ranlib; do
8783 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8784set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786$as_echo_n "checking for $ac_word... " >&6; }
8787if test "${ac_cv_prog_RANLIB+set}" = set; then :
8788 $as_echo_n "(cached) " >&6
278a7a38
AO
8789else
8790 if test -n "$RANLIB"; then
8791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8792else
8793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794for as_dir in $PATH
8795do
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
5213506e
RW
8798 for ac_exec_ext in '' $ac_executable_extensions; do
8799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8800 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8802 break 2
8803 fi
8804done
5213506e
RW
8805 done
8806IFS=$as_save_IFS
278a7a38
AO
8807
8808fi
8809fi
8810RANLIB=$ac_cv_prog_RANLIB
8811if test -n "$RANLIB"; then
5213506e
RW
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8813$as_echo "$RANLIB" >&6; }
278a7a38 8814else
5213506e
RW
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8816$as_echo "no" >&6; }
278a7a38
AO
8817fi
8818
5213506e 8819
278a7a38
AO
8820 done
8821fi
ca9f4b81 8822
278a7a38 8823for ncn_progname in ranlib; do
2693c0b0
PB
8824 if test -n "$ncn_tool_prefix"; then
8825 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8826set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8828$as_echo_n "checking for $ac_word... " >&6; }
8829if test "${ac_cv_prog_RANLIB+set}" = set; then :
8830 $as_echo_n "(cached) " >&6
ca9f4b81
AO
8831else
8832 if test -n "$RANLIB"; then
8833 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8834else
1c710c3c
DJ
8835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8836for as_dir in $PATH
8837do
8838 IFS=$as_save_IFS
8839 test -z "$as_dir" && as_dir=.
5213506e
RW
8840 for ac_exec_ext in '' $ac_executable_extensions; do
8841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8842 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
5213506e 8843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8844 break 2
8845 fi
8846done
5213506e
RW
8847 done
8848IFS=$as_save_IFS
1c710c3c 8849
ca9f4b81
AO
8850fi
8851fi
1c710c3c 8852RANLIB=$ac_cv_prog_RANLIB
ca9f4b81 8853if test -n "$RANLIB"; then
5213506e
RW
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8855$as_echo "$RANLIB" >&6; }
ca9f4b81 8856else
5213506e
RW
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8858$as_echo "no" >&6; }
ca9f4b81
AO
8859fi
8860
5213506e 8861
2693c0b0
PB
8862 fi
8863 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8864 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8865set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867$as_echo_n "checking for $ac_word... " >&6; }
8868if test "${ac_cv_prog_RANLIB+set}" = set; then :
8869 $as_echo_n "(cached) " >&6
ca9f4b81 8870else
2693c0b0
PB
8871 if test -n "$RANLIB"; then
8872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
ca9f4b81 8873else
1c710c3c
DJ
8874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875for as_dir in $PATH
8876do
8877 IFS=$as_save_IFS
8878 test -z "$as_dir" && as_dir=.
5213506e
RW
8879 for ac_exec_ext in '' $ac_executable_extensions; do
8880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8881 ac_cv_prog_RANLIB="${ncn_progname}"
5213506e 8882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8883 break 2
8884 fi
8885done
5213506e
RW
8886 done
8887IFS=$as_save_IFS
1c710c3c 8888
ca9f4b81
AO
8889fi
8890fi
1c710c3c 8891RANLIB=$ac_cv_prog_RANLIB
2693c0b0 8892if test -n "$RANLIB"; then
5213506e
RW
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8894$as_echo "$RANLIB" >&6; }
ca9f4b81 8895else
5213506e
RW
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897$as_echo "no" >&6; }
ca9f4b81 8898fi
1c710c3c 8899
5213506e 8900
ca9f4b81 8901 fi
2693c0b0
PB
8902 test -n "$ac_cv_prog_RANLIB" && break
8903done
8904
8905if test -z "$ac_cv_prog_RANLIB" ; then
8927b7c0 8906 RANLIB="true"
ca9f4b81
AO
8907fi
8908
278a7a38
AO
8909
8910
8911if test -n "$STRIP"; then
8912 ac_cv_prog_STRIP=$STRIP
8913elif test -n "$ac_cv_prog_STRIP"; then
8914 STRIP=$ac_cv_prog_STRIP
8915fi
8916
8917if test -n "$ac_cv_prog_STRIP"; then
8918 for ncn_progname in strip; do
8919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8920set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922$as_echo_n "checking for $ac_word... " >&6; }
8923if test "${ac_cv_prog_STRIP+set}" = set; then :
8924 $as_echo_n "(cached) " >&6
278a7a38
AO
8925else
8926 if test -n "$STRIP"; then
8927 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8928else
8929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930for as_dir in $PATH
8931do
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
5213506e
RW
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 8936 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
8938 break 2
8939 fi
8940done
5213506e
RW
8941 done
8942IFS=$as_save_IFS
278a7a38
AO
8943
8944fi
8945fi
8946STRIP=$ac_cv_prog_STRIP
8947if test -n "$STRIP"; then
5213506e
RW
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8949$as_echo "$STRIP" >&6; }
278a7a38 8950else
5213506e
RW
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952$as_echo "no" >&6; }
278a7a38
AO
8953fi
8954
5213506e 8955
278a7a38
AO
8956 done
8957fi
8958
8959for ncn_progname in strip; do
2abefe3d
PB
8960 if test -n "$ncn_tool_prefix"; then
8961 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8962set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
8963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8964$as_echo_n "checking for $ac_word... " >&6; }
8965if test "${ac_cv_prog_STRIP+set}" = set; then :
8966 $as_echo_n "(cached) " >&6
2abefe3d
PB
8967else
8968 if test -n "$STRIP"; then
8969 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8970else
1c710c3c
DJ
8971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8972for as_dir in $PATH
8973do
8974 IFS=$as_save_IFS
8975 test -z "$as_dir" && as_dir=.
5213506e
RW
8976 for ac_exec_ext in '' $ac_executable_extensions; do
8977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 8978 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
5213506e 8979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
8980 break 2
8981 fi
8982done
5213506e
RW
8983 done
8984IFS=$as_save_IFS
1c710c3c 8985
2abefe3d
PB
8986fi
8987fi
1c710c3c 8988STRIP=$ac_cv_prog_STRIP
2abefe3d 8989if test -n "$STRIP"; then
5213506e
RW
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8991$as_echo "$STRIP" >&6; }
2abefe3d 8992else
5213506e
RW
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8994$as_echo "no" >&6; }
2abefe3d
PB
8995fi
8996
5213506e 8997
2abefe3d
PB
8998 fi
8999 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9001set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003$as_echo_n "checking for $ac_word... " >&6; }
9004if test "${ac_cv_prog_STRIP+set}" = set; then :
9005 $as_echo_n "(cached) " >&6
2abefe3d
PB
9006else
9007 if test -n "$STRIP"; then
9008 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9009else
1c710c3c
DJ
9010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011for as_dir in $PATH
9012do
9013 IFS=$as_save_IFS
9014 test -z "$as_dir" && as_dir=.
5213506e
RW
9015 for ac_exec_ext in '' $ac_executable_extensions; do
9016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9017 ac_cv_prog_STRIP="${ncn_progname}"
5213506e 9018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9019 break 2
9020 fi
9021done
5213506e
RW
9022 done
9023IFS=$as_save_IFS
1c710c3c 9024
2abefe3d
PB
9025fi
9026fi
1c710c3c 9027STRIP=$ac_cv_prog_STRIP
2abefe3d 9028if test -n "$STRIP"; then
5213506e
RW
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9030$as_echo "$STRIP" >&6; }
2abefe3d 9031else
5213506e
RW
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033$as_echo "no" >&6; }
2abefe3d 9034fi
1c710c3c 9035
5213506e 9036
2abefe3d
PB
9037 fi
9038 test -n "$ac_cv_prog_STRIP" && break
9039done
9040
9041if test -z "$ac_cv_prog_STRIP" ; then
8927b7c0 9042 STRIP="true"
2abefe3d
PB
9043fi
9044
278a7a38
AO
9045
9046
9047if test -n "$WINDRES"; then
9048 ac_cv_prog_WINDRES=$WINDRES
9049elif test -n "$ac_cv_prog_WINDRES"; then
9050 WINDRES=$ac_cv_prog_WINDRES
9051fi
9052
9053if test -n "$ac_cv_prog_WINDRES"; then
9054 for ncn_progname in windres; do
9055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9056set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058$as_echo_n "checking for $ac_word... " >&6; }
9059if test "${ac_cv_prog_WINDRES+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
278a7a38
AO
9061else
9062 if test -n "$WINDRES"; then
9063 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9064else
9065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9066for as_dir in $PATH
9067do
9068 IFS=$as_save_IFS
9069 test -z "$as_dir" && as_dir=.
5213506e
RW
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9072 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9074 break 2
9075 fi
9076done
5213506e
RW
9077 done
9078IFS=$as_save_IFS
278a7a38
AO
9079
9080fi
9081fi
9082WINDRES=$ac_cv_prog_WINDRES
9083if test -n "$WINDRES"; then
5213506e
RW
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9085$as_echo "$WINDRES" >&6; }
278a7a38 9086else
5213506e
RW
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088$as_echo "no" >&6; }
278a7a38
AO
9089fi
9090
5213506e 9091
278a7a38
AO
9092 done
9093fi
9094
9095for ncn_progname in windres; do
2693c0b0
PB
9096 if test -n "$ncn_tool_prefix"; then
9097 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9098set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9100$as_echo_n "checking for $ac_word... " >&6; }
9101if test "${ac_cv_prog_WINDRES+set}" = set; then :
9102 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9103else
9104 if test -n "$WINDRES"; then
9105 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9106else
1c710c3c
DJ
9107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9108for as_dir in $PATH
9109do
9110 IFS=$as_save_IFS
9111 test -z "$as_dir" && as_dir=.
5213506e
RW
9112 for ac_exec_ext in '' $ac_executable_extensions; do
9113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9114 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
5213506e 9115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9116 break 2
9117 fi
9118done
5213506e
RW
9119 done
9120IFS=$as_save_IFS
1c710c3c 9121
ca9f4b81
AO
9122fi
9123fi
1c710c3c 9124WINDRES=$ac_cv_prog_WINDRES
ca9f4b81 9125if test -n "$WINDRES"; then
5213506e
RW
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9127$as_echo "$WINDRES" >&6; }
ca9f4b81 9128else
5213506e
RW
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9130$as_echo "no" >&6; }
ca9f4b81
AO
9131fi
9132
5213506e 9133
2693c0b0
PB
9134 fi
9135 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9137set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139$as_echo_n "checking for $ac_word... " >&6; }
9140if test "${ac_cv_prog_WINDRES+set}" = set; then :
9141 $as_echo_n "(cached) " >&6
ca9f4b81 9142else
2693c0b0
PB
9143 if test -n "$WINDRES"; then
9144 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
ca9f4b81 9145else
1c710c3c
DJ
9146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9147for as_dir in $PATH
9148do
9149 IFS=$as_save_IFS
9150 test -z "$as_dir" && as_dir=.
5213506e
RW
9151 for ac_exec_ext in '' $ac_executable_extensions; do
9152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9153 ac_cv_prog_WINDRES="${ncn_progname}"
5213506e 9154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9155 break 2
9156 fi
9157done
5213506e
RW
9158 done
9159IFS=$as_save_IFS
1c710c3c 9160
ca9f4b81
AO
9161fi
9162fi
1c710c3c 9163WINDRES=$ac_cv_prog_WINDRES
2693c0b0 9164if test -n "$WINDRES"; then
5213506e
RW
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9166$as_echo "$WINDRES" >&6; }
ca9f4b81 9167else
5213506e
RW
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9169$as_echo "no" >&6; }
ca9f4b81 9170fi
1c710c3c 9171
5213506e 9172
2693c0b0
PB
9173 fi
9174 test -n "$ac_cv_prog_WINDRES" && break
9175done
9176
9177if test -z "$ac_cv_prog_WINDRES" ; then
9178 set dummy windres
9179 if test $build = $host ; then
9180 WINDRES="$2"
ca9f4b81 9181 else
2693c0b0 9182 WINDRES="${ncn_tool_prefix}$2"
ca9f4b81 9183 fi
ca9f4b81
AO
9184fi
9185
278a7a38
AO
9186
9187
901119ae
KT
9188if test -n "$WINDMC"; then
9189 ac_cv_prog_WINDMC=$WINDMC
9190elif test -n "$ac_cv_prog_WINDMC"; then
9191 WINDMC=$ac_cv_prog_WINDMC
9192fi
9193
9194if test -n "$ac_cv_prog_WINDMC"; then
9195 for ncn_progname in windmc; do
9196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9197set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9199$as_echo_n "checking for $ac_word... " >&6; }
9200if test "${ac_cv_prog_WINDMC+set}" = set; then :
9201 $as_echo_n "(cached) " >&6
901119ae
KT
9202else
9203 if test -n "$WINDMC"; then
9204 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9205else
9206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207for as_dir in $PATH
9208do
9209 IFS=$as_save_IFS
9210 test -z "$as_dir" && as_dir=.
5213506e
RW
9211 for ac_exec_ext in '' $ac_executable_extensions; do
9212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9213 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9215 break 2
9216 fi
9217done
5213506e
RW
9218 done
9219IFS=$as_save_IFS
901119ae
KT
9220
9221fi
9222fi
9223WINDMC=$ac_cv_prog_WINDMC
9224if test -n "$WINDMC"; then
5213506e
RW
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9226$as_echo "$WINDMC" >&6; }
901119ae 9227else
5213506e
RW
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9229$as_echo "no" >&6; }
901119ae
KT
9230fi
9231
5213506e 9232
901119ae
KT
9233 done
9234fi
9235
9236for ncn_progname in windmc; do
9237 if test -n "$ncn_tool_prefix"; then
9238 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9239set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241$as_echo_n "checking for $ac_word... " >&6; }
9242if test "${ac_cv_prog_WINDMC+set}" = set; then :
9243 $as_echo_n "(cached) " >&6
901119ae
KT
9244else
9245 if test -n "$WINDMC"; then
9246 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9247else
9248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249for as_dir in $PATH
9250do
9251 IFS=$as_save_IFS
9252 test -z "$as_dir" && as_dir=.
5213506e
RW
9253 for ac_exec_ext in '' $ac_executable_extensions; do
9254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9255 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
5213506e 9256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9257 break 2
9258 fi
9259done
5213506e
RW
9260 done
9261IFS=$as_save_IFS
901119ae
KT
9262
9263fi
9264fi
9265WINDMC=$ac_cv_prog_WINDMC
9266if test -n "$WINDMC"; then
5213506e
RW
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9268$as_echo "$WINDMC" >&6; }
901119ae 9269else
5213506e
RW
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271$as_echo "no" >&6; }
901119ae
KT
9272fi
9273
5213506e 9274
901119ae
KT
9275 fi
9276 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9278set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9280$as_echo_n "checking for $ac_word... " >&6; }
9281if test "${ac_cv_prog_WINDMC+set}" = set; then :
9282 $as_echo_n "(cached) " >&6
901119ae
KT
9283else
9284 if test -n "$WINDMC"; then
9285 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9286else
9287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9288for as_dir in $PATH
9289do
9290 IFS=$as_save_IFS
9291 test -z "$as_dir" && as_dir=.
5213506e
RW
9292 for ac_exec_ext in '' $ac_executable_extensions; do
9293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 9294 ac_cv_prog_WINDMC="${ncn_progname}"
5213506e 9295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
9296 break 2
9297 fi
9298done
5213506e
RW
9299 done
9300IFS=$as_save_IFS
901119ae
KT
9301
9302fi
9303fi
9304WINDMC=$ac_cv_prog_WINDMC
9305if test -n "$WINDMC"; then
5213506e
RW
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9307$as_echo "$WINDMC" >&6; }
901119ae 9308else
5213506e
RW
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310$as_echo "no" >&6; }
901119ae
KT
9311fi
9312
5213506e 9313
901119ae
KT
9314 fi
9315 test -n "$ac_cv_prog_WINDMC" && break
9316done
9317
9318if test -z "$ac_cv_prog_WINDMC" ; then
9319 set dummy windmc
9320 if test $build = $host ; then
9321 WINDMC="$2"
9322 else
9323 WINDMC="${ncn_tool_prefix}$2"
9324 fi
9325fi
9326
9327
9328
278a7a38
AO
9329if test -n "$OBJCOPY"; then
9330 ac_cv_prog_OBJCOPY=$OBJCOPY
9331elif test -n "$ac_cv_prog_OBJCOPY"; then
9332 OBJCOPY=$ac_cv_prog_OBJCOPY
9333fi
9334
9335if test -n "$ac_cv_prog_OBJCOPY"; then
9336 for ncn_progname in objcopy; do
9337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9338set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9340$as_echo_n "checking for $ac_word... " >&6; }
9341if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9342 $as_echo_n "(cached) " >&6
278a7a38
AO
9343else
9344 if test -n "$OBJCOPY"; then
9345 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9346else
9347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9348for as_dir in $PATH
9349do
9350 IFS=$as_save_IFS
9351 test -z "$as_dir" && as_dir=.
5213506e
RW
9352 for ac_exec_ext in '' $ac_executable_extensions; do
9353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9354 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9356 break 2
9357 fi
9358done
5213506e
RW
9359 done
9360IFS=$as_save_IFS
278a7a38
AO
9361
9362fi
9363fi
9364OBJCOPY=$ac_cv_prog_OBJCOPY
9365if test -n "$OBJCOPY"; then
5213506e
RW
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9367$as_echo "$OBJCOPY" >&6; }
278a7a38 9368else
5213506e
RW
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9370$as_echo "no" >&6; }
278a7a38
AO
9371fi
9372
5213506e 9373
278a7a38
AO
9374 done
9375fi
9376
9377for ncn_progname in objcopy; do
2693c0b0
PB
9378 if test -n "$ncn_tool_prefix"; then
9379 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9380set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9382$as_echo_n "checking for $ac_word... " >&6; }
9383if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9385else
9386 if test -n "$OBJCOPY"; then
9387 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9388else
1c710c3c
DJ
9389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9390for as_dir in $PATH
9391do
9392 IFS=$as_save_IFS
9393 test -z "$as_dir" && as_dir=.
5213506e
RW
9394 for ac_exec_ext in '' $ac_executable_extensions; do
9395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9396 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
5213506e 9397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9398 break 2
9399 fi
9400done
5213506e
RW
9401 done
9402IFS=$as_save_IFS
1c710c3c 9403
ca9f4b81
AO
9404fi
9405fi
1c710c3c 9406OBJCOPY=$ac_cv_prog_OBJCOPY
ca9f4b81 9407if test -n "$OBJCOPY"; then
5213506e
RW
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9409$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9410else
5213506e
RW
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9412$as_echo "no" >&6; }
ca9f4b81
AO
9413fi
9414
5213506e 9415
2693c0b0
PB
9416 fi
9417 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9419set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9421$as_echo_n "checking for $ac_word... " >&6; }
9422if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9423 $as_echo_n "(cached) " >&6
ca9f4b81 9424else
2693c0b0
PB
9425 if test -n "$OBJCOPY"; then
9426 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
ca9f4b81 9427else
1c710c3c
DJ
9428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429for as_dir in $PATH
9430do
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
5213506e
RW
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9435 ac_cv_prog_OBJCOPY="${ncn_progname}"
5213506e 9436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9437 break 2
9438 fi
9439done
5213506e
RW
9440 done
9441IFS=$as_save_IFS
1c710c3c 9442
ca9f4b81
AO
9443fi
9444fi
1c710c3c 9445OBJCOPY=$ac_cv_prog_OBJCOPY
2693c0b0 9446if test -n "$OBJCOPY"; then
5213506e
RW
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9448$as_echo "$OBJCOPY" >&6; }
ca9f4b81 9449else
5213506e
RW
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9451$as_echo "no" >&6; }
ca9f4b81 9452fi
1c710c3c 9453
5213506e 9454
2693c0b0
PB
9455 fi
9456 test -n "$ac_cv_prog_OBJCOPY" && break
9457done
9458
9459if test -z "$ac_cv_prog_OBJCOPY" ; then
9460 set dummy objcopy
9461 if test $build = $host ; then
9462 OBJCOPY="$2"
ca9f4b81 9463 else
2693c0b0 9464 OBJCOPY="${ncn_tool_prefix}$2"
ca9f4b81 9465 fi
ca9f4b81
AO
9466fi
9467
278a7a38
AO
9468
9469
9470if test -n "$OBJDUMP"; then
9471 ac_cv_prog_OBJDUMP=$OBJDUMP
9472elif test -n "$ac_cv_prog_OBJDUMP"; then
9473 OBJDUMP=$ac_cv_prog_OBJDUMP
9474fi
9475
9476if test -n "$ac_cv_prog_OBJDUMP"; then
9477 for ncn_progname in objdump; do
9478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9479set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9481$as_echo_n "checking for $ac_word... " >&6; }
9482if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9483 $as_echo_n "(cached) " >&6
278a7a38
AO
9484else
9485 if test -n "$OBJDUMP"; then
9486 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9487else
9488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9489for as_dir in $PATH
9490do
9491 IFS=$as_save_IFS
9492 test -z "$as_dir" && as_dir=.
5213506e
RW
9493 for ac_exec_ext in '' $ac_executable_extensions; do
9494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9495 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9497 break 2
9498 fi
9499done
5213506e
RW
9500 done
9501IFS=$as_save_IFS
278a7a38
AO
9502
9503fi
9504fi
9505OBJDUMP=$ac_cv_prog_OBJDUMP
9506if test -n "$OBJDUMP"; then
5213506e
RW
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9508$as_echo "$OBJDUMP" >&6; }
278a7a38 9509else
5213506e
RW
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9511$as_echo "no" >&6; }
278a7a38
AO
9512fi
9513
5213506e 9514
278a7a38
AO
9515 done
9516fi
9517
9518for ncn_progname in objdump; do
2693c0b0
PB
9519 if test -n "$ncn_tool_prefix"; then
9520 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9521set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523$as_echo_n "checking for $ac_word... " >&6; }
9524if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
ca9f4b81
AO
9526else
9527 if test -n "$OBJDUMP"; then
9528 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9529else
1c710c3c
DJ
9530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9531for as_dir in $PATH
9532do
9533 IFS=$as_save_IFS
9534 test -z "$as_dir" && as_dir=.
5213506e
RW
9535 for ac_exec_ext in '' $ac_executable_extensions; do
9536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9537 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
5213506e 9538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9539 break 2
9540 fi
9541done
5213506e
RW
9542 done
9543IFS=$as_save_IFS
1c710c3c 9544
ca9f4b81
AO
9545fi
9546fi
1c710c3c 9547OBJDUMP=$ac_cv_prog_OBJDUMP
ca9f4b81 9548if test -n "$OBJDUMP"; then
5213506e
RW
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9550$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9551else
5213506e
RW
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553$as_echo "no" >&6; }
ca9f4b81
AO
9554fi
9555
5213506e 9556
2693c0b0
PB
9557 fi
9558 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9559 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9560set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9562$as_echo_n "checking for $ac_word... " >&6; }
9563if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9564 $as_echo_n "(cached) " >&6
ca9f4b81 9565else
2693c0b0
PB
9566 if test -n "$OBJDUMP"; then
9567 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
ca9f4b81 9568else
1c710c3c
DJ
9569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570for as_dir in $PATH
9571do
9572 IFS=$as_save_IFS
9573 test -z "$as_dir" && as_dir=.
5213506e
RW
9574 for ac_exec_ext in '' $ac_executable_extensions; do
9575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9576 ac_cv_prog_OBJDUMP="${ncn_progname}"
5213506e 9577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9578 break 2
9579 fi
9580done
5213506e
RW
9581 done
9582IFS=$as_save_IFS
1c710c3c 9583
ca9f4b81
AO
9584fi
9585fi
1c710c3c 9586OBJDUMP=$ac_cv_prog_OBJDUMP
2693c0b0 9587if test -n "$OBJDUMP"; then
5213506e
RW
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9589$as_echo "$OBJDUMP" >&6; }
ca9f4b81 9590else
5213506e
RW
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9592$as_echo "no" >&6; }
ca9f4b81 9593fi
1c710c3c 9594
5213506e 9595
2693c0b0
PB
9596 fi
9597 test -n "$ac_cv_prog_OBJDUMP" && break
9598done
9599
9600if test -z "$ac_cv_prog_OBJDUMP" ; then
9601 set dummy objdump
9602 if test $build = $host ; then
9603 OBJDUMP="$2"
ca9f4b81 9604 else
2693c0b0 9605 OBJDUMP="${ncn_tool_prefix}$2"
ca9f4b81 9606 fi
ca9f4b81
AO
9607fi
9608
671aa708
NN
9609
9610
9611
9612
9613
2abefe3d 9614# Target tools.
1c710c3c 9615
5213506e
RW
9616# Check whether --with-build-time-tools was given.
9617if test "${with_build_time_tools+set}" = set; then :
9618 withval=$with_build_time_tools; case x"$withval" in
e8b05380
PB
9619 x/*) ;;
9620 *)
9621 with_build_time_tools=
5213506e
RW
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9623$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
e8b05380
PB
9624 ;;
9625 esac
ca9f4b81 9626else
e8b05380 9627 with_build_time_tools=
5213506e
RW
9628fi
9629
ca9f4b81 9630
278a7a38
AO
9631
9632
9633if test -n "$CC_FOR_TARGET"; then
9634 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9635elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9636 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9637fi
9638
9639if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9640 for ncn_progname in cc gcc; do
9641 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9642set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9644$as_echo_n "checking for $ac_word... " >&6; }
9645if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9646 $as_echo_n "(cached) " >&6
278a7a38
AO
9647else
9648 if test -n "$CC_FOR_TARGET"; then
9649 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9650else
9651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9652for as_dir in $PATH
9653do
9654 IFS=$as_save_IFS
9655 test -z "$as_dir" && as_dir=.
5213506e
RW
9656 for ac_exec_ext in '' $ac_executable_extensions; do
9657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9658 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9660 break 2
9661 fi
9662done
5213506e
RW
9663 done
9664IFS=$as_save_IFS
278a7a38
AO
9665
9666fi
9667fi
9668CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9669if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9671$as_echo "$CC_FOR_TARGET" >&6; }
278a7a38 9672else
5213506e
RW
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9674$as_echo "no" >&6; }
278a7a38
AO
9675fi
9676
5213506e 9677
278a7a38
AO
9678 done
9679fi
9680
9681if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9682 for ncn_progname in cc gcc; do
5213506e
RW
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9684$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9685 if test -x $with_build_time_tools/${ncn_progname}; then
9686 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9688$as_echo "yes" >&6; }
72a7ab82 9689 break
e8b05380 9690 else
5213506e
RW
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9692$as_echo "no" >&6; }
72a7ab82
AP
9693 fi
9694 done
4de997d1
PB
9695fi
9696
e8b05380
PB
9697if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9698 for ncn_progname in cc gcc; do
9699 if test -n "$ncn_target_tool_prefix"; then
9700 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9701set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9703$as_echo_n "checking for $ac_word... " >&6; }
9704if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9705 $as_echo_n "(cached) " >&6
4de997d1
PB
9706else
9707 if test -n "$CC_FOR_TARGET"; then
9708 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9709else
1c710c3c
DJ
9710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711for as_dir in $PATH
9712do
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
5213506e
RW
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9717 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9719 break 2
9720 fi
9721done
5213506e
RW
9722 done
9723IFS=$as_save_IFS
1c710c3c 9724
4de997d1
PB
9725fi
9726fi
1c710c3c 9727CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
4de997d1 9728if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9730$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9731else
5213506e
RW
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9733$as_echo "no" >&6; }
4de997d1
PB
9734fi
9735
5213506e 9736
e8b05380
PB
9737 fi
9738 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9739 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9740set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742$as_echo_n "checking for $ac_word... " >&6; }
9743if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
4de997d1 9745else
2693c0b0
PB
9746 if test -n "$CC_FOR_TARGET"; then
9747 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
4de997d1 9748else
1c710c3c
DJ
9749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9750for as_dir in $PATH
9751do
9752 IFS=$as_save_IFS
9753 test -z "$as_dir" && as_dir=.
5213506e
RW
9754 for ac_exec_ext in '' $ac_executable_extensions; do
9755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9756 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
5213506e 9757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9758 break 2
9759 fi
9760done
5213506e
RW
9761 done
9762IFS=$as_save_IFS
1c710c3c 9763
4de997d1
PB
9764fi
9765fi
1c710c3c 9766CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
2693c0b0 9767if test -n "$CC_FOR_TARGET"; then
5213506e
RW
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9769$as_echo "$CC_FOR_TARGET" >&6; }
4de997d1 9770else
5213506e
RW
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772$as_echo "no" >&6; }
4de997d1 9773fi
1c710c3c 9774
5213506e 9775
e8b05380
PB
9776 fi
9777 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9778 done
9779fi
1c710c3c 9780
2693c0b0
PB
9781if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9782 set dummy cc gcc
9783 if test $build = $target ; then
9784 CC_FOR_TARGET="$2"
4de997d1 9785 else
2693c0b0 9786 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9787 fi
1c00b503
PB
9788else
9789 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
4de997d1
PB
9790fi
9791
278a7a38
AO
9792
9793
9794if test -n "$CXX_FOR_TARGET"; then
9795 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9796elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9797 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9798fi
9799
9800if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9801 for ncn_progname in c++ g++ cxx gxx; do
9802 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9803set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9805$as_echo_n "checking for $ac_word... " >&6; }
9806if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9807 $as_echo_n "(cached) " >&6
278a7a38
AO
9808else
9809 if test -n "$CXX_FOR_TARGET"; then
9810 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9811else
9812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813for as_dir in $PATH
9814do
9815 IFS=$as_save_IFS
9816 test -z "$as_dir" && as_dir=.
5213506e
RW
9817 for ac_exec_ext in '' $ac_executable_extensions; do
9818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9819 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9821 break 2
9822 fi
9823done
5213506e
RW
9824 done
9825IFS=$as_save_IFS
278a7a38
AO
9826
9827fi
9828fi
9829CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9830if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9832$as_echo "$CXX_FOR_TARGET" >&6; }
278a7a38 9833else
5213506e
RW
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9835$as_echo "no" >&6; }
278a7a38
AO
9836fi
9837
5213506e 9838
278a7a38
AO
9839 done
9840fi
9841
9842if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 9843 for ncn_progname in c++ g++ cxx gxx; do
5213506e
RW
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9845$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
9846 if test -x $with_build_time_tools/${ncn_progname}; then
9847 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9849$as_echo "yes" >&6; }
e8b05380
PB
9850 break
9851 else
5213506e
RW
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9853$as_echo "no" >&6; }
e8b05380
PB
9854 fi
9855 done
9856fi
9857
9858if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9859 for ncn_progname in c++ g++ cxx gxx; do
9860 if test -n "$ncn_target_tool_prefix"; then
9861 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 9862set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9864$as_echo_n "checking for $ac_word... " >&6; }
9865if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9866 $as_echo_n "(cached) " >&6
4de997d1
PB
9867else
9868 if test -n "$CXX_FOR_TARGET"; then
9869 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9870else
1c710c3c
DJ
9871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872for as_dir in $PATH
9873do
9874 IFS=$as_save_IFS
9875 test -z "$as_dir" && as_dir=.
5213506e
RW
9876 for ac_exec_ext in '' $ac_executable_extensions; do
9877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9878 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 9879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9880 break 2
9881 fi
9882done
5213506e
RW
9883 done
9884IFS=$as_save_IFS
1c710c3c 9885
4de997d1
PB
9886fi
9887fi
1c710c3c 9888CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
4de997d1 9889if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9891$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9892else
5213506e
RW
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9894$as_echo "no" >&6; }
4de997d1
PB
9895fi
9896
5213506e 9897
e8b05380
PB
9898 fi
9899 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9900 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 9901set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9903$as_echo_n "checking for $ac_word... " >&6; }
9904if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9905 $as_echo_n "(cached) " >&6
4de997d1 9906else
2693c0b0
PB
9907 if test -n "$CXX_FOR_TARGET"; then
9908 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
4de997d1 9909else
1c710c3c
DJ
9910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911for as_dir in $PATH
9912do
9913 IFS=$as_save_IFS
9914 test -z "$as_dir" && as_dir=.
5213506e
RW
9915 for ac_exec_ext in '' $ac_executable_extensions; do
9916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 9917 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
5213506e 9918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
9919 break 2
9920 fi
9921done
5213506e
RW
9922 done
9923IFS=$as_save_IFS
1c710c3c 9924
4de997d1
PB
9925fi
9926fi
1c710c3c 9927CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
2693c0b0 9928if test -n "$CXX_FOR_TARGET"; then
5213506e
RW
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9930$as_echo "$CXX_FOR_TARGET" >&6; }
4de997d1 9931else
5213506e
RW
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933$as_echo "no" >&6; }
4de997d1 9934fi
1c710c3c 9935
5213506e 9936
e8b05380
PB
9937 fi
9938 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9939 done
9940fi
1c710c3c 9941
2693c0b0
PB
9942if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9943 set dummy c++ g++ cxx gxx
9944 if test $build = $target ; then
9945 CXX_FOR_TARGET="$2"
4de997d1 9946 else
2693c0b0 9947 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 9948 fi
1c00b503
PB
9949else
9950 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
ca9f4b81
AO
9951fi
9952
278a7a38
AO
9953
9954
9955if test -n "$GCC_FOR_TARGET"; then
9956 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9957elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9958 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9959fi
9960
9961if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9962 for ncn_progname in gcc; do
9963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9964set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
9965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966$as_echo_n "checking for $ac_word... " >&6; }
9967if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
278a7a38
AO
9969else
9970 if test -n "$GCC_FOR_TARGET"; then
9971 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9972else
9973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
5213506e
RW
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 9980 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
9982 break 2
9983 fi
9984done
5213506e
RW
9985 done
9986IFS=$as_save_IFS
278a7a38
AO
9987
9988fi
9989fi
9990GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9991if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9993$as_echo "$GCC_FOR_TARGET" >&6; }
278a7a38 9994else
5213506e
RW
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996$as_echo "no" >&6; }
278a7a38
AO
9997fi
9998
5213506e 9999
278a7a38
AO
10000 done
10001fi
10002
10003if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10004 for ncn_progname in gcc; do
5213506e
RW
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10006$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10007 if test -x $with_build_time_tools/${ncn_progname}; then
10008 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10010$as_echo "yes" >&6; }
e8b05380
PB
10011 break
10012 else
5213506e
RW
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014$as_echo "no" >&6; }
e8b05380
PB
10015 fi
10016 done
10017fi
10018
10019if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10020 for ncn_progname in gcc; do
10021 if test -n "$ncn_target_tool_prefix"; then
10022 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10023set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10025$as_echo_n "checking for $ac_word... " >&6; }
10026if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10027 $as_echo_n "(cached) " >&6
ca9f4b81 10028else
e8b05380
PB
10029 if test -n "$GCC_FOR_TARGET"; then
10030 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10031else
1c710c3c
DJ
10032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033for as_dir in $PATH
10034do
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
5213506e
RW
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10039 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10041 break 2
10042 fi
10043done
5213506e
RW
10044 done
10045IFS=$as_save_IFS
1c710c3c 10046
ca9f4b81
AO
10047fi
10048fi
1c710c3c 10049GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10050if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10052$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10053else
5213506e
RW
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055$as_echo "no" >&6; }
ca9f4b81
AO
10056fi
10057
5213506e 10058
e8b05380
PB
10059 fi
10060 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 10062set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10064$as_echo_n "checking for $ac_word... " >&6; }
10065if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
ca9f4b81 10067else
e8b05380
PB
10068 if test -n "$GCC_FOR_TARGET"; then
10069 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
ca9f4b81 10070else
1c710c3c
DJ
10071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10072for as_dir in $PATH
10073do
10074 IFS=$as_save_IFS
10075 test -z "$as_dir" && as_dir=.
5213506e
RW
10076 for ac_exec_ext in '' $ac_executable_extensions; do
10077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10078 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
5213506e 10079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10080 break 2
10081 fi
10082done
5213506e
RW
10083 done
10084IFS=$as_save_IFS
1c710c3c 10085
ca9f4b81
AO
10086fi
10087fi
1c710c3c 10088GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
e8b05380 10089if test -n "$GCC_FOR_TARGET"; then
5213506e
RW
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10091$as_echo "$GCC_FOR_TARGET" >&6; }
ca9f4b81 10092else
5213506e
RW
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094$as_echo "no" >&6; }
ca9f4b81 10095fi
1c710c3c 10096
5213506e 10097
e8b05380
PB
10098 fi
10099 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10100 done
10101fi
1c710c3c 10102
e8b05380
PB
10103if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10104 GCC_FOR_TARGET="${CC_FOR_TARGET}"
1c00b503
PB
10105else
10106 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
e8b05380
PB
10107fi
10108
278a7a38
AO
10109
10110
10111if test -n "$GCJ_FOR_TARGET"; then
10112 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10113elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10114 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10115fi
10116
10117if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10118 for ncn_progname in gcj; do
10119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10120set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10122$as_echo_n "checking for $ac_word... " >&6; }
10123if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10124 $as_echo_n "(cached) " >&6
278a7a38
AO
10125else
10126 if test -n "$GCJ_FOR_TARGET"; then
10127 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10128else
10129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130for as_dir in $PATH
10131do
10132 IFS=$as_save_IFS
10133 test -z "$as_dir" && as_dir=.
5213506e
RW
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10136 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10138 break 2
10139 fi
10140done
5213506e
RW
10141 done
10142IFS=$as_save_IFS
278a7a38
AO
10143
10144fi
10145fi
10146GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10147if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10149$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10150else
5213506e
RW
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152$as_echo "no" >&6; }
278a7a38
AO
10153fi
10154
5213506e 10155
278a7a38
AO
10156 done
10157fi
10158
10159if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10160 for ncn_progname in gcj; do
5213506e
RW
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10162$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10163 if test -x $with_build_time_tools/${ncn_progname}; then
10164 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10166$as_echo "yes" >&6; }
e8b05380
PB
10167 break
10168 else
5213506e
RW
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10170$as_echo "no" >&6; }
e8b05380
PB
10171 fi
10172 done
10173fi
10174
10175if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10176 for ncn_progname in gcj; do
10177 if test -n "$ncn_target_tool_prefix"; then
10178 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10179set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10181$as_echo_n "checking for $ac_word... " >&6; }
10182if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
e8b05380 10184else
fb0103e5
RG
10185 if test -n "$GCJ_FOR_TARGET"; then
10186 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10187else
1c710c3c
DJ
10188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10189for as_dir in $PATH
10190do
10191 IFS=$as_save_IFS
10192 test -z "$as_dir" && as_dir=.
5213506e
RW
10193 for ac_exec_ext in '' $ac_executable_extensions; do
10194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10195 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10197 break 2
10198 fi
10199done
5213506e
RW
10200 done
10201IFS=$as_save_IFS
1c710c3c 10202
e8b05380
PB
10203fi
10204fi
278a7a38
AO
10205GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10206if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10208$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10209else
5213506e
RW
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211$as_echo "no" >&6; }
278a7a38
AO
10212fi
10213
5213506e 10214
278a7a38
AO
10215 fi
10216 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10217 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10218set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220$as_echo_n "checking for $ac_word... " >&6; }
10221if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10222 $as_echo_n "(cached) " >&6
278a7a38
AO
10223else
10224 if test -n "$GCJ_FOR_TARGET"; then
10225 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10226else
10227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228for as_dir in $PATH
10229do
10230 IFS=$as_save_IFS
10231 test -z "$as_dir" && as_dir=.
5213506e
RW
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10234 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
5213506e 10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10236 break 2
10237 fi
10238done
5213506e
RW
10239 done
10240IFS=$as_save_IFS
278a7a38
AO
10241
10242fi
10243fi
10244GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10245if test -n "$GCJ_FOR_TARGET"; then
5213506e
RW
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10247$as_echo "$GCJ_FOR_TARGET" >&6; }
278a7a38 10248else
5213506e
RW
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250$as_echo "no" >&6; }
278a7a38
AO
10251fi
10252
5213506e 10253
278a7a38
AO
10254 fi
10255 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10256 done
10257fi
10258
10259if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10260 set dummy gcj
10261 if test $build = $target ; then
10262 GCJ_FOR_TARGET="$2"
10263 else
10264 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10265 fi
1c00b503
PB
10266else
10267 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
278a7a38
AO
10268fi
10269
10270
10271
10272if test -n "$GFORTRAN_FOR_TARGET"; then
10273 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10274elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10275 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380
PB
10276fi
10277
278a7a38
AO
10278if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10279 for ncn_progname in gfortran; do
10280 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
e8b05380 10281set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10283$as_echo_n "checking for $ac_word... " >&6; }
10284if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10285 $as_echo_n "(cached) " >&6
e8b05380 10286else
278a7a38
AO
10287 if test -n "$GFORTRAN_FOR_TARGET"; then
10288 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
e8b05380 10289else
1c710c3c
DJ
10290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10291for as_dir in $PATH
10292do
10293 IFS=$as_save_IFS
10294 test -z "$as_dir" && as_dir=.
5213506e
RW
10295 for ac_exec_ext in '' $ac_executable_extensions; do
10296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10297 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10299 break 2
10300 fi
10301done
5213506e
RW
10302 done
10303IFS=$as_save_IFS
1c710c3c 10304
e8b05380
PB
10305fi
10306fi
278a7a38
AO
10307GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10308if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10310$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10311else
5213506e
RW
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10313$as_echo "no" >&6; }
e8b05380 10314fi
1c710c3c 10315
5213506e 10316
e8b05380
PB
10317 done
10318fi
1c710c3c 10319
278a7a38 10320if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10321 for ncn_progname in gfortran; do
5213506e
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10323$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10324 if test -x $with_build_time_tools/${ncn_progname}; then
10325 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10327$as_echo "yes" >&6; }
e8b05380
PB
10328 break
10329 else
5213506e
RW
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10331$as_echo "no" >&6; }
e8b05380
PB
10332 fi
10333 done
10334fi
10335
10336if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10337 for ncn_progname in gfortran; do
10338 if test -n "$ncn_target_tool_prefix"; then
10339 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10340set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10342$as_echo_n "checking for $ac_word... " >&6; }
10343if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10344 $as_echo_n "(cached) " >&6
e8b05380
PB
10345else
10346 if test -n "$GFORTRAN_FOR_TARGET"; then
1c710c3c
DJ
10347 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10348else
10349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10350for as_dir in $PATH
10351do
10352 IFS=$as_save_IFS
10353 test -z "$as_dir" && as_dir=.
5213506e
RW
10354 for ac_exec_ext in '' $ac_executable_extensions; do
10355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10356 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10358 break 2
10359 fi
10360done
5213506e
RW
10361 done
10362IFS=$as_save_IFS
1c710c3c 10363
e8b05380
PB
10364fi
10365fi
1c710c3c 10366GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10367if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10369$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10370else
5213506e
RW
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372$as_echo "no" >&6; }
e8b05380
PB
10373fi
10374
5213506e 10375
e8b05380
PB
10376 fi
10377 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10378 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10379set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10381$as_echo_n "checking for $ac_word... " >&6; }
10382if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10383 $as_echo_n "(cached) " >&6
e8b05380
PB
10384else
10385 if test -n "$GFORTRAN_FOR_TARGET"; then
10386 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10387else
1c710c3c
DJ
10388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389for as_dir in $PATH
10390do
10391 IFS=$as_save_IFS
10392 test -z "$as_dir" && as_dir=.
5213506e
RW
10393 for ac_exec_ext in '' $ac_executable_extensions; do
10394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10395 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
5213506e 10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10397 break 2
10398 fi
10399done
5213506e
RW
10400 done
10401IFS=$as_save_IFS
1c710c3c 10402
e8b05380
PB
10403fi
10404fi
1c710c3c 10405GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
e8b05380 10406if test -n "$GFORTRAN_FOR_TARGET"; then
5213506e
RW
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10408$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
e8b05380 10409else
5213506e
RW
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411$as_echo "no" >&6; }
e8b05380 10412fi
1c710c3c 10413
5213506e 10414
e8b05380
PB
10415 fi
10416 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10417 done
10418fi
1c710c3c 10419
e8b05380
PB
10420if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10421 set dummy gfortran
2693c0b0 10422 if test $build = $target ; then
e8b05380 10423 GFORTRAN_FOR_TARGET="$2"
ca9f4b81 10424 else
e8b05380
PB
10425 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
10426 fi
1c00b503
PB
10427else
10428 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
e8b05380
PB
10429fi
10430
10431
10432
632e2a07
ILT
10433if test -n "$GOC_FOR_TARGET"; then
10434 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10435elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10436 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10437fi
10438
10439if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10440 for ncn_progname in gccgo; do
10441 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10442set dummy ${ncn_progname}; ac_word=$2
10443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10444$as_echo_n "checking for $ac_word... " >&6; }
10445if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10446 $as_echo_n "(cached) " >&6
10447else
10448 if test -n "$GOC_FOR_TARGET"; then
10449 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10450else
10451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452for as_dir in $PATH
10453do
10454 IFS=$as_save_IFS
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10458 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10460 break 2
10461 fi
10462done
10463 done
10464IFS=$as_save_IFS
10465
10466fi
10467fi
10468GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10469if test -n "$GOC_FOR_TARGET"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10471$as_echo "$GOC_FOR_TARGET" >&6; }
10472else
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10474$as_echo "no" >&6; }
10475fi
10476
10477
10478 done
10479fi
10480
10481if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10482 for ncn_progname in gccgo; do
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10484$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10485 if test -x $with_build_time_tools/${ncn_progname}; then
10486 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10488$as_echo "yes" >&6; }
10489 break
10490 else
10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10492$as_echo "no" >&6; }
10493 fi
10494 done
10495fi
10496
10497if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10498 for ncn_progname in gccgo; do
10499 if test -n "$ncn_target_tool_prefix"; then
10500 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10501set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10503$as_echo_n "checking for $ac_word... " >&6; }
10504if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10505 $as_echo_n "(cached) " >&6
10506else
10507 if test -n "$GOC_FOR_TARGET"; then
10508 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10509else
10510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10511for as_dir in $PATH
10512do
10513 IFS=$as_save_IFS
10514 test -z "$as_dir" && as_dir=.
10515 for ac_exec_ext in '' $ac_executable_extensions; do
10516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10517 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10519 break 2
10520 fi
10521done
10522 done
10523IFS=$as_save_IFS
10524
10525fi
10526fi
10527GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10528if test -n "$GOC_FOR_TARGET"; then
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10530$as_echo "$GOC_FOR_TARGET" >&6; }
10531else
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10533$as_echo "no" >&6; }
10534fi
10535
10536
10537 fi
10538 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10540set dummy ${ncn_progname}; ac_word=$2
10541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10542$as_echo_n "checking for $ac_word... " >&6; }
10543if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10544 $as_echo_n "(cached) " >&6
10545else
10546 if test -n "$GOC_FOR_TARGET"; then
10547 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10548else
10549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550for as_dir in $PATH
10551do
10552 IFS=$as_save_IFS
10553 test -z "$as_dir" && as_dir=.
10554 for ac_exec_ext in '' $ac_executable_extensions; do
10555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10556 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10558 break 2
10559 fi
10560done
10561 done
10562IFS=$as_save_IFS
10563
10564fi
10565fi
10566GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10567if test -n "$GOC_FOR_TARGET"; then
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10569$as_echo "$GOC_FOR_TARGET" >&6; }
10570else
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10572$as_echo "no" >&6; }
10573fi
10574
10575
10576 fi
10577 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10578 done
10579fi
10580
10581if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10582 set dummy gccgo
10583 if test $build = $target ; then
10584 GOC_FOR_TARGET="$2"
10585 else
10586 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10587 fi
10588else
10589 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10590fi
10591
10592
10593
e8b05380
PB
10594cat > conftest.c << \EOF
10595#ifdef __GNUC__
10596 gcc_yay;
10597#endif
10598EOF
10599if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10600 have_gcc_for_target=yes
10601else
10602 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10603 have_gcc_for_target=no
10604fi
10605rm conftest.c
10606
10607
10608
10609
10610if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10611 if test -n "$with_build_time_tools"; then
5213506e
RW
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10613$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10614 if test -x $with_build_time_tools/ar; then
10615 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10616 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
5213506e
RW
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10618$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
d1f8db0c 10619 else
5213506e
RW
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10621$as_echo "no" >&6; }
d1f8db0c 10622 fi
e8b05380
PB
10623 elif test $build != $host && test $have_gcc_for_target = yes; then
10624 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
1c00b503
PB
10625 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10626 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
e8b05380
PB
10627 fi
10628fi
3e19841a 10629if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10630 # Extract the first word of "ar", so it can be a program name with args.
10631set dummy ar; ac_word=$2
5213506e
RW
10632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10633$as_echo_n "checking for $ac_word... " >&6; }
10634if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10635 $as_echo_n "(cached) " >&6
e8b05380 10636else
1c710c3c
DJ
10637 case $AR_FOR_TARGET in
10638 [\\/]* | ?:[\\/]*)
e8b05380
PB
10639 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10640 ;;
e8b05380 10641 *)
1c710c3c
DJ
10642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10643for as_dir in $gcc_cv_tool_dirs
10644do
10645 IFS=$as_save_IFS
10646 test -z "$as_dir" && as_dir=.
5213506e
RW
10647 for ac_exec_ext in '' $ac_executable_extensions; do
10648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10649 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10651 break 2
10652 fi
10653done
5213506e
RW
10654 done
10655IFS=$as_save_IFS
1c710c3c 10656
e8b05380
PB
10657 ;;
10658esac
10659fi
1c710c3c 10660AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380 10661if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10663$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10664else
5213506e
RW
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666$as_echo "no" >&6; }
4de997d1
PB
10667fi
10668
5213506e 10669
e8b05380
PB
10670fi
10671if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
278a7a38
AO
10672
10673
10674if test -n "$AR_FOR_TARGET"; then
10675 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10676elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10677 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10678fi
10679
10680if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10681 for ncn_progname in ar; do
10682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10683set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10685$as_echo_n "checking for $ac_word... " >&6; }
10686if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10687 $as_echo_n "(cached) " >&6
278a7a38
AO
10688else
10689 if test -n "$AR_FOR_TARGET"; then
10690 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10691else
10692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693for as_dir in $PATH
10694do
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
5213506e
RW
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10699 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10701 break 2
10702 fi
10703done
5213506e
RW
10704 done
10705IFS=$as_save_IFS
278a7a38
AO
10706
10707fi
10708fi
10709AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10710if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10712$as_echo "$AR_FOR_TARGET" >&6; }
278a7a38 10713else
5213506e
RW
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715$as_echo "no" >&6; }
278a7a38
AO
10716fi
10717
5213506e 10718
278a7a38
AO
10719 done
10720fi
10721
10722if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10723 for ncn_progname in ar; do
5213506e
RW
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10725$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10726 if test -x $with_build_time_tools/${ncn_progname}; then
10727 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10729$as_echo "yes" >&6; }
e8b05380
PB
10730 break
10731 else
5213506e
RW
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10733$as_echo "no" >&6; }
e8b05380
PB
10734 fi
10735 done
10736fi
10737
10738if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10739 for ncn_progname in ar; do
10740 if test -n "$ncn_target_tool_prefix"; then
10741 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 10742set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10744$as_echo_n "checking for $ac_word... " >&6; }
10745if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10746 $as_echo_n "(cached) " >&6
4de997d1 10747else
e8b05380
PB
10748 if test -n "$AR_FOR_TARGET"; then
10749 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
4de997d1 10750else
1c710c3c
DJ
10751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752for as_dir in $PATH
10753do
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
5213506e
RW
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10758 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10760 break 2
10761 fi
10762done
5213506e
RW
10763 done
10764IFS=$as_save_IFS
1c710c3c 10765
4de997d1
PB
10766fi
10767fi
1c710c3c 10768AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10769if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10771$as_echo "$AR_FOR_TARGET" >&6; }
4de997d1 10772else
5213506e
RW
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774$as_echo "no" >&6; }
4de997d1
PB
10775fi
10776
5213506e 10777
e8b05380
PB
10778 fi
10779 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10781set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10783$as_echo_n "checking for $ac_word... " >&6; }
10784if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10785 $as_echo_n "(cached) " >&6
e8b05380
PB
10786else
10787 if test -n "$AR_FOR_TARGET"; then
10788 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10789else
1c710c3c
DJ
10790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10791for as_dir in $PATH
10792do
10793 IFS=$as_save_IFS
10794 test -z "$as_dir" && as_dir=.
5213506e
RW
10795 for ac_exec_ext in '' $ac_executable_extensions; do
10796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10797 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
5213506e 10798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10799 break 2
10800 fi
10801done
5213506e
RW
10802 done
10803IFS=$as_save_IFS
1c710c3c 10804
e8b05380
PB
10805fi
10806fi
1c710c3c 10807AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
e8b05380 10808if test -n "$AR_FOR_TARGET"; then
5213506e
RW
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10810$as_echo "$AR_FOR_TARGET" >&6; }
e8b05380 10811else
5213506e
RW
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10813$as_echo "no" >&6; }
e8b05380 10814fi
1c710c3c 10815
5213506e 10816
e8b05380
PB
10817 fi
10818 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10819 done
10820fi
1c710c3c 10821
e8b05380
PB
10822if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10823 set dummy ar
10824 if test $build = $target ; then
10825 AR_FOR_TARGET="$2"
10826 else
10827 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
2693c0b0 10828 fi
1c00b503
PB
10829else
10830 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
e8b05380
PB
10831fi
10832
d1f8db0c
PB
10833else
10834 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
e8b05380
PB
10835fi
10836
10837
10838
10839
10840if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10841 if test -n "$with_build_time_tools"; then
5213506e
RW
10842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10843$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10844 if test -x $with_build_time_tools/as; then
10845 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10846 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
5213506e
RW
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10848$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
d1f8db0c 10849 else
5213506e
RW
10850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10851$as_echo "no" >&6; }
d1f8db0c 10852 fi
e8b05380
PB
10853 elif test $build != $host && test $have_gcc_for_target = yes; then
10854 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
1c00b503
PB
10855 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10856 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
e8b05380
PB
10857 fi
10858fi
3e19841a 10859if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
10860 # Extract the first word of "as", so it can be a program name with args.
10861set dummy as; ac_word=$2
5213506e
RW
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863$as_echo_n "checking for $ac_word... " >&6; }
10864if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
e8b05380 10866else
1c710c3c
DJ
10867 case $AS_FOR_TARGET in
10868 [\\/]* | ?:[\\/]*)
e8b05380
PB
10869 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10870 ;;
e8b05380 10871 *)
1c710c3c
DJ
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873for as_dir in $gcc_cv_tool_dirs
10874do
10875 IFS=$as_save_IFS
10876 test -z "$as_dir" && as_dir=.
5213506e
RW
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10879 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 10880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10881 break 2
10882 fi
10883done
5213506e
RW
10884 done
10885IFS=$as_save_IFS
1c710c3c 10886
e8b05380
PB
10887 ;;
10888esac
10889fi
1c710c3c 10890AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
e8b05380 10891if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10893$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 10894else
5213506e
RW
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10896$as_echo "no" >&6; }
e8b05380
PB
10897fi
10898
5213506e 10899
e8b05380
PB
10900fi
10901if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
278a7a38
AO
10902
10903
10904if test -n "$AS_FOR_TARGET"; then
10905 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10906elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10907 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10908fi
10909
10910if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10911 for ncn_progname in as; do
10912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10913set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
10914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915$as_echo_n "checking for $ac_word... " >&6; }
10916if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
278a7a38
AO
10918else
10919 if test -n "$AS_FOR_TARGET"; then
10920 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10921else
10922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923for as_dir in $PATH
10924do
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
5213506e
RW
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 10929 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
10931 break 2
10932 fi
10933done
5213506e
RW
10934 done
10935IFS=$as_save_IFS
278a7a38
AO
10936
10937fi
10938fi
10939AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10940if test -n "$AS_FOR_TARGET"; then
5213506e
RW
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10942$as_echo "$AS_FOR_TARGET" >&6; }
278a7a38 10943else
5213506e
RW
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945$as_echo "no" >&6; }
278a7a38
AO
10946fi
10947
5213506e 10948
278a7a38
AO
10949 done
10950fi
10951
10952if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 10953 for ncn_progname in as; do
5213506e
RW
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10955$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
10956 if test -x $with_build_time_tools/${ncn_progname}; then
10957 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10959$as_echo "yes" >&6; }
e8b05380
PB
10960 break
10961 else
5213506e
RW
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963$as_echo "no" >&6; }
e8b05380
PB
10964 fi
10965 done
10966fi
10967
10968if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10969 for ncn_progname in as; do
10970 if test -n "$ncn_target_tool_prefix"; then
10971 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10972set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10974$as_echo_n "checking for $ac_word... " >&6; }
10975if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10976 $as_echo_n "(cached) " >&6
e8b05380
PB
10977else
10978 if test -n "$AS_FOR_TARGET"; then
10979 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10980else
1c710c3c
DJ
10981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982for as_dir in $PATH
10983do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
5213506e
RW
10986 for ac_exec_ext in '' $ac_executable_extensions; do
10987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 10988 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 10989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
10990 break 2
10991 fi
10992done
5213506e
RW
10993 done
10994IFS=$as_save_IFS
1c710c3c 10995
e8b05380
PB
10996fi
10997fi
1c710c3c 10998AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 10999if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11001$as_echo "$AS_FOR_TARGET" >&6; }
e8b05380 11002else
5213506e
RW
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11004$as_echo "no" >&6; }
e8b05380
PB
11005fi
11006
5213506e 11007
e8b05380
PB
11008 fi
11009 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11011set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11013$as_echo_n "checking for $ac_word... " >&6; }
11014if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11015 $as_echo_n "(cached) " >&6
4de997d1 11016else
e8b05380
PB
11017 if test -n "$AS_FOR_TARGET"; then
11018 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
4de997d1 11019else
1c710c3c
DJ
11020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021for as_dir in $PATH
11022do
11023 IFS=$as_save_IFS
11024 test -z "$as_dir" && as_dir=.
5213506e
RW
11025 for ac_exec_ext in '' $ac_executable_extensions; do
11026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11027 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
5213506e 11028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11029 break 2
11030 fi
11031done
5213506e
RW
11032 done
11033IFS=$as_save_IFS
1c710c3c 11034
4de997d1
PB
11035fi
11036fi
1c710c3c 11037AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
e8b05380 11038if test -n "$AS_FOR_TARGET"; then
5213506e
RW
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11040$as_echo "$AS_FOR_TARGET" >&6; }
4de997d1 11041else
5213506e
RW
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043$as_echo "no" >&6; }
4de997d1 11044fi
1c710c3c 11045
5213506e 11046
e8b05380
PB
11047 fi
11048 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11049 done
11050fi
1c710c3c 11051
e8b05380
PB
11052if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11053 set dummy as
11054 if test $build = $target ; then
11055 AS_FOR_TARGET="$2"
11056 else
11057 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
4de997d1 11058 fi
1c00b503
PB
11059else
11060 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
e8b05380 11061fi
2693c0b0 11062
d1f8db0c
PB
11063else
11064 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
4de997d1
PB
11065fi
11066
e8b05380
PB
11067
11068
11069
11070if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11071 if test -n "$with_build_time_tools"; then
5213506e
RW
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11073$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11074 if test -x $with_build_time_tools/dlltool; then
11075 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11076 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
5213506e
RW
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11078$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
d1f8db0c 11079 else
5213506e
RW
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11081$as_echo "no" >&6; }
d1f8db0c 11082 fi
e8b05380
PB
11083 elif test $build != $host && test $have_gcc_for_target = yes; then
11084 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
1c00b503
PB
11085 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11086 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
e8b05380
PB
11087 fi
11088fi
3e19841a 11089if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11090 # Extract the first word of "dlltool", so it can be a program name with args.
11091set dummy dlltool; ac_word=$2
5213506e
RW
11092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093$as_echo_n "checking for $ac_word... " >&6; }
11094if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
4de997d1 11096else
1c710c3c
DJ
11097 case $DLLTOOL_FOR_TARGET in
11098 [\\/]* | ?:[\\/]*)
e8b05380
PB
11099 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11100 ;;
e8b05380 11101 *)
1c710c3c
DJ
11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11103for as_dir in $gcc_cv_tool_dirs
11104do
11105 IFS=$as_save_IFS
11106 test -z "$as_dir" && as_dir=.
5213506e
RW
11107 for ac_exec_ext in '' $ac_executable_extensions; do
11108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11109 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11111 break 2
11112 fi
11113done
5213506e
RW
11114 done
11115IFS=$as_save_IFS
1c710c3c 11116
e8b05380
PB
11117 ;;
11118esac
4de997d1 11119fi
1c710c3c 11120DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380 11121if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11123$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11124else
5213506e
RW
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11126$as_echo "no" >&6; }
4de997d1
PB
11127fi
11128
5213506e 11129
e8b05380
PB
11130fi
11131if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
278a7a38
AO
11132
11133
11134if test -n "$DLLTOOL_FOR_TARGET"; then
11135 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11136elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11137 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11138fi
11139
11140if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11141 for ncn_progname in dlltool; do
11142 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11143set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11145$as_echo_n "checking for $ac_word... " >&6; }
11146if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11147 $as_echo_n "(cached) " >&6
278a7a38
AO
11148else
11149 if test -n "$DLLTOOL_FOR_TARGET"; then
11150 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11151else
11152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153for as_dir in $PATH
11154do
11155 IFS=$as_save_IFS
11156 test -z "$as_dir" && as_dir=.
5213506e
RW
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11159 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11161 break 2
11162 fi
11163done
5213506e
RW
11164 done
11165IFS=$as_save_IFS
278a7a38
AO
11166
11167fi
11168fi
11169DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11170if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11172$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
278a7a38 11173else
5213506e
RW
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11175$as_echo "no" >&6; }
278a7a38
AO
11176fi
11177
5213506e 11178
278a7a38
AO
11179 done
11180fi
11181
11182if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11183 for ncn_progname in dlltool; do
5213506e
RW
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11185$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11186 if test -x $with_build_time_tools/${ncn_progname}; then
11187 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11189$as_echo "yes" >&6; }
e8b05380
PB
11190 break
11191 else
5213506e
RW
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11193$as_echo "no" >&6; }
e8b05380
PB
11194 fi
11195 done
11196fi
11197
11198if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11199 for ncn_progname in dlltool; do
11200 if test -n "$ncn_target_tool_prefix"; then
11201 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11202set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11204$as_echo_n "checking for $ac_word... " >&6; }
11205if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11206 $as_echo_n "(cached) " >&6
4de997d1 11207else
e8b05380
PB
11208 if test -n "$DLLTOOL_FOR_TARGET"; then
11209 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11210else
1c710c3c
DJ
11211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11212for as_dir in $PATH
11213do
11214 IFS=$as_save_IFS
11215 test -z "$as_dir" && as_dir=.
5213506e
RW
11216 for ac_exec_ext in '' $ac_executable_extensions; do
11217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11218 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11220 break 2
11221 fi
11222done
5213506e
RW
11223 done
11224IFS=$as_save_IFS
1c710c3c 11225
4de997d1
PB
11226fi
11227fi
1c710c3c 11228DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11229if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11231$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11232else
5213506e
RW
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11234$as_echo "no" >&6; }
4de997d1 11235fi
4de997d1 11236
5213506e 11237
e8b05380
PB
11238 fi
11239 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11241set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11243$as_echo_n "checking for $ac_word... " >&6; }
11244if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11245 $as_echo_n "(cached) " >&6
4de997d1 11246else
e8b05380
PB
11247 if test -n "$DLLTOOL_FOR_TARGET"; then
11248 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
4de997d1 11249else
1c710c3c
DJ
11250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251for as_dir in $PATH
11252do
11253 IFS=$as_save_IFS
11254 test -z "$as_dir" && as_dir=.
5213506e
RW
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11257 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
5213506e 11258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11259 break 2
11260 fi
11261done
5213506e
RW
11262 done
11263IFS=$as_save_IFS
1c710c3c 11264
4de997d1
PB
11265fi
11266fi
1c710c3c 11267DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
e8b05380 11268if test -n "$DLLTOOL_FOR_TARGET"; then
5213506e
RW
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11270$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
4de997d1 11271else
5213506e
RW
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273$as_echo "no" >&6; }
4de997d1 11274fi
1c710c3c 11275
5213506e 11276
e8b05380
PB
11277 fi
11278 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11279 done
11280fi
1c710c3c 11281
e8b05380
PB
11282if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11283 set dummy dlltool
11284 if test $build = $target ; then
11285 DLLTOOL_FOR_TARGET="$2"
11286 else
11287 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11288 fi
1c00b503
PB
11289else
11290 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
e8b05380
PB
11291fi
11292
d1f8db0c
PB
11293else
11294 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
e8b05380
PB
11295fi
11296
4de997d1 11297
e8b05380
PB
11298
11299
11300if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11301 if test -n "$with_build_time_tools"; then
5213506e
RW
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11303$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11304 if test -x $with_build_time_tools/ld; then
11305 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11306 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
5213506e
RW
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11308$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
d1f8db0c 11309 else
5213506e
RW
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311$as_echo "no" >&6; }
d1f8db0c 11312 fi
e8b05380
PB
11313 elif test $build != $host && test $have_gcc_for_target = yes; then
11314 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
1c00b503
PB
11315 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11316 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2693c0b0 11317 fi
e8b05380 11318fi
3e19841a 11319if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11320 # Extract the first word of "ld", so it can be a program name with args.
11321set dummy ld; ac_word=$2
5213506e
RW
11322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11323$as_echo_n "checking for $ac_word... " >&6; }
11324if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11325 $as_echo_n "(cached) " >&6
4de997d1 11326else
1c710c3c
DJ
11327 case $LD_FOR_TARGET in
11328 [\\/]* | ?:[\\/]*)
e8b05380
PB
11329 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11330 ;;
e8b05380 11331 *)
1c710c3c
DJ
11332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11333for as_dir in $gcc_cv_tool_dirs
11334do
11335 IFS=$as_save_IFS
11336 test -z "$as_dir" && as_dir=.
5213506e
RW
11337 for ac_exec_ext in '' $ac_executable_extensions; do
11338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11339 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11341 break 2
11342 fi
11343done
5213506e
RW
11344 done
11345IFS=$as_save_IFS
1c710c3c 11346
e8b05380
PB
11347 ;;
11348esac
4de997d1 11349fi
1c710c3c 11350LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380 11351if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11353$as_echo "$LD_FOR_TARGET" >&6; }
4de997d1 11354else
5213506e
RW
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356$as_echo "no" >&6; }
4de997d1 11357fi
2693c0b0 11358
5213506e 11359
e8b05380
PB
11360fi
11361if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
278a7a38
AO
11362
11363
11364if test -n "$LD_FOR_TARGET"; then
11365 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11366elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11367 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11368fi
11369
11370if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11371 for ncn_progname in ld; do
11372 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11373set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375$as_echo_n "checking for $ac_word... " >&6; }
11376if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11377 $as_echo_n "(cached) " >&6
278a7a38
AO
11378else
11379 if test -n "$LD_FOR_TARGET"; then
11380 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11381else
11382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383for as_dir in $PATH
11384do
11385 IFS=$as_save_IFS
11386 test -z "$as_dir" && as_dir=.
5213506e
RW
11387 for ac_exec_ext in '' $ac_executable_extensions; do
11388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11389 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11391 break 2
11392 fi
11393done
5213506e
RW
11394 done
11395IFS=$as_save_IFS
278a7a38
AO
11396
11397fi
11398fi
11399LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11400if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11402$as_echo "$LD_FOR_TARGET" >&6; }
278a7a38 11403else
5213506e
RW
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405$as_echo "no" >&6; }
278a7a38
AO
11406fi
11407
5213506e 11408
278a7a38
AO
11409 done
11410fi
11411
11412if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11413 for ncn_progname in ld; do
5213506e
RW
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11415$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11416 if test -x $with_build_time_tools/${ncn_progname}; then
11417 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11419$as_echo "yes" >&6; }
e8b05380
PB
11420 break
11421 else
5213506e
RW
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423$as_echo "no" >&6; }
e8b05380
PB
11424 fi
11425 done
ca9f4b81
AO
11426fi
11427
e8b05380
PB
11428if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11429 for ncn_progname in ld; do
11430 if test -n "$ncn_target_tool_prefix"; then
11431 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11432set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11434$as_echo_n "checking for $ac_word... " >&6; }
11435if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11436 $as_echo_n "(cached) " >&6
ca9f4b81 11437else
4de997d1
PB
11438 if test -n "$LD_FOR_TARGET"; then
11439 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11440else
1c710c3c
DJ
11441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442for as_dir in $PATH
11443do
11444 IFS=$as_save_IFS
11445 test -z "$as_dir" && as_dir=.
5213506e
RW
11446 for ac_exec_ext in '' $ac_executable_extensions; do
11447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11448 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11450 break 2
11451 fi
11452done
5213506e
RW
11453 done
11454IFS=$as_save_IFS
1c710c3c 11455
ca9f4b81
AO
11456fi
11457fi
1c710c3c 11458LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
4de997d1 11459if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11461$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11462else
5213506e
RW
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11464$as_echo "no" >&6; }
ca9f4b81
AO
11465fi
11466
5213506e 11467
e8b05380
PB
11468 fi
11469 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11470 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11471set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11473$as_echo_n "checking for $ac_word... " >&6; }
11474if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11475 $as_echo_n "(cached) " >&6
ca9f4b81 11476else
2693c0b0
PB
11477 if test -n "$LD_FOR_TARGET"; then
11478 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
ca9f4b81 11479else
1c710c3c
DJ
11480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11481for as_dir in $PATH
11482do
11483 IFS=$as_save_IFS
11484 test -z "$as_dir" && as_dir=.
5213506e
RW
11485 for ac_exec_ext in '' $ac_executable_extensions; do
11486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11487 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
5213506e 11488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11489 break 2
11490 fi
11491done
5213506e
RW
11492 done
11493IFS=$as_save_IFS
1c710c3c 11494
ca9f4b81
AO
11495fi
11496fi
1c710c3c 11497LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2693c0b0 11498if test -n "$LD_FOR_TARGET"; then
5213506e
RW
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11500$as_echo "$LD_FOR_TARGET" >&6; }
ca9f4b81 11501else
5213506e
RW
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11503$as_echo "no" >&6; }
ca9f4b81 11504fi
1c710c3c 11505
5213506e 11506
e8b05380
PB
11507 fi
11508 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11509 done
11510fi
1c710c3c 11511
2693c0b0
PB
11512if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11513 set dummy ld
11514 if test $build = $target ; then
11515 LD_FOR_TARGET="$2"
ca9f4b81 11516 else
2693c0b0 11517 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11518 fi
1c00b503
PB
11519else
11520 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
ca9f4b81
AO
11521fi
11522
d1f8db0c
PB
11523else
11524 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
e8b05380
PB
11525fi
11526
11527
11528
11529
11530if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11531 if test -n "$with_build_time_tools"; then
5213506e
RW
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11533$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11534 if test -x $with_build_time_tools/lipo; then
11535 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11536 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
5213506e
RW
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11538$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
d1f8db0c 11539 else
5213506e
RW
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541$as_echo "no" >&6; }
d1f8db0c 11542 fi
e8b05380
PB
11543 elif test $build != $host && test $have_gcc_for_target = yes; then
11544 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
1c00b503
PB
11545 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11546 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
e8b05380
PB
11547 fi
11548fi
278a7a38
AO
11549if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11550 # Extract the first word of "lipo", so it can be a program name with args.
11551set dummy lipo; ac_word=$2
5213506e
RW
11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553$as_echo_n "checking for $ac_word... " >&6; }
11554if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11555 $as_echo_n "(cached) " >&6
278a7a38
AO
11556else
11557 case $LIPO_FOR_TARGET in
11558 [\\/]* | ?:[\\/]*)
11559 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11560 ;;
11561 *)
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563for as_dir in $gcc_cv_tool_dirs
11564do
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
5213506e
RW
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11569 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11571 break 2
11572 fi
11573done
5213506e
RW
11574 done
11575IFS=$as_save_IFS
278a7a38
AO
11576
11577 ;;
11578esac
11579fi
11580LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
278a7a38 11581if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11583$as_echo "$LIPO_FOR_TARGET" >&6; }
278a7a38 11584else
5213506e
RW
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586$as_echo "no" >&6; }
278a7a38
AO
11587fi
11588
5213506e 11589
278a7a38
AO
11590fi
11591if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11592
11593
11594if test -n "$LIPO_FOR_TARGET"; then
11595 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11596elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11597 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11598fi
11599
11600if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11601 for ncn_progname in lipo; do
11602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11603set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11605$as_echo_n "checking for $ac_word... " >&6; }
11606if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
e8b05380 11608else
278a7a38
AO
11609 if test -n "$LIPO_FOR_TARGET"; then
11610 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11611else
11612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613for as_dir in $PATH
1c710c3c
DJ
11614do
11615 IFS=$as_save_IFS
11616 test -z "$as_dir" && as_dir=.
5213506e
RW
11617 for ac_exec_ext in '' $ac_executable_extensions; do
11618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11619 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11621 break 2
11622 fi
11623done
5213506e
RW
11624 done
11625IFS=$as_save_IFS
1c710c3c 11626
e8b05380 11627fi
278a7a38
AO
11628fi
11629LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
e8b05380 11630if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11632$as_echo "$LIPO_FOR_TARGET" >&6; }
e8b05380 11633else
5213506e
RW
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635$as_echo "no" >&6; }
e8b05380
PB
11636fi
11637
5213506e 11638
278a7a38 11639 done
e8b05380 11640fi
278a7a38
AO
11641
11642if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11643 for ncn_progname in lipo; do
5213506e
RW
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11645$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11646 if test -x $with_build_time_tools/${ncn_progname}; then
11647 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11649$as_echo "yes" >&6; }
e8b05380
PB
11650 break
11651 else
5213506e
RW
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653$as_echo "no" >&6; }
e8b05380
PB
11654 fi
11655 done
11656fi
11657
11658if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11659 for ncn_progname in lipo; do
11660 if test -n "$ncn_target_tool_prefix"; then
11661 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 11662set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664$as_echo_n "checking for $ac_word... " >&6; }
11665if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11666 $as_echo_n "(cached) " >&6
040b1c5a
GK
11667else
11668 if test -n "$LIPO_FOR_TARGET"; then
11669 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11670else
1c710c3c
DJ
11671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672for as_dir in $PATH
11673do
11674 IFS=$as_save_IFS
11675 test -z "$as_dir" && as_dir=.
5213506e
RW
11676 for ac_exec_ext in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11678 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11680 break 2
11681 fi
11682done
5213506e
RW
11683 done
11684IFS=$as_save_IFS
1c710c3c 11685
040b1c5a
GK
11686fi
11687fi
1c710c3c 11688LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11689if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11691$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11692else
5213506e
RW
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694$as_echo "no" >&6; }
040b1c5a
GK
11695fi
11696
5213506e 11697
e8b05380
PB
11698 fi
11699 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11700 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 11701set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11703$as_echo_n "checking for $ac_word... " >&6; }
11704if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11705 $as_echo_n "(cached) " >&6
040b1c5a
GK
11706else
11707 if test -n "$LIPO_FOR_TARGET"; then
72a7ab82
AP
11708 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11709else
1c710c3c
DJ
11710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11711for as_dir in $PATH
11712do
11713 IFS=$as_save_IFS
11714 test -z "$as_dir" && as_dir=.
5213506e
RW
11715 for ac_exec_ext in '' $ac_executable_extensions; do
11716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11717 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
5213506e 11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11719 break 2
11720 fi
11721done
5213506e
RW
11722 done
11723IFS=$as_save_IFS
1c710c3c 11724
040b1c5a
GK
11725fi
11726fi
1c710c3c 11727LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
040b1c5a 11728if test -n "$LIPO_FOR_TARGET"; then
5213506e
RW
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11730$as_echo "$LIPO_FOR_TARGET" >&6; }
040b1c5a 11731else
5213506e
RW
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11733$as_echo "no" >&6; }
040b1c5a 11734fi
1c710c3c 11735
5213506e 11736
e8b05380
PB
11737 fi
11738 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11739 done
11740fi
1c710c3c 11741
040b1c5a
GK
11742if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11743 set dummy lipo
11744 if test $build = $target ; then
11745 LIPO_FOR_TARGET="$2"
11746 else
11747 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11748 fi
1c00b503
PB
11749else
11750 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
040b1c5a
GK
11751fi
11752
d1f8db0c
PB
11753else
11754 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
e8b05380
PB
11755fi
11756
11757
11758
11759
11760if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11761 if test -n "$with_build_time_tools"; then
5213506e
RW
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11763$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11764 if test -x $with_build_time_tools/nm; then
11765 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11766 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
5213506e
RW
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11768$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
d1f8db0c 11769 else
5213506e
RW
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771$as_echo "no" >&6; }
d1f8db0c 11772 fi
e8b05380
PB
11773 elif test $build != $host && test $have_gcc_for_target = yes; then
11774 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
1c00b503
PB
11775 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11776 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
e8b05380
PB
11777 fi
11778fi
3e19841a 11779if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
11780 # Extract the first word of "nm", so it can be a program name with args.
11781set dummy nm; ac_word=$2
5213506e
RW
11782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11783$as_echo_n "checking for $ac_word... " >&6; }
11784if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
e8b05380 11786else
1c710c3c
DJ
11787 case $NM_FOR_TARGET in
11788 [\\/]* | ?:[\\/]*)
e8b05380
PB
11789 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11790 ;;
e8b05380 11791 *)
1c710c3c
DJ
11792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11793for as_dir in $gcc_cv_tool_dirs
11794do
11795 IFS=$as_save_IFS
11796 test -z "$as_dir" && as_dir=.
5213506e
RW
11797 for ac_exec_ext in '' $ac_executable_extensions; do
11798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11799 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 11800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11801 break 2
11802 fi
11803done
5213506e
RW
11804 done
11805IFS=$as_save_IFS
1c710c3c 11806
e8b05380
PB
11807 ;;
11808esac
11809fi
1c710c3c 11810NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380 11811if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11813$as_echo "$NM_FOR_TARGET" >&6; }
e8b05380 11814else
5213506e
RW
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816$as_echo "no" >&6; }
e8b05380
PB
11817fi
11818
5213506e 11819
e8b05380
PB
11820fi
11821if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
278a7a38
AO
11822
11823
11824if test -n "$NM_FOR_TARGET"; then
11825 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11826elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11827 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11828fi
11829
11830if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11831 for ncn_progname in nm; do
11832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11833set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835$as_echo_n "checking for $ac_word... " >&6; }
11836if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11837 $as_echo_n "(cached) " >&6
278a7a38
AO
11838else
11839 if test -n "$NM_FOR_TARGET"; then
11840 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11841else
11842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843for as_dir in $PATH
11844do
11845 IFS=$as_save_IFS
11846 test -z "$as_dir" && as_dir=.
5213506e
RW
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 11849 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
11851 break 2
11852 fi
11853done
5213506e
RW
11854 done
11855IFS=$as_save_IFS
278a7a38
AO
11856
11857fi
11858fi
11859NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11860if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11862$as_echo "$NM_FOR_TARGET" >&6; }
278a7a38 11863else
5213506e
RW
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865$as_echo "no" >&6; }
278a7a38
AO
11866fi
11867
5213506e 11868
278a7a38
AO
11869 done
11870fi
11871
11872if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 11873 for ncn_progname in nm; do
5213506e
RW
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11875$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11876 if test -x $with_build_time_tools/${ncn_progname}; then
11877 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11879$as_echo "yes" >&6; }
e8b05380
PB
11880 break
11881 else
5213506e
RW
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11883$as_echo "no" >&6; }
e8b05380
PB
11884 fi
11885 done
11886fi
11887
11888if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11889 for ncn_progname in nm; do
11890 if test -n "$ncn_target_tool_prefix"; then
11891 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 11892set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
11893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11894$as_echo_n "checking for $ac_word... " >&6; }
11895if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
ca9f4b81 11897else
4de997d1
PB
11898 if test -n "$NM_FOR_TARGET"; then
11899 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11900else
1c710c3c
DJ
11901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11902for as_dir in $PATH
11903do
11904 IFS=$as_save_IFS
11905 test -z "$as_dir" && as_dir=.
5213506e
RW
11906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11908 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 11909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11910 break 2
11911 fi
11912done
5213506e
RW
11913 done
11914IFS=$as_save_IFS
1c710c3c 11915
ca9f4b81
AO
11916fi
11917fi
1c710c3c 11918NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
4de997d1 11919if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11921$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11922else
5213506e
RW
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924$as_echo "no" >&6; }
ca9f4b81
AO
11925fi
11926
5213506e 11927
e8b05380
PB
11928 fi
11929 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 11931set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11933$as_echo_n "checking for $ac_word... " >&6; }
11934if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11935 $as_echo_n "(cached) " >&6
ca9f4b81 11936else
2693c0b0
PB
11937 if test -n "$NM_FOR_TARGET"; then
11938 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
ca9f4b81 11939else
1c710c3c
DJ
11940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11941for as_dir in $PATH
11942do
11943 IFS=$as_save_IFS
11944 test -z "$as_dir" && as_dir=.
5213506e
RW
11945 for ac_exec_ext in '' $ac_executable_extensions; do
11946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 11947 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
5213506e 11948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
11949 break 2
11950 fi
11951done
5213506e
RW
11952 done
11953IFS=$as_save_IFS
1c710c3c 11954
ca9f4b81
AO
11955fi
11956fi
1c710c3c 11957NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
2693c0b0 11958if test -n "$NM_FOR_TARGET"; then
5213506e
RW
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11960$as_echo "$NM_FOR_TARGET" >&6; }
ca9f4b81 11961else
5213506e
RW
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11963$as_echo "no" >&6; }
ca9f4b81 11964fi
1c710c3c 11965
5213506e 11966
e8b05380
PB
11967 fi
11968 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11969 done
11970fi
1c710c3c 11971
2693c0b0
PB
11972if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11973 set dummy nm
11974 if test $build = $target ; then
11975 NM_FOR_TARGET="$2"
ca9f4b81 11976 else
2693c0b0 11977 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 11978 fi
1c00b503
PB
11979else
11980 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
ca9f4b81
AO
11981fi
11982
d1f8db0c
PB
11983else
11984 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
e8b05380
PB
11985fi
11986
11987
11988
11989
11990if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11991 if test -n "$with_build_time_tools"; then
5213506e
RW
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11993$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
d1f8db0c
PB
11994 if test -x $with_build_time_tools/objdump; then
11995 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11996 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
5213506e
RW
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11998$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
d1f8db0c 11999 else
5213506e
RW
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12001$as_echo "no" >&6; }
d1f8db0c 12002 fi
e8b05380
PB
12003 elif test $build != $host && test $have_gcc_for_target = yes; then
12004 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
1c00b503
PB
12005 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12006 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
e8b05380
PB
12007 fi
12008fi
3e19841a 12009if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12010 # Extract the first word of "objdump", so it can be a program name with args.
12011set dummy objdump; ac_word=$2
5213506e
RW
12012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12013$as_echo_n "checking for $ac_word... " >&6; }
12014if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12015 $as_echo_n "(cached) " >&6
e8b05380 12016else
1c710c3c
DJ
12017 case $OBJDUMP_FOR_TARGET in
12018 [\\/]* | ?:[\\/]*)
e8b05380
PB
12019 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12020 ;;
e8b05380 12021 *)
1c710c3c
DJ
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023for as_dir in $gcc_cv_tool_dirs
12024do
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
5213506e
RW
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12029 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12031 break 2
12032 fi
12033done
5213506e
RW
12034 done
12035IFS=$as_save_IFS
1c710c3c 12036
e8b05380
PB
12037 ;;
12038esac
12039fi
1c710c3c 12040OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380 12041if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12043$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
e8b05380 12044else
5213506e
RW
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046$as_echo "no" >&6; }
e8b05380
PB
12047fi
12048
5213506e 12049
e8b05380
PB
12050fi
12051if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
278a7a38
AO
12052
12053
12054if test -n "$OBJDUMP_FOR_TARGET"; then
12055 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12056elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12057 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12058fi
12059
12060if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12061 for ncn_progname in objdump; do
12062 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12063set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065$as_echo_n "checking for $ac_word... " >&6; }
12066if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
278a7a38
AO
12068else
12069 if test -n "$OBJDUMP_FOR_TARGET"; then
12070 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12071else
12072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073for as_dir in $PATH
12074do
12075 IFS=$as_save_IFS
12076 test -z "$as_dir" && as_dir=.
5213506e
RW
12077 for ac_exec_ext in '' $ac_executable_extensions; do
12078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12079 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12081 break 2
12082 fi
12083done
5213506e
RW
12084 done
12085IFS=$as_save_IFS
278a7a38
AO
12086
12087fi
12088fi
12089OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12090if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12092$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
278a7a38 12093else
5213506e
RW
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12095$as_echo "no" >&6; }
278a7a38
AO
12096fi
12097
5213506e 12098
278a7a38
AO
12099 done
12100fi
12101
12102if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12103 for ncn_progname in objdump; do
5213506e
RW
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12105$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12106 if test -x $with_build_time_tools/${ncn_progname}; then
12107 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12109$as_echo "yes" >&6; }
e8b05380
PB
12110 break
12111 else
5213506e
RW
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113$as_echo "no" >&6; }
e8b05380
PB
12114 fi
12115 done
12116fi
12117
12118if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12119 for ncn_progname in objdump; do
12120 if test -n "$ncn_target_tool_prefix"; then
12121 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12122set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12124$as_echo_n "checking for $ac_word... " >&6; }
12125if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12126 $as_echo_n "(cached) " >&6
d739199a
DJ
12127else
12128 if test -n "$OBJDUMP_FOR_TARGET"; then
12129 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12130else
1c710c3c
DJ
12131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132for as_dir in $PATH
12133do
12134 IFS=$as_save_IFS
12135 test -z "$as_dir" && as_dir=.
5213506e
RW
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12138 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12140 break 2
12141 fi
12142done
5213506e
RW
12143 done
12144IFS=$as_save_IFS
1c710c3c 12145
d739199a
DJ
12146fi
12147fi
1c710c3c 12148OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12149if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12151$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12152else
5213506e
RW
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12154$as_echo "no" >&6; }
d739199a
DJ
12155fi
12156
5213506e 12157
e8b05380
PB
12158 fi
12159 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
d739199a 12161set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12163$as_echo_n "checking for $ac_word... " >&6; }
12164if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12165 $as_echo_n "(cached) " >&6
d739199a
DJ
12166else
12167 if test -n "$OBJDUMP_FOR_TARGET"; then
12168 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12169else
1c710c3c
DJ
12170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171for as_dir in $PATH
12172do
12173 IFS=$as_save_IFS
12174 test -z "$as_dir" && as_dir=.
5213506e
RW
12175 for ac_exec_ext in '' $ac_executable_extensions; do
12176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12177 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
5213506e 12178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12179 break 2
12180 fi
12181done
5213506e
RW
12182 done
12183IFS=$as_save_IFS
1c710c3c 12184
d739199a
DJ
12185fi
12186fi
1c710c3c 12187OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
d739199a 12188if test -n "$OBJDUMP_FOR_TARGET"; then
5213506e
RW
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12190$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
d739199a 12191else
5213506e
RW
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12193$as_echo "no" >&6; }
d739199a 12194fi
1c710c3c 12195
5213506e 12196
e8b05380
PB
12197 fi
12198 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12199 done
12200fi
1c710c3c 12201
d739199a
DJ
12202if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12203 set dummy objdump
12204 if test $build = $target ; then
12205 OBJDUMP_FOR_TARGET="$2"
12206 else
12207 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12208 fi
1c00b503
PB
12209else
12210 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
d739199a
DJ
12211fi
12212
d1f8db0c
PB
12213else
12214 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
e8b05380
PB
12215fi
12216
12217
12218
12219
12220if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12221 if test -n "$with_build_time_tools"; then
5213506e
RW
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12223$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12224 if test -x $with_build_time_tools/ranlib; then
12225 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12226 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
5213506e
RW
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12228$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
d1f8db0c 12229 else
5213506e
RW
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12231$as_echo "no" >&6; }
d1f8db0c 12232 fi
e8b05380
PB
12233 elif test $build != $host && test $have_gcc_for_target = yes; then
12234 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
1c00b503
PB
12235 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12236 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
e8b05380
PB
12237 fi
12238fi
3e19841a 12239if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12240 # Extract the first word of "ranlib", so it can be a program name with args.
12241set dummy ranlib; ac_word=$2
5213506e
RW
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243$as_echo_n "checking for $ac_word... " >&6; }
12244if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12245 $as_echo_n "(cached) " >&6
e8b05380 12246else
1c710c3c
DJ
12247 case $RANLIB_FOR_TARGET in
12248 [\\/]* | ?:[\\/]*)
e8b05380
PB
12249 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12250 ;;
e8b05380 12251 *)
1c710c3c
DJ
12252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12253for as_dir in $gcc_cv_tool_dirs
12254do
12255 IFS=$as_save_IFS
12256 test -z "$as_dir" && as_dir=.
5213506e
RW
12257 for ac_exec_ext in '' $ac_executable_extensions; do
12258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12259 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12261 break 2
12262 fi
12263done
5213506e
RW
12264 done
12265IFS=$as_save_IFS
1c710c3c 12266
e8b05380
PB
12267 ;;
12268esac
12269fi
1c710c3c 12270RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
e8b05380 12271if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12273$as_echo "$RANLIB_FOR_TARGET" >&6; }
e8b05380 12274else
5213506e
RW
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12276$as_echo "no" >&6; }
e8b05380
PB
12277fi
12278
5213506e 12279
e8b05380
PB
12280fi
12281if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
278a7a38
AO
12282
12283
12284if test -n "$RANLIB_FOR_TARGET"; then
12285 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12286elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12287 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12288fi
12289
12290if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12291 for ncn_progname in ranlib; do
12292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12293set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12295$as_echo_n "checking for $ac_word... " >&6; }
12296if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12297 $as_echo_n "(cached) " >&6
278a7a38
AO
12298else
12299 if test -n "$RANLIB_FOR_TARGET"; then
12300 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12301else
12302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303for as_dir in $PATH
12304do
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
5213506e
RW
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12309 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12311 break 2
12312 fi
12313done
5213506e
RW
12314 done
12315IFS=$as_save_IFS
278a7a38
AO
12316
12317fi
12318fi
12319RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12320if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12322$as_echo "$RANLIB_FOR_TARGET" >&6; }
278a7a38 12323else
5213506e
RW
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12325$as_echo "no" >&6; }
278a7a38
AO
12326fi
12327
5213506e 12328
278a7a38
AO
12329 done
12330fi
12331
12332if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12333 for ncn_progname in ranlib; do
5213506e
RW
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12335$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12336 if test -x $with_build_time_tools/${ncn_progname}; then
12337 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12339$as_echo "yes" >&6; }
e8b05380
PB
12340 break
12341 else
5213506e
RW
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12343$as_echo "no" >&6; }
e8b05380
PB
12344 fi
12345 done
12346fi
12347
12348if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12349 for ncn_progname in ranlib; do
12350 if test -n "$ncn_target_tool_prefix"; then
12351 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
d739199a 12352set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354$as_echo_n "checking for $ac_word... " >&6; }
12355if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
ca9f4b81 12357else
4de997d1
PB
12358 if test -n "$RANLIB_FOR_TARGET"; then
12359 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12360else
1c710c3c
DJ
12361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362for as_dir in $PATH
12363do
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
5213506e
RW
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12368 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12370 break 2
12371 fi
12372done
5213506e
RW
12373 done
12374IFS=$as_save_IFS
1c710c3c 12375
ca9f4b81
AO
12376fi
12377fi
1c710c3c 12378RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
4de997d1 12379if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12381$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12382else
5213506e
RW
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384$as_echo "no" >&6; }
ca9f4b81
AO
12385fi
12386
5213506e 12387
e8b05380
PB
12388 fi
12389 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12391set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12393$as_echo_n "checking for $ac_word... " >&6; }
12394if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12395 $as_echo_n "(cached) " >&6
ca9f4b81 12396else
2693c0b0
PB
12397 if test -n "$RANLIB_FOR_TARGET"; then
12398 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
ca9f4b81 12399else
1c710c3c
DJ
12400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401for as_dir in $PATH
12402do
12403 IFS=$as_save_IFS
12404 test -z "$as_dir" && as_dir=.
5213506e
RW
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12407 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
5213506e 12408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12409 break 2
12410 fi
12411done
5213506e
RW
12412 done
12413IFS=$as_save_IFS
1c710c3c 12414
ca9f4b81
AO
12415fi
12416fi
1c710c3c 12417RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
2693c0b0 12418if test -n "$RANLIB_FOR_TARGET"; then
5213506e
RW
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12420$as_echo "$RANLIB_FOR_TARGET" >&6; }
ca9f4b81 12421else
5213506e
RW
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12423$as_echo "no" >&6; }
ca9f4b81 12424fi
1c710c3c 12425
5213506e 12426
e8b05380
PB
12427 fi
12428 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12429 done
12430fi
1c710c3c 12431
e8b05380
PB
12432if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12433 set dummy ranlib
12434 if test $build = $target ; then
12435 RANLIB_FOR_TARGET="$2"
12436 else
12437 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12438 fi
1c00b503
PB
12439else
12440 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
e8b05380 12441fi
2693c0b0 12442
d1f8db0c
PB
12443else
12444 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
ca9f4b81
AO
12445fi
12446
e8b05380
PB
12447
12448
12449
12450if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12451 if test -n "$with_build_time_tools"; then
5213506e
RW
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12453$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12454 if test -x $with_build_time_tools/strip; then
12455 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12456 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
5213506e
RW
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12458$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
d1f8db0c 12459 else
5213506e
RW
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12461$as_echo "no" >&6; }
d1f8db0c 12462 fi
e8b05380
PB
12463 elif test $build != $host && test $have_gcc_for_target = yes; then
12464 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
1c00b503
PB
12465 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12466 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
e8b05380
PB
12467 fi
12468fi
3e19841a 12469if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12470 # Extract the first word of "strip", so it can be a program name with args.
12471set dummy strip; ac_word=$2
5213506e
RW
12472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473$as_echo_n "checking for $ac_word... " >&6; }
12474if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12475 $as_echo_n "(cached) " >&6
e8b05380 12476else
1c710c3c
DJ
12477 case $STRIP_FOR_TARGET in
12478 [\\/]* | ?:[\\/]*)
e8b05380
PB
12479 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12480 ;;
e8b05380 12481 *)
1c710c3c
DJ
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483for as_dir in $gcc_cv_tool_dirs
12484do
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
5213506e
RW
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12489 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12491 break 2
12492 fi
12493done
5213506e
RW
12494 done
12495IFS=$as_save_IFS
1c710c3c 12496
e8b05380
PB
12497 ;;
12498esac
12499fi
1c710c3c 12500STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380 12501if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12503$as_echo "$STRIP_FOR_TARGET" >&6; }
e8b05380 12504else
5213506e
RW
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506$as_echo "no" >&6; }
e8b05380
PB
12507fi
12508
5213506e 12509
e8b05380
PB
12510fi
12511if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
278a7a38
AO
12512
12513
12514if test -n "$STRIP_FOR_TARGET"; then
12515 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12516elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12517 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12518fi
12519
12520if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12521 for ncn_progname in strip; do
12522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12523set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12525$as_echo_n "checking for $ac_word... " >&6; }
12526if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12527 $as_echo_n "(cached) " >&6
278a7a38
AO
12528else
12529 if test -n "$STRIP_FOR_TARGET"; then
12530 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12531else
12532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533for as_dir in $PATH
12534do
12535 IFS=$as_save_IFS
12536 test -z "$as_dir" && as_dir=.
5213506e
RW
12537 for ac_exec_ext in '' $ac_executable_extensions; do
12538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12539 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12541 break 2
12542 fi
12543done
5213506e
RW
12544 done
12545IFS=$as_save_IFS
278a7a38
AO
12546
12547fi
12548fi
12549STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12550if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12552$as_echo "$STRIP_FOR_TARGET" >&6; }
278a7a38 12553else
5213506e
RW
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12555$as_echo "no" >&6; }
278a7a38
AO
12556fi
12557
5213506e 12558
278a7a38
AO
12559 done
12560fi
12561
12562if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12563 for ncn_progname in strip; do
5213506e
RW
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12565$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12566 if test -x $with_build_time_tools/${ncn_progname}; then
12567 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12569$as_echo "yes" >&6; }
e8b05380
PB
12570 break
12571 else
5213506e
RW
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12573$as_echo "no" >&6; }
e8b05380
PB
12574 fi
12575 done
12576fi
12577
12578if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12579 for ncn_progname in strip; do
12580 if test -n "$ncn_target_tool_prefix"; then
12581 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
040b1c5a 12582set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12584$as_echo_n "checking for $ac_word... " >&6; }
12585if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12586 $as_echo_n "(cached) " >&6
af71363e
AS
12587else
12588 if test -n "$STRIP_FOR_TARGET"; then
1c710c3c
DJ
12589 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12590else
12591as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12592for as_dir in $PATH
12593do
12594 IFS=$as_save_IFS
12595 test -z "$as_dir" && as_dir=.
5213506e
RW
12596 for ac_exec_ext in '' $ac_executable_extensions; do
12597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12598 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12600 break 2
12601 fi
12602done
5213506e
RW
12603 done
12604IFS=$as_save_IFS
1c710c3c 12605
040b1c5a
GK
12606fi
12607fi
1c710c3c 12608STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12609if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12611$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12612else
5213506e
RW
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12614$as_echo "no" >&6; }
040b1c5a
GK
12615fi
12616
5213506e 12617
e8b05380
PB
12618 fi
12619 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
040b1c5a 12621set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12623$as_echo_n "checking for $ac_word... " >&6; }
12624if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12625 $as_echo_n "(cached) " >&6
040b1c5a
GK
12626else
12627 if test -n "$STRIP_FOR_TARGET"; then
12628 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12629else
1c710c3c
DJ
12630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12631for as_dir in $PATH
12632do
12633 IFS=$as_save_IFS
12634 test -z "$as_dir" && as_dir=.
5213506e
RW
12635 for ac_exec_ext in '' $ac_executable_extensions; do
12636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12637 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
5213506e 12638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12639 break 2
12640 fi
12641done
5213506e
RW
12642 done
12643IFS=$as_save_IFS
1c710c3c 12644
040b1c5a
GK
12645fi
12646fi
1c710c3c 12647STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
040b1c5a 12648if test -n "$STRIP_FOR_TARGET"; then
5213506e
RW
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12650$as_echo "$STRIP_FOR_TARGET" >&6; }
040b1c5a 12651else
5213506e
RW
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12653$as_echo "no" >&6; }
040b1c5a 12654fi
1c710c3c 12655
5213506e 12656
e8b05380
PB
12657 fi
12658 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12659 done
12660fi
1c710c3c 12661
040b1c5a
GK
12662if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12663 set dummy strip
12664 if test $build = $target ; then
12665 STRIP_FOR_TARGET="$2"
12666 else
12667 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12668 fi
1c00b503
PB
12669else
12670 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
040b1c5a
GK
12671fi
12672
d1f8db0c
PB
12673else
12674 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
e8b05380
PB
12675fi
12676
12677
12678
12679
12680if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12681 if test -n "$with_build_time_tools"; then
5213506e
RW
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12683$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12684 if test -x $with_build_time_tools/windres; then
12685 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12686 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
5213506e
RW
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12688$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
d1f8db0c 12689 else
5213506e
RW
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12691$as_echo "no" >&6; }
d1f8db0c 12692 fi
e8b05380
PB
12693 elif test $build != $host && test $have_gcc_for_target = yes; then
12694 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
1c00b503
PB
12695 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12696 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
e8b05380
PB
12697 fi
12698fi
3e19841a 12699if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
e8b05380
PB
12700 # Extract the first word of "windres", so it can be a program name with args.
12701set dummy windres; ac_word=$2
5213506e
RW
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12703$as_echo_n "checking for $ac_word... " >&6; }
12704if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12705 $as_echo_n "(cached) " >&6
e8b05380 12706else
1c710c3c
DJ
12707 case $WINDRES_FOR_TARGET in
12708 [\\/]* | ?:[\\/]*)
e8b05380
PB
12709 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12710 ;;
e8b05380 12711 *)
1c710c3c
DJ
12712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12713for as_dir in $gcc_cv_tool_dirs
12714do
12715 IFS=$as_save_IFS
12716 test -z "$as_dir" && as_dir=.
5213506e
RW
12717 for ac_exec_ext in '' $ac_executable_extensions; do
12718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12719 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12721 break 2
12722 fi
12723done
5213506e
RW
12724 done
12725IFS=$as_save_IFS
1c710c3c 12726
e8b05380
PB
12727 ;;
12728esac
12729fi
1c710c3c 12730WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380 12731if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12733$as_echo "$WINDRES_FOR_TARGET" >&6; }
e8b05380 12734else
5213506e
RW
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736$as_echo "no" >&6; }
e8b05380
PB
12737fi
12738
5213506e 12739
e8b05380
PB
12740fi
12741if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
278a7a38
AO
12742
12743
12744if test -n "$WINDRES_FOR_TARGET"; then
12745 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12746elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12747 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12748fi
12749
12750if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12751 for ncn_progname in windres; do
12752 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12753set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755$as_echo_n "checking for $ac_word... " >&6; }
12756if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
278a7a38
AO
12758else
12759 if test -n "$WINDRES_FOR_TARGET"; then
12760 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12761else
12762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763for as_dir in $PATH
12764do
12765 IFS=$as_save_IFS
12766 test -z "$as_dir" && as_dir=.
5213506e
RW
12767 for ac_exec_ext in '' $ac_executable_extensions; do
12768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
278a7a38 12769 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
278a7a38
AO
12771 break 2
12772 fi
12773done
5213506e
RW
12774 done
12775IFS=$as_save_IFS
278a7a38
AO
12776
12777fi
12778fi
12779WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12780if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12782$as_echo "$WINDRES_FOR_TARGET" >&6; }
278a7a38 12783else
5213506e
RW
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785$as_echo "no" >&6; }
278a7a38
AO
12786fi
12787
5213506e 12788
278a7a38
AO
12789 done
12790fi
12791
12792if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
e8b05380 12793 for ncn_progname in windres; do
5213506e
RW
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12795$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
d1f8db0c
PB
12796 if test -x $with_build_time_tools/${ncn_progname}; then
12797 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12799$as_echo "yes" >&6; }
e8b05380
PB
12800 break
12801 else
5213506e
RW
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803$as_echo "no" >&6; }
e8b05380
PB
12804 fi
12805 done
12806fi
12807
12808if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12809 for ncn_progname in windres; do
12810 if test -n "$ncn_target_tool_prefix"; then
12811 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
2693c0b0 12812set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814$as_echo_n "checking for $ac_word... " >&6; }
12815if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12816 $as_echo_n "(cached) " >&6
ca9f4b81 12817else
4de997d1
PB
12818 if test -n "$WINDRES_FOR_TARGET"; then
12819 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12820else
1c710c3c
DJ
12821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822for as_dir in $PATH
12823do
12824 IFS=$as_save_IFS
12825 test -z "$as_dir" && as_dir=.
5213506e
RW
12826 for ac_exec_ext in '' $ac_executable_extensions; do
12827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12828 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12830 break 2
12831 fi
12832done
5213506e
RW
12833 done
12834IFS=$as_save_IFS
1c710c3c 12835
ca9f4b81
AO
12836fi
12837fi
1c710c3c 12838WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
4de997d1 12839if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12841$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12842else
5213506e
RW
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844$as_echo "no" >&6; }
ca9f4b81
AO
12845fi
12846
5213506e 12847
e8b05380
PB
12848 fi
12849 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12850 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
2693c0b0 12851set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12853$as_echo_n "checking for $ac_word... " >&6; }
12854if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12855 $as_echo_n "(cached) " >&6
ca9f4b81 12856else
2693c0b0
PB
12857 if test -n "$WINDRES_FOR_TARGET"; then
12858 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
ca9f4b81 12859else
1c710c3c
DJ
12860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861for as_dir in $PATH
12862do
12863 IFS=$as_save_IFS
12864 test -z "$as_dir" && as_dir=.
5213506e
RW
12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1c710c3c 12867 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
5213506e 12868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1c710c3c
DJ
12869 break 2
12870 fi
12871done
5213506e
RW
12872 done
12873IFS=$as_save_IFS
1c710c3c 12874
ca9f4b81
AO
12875fi
12876fi
1c710c3c 12877WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
2693c0b0 12878if test -n "$WINDRES_FOR_TARGET"; then
5213506e
RW
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12880$as_echo "$WINDRES_FOR_TARGET" >&6; }
ca9f4b81 12881else
5213506e
RW
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12883$as_echo "no" >&6; }
ca9f4b81 12884fi
1c710c3c 12885
5213506e 12886
e8b05380
PB
12887 fi
12888 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12889 done
12890fi
1c710c3c 12891
2693c0b0
PB
12892if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12893 set dummy windres
12894 if test $build = $target ; then
12895 WINDRES_FOR_TARGET="$2"
ca9f4b81 12896 else
2693c0b0 12897 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
ca9f4b81 12898 fi
1c00b503
PB
12899else
12900 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
ca9f4b81
AO
12901fi
12902
d1f8db0c
PB
12903else
12904 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
e8b05380
PB
12905fi
12906
4977bab6 12907
901119ae
KT
12908
12909
12910if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12911 if test -n "$with_build_time_tools"; then
5213506e
RW
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12913$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
901119ae
KT
12914 if test -x $with_build_time_tools/windmc; then
12915 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12916 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
5213506e
RW
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12918$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
901119ae 12919 else
5213506e
RW
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12921$as_echo "no" >&6; }
901119ae
KT
12922 fi
12923 elif test $build != $host && test $have_gcc_for_target = yes; then
12924 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
1c00b503
PB
12925 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12926 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
901119ae
KT
12927 fi
12928fi
12929if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12930 # Extract the first word of "windmc", so it can be a program name with args.
12931set dummy windmc; ac_word=$2
5213506e
RW
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12933$as_echo_n "checking for $ac_word... " >&6; }
12934if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12935 $as_echo_n "(cached) " >&6
901119ae
KT
12936else
12937 case $WINDMC_FOR_TARGET in
12938 [\\/]* | ?:[\\/]*)
12939 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12940 ;;
12941 *)
12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12943for as_dir in $gcc_cv_tool_dirs
12944do
12945 IFS=$as_save_IFS
12946 test -z "$as_dir" && as_dir=.
5213506e
RW
12947 for ac_exec_ext in '' $ac_executable_extensions; do
12948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12949 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
5213506e 12950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
12951 break 2
12952 fi
12953done
5213506e
RW
12954 done
12955IFS=$as_save_IFS
901119ae
KT
12956
12957 ;;
12958esac
12959fi
12960WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
901119ae 12961if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12963$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 12964else
5213506e
RW
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12966$as_echo "no" >&6; }
901119ae
KT
12967fi
12968
5213506e 12969
901119ae
KT
12970fi
12971if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12972
12973
12974if test -n "$WINDMC_FOR_TARGET"; then
12975 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12976elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12977 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12978fi
12979
12980if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12981 for ncn_progname in windmc; do
12982 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12983set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
12984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12985$as_echo_n "checking for $ac_word... " >&6; }
12986if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12987 $as_echo_n "(cached) " >&6
901119ae
KT
12988else
12989 if test -n "$WINDMC_FOR_TARGET"; then
12990 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12991else
12992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993for as_dir in $PATH
12994do
12995 IFS=$as_save_IFS
12996 test -z "$as_dir" && as_dir=.
5213506e
RW
12997 for ac_exec_ext in '' $ac_executable_extensions; do
12998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 12999 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13001 break 2
13002 fi
13003done
5213506e
RW
13004 done
13005IFS=$as_save_IFS
901119ae
KT
13006
13007fi
13008fi
13009WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13010if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13012$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13013else
5213506e
RW
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13015$as_echo "no" >&6; }
901119ae
KT
13016fi
13017
5213506e 13018
901119ae
KT
13019 done
13020fi
13021
13022if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13023 for ncn_progname in windmc; do
5213506e
RW
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13025$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
901119ae
KT
13026 if test -x $with_build_time_tools/${ncn_progname}; then
13027 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
5213506e
RW
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13029$as_echo "yes" >&6; }
901119ae
KT
13030 break
13031 else
5213506e
RW
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033$as_echo "no" >&6; }
901119ae
KT
13034 fi
13035 done
13036fi
13037
13038if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13039 for ncn_progname in windmc; do
13040 if test -n "$ncn_target_tool_prefix"; then
13041 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13042set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
5213506e
RW
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13044$as_echo_n "checking for $ac_word... " >&6; }
13045if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13046 $as_echo_n "(cached) " >&6
901119ae
KT
13047else
13048 if test -n "$WINDMC_FOR_TARGET"; then
13049 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13050else
13051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052for as_dir in $PATH
13053do
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
5213506e
RW
13056 for ac_exec_ext in '' $ac_executable_extensions; do
13057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13058 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
5213506e 13059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13060 break 2
13061 fi
13062done
5213506e
RW
13063 done
13064IFS=$as_save_IFS
901119ae
KT
13065
13066fi
13067fi
13068WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13069if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13071$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13072else
5213506e
RW
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074$as_echo "no" >&6; }
901119ae
KT
13075fi
13076
5213506e 13077
901119ae
KT
13078 fi
13079 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13080 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13081set dummy ${ncn_progname}; ac_word=$2
5213506e
RW
13082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13083$as_echo_n "checking for $ac_word... " >&6; }
13084if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13085 $as_echo_n "(cached) " >&6
901119ae
KT
13086else
13087 if test -n "$WINDMC_FOR_TARGET"; then
13088 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13089else
13090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13091for as_dir in $PATH
13092do
13093 IFS=$as_save_IFS
13094 test -z "$as_dir" && as_dir=.
5213506e
RW
13095 for ac_exec_ext in '' $ac_executable_extensions; do
13096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
901119ae 13097 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
5213506e 13098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
901119ae
KT
13099 break 2
13100 fi
13101done
5213506e
RW
13102 done
13103IFS=$as_save_IFS
901119ae
KT
13104
13105fi
13106fi
13107WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13108if test -n "$WINDMC_FOR_TARGET"; then
5213506e
RW
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13110$as_echo "$WINDMC_FOR_TARGET" >&6; }
901119ae 13111else
5213506e
RW
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13113$as_echo "no" >&6; }
901119ae
KT
13114fi
13115
5213506e 13116
901119ae
KT
13117 fi
13118 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13119 done
13120fi
13121
13122if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13123 set dummy windmc
13124 if test $build = $target ; then
13125 WINDMC_FOR_TARGET="$2"
13126 else
13127 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13128 fi
1c00b503
PB
13129else
13130 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
901119ae
KT
13131fi
13132
13133else
13134 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13135fi
13136
13137
2abefe3d
PB
13138RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13139
5213506e
RW
13140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13141$as_echo_n "checking where to find the target ar... " >&6; }
2abefe3d 13142if test "x${build}" != "x${host}" ; then
e8b05380
PB
13143 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13144 # We already found the complete path
172e41aa 13145 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13147$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13148 else
13149 # Canadian cross, just use what we found
5213506e
RW
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13151$as_echo "pre-installed" >&6; }
e8b05380 13152 fi
2abefe3d
PB
13153else
13154 ok=yes
13155 case " ${configdirs} " in
13156 *" binutils "*) ;;
13157 *) ok=no ;;
13158 esac
1c710c3c 13159
2abefe3d
PB
13160 if test $ok = yes; then
13161 # An in-tree tool is available and we can use it
13162 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
5213506e
RW
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13164$as_echo "just compiled" >&6; }
e8b05380
PB
13165 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13166 # We already found the complete path
172e41aa 13167 ac_dir=`dirname $AR_FOR_TARGET`
5213506e
RW
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13169$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13170 elif test "x$target" = "x$host"; then
13171 # We can use an host tool
13172 AR_FOR_TARGET='$(AR)'
5213506e
RW
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13174$as_echo "host tool" >&6; }
2abefe3d
PB
13175 else
13176 # We need a cross tool
5213506e
RW
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13178$as_echo "pre-installed" >&6; }
2abefe3d
PB
13179 fi
13180fi
0b0dc272 13181
5213506e
RW
13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13183$as_echo_n "checking where to find the target as... " >&6; }
2abefe3d 13184if test "x${build}" != "x${host}" ; then
e8b05380
PB
13185 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13186 # We already found the complete path
172e41aa 13187 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13189$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13190 else
13191 # Canadian cross, just use what we found
5213506e
RW
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13193$as_echo "pre-installed" >&6; }
e8b05380 13194 fi
2abefe3d
PB
13195else
13196 ok=yes
13197 case " ${configdirs} " in
13198 *" gas "*) ;;
13199 *) ok=no ;;
13200 esac
1c710c3c 13201
2abefe3d
PB
13202 if test $ok = yes; then
13203 # An in-tree tool is available and we can use it
13204 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
5213506e
RW
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13206$as_echo "just compiled" >&6; }
e8b05380
PB
13207 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13208 # We already found the complete path
172e41aa 13209 ac_dir=`dirname $AS_FOR_TARGET`
5213506e
RW
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13211$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13212 elif test "x$target" = "x$host"; then
13213 # We can use an host tool
13214 AS_FOR_TARGET='$(AS)'
5213506e
RW
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13216$as_echo "host tool" >&6; }
2abefe3d
PB
13217 else
13218 # We need a cross tool
5213506e
RW
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13220$as_echo "pre-installed" >&6; }
2abefe3d
PB
13221 fi
13222fi
0b0dc272 13223
5213506e
RW
13224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13225$as_echo_n "checking where to find the target cc... " >&6; }
2abefe3d 13226if test "x${build}" != "x${host}" ; then
e8b05380
PB
13227 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13228 # We already found the complete path
172e41aa 13229 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13231$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13232 else
13233 # Canadian cross, just use what we found
5213506e
RW
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13235$as_echo "pre-installed" >&6; }
e8b05380 13236 fi
2abefe3d
PB
13237else
13238 ok=yes
13239 case " ${configdirs} " in
13240 *" gcc "*) ;;
13241 *) ok=no ;;
13242 esac
1c710c3c 13243
2abefe3d
PB
13244 if test $ok = yes; then
13245 # An in-tree tool is available and we can use it
13246 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13248$as_echo "just compiled" >&6; }
e8b05380
PB
13249 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13250 # We already found the complete path
172e41aa 13251 ac_dir=`dirname $CC_FOR_TARGET`
5213506e
RW
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13253$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13254 elif test "x$target" = "x$host"; then
13255 # We can use an host tool
13256 CC_FOR_TARGET='$(CC)'
5213506e
RW
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13258$as_echo "host tool" >&6; }
2abefe3d
PB
13259 else
13260 # We need a cross tool
5213506e
RW
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13262$as_echo "pre-installed" >&6; }
2abefe3d
PB
13263 fi
13264fi
0b0dc272 13265
5213506e
RW
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13267$as_echo_n "checking where to find the target c++... " >&6; }
2abefe3d 13268if test "x${build}" != "x${host}" ; then
e8b05380
PB
13269 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13270 # We already found the complete path
172e41aa 13271 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13273$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13274 else
13275 # Canadian cross, just use what we found
5213506e
RW
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13277$as_echo "pre-installed" >&6; }
e8b05380 13278 fi
2abefe3d
PB
13279else
13280 ok=yes
13281 case " ${configdirs} " in
13282 *" gcc "*) ;;
13283 *) ok=no ;;
13284 esac
13285 case ,${enable_languages}, in
13286 *,c++,*) ;;
13287 *) ok=no ;;
13288 esac
13289 if test $ok = yes; then
13290 # An in-tree tool is available and we can use it
9aff220f 13291 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
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13293$as_echo "just compiled" >&6; }
e8b05380
PB
13294 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13295 # We already found the complete path
172e41aa 13296 ac_dir=`dirname $CXX_FOR_TARGET`
5213506e
RW
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13298$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13299 elif test "x$target" = "x$host"; then
13300 # We can use an host tool
13301 CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13303$as_echo "host tool" >&6; }
2abefe3d
PB
13304 else
13305 # We need a cross tool
5213506e
RW
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13307$as_echo "pre-installed" >&6; }
2abefe3d
PB
13308 fi
13309fi
0b0dc272 13310
5213506e
RW
13311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13312$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
2abefe3d 13313if test "x${build}" != "x${host}" ; then
e8b05380
PB
13314 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13315 # We already found the complete path
172e41aa 13316 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13318$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13319 else
13320 # Canadian cross, just use what we found
5213506e
RW
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13322$as_echo "pre-installed" >&6; }
e8b05380 13323 fi
2abefe3d
PB
13324else
13325 ok=yes
13326 case " ${configdirs} " in
13327 *" gcc "*) ;;
13328 *) ok=no ;;
13329 esac
13330 case ,${enable_languages}, in
13331 *,c++,*) ;;
13332 *) ok=no ;;
13333 esac
13334 if test $ok = yes; then
13335 # An in-tree tool is available and we can use it
13336 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
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13338$as_echo "just compiled" >&6; }
e8b05380
PB
13339 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13340 # We already found the complete path
172e41aa 13341 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
5213506e
RW
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13343$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13344 elif test "x$target" = "x$host"; then
13345 # We can use an host tool
13346 RAW_CXX_FOR_TARGET='$(CXX)'
5213506e
RW
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13348$as_echo "host tool" >&6; }
2abefe3d
PB
13349 else
13350 # We need a cross tool
5213506e
RW
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13352$as_echo "pre-installed" >&6; }
2abefe3d
PB
13353 fi
13354fi
0b0dc272 13355
5213506e
RW
13356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13357$as_echo_n "checking where to find the target dlltool... " >&6; }
2abefe3d 13358if test "x${build}" != "x${host}" ; then
e8b05380
PB
13359 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13360 # We already found the complete path
172e41aa 13361 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13363$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13364 else
13365 # Canadian cross, just use what we found
5213506e
RW
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13367$as_echo "pre-installed" >&6; }
e8b05380 13368 fi
2abefe3d
PB
13369else
13370 ok=yes
13371 case " ${configdirs} " in
13372 *" binutils "*) ;;
13373 *) ok=no ;;
13374 esac
1c710c3c 13375
2abefe3d
PB
13376 if test $ok = yes; then
13377 # An in-tree tool is available and we can use it
13378 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
5213506e
RW
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13380$as_echo "just compiled" >&6; }
e8b05380
PB
13381 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13382 # We already found the complete path
172e41aa 13383 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
5213506e
RW
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13385$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13386 elif test "x$target" = "x$host"; then
13387 # We can use an host tool
13388 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
5213506e
RW
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13390$as_echo "host tool" >&6; }
2abefe3d
PB
13391 else
13392 # We need a cross tool
5213506e
RW
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13394$as_echo "pre-installed" >&6; }
2abefe3d
PB
13395 fi
13396fi
0b0dc272 13397
5213506e
RW
13398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13399$as_echo_n "checking where to find the target gcc... " >&6; }
2abefe3d 13400if test "x${build}" != "x${host}" ; then
e8b05380
PB
13401 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13402 # We already found the complete path
172e41aa 13403 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13405$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13406 else
13407 # Canadian cross, just use what we found
5213506e
RW
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13409$as_echo "pre-installed" >&6; }
e8b05380 13410 fi
2abefe3d
PB
13411else
13412 ok=yes
13413 case " ${configdirs} " in
13414 *" gcc "*) ;;
13415 *) ok=no ;;
13416 esac
1c710c3c 13417
2abefe3d
PB
13418 if test $ok = yes; then
13419 # An in-tree tool is available and we can use it
13420 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13422$as_echo "just compiled" >&6; }
e8b05380
PB
13423 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13424 # We already found the complete path
172e41aa 13425 ac_dir=`dirname $GCC_FOR_TARGET`
5213506e
RW
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13427$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13428 elif test "x$target" = "x$host"; then
13429 # We can use an host tool
13430 GCC_FOR_TARGET='$()'
5213506e
RW
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13432$as_echo "host tool" >&6; }
2abefe3d
PB
13433 else
13434 # We need a cross tool
5213506e
RW
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13436$as_echo "pre-installed" >&6; }
2abefe3d
PB
13437 fi
13438fi
0b0dc272 13439
5213506e
RW
13440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13441$as_echo_n "checking where to find the target gcj... " >&6; }
2abefe3d 13442if test "x${build}" != "x${host}" ; then
e8b05380
PB
13443 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13444 # We already found the complete path
172e41aa 13445 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13447$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13448 else
13449 # Canadian cross, just use what we found
5213506e
RW
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13451$as_echo "pre-installed" >&6; }
e8b05380 13452 fi
2abefe3d
PB
13453else
13454 ok=yes
13455 case " ${configdirs} " in
13456 *" gcc "*) ;;
13457 *) ok=no ;;
13458 esac
13459 case ,${enable_languages}, in
13460 *,java,*) ;;
13461 *) ok=no ;;
13462 esac
13463 if test $ok = yes; then
13464 # An in-tree tool is available and we can use it
13465 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13467$as_echo "just compiled" >&6; }
e8b05380
PB
13468 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13469 # We already found the complete path
172e41aa 13470 ac_dir=`dirname $GCJ_FOR_TARGET`
5213506e
RW
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13472$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13473 elif test "x$target" = "x$host"; then
13474 # We can use an host tool
13475 GCJ_FOR_TARGET='$(GCJ)'
5213506e
RW
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13477$as_echo "host tool" >&6; }
2abefe3d
PB
13478 else
13479 # We need a cross tool
5213506e
RW
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13481$as_echo "pre-installed" >&6; }
2abefe3d
PB
13482 fi
13483fi
0b0dc272 13484
5213506e
RW
13485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13486$as_echo_n "checking where to find the target gfortran... " >&6; }
2abefe3d 13487if test "x${build}" != "x${host}" ; then
e8b05380
PB
13488 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13489 # We already found the complete path
172e41aa 13490 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13492$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13493 else
13494 # Canadian cross, just use what we found
5213506e
RW
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13496$as_echo "pre-installed" >&6; }
e8b05380 13497 fi
2abefe3d
PB
13498else
13499 ok=yes
13500 case " ${configdirs} " in
13501 *" gcc "*) ;;
13502 *) ok=no ;;
13503 esac
13504 case ,${enable_languages}, in
13505 *,fortran,*) ;;
13506 *) ok=no ;;
13507 esac
13508 if test $ok = yes; then
13509 # An in-tree tool is available and we can use it
13510 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
5213506e
RW
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13512$as_echo "just compiled" >&6; }
e8b05380
PB
13513 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13514 # We already found the complete path
172e41aa 13515 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
5213506e
RW
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13517$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13518 elif test "x$target" = "x$host"; then
13519 # We can use an host tool
13520 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
5213506e
RW
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13522$as_echo "host tool" >&6; }
2abefe3d
PB
13523 else
13524 # We need a cross tool
5213506e
RW
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13526$as_echo "pre-installed" >&6; }
2abefe3d
PB
13527 fi
13528fi
0b0dc272 13529
632e2a07
ILT
13530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13531$as_echo_n "checking where to find the target gccgo... " >&6; }
13532if test "x${build}" != "x${host}" ; then
13533 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13534 # We already found the complete path
13535 ac_dir=`dirname $GOC_FOR_TARGET`
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13537$as_echo "pre-installed in $ac_dir" >&6; }
13538 else
13539 # Canadian cross, just use what we found
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13541$as_echo "pre-installed" >&6; }
13542 fi
13543else
13544 ok=yes
13545 case " ${configdirs} " in
13546 *" gcc "*) ;;
13547 *) ok=no ;;
13548 esac
13549 case ,${enable_languages}, in
13550 *,go,*) ;;
13551 *) ok=no ;;
13552 esac
13553 if test $ok = yes; then
13554 # An in-tree tool is available and we can use it
13555 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13557$as_echo "just compiled" >&6; }
13558 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13559 # We already found the complete path
13560 ac_dir=`dirname $GOC_FOR_TARGET`
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13562$as_echo "pre-installed in $ac_dir" >&6; }
13563 elif test "x$target" = "x$host"; then
13564 # We can use an host tool
13565 GOC_FOR_TARGET='$(GOC)'
13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13567$as_echo "host tool" >&6; }
13568 else
13569 # We need a cross tool
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13571$as_echo "pre-installed" >&6; }
13572 fi
13573fi
13574
5213506e
RW
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13576$as_echo_n "checking where to find the target ld... " >&6; }
2abefe3d 13577if test "x${build}" != "x${host}" ; then
e8b05380
PB
13578 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13579 # We already found the complete path
172e41aa 13580 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13582$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13583 else
13584 # Canadian cross, just use what we found
5213506e
RW
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13586$as_echo "pre-installed" >&6; }
e8b05380 13587 fi
2abefe3d
PB
13588else
13589 ok=yes
13590 case " ${configdirs} " in
13591 *" ld "*) ;;
13592 *) ok=no ;;
13593 esac
1c710c3c 13594
2abefe3d
PB
13595 if test $ok = yes; then
13596 # An in-tree tool is available and we can use it
13597 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
5213506e
RW
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13599$as_echo "just compiled" >&6; }
e8b05380
PB
13600 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13601 # We already found the complete path
172e41aa 13602 ac_dir=`dirname $LD_FOR_TARGET`
5213506e
RW
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13604$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13605 elif test "x$target" = "x$host"; then
13606 # We can use an host tool
13607 LD_FOR_TARGET='$(LD)'
5213506e
RW
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13609$as_echo "host tool" >&6; }
2abefe3d
PB
13610 else
13611 # We need a cross tool
5213506e
RW
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13613$as_echo "pre-installed" >&6; }
2abefe3d
PB
13614 fi
13615fi
0b0dc272 13616
5213506e
RW
13617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13618$as_echo_n "checking where to find the target lipo... " >&6; }
2abefe3d 13619if test "x${build}" != "x${host}" ; then
e8b05380
PB
13620 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13621 # We already found the complete path
172e41aa 13622 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13624$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13625 else
13626 # Canadian cross, just use what we found
5213506e
RW
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13628$as_echo "pre-installed" >&6; }
e8b05380 13629 fi
2abefe3d 13630else
e8b05380
PB
13631 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13632 # We already found the complete path
172e41aa 13633 ac_dir=`dirname $LIPO_FOR_TARGET`
5213506e
RW
13634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13635$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380 13636 elif test "x$target" = "x$host"; then
2abefe3d
PB
13637 # We can use an host tool
13638 LIPO_FOR_TARGET='$(LIPO)'
5213506e
RW
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13640$as_echo "host tool" >&6; }
2abefe3d
PB
13641 else
13642 # We need a cross tool
5213506e
RW
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13644$as_echo "pre-installed" >&6; }
2abefe3d
PB
13645 fi
13646fi
0b0dc272 13647
5213506e
RW
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13649$as_echo_n "checking where to find the target nm... " >&6; }
2abefe3d 13650if test "x${build}" != "x${host}" ; then
e8b05380
PB
13651 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13652 # We already found the complete path
172e41aa 13653 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13655$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13656 else
13657 # Canadian cross, just use what we found
5213506e
RW
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13659$as_echo "pre-installed" >&6; }
e8b05380 13660 fi
2abefe3d
PB
13661else
13662 ok=yes
13663 case " ${configdirs} " in
13664 *" binutils "*) ;;
13665 *) ok=no ;;
13666 esac
1c710c3c 13667
2abefe3d
PB
13668 if test $ok = yes; then
13669 # An in-tree tool is available and we can use it
13670 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
5213506e
RW
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13672$as_echo "just compiled" >&6; }
e8b05380
PB
13673 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13674 # We already found the complete path
172e41aa 13675 ac_dir=`dirname $NM_FOR_TARGET`
5213506e
RW
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13677$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13678 elif test "x$target" = "x$host"; then
13679 # We can use an host tool
13680 NM_FOR_TARGET='$(NM)'
5213506e
RW
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13682$as_echo "host tool" >&6; }
2abefe3d
PB
13683 else
13684 # We need a cross tool
5213506e
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13686$as_echo "pre-installed" >&6; }
2abefe3d
PB
13687 fi
13688fi
0b0dc272 13689
5213506e
RW
13690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13691$as_echo_n "checking where to find the target objdump... " >&6; }
2abefe3d 13692if test "x${build}" != "x${host}" ; then
e8b05380
PB
13693 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13694 # We already found the complete path
172e41aa 13695 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13697$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13698 else
13699 # Canadian cross, just use what we found
5213506e
RW
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13701$as_echo "pre-installed" >&6; }
e8b05380 13702 fi
2abefe3d
PB
13703else
13704 ok=yes
13705 case " ${configdirs} " in
13706 *" binutils "*) ;;
13707 *) ok=no ;;
13708 esac
1c710c3c 13709
2abefe3d
PB
13710 if test $ok = yes; then
13711 # An in-tree tool is available and we can use it
13712 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
5213506e
RW
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13714$as_echo "just compiled" >&6; }
e8b05380
PB
13715 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13716 # We already found the complete path
172e41aa 13717 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
5213506e
RW
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13719$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13720 elif test "x$target" = "x$host"; then
13721 # We can use an host tool
13722 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
5213506e
RW
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13724$as_echo "host tool" >&6; }
2abefe3d
PB
13725 else
13726 # We need a cross tool
5213506e
RW
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13728$as_echo "pre-installed" >&6; }
2abefe3d
PB
13729 fi
13730fi
0b0dc272 13731
5213506e
RW
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13733$as_echo_n "checking where to find the target ranlib... " >&6; }
2abefe3d 13734if test "x${build}" != "x${host}" ; then
e8b05380
PB
13735 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13736 # We already found the complete path
172e41aa 13737 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13739$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13740 else
13741 # Canadian cross, just use what we found
5213506e
RW
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13743$as_echo "pre-installed" >&6; }
e8b05380 13744 fi
2abefe3d
PB
13745else
13746 ok=yes
13747 case " ${configdirs} " in
13748 *" binutils "*) ;;
13749 *) ok=no ;;
13750 esac
1c710c3c 13751
2abefe3d
PB
13752 if test $ok = yes; then
13753 # An in-tree tool is available and we can use it
13754 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
5213506e
RW
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13756$as_echo "just compiled" >&6; }
e8b05380
PB
13757 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13758 # We already found the complete path
172e41aa 13759 ac_dir=`dirname $RANLIB_FOR_TARGET`
5213506e
RW
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13761$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13762 elif test "x$target" = "x$host"; then
13763 # We can use an host tool
13764 RANLIB_FOR_TARGET='$(RANLIB)'
5213506e
RW
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13766$as_echo "host tool" >&6; }
2abefe3d
PB
13767 else
13768 # We need a cross tool
5213506e
RW
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13770$as_echo "pre-installed" >&6; }
2abefe3d
PB
13771 fi
13772fi
0b0dc272 13773
5213506e
RW
13774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13775$as_echo_n "checking where to find the target strip... " >&6; }
2abefe3d 13776if test "x${build}" != "x${host}" ; then
e8b05380
PB
13777 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13778 # We already found the complete path
172e41aa 13779 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13781$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13782 else
13783 # Canadian cross, just use what we found
5213506e
RW
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13785$as_echo "pre-installed" >&6; }
e8b05380 13786 fi
2abefe3d
PB
13787else
13788 ok=yes
13789 case " ${configdirs} " in
13790 *" binutils "*) ;;
13791 *) ok=no ;;
13792 esac
1c710c3c 13793
2abefe3d
PB
13794 if test $ok = yes; then
13795 # An in-tree tool is available and we can use it
455c8f48 13796 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
5213506e
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13798$as_echo "just compiled" >&6; }
e8b05380
PB
13799 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13800 # We already found the complete path
172e41aa 13801 ac_dir=`dirname $STRIP_FOR_TARGET`
5213506e
RW
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13803$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13804 elif test "x$target" = "x$host"; then
13805 # We can use an host tool
13806 STRIP_FOR_TARGET='$(STRIP)'
5213506e
RW
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13808$as_echo "host tool" >&6; }
2abefe3d
PB
13809 else
13810 # We need a cross tool
5213506e
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13812$as_echo "pre-installed" >&6; }
2abefe3d
PB
13813 fi
13814fi
0b0dc272 13815
5213506e
RW
13816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13817$as_echo_n "checking where to find the target windres... " >&6; }
2abefe3d 13818if test "x${build}" != "x${host}" ; then
e8b05380
PB
13819 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13820 # We already found the complete path
172e41aa 13821 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13823$as_echo "pre-installed in $ac_dir" >&6; }
e8b05380
PB
13824 else
13825 # Canadian cross, just use what we found
5213506e
RW
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13827$as_echo "pre-installed" >&6; }
e8b05380 13828 fi
2abefe3d
PB
13829else
13830 ok=yes
13831 case " ${configdirs} " in
13832 *" binutils "*) ;;
13833 *) ok=no ;;
13834 esac
1c710c3c 13835
2abefe3d
PB
13836 if test $ok = yes; then
13837 # An in-tree tool is available and we can use it
13838 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
5213506e
RW
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13840$as_echo "just compiled" >&6; }
e8b05380
PB
13841 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13842 # We already found the complete path
172e41aa 13843 ac_dir=`dirname $WINDRES_FOR_TARGET`
5213506e
RW
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13845$as_echo "pre-installed in $ac_dir" >&6; }
2abefe3d
PB
13846 elif test "x$target" = "x$host"; then
13847 # We can use an host tool
13848 WINDRES_FOR_TARGET='$(WINDRES)'
5213506e
RW
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13850$as_echo "host tool" >&6; }
2abefe3d
PB
13851 else
13852 # We need a cross tool
5213506e
RW
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13854$as_echo "pre-installed" >&6; }
2abefe3d 13855 fi
671aa708 13856fi
be912515 13857
5213506e
RW
13858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13859$as_echo_n "checking where to find the target windmc... " >&6; }
901119ae
KT
13860if test "x${build}" != "x${host}" ; then
13861 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13862 # We already found the complete path
13863 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13865$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13866 else
13867 # Canadian cross, just use what we found
5213506e
RW
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13869$as_echo "pre-installed" >&6; }
901119ae
KT
13870 fi
13871else
13872 ok=yes
13873 case " ${configdirs} " in
13874 *" binutils "*) ;;
13875 *) ok=no ;;
13876 esac
13877
13878 if test $ok = yes; then
13879 # An in-tree tool is available and we can use it
13880 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
5213506e
RW
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13882$as_echo "just compiled" >&6; }
901119ae
KT
13883 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13884 # We already found the complete path
13885 ac_dir=`dirname $WINDMC_FOR_TARGET`
5213506e
RW
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13887$as_echo "pre-installed in $ac_dir" >&6; }
901119ae
KT
13888 elif test "x$target" = "x$host"; then
13889 # We can use an host tool
13890 WINDMC_FOR_TARGET='$(WINDMC)'
5213506e
RW
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13892$as_echo "host tool" >&6; }
901119ae
KT
13893 else
13894 # We need a cross tool
5213506e
RW
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13896$as_echo "pre-installed" >&6; }
901119ae
KT
13897 fi
13898fi
13899
be912515
NN
13900
13901
2abefe3d 13902
0b0dc272 13903
671aa708
NN
13904# Certain tools may need extra flags.
13905AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13906RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13907NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13908
2abefe3d
PB
13909# When building target libraries, except in a Canadian cross, we use
13910# the same toolchain as the compiler we just built.
13911COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13912COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13913COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13914if test $host = $build; then
13915 case " $configdirs " in
13916 *" gcc "*)
13917 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13918 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13919 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13920 ;;
13921 esac
13922fi
13923
13924
13925
13926
13927
5213506e
RW
13928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13929$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13930# Check whether --enable-maintainer-mode was given.
13931if test "${enable_maintainer_mode+set}" = set; then :
13932 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
ee03dc5e
AO
13933else
13934 USE_MAINTAINER_MODE=no
5213506e
RW
13935fi
13936
13937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13938$as_echo "$USE_MAINTAINER_MODE" >&6; }
ee03dc5e
AO
13939
13940
13941if test "$USE_MAINTAINER_MODE" = yes; then
13942 MAINTAINER_MODE_TRUE=
13943 MAINTAINER_MODE_FALSE='#'
13944else
13945 MAINTAINER_MODE_TRUE='#'
13946 MAINTAINER_MODE_FALSE=
1c710c3c 13947fi
ee03dc5e
AO
13948MAINT=$MAINTAINER_MODE_TRUE
13949
2805b53a
NN
13950# ---------------------
13951# GCC bootstrap support
13952# ---------------------
13953
13954# Stage specific cflags for build.
13955stage1_cflags="-g"
13956case $build in
13957 vax-*-*)
13958 case ${GCC} in
13959 yes) stage1_cflags="-g -Wa,-J" ;;
13960 *) stage1_cflags="-g -J" ;;
13961 esac ;;
2805b53a
NN
13962esac
13963
0b50988a 13964# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
00020c16 13965if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
0b50988a
EB
13966 saved_CFLAGS="$CFLAGS"
13967
13968 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13969 CFLAGS="$CFLAGS -fkeep-inline-functions"
5213506e
RW
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13971$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1c710c3c
DJ
13973/* end confdefs.h. */
13974
9cc1244e
JJ
13975#if (__GNUC__ < 3) \
13976 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13977 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13978#error http://gcc.gnu.org/PR29382
13979#endif
13980
1c710c3c
DJ
13981int
13982main ()
13983{
13984
13985 ;
13986 return 0;
13987}
13988_ACEOF
5213506e
RW
13989if ac_fn_c_try_compile "$LINENO"; then :
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13991$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
1c710c3c 13992else
5213506e
RW
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994$as_echo "no" >&6; }
1c710c3c 13995fi
5213506e 13996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
0b50988a
EB
13997
13998 CFLAGS="$saved_CFLAGS"
13999fi
14000
14001
2805b53a 14002
8efea775 14003# Enable --enable-checking in stage1 of the compiler.
5213506e
RW
14004# Check whether --enable-stage1-checking was given.
14005if test "${enable_stage1_checking+set}" = set; then :
14006 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8efea775 14007else
e643dc23 14008 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
7e98624c 14009 stage1_checking=--enable-checking=yes,types
8efea775 14010else
e643dc23 14011 stage1_checking=--enable-checking=$enable_checking,types
8efea775 14012fi
5213506e 14013fi
8efea775
PB
14014
14015
2aeb72e9 14016
5213506e
RW
14017# Enable -Werror in bootstrap stage2 and later.
14018# Check whether --enable-werror was given.
14019if test "${enable_werror+set}" = set; then :
14020 enableval=$enable_werror;
2805b53a 14021else
416cfb5e 14022 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
2805b53a 14023 enable_werror=yes
88fceb68
PB
14024else
14025 enable_werror=no
14026fi
5213506e
RW
14027fi
14028
09a9c095
NN
14029case ${enable_werror} in
14030 yes) stage2_werror_flag="--enable-werror-always" ;;
14031 *) stage2_werror_flag="" ;;
2805b53a
NN
14032esac
14033
14034
78767fd9
ILT
14035# If using ENABLE_BUILD_POSTSTAGE1_WITH_CXX, pass
14036# --enable-build-with-cxx after stage1.
14037if test "$ENABLE_BUILD_POSTSTAGE1_WITH_CXX" = "yes"; then
14038 POSTSTAGE1_CONFIGURE_FLAGS=--enable-build-with-cxx
14039else
14040 POSTSTAGE1_CONFIGURE_FLAGS=
14041fi
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