Merge from GCC:
[deliverable/binutils-gdb.git] / configure
CommitLineData
a0da8069 1#! /bin/sh
a0da8069 2# Guess values for system-dependent variables and create Makefiles.
81ecdfbb
RW
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
a0da8069
NN
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
81ecdfbb
RW
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
c6b750e1 14
81ecdfbb
RW
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
c6b750e1 31fi
c6b750e1 32
81ecdfbb
RW
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
c6b750e1
DJ
79fi
80
81
81ecdfbb
RW
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99IFS=$as_save_IFS
100
101 ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106 as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there. '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
c6b750e1
DJ
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
81ecdfbb
RW
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi
150"
151 as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
8e957354
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"
81ecdfbb
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
c6b750e1 184do
81ecdfbb
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."
c6b750e1 228 else
81ecdfbb
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."
c6b750e1 233 fi
81ecdfbb
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
c6b750e1 263
81ecdfbb
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
c6b750e1
DJ
375 as_expr=expr
376else
377 as_expr=false
378fi
379
81ecdfbb 380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
381 as_basename=basename
382else
383 as_basename=false
384fi
385
81ecdfbb
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
c6b750e1 391
81ecdfbb 392as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
81ecdfbb
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'`
c6b750e1 410
c6b750e1
DJ
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
417
c6b750e1 418
81ecdfbb
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 |
c6b750e1 428 sed '
81ecdfbb
RW
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
c6b750e1 433 N
81ecdfbb
RW
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
c6b750e1 436 t loop
81ecdfbb 437 s/-\n.*//
c6b750e1 438 ' >$as_me.lineno &&
81ecdfbb
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; }
c6b750e1
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
81ecdfbb
RW
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
c6b750e1
DJ
446 # Exit status is that of the last command.
447 exit
448}
449
81ecdfbb
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';;
c6b750e1
DJ
461esac
462
81ecdfbb
RW
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
c6b750e1 466else
81ecdfbb
RW
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
c6b750e1 469fi
81ecdfbb
RW
470if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 472 as_ln_s='ln -s'
81ecdfbb
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'
c6b750e1 483 fi
c6b750e1
DJ
484else
485 as_ln_s='cp -p'
486fi
81ecdfbb
RW
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
c6b750e1
DJ
489
490if mkdir -p . 2>/dev/null; then
81ecdfbb 491 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
492else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495fi
496
81ecdfbb
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
c6b750e1
DJ
519
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
81ecdfbb 527exec 7<&0 </dev/null 6>&1
a0da8069 528
c6b750e1
DJ
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
c6b750e1
DJ
534#
535# Initializations.
536#
a0da8069 537ac_default_prefix=/usr/local
81ecdfbb 538ac_clean_files=
c6b750e1 539ac_config_libobj_dir=.
81ecdfbb 540LIBOBJS=
c6b750e1
DJ
541cross_compiling=no
542subdirs=
543MFLAGS=
544MAKEFLAGS=
c6b750e1
DJ
545
546# Identity of this package.
547PACKAGE_NAME=
548PACKAGE_TARNAME=
549PACKAGE_VERSION=
550PACKAGE_STRING=
551PACKAGE_BUGREPORT=
81ecdfbb 552PACKAGE_URL=
c6b750e1
DJ
553
554ac_unique_file="move-if-change"
81ecdfbb
RW
555enable_option_checking=no
556ac_subst_vars='LTLIBOBJS
557LIBOBJS
558compare_exclusions
559stage2_werror_flag
560stage1_checking
561stage1_cflags
562MAINT
563MAINTAINER_MODE_FALSE
564MAINTAINER_MODE_TRUE
565COMPILER_NM_FOR_TARGET
566COMPILER_LD_FOR_TARGET
567COMPILER_AS_FOR_TARGET
568FLAGS_FOR_TARGET
569RAW_CXX_FOR_TARGET
570WINDMC_FOR_TARGET
571WINDRES_FOR_TARGET
572STRIP_FOR_TARGET
573RANLIB_FOR_TARGET
574OBJDUMP_FOR_TARGET
575NM_FOR_TARGET
576LIPO_FOR_TARGET
577LD_FOR_TARGET
578DLLTOOL_FOR_TARGET
579AS_FOR_TARGET
580AR_FOR_TARGET
e552509b 581GOC_FOR_TARGET
81ecdfbb
RW
582GFORTRAN_FOR_TARGET
583GCJ_FOR_TARGET
584GCC_FOR_TARGET
585CXX_FOR_TARGET
586CC_FOR_TARGET
587OBJDUMP
588OBJCOPY
589WINDMC
590WINDRES
591STRIP
592RANLIB
593NM
594LIPO
595LD
596DLLTOOL
597AS
598AR
599RUNTEST
600EXPECT
601MAKEINFO
602FLEX
603LEX
604M4
605BISON
606YACC
81ecdfbb
RW
607WINDRES_FOR_BUILD
608WINDMC_FOR_BUILD
609RANLIB_FOR_BUILD
610NM_FOR_BUILD
611LD_FOR_BUILD
612LDFLAGS_FOR_BUILD
e552509b 613GOC_FOR_BUILD
81ecdfbb
RW
614GFORTRAN_FOR_BUILD
615GCJ_FOR_BUILD
616DLLTOOL_FOR_BUILD
617CXX_FOR_BUILD
618CXXFLAGS_FOR_BUILD
619CFLAGS_FOR_BUILD
620CC_FOR_BUILD
621AS_FOR_BUILD
622AR_FOR_BUILD
911e63d0 623target_configdirs
81ecdfbb 624configdirs
81ecdfbb 625build_configdirs
81ecdfbb
RW
626INSTALL_GDB_TK
627GDB_TK
628CONFIGURE_GDB_TK
629build_tooldir
630tooldir
631GCC_SHLIB_SUBDIR
632RPATH_ENVVAR
4074d5f2
RW
633target_configargs
634host_configargs
635build_configargs
96655cc4 636BUILD_CONFIG
81ecdfbb
RW
637CXXFLAGS_FOR_TARGET
638CFLAGS_FOR_TARGET
639DEBUG_PREFIX_CFLAGS_FOR_TARGET
640SYSROOT_CFLAGS_FOR_TARGET
641stage1_languages
700d40ca 642extra_host_libiberty_configure_flags
81ecdfbb
RW
643clooginc
644clooglibs
645pplinc
646ppllibs
81ecdfbb 647poststage1_ldflags
143754cd 648poststage1_libs
81ecdfbb
RW
649stage1_libs
650stage1_ldflags
651extra_mpc_mpfr_configure_flags
652extra_mpc_gmp_configure_flags
653extra_mpfr_configure_flags
654gmpinc
655gmplibs
656do_compare
657GNATMAKE
658GNATBIND
659ac_ct_CXX
660CXXFLAGS
661CXX
662OBJEXT
663EXEEXT
664ac_ct_CC
665CPPFLAGS
666LDFLAGS
667CFLAGS
668CC
669target_subdir
670host_subdir
671build_subdir
672build_libsubdir
8e957354
PB
673AWK
674SED
81ecdfbb
RW
675LN_S
676LN
677INSTALL_DATA
678INSTALL_SCRIPT
679INSTALL_PROGRAM
680target_os
681target_vendor
682target_cpu
683target
684host_os
685host_vendor
686host_cpu
687host
688target_noncanonical
689host_noncanonical
690build_noncanonical
691build_os
692build_vendor
693build_cpu
694build
695TOPLEVEL_CONFIGURE_ARGUMENTS
696target_alias
697host_alias
698build_alias
699LIBS
700ECHO_T
701ECHO_N
702ECHO_C
703DEFS
704mandir
705localedir
706libdir
707psdir
708pdfdir
709dvidir
710htmldir
711infodir
712docdir
713oldincludedir
714includedir
715localstatedir
716sharedstatedir
717sysconfdir
718datadir
719datarootdir
720libexecdir
721sbindir
722bindir
723program_transform_name
724prefix
725exec_prefix
726PACKAGE_URL
727PACKAGE_BUGREPORT
728PACKAGE_STRING
729PACKAGE_VERSION
730PACKAGE_TARNAME
731PACKAGE_NAME
732PATH_SEPARATOR
733SHELL'
734ac_subst_files='serialization_dependencies
735host_makefile_frag
736target_makefile_frag
737alphaieee_frag
738ospace_frag'
739ac_user_opts='
740enable_option_checking
741with_build_libsubdir
742enable_gold
c7791212 743enable_ld
89a1e9c3
PB
744enable_libquadmath
745enable_libquadmath_support
81ecdfbb
RW
746enable_libada
747enable_libssp
748enable_build_with_cxx
749with_mpc
750with_mpc_include
751with_mpc_lib
752with_mpfr_dir
753with_mpfr
754with_mpfr_include
755with_mpfr_lib
756with_gmp_dir
757with_gmp
758with_gmp_include
759with_gmp_lib
760with_host_libstdcxx
761with_stage1_ldflags
762with_stage1_libs
81ecdfbb 763with_boot_libs
143754cd 764with_boot_ldflags
81ecdfbb
RW
765with_ppl
766with_ppl_include
767with_ppl_lib
768enable_ppl_version_check
769with_cloog
770with_cloog_include
771with_cloog_lib
e552509b 772enable_cloog_backend
81ecdfbb 773enable_cloog_version_check
700d40ca 774enable_lto
81ecdfbb
RW
775enable_stage1_languages
776enable_objc_gc
777with_build_sysroot
778with_debug_prefix_map
779enable_bootstrap
96655cc4 780with_build_config
81ecdfbb
RW
781enable_serial_configure
782with_build_time_tools
783enable_maintainer_mode
784enable_stage1_checking
785enable_werror
81ecdfbb
RW
786'
787 ac_precious_vars='build_alias
788host_alias
789target_alias
790CC
791CFLAGS
792LDFLAGS
793LIBS
794CPPFLAGS
795CXX
796CXXFLAGS
797CCC
4074d5f2
RW
798build_configargs
799host_configargs
800target_configargs
81ecdfbb
RW
801AR
802AS
803DLLTOOL
804LD
805LIPO
806NM
807RANLIB
808STRIP
809WINDRES
810WINDMC
811OBJCOPY
812OBJDUMP
813CC_FOR_TARGET
814CXX_FOR_TARGET
815GCC_FOR_TARGET
816GCJ_FOR_TARGET
817GFORTRAN_FOR_TARGET
e552509b 818GOC_FOR_TARGET
81ecdfbb
RW
819AR_FOR_TARGET
820AS_FOR_TARGET
821DLLTOOL_FOR_TARGET
822LD_FOR_TARGET
823LIPO_FOR_TARGET
824NM_FOR_TARGET
825OBJDUMP_FOR_TARGET
826RANLIB_FOR_TARGET
827STRIP_FOR_TARGET
828WINDRES_FOR_TARGET
829WINDMC_FOR_TARGET'
830
a0da8069
NN
831
832# Initialize some variables set by options.
c6b750e1
DJ
833ac_init_help=
834ac_init_version=false
81ecdfbb
RW
835ac_unrecognized_opts=
836ac_unrecognized_sep=
a0da8069
NN
837# The variables have the same names as the options, with
838# dashes changed to underlines.
c6b750e1 839cache_file=/dev/null
a0da8069 840exec_prefix=NONE
a0da8069 841no_create=
a0da8069
NN
842no_recursion=
843prefix=NONE
844program_prefix=NONE
845program_suffix=NONE
846program_transform_name=s,x,x,
847silent=
848site=
849srcdir=
a0da8069
NN
850verbose=
851x_includes=NONE
852x_libraries=NONE
c6b750e1
DJ
853
854# Installation directory options.
855# These are left unexpanded so users can "make install exec_prefix=/foo"
856# and all the variables that are supposed to be based on exec_prefix
857# by default will actually change.
858# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 859# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
860bindir='${exec_prefix}/bin'
861sbindir='${exec_prefix}/sbin'
862libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
863datarootdir='${prefix}/share'
864datadir='${datarootdir}'
a0da8069
NN
865sysconfdir='${prefix}/etc'
866sharedstatedir='${prefix}/com'
867localstatedir='${prefix}/var'
a0da8069
NN
868includedir='${prefix}/include'
869oldincludedir='/usr/include'
81ecdfbb
RW
870docdir='${datarootdir}/doc/${PACKAGE}'
871infodir='${datarootdir}/info'
872htmldir='${docdir}'
873dvidir='${docdir}'
874pdfdir='${docdir}'
875psdir='${docdir}'
876libdir='${exec_prefix}/lib'
877localedir='${datarootdir}/locale'
878mandir='${datarootdir}/man'
252b5132 879
a0da8069 880ac_prev=
81ecdfbb 881ac_dashdash=
a0da8069
NN
882for ac_option
883do
a0da8069
NN
884 # If the previous option needs an argument, assign it.
885 if test -n "$ac_prev"; then
81ecdfbb 886 eval $ac_prev=\$ac_option
a0da8069
NN
887 ac_prev=
888 continue
889 fi
252b5132 890
81ecdfbb
RW
891 case $ac_option in
892 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 *) ac_optarg=yes ;;
894 esac
a0da8069
NN
895
896 # Accept the important Cygnus configure options, so we can diagnose typos.
897
81ecdfbb
RW
898 case $ac_dashdash$ac_option in
899 --)
900 ac_dashdash=yes ;;
a0da8069
NN
901
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 905 bindir=$ac_optarg ;;
a0da8069
NN
906
907 -build | --build | --buil | --bui | --bu)
c6b750e1 908 ac_prev=build_alias ;;
a0da8069 909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 910 build_alias=$ac_optarg ;;
a0da8069
NN
911
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
917 cache_file=$ac_optarg ;;
918
919 --config-cache | -C)
920 cache_file=config.cache ;;
a0da8069 921
81ecdfbb 922 -datadir | --datadir | --datadi | --datad)
a0da8069 923 ac_prev=datadir ;;
81ecdfbb 924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 925 datadir=$ac_optarg ;;
a0da8069 926
81ecdfbb
RW
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
933
a0da8069 934 -disable-* | --disable-*)
81ecdfbb 935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 936 # Reject names that are not valid shell variable names.
81ecdfbb
RW
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943"enable_$ac_useropt"
944"*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
949
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
954
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
a0da8069
NN
959
960 -enable-* | --enable-*)
81ecdfbb 961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 962 # Reject names that are not valid shell variable names.
81ecdfbb
RW
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
968 *"
969"enable_$ac_useropt"
970"*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
a0da8069 973 esac
81ecdfbb 974 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
975
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
c6b750e1 983 exec_prefix=$ac_optarg ;;
a0da8069
NN
984
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
988
c6b750e1
DJ
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
a0da8069
NN
995
996 -host | --host | --hos | --ho)
c6b750e1 997 ac_prev=host_alias ;;
a0da8069 998 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 999 host_alias=$ac_optarg ;;
a0da8069 1000
81ecdfbb
RW
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1006
a0da8069
NN
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1012 includedir=$ac_optarg ;;
a0da8069
NN
1013
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1017 infodir=$ac_optarg ;;
a0da8069
NN
1018
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1022 libdir=$ac_optarg ;;
a0da8069
NN
1023
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1029 libexecdir=$ac_optarg ;;
a0da8069 1030
81ecdfbb
RW
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1035
a0da8069 1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1037 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1041 localstatedir=$ac_optarg ;;
a0da8069
NN
1042
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1046 mandir=$ac_optarg ;;
a0da8069
NN
1047
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1051
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1053 | --no-cr | --no-c | -n)
a0da8069
NN
1054 no_create=yes ;;
1055
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1059
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1067 oldincludedir=$ac_optarg ;;
a0da8069
NN
1068
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1072 prefix=$ac_optarg ;;
a0da8069
NN
1073
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1079 program_prefix=$ac_optarg ;;
a0da8069
NN
1080
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1086 program_suffix=$ac_optarg ;;
a0da8069
NN
1087
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1103 program_transform_name=$ac_optarg ;;
a0da8069 1104
81ecdfbb
RW
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1109
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1114
a0da8069
NN
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1118
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
c6b750e1 1123 sbindir=$ac_optarg ;;
a0da8069
NN
1124
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
c6b750e1 1134 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1135
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
c6b750e1 1139 site=$ac_optarg ;;
a0da8069
NN
1140
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1144 srcdir=$ac_optarg ;;
a0da8069
NN
1145
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1151 sysconfdir=$ac_optarg ;;
a0da8069
NN
1152
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1154 ac_prev=target_alias ;;
a0da8069 1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1156 target_alias=$ac_optarg ;;
a0da8069
NN
1157
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1160
c6b750e1
DJ
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
a0da8069
NN
1163
1164 -with-* | --with-*)
81ecdfbb 1165 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1166 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error "invalid package name: $ac_useropt"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173"with_$ac_useropt"
1174"*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
a0da8069 1177 esac
81ecdfbb 1178 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1179
1180 -without-* | --without-*)
81ecdfbb 1181 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1182 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 as_fn_error "invalid package name: $ac_useropt"
1185 ac_useropt_orig=$ac_useropt
1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187 case $ac_user_opts in
1188 *"
1189"with_$ac_useropt"
1190"*) ;;
1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192 ac_unrecognized_sep=', ';;
1193 esac
1194 eval with_$ac_useropt=no ;;
a0da8069
NN
1195
1196 --x)
1197 # Obsolete; use --with-x.
1198 with_x=yes ;;
1199
1200 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201 | --x-incl | --x-inc | --x-in | --x-i)
1202 ac_prev=x_includes ;;
1203 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1205 x_includes=$ac_optarg ;;
a0da8069
NN
1206
1207 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209 ac_prev=x_libraries ;;
1210 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1212 x_libraries=$ac_optarg ;;
a0da8069 1213
81ecdfbb
RW
1214 -*) as_fn_error "unrecognized option: \`$ac_option'
1215Try \`$0 --help' for more information."
a0da8069
NN
1216 ;;
1217
c6b750e1
DJ
1218 *=*)
1219 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1221 case $ac_envvar in #(
1222 '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1224 esac
1225 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1226 export $ac_envvar ;;
1227
a0da8069 1228 *)
c6b750e1 1229 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1230 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1231 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1232 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1233 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1234 ;;
1235
1236 esac
1237done
1238
1239if test -n "$ac_prev"; then
c6b750e1 1240 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1241 as_fn_error "missing argument to $ac_option"
a0da8069 1242fi
a0da8069 1243
81ecdfbb
RW
1244if test -n "$ac_unrecognized_opts"; then
1245 case $enable_option_checking in
1246 no) ;;
1247 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1248 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1249 esac
81ecdfbb 1250fi
a0da8069 1251
81ecdfbb
RW
1252# Check all directory arguments for consistency.
1253for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254 datadir sysconfdir sharedstatedir localstatedir includedir \
1255 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256 libdir localedir mandir
a0da8069 1257do
81ecdfbb
RW
1258 eval ac_val=\$$ac_var
1259 # Remove trailing slashes.
1260 case $ac_val in
1261 */ )
1262 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263 eval $ac_var=\$ac_val;;
1264 esac
1265 # Be sure to have absolute directory names.
c6b750e1 1266 case $ac_val in
81ecdfbb
RW
1267 [\\/$]* | ?:[\\/]* ) continue;;
1268 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1269 esac
81ecdfbb 1270 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1271done
1272
c6b750e1
DJ
1273# There might be people who depend on the old broken behavior: `$host'
1274# used to hold the argument of --host etc.
1275# FIXME: To remove some day.
1276build=$build_alias
1277host=$host_alias
1278target=$target_alias
376a0e54 1279
c6b750e1
DJ
1280# FIXME: To remove some day.
1281if test "x$host_alias" != x; then
1282 if test "x$build_alias" = x; then
1283 cross_compiling=maybe
81ecdfbb 1284 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1285 If a cross compiler is detected then cross compile mode will be used." >&2
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289fi
1290
1291ac_tool_prefix=
1292test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294test "$silent" = yes && exec 6>/dev/null
a0da8069 1295
a0da8069 1296
81ecdfbb
RW
1297ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298ac_ls_di=`ls -di .` &&
1299ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error "working directory cannot be determined"
1301test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error "pwd does not report name of working directory"
1303
1304
a0da8069
NN
1305# Find the source files, if location was not specified.
1306if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
81ecdfbb
RW
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314$as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
a0da8069 1332 srcdir=$ac_confdir
81ecdfbb 1333 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1334 srcdir=..
1335 fi
1336else
1337 ac_srcdir_defaulted=no
1338fi
81ecdfbb
RW
1339if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1342fi
1343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1346 pwd)`
1347# When building in place, set srcdir=.
1348if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350fi
1351# Remove unnecessary trailing slashes from srcdir.
1352# Double slashes in file names in object file debugging info
1353# mess up M-x gdb in Emacs.
1354case $srcdir in
1355*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356esac
6d0cd39e
AM
1357case $srcdir in
1358 *" "*)
1359 as_fn_error "path to source, $srcdir, contains spaces"
1360 ;;
1361esac
9cc8ae67
PB
1362ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1363
81ecdfbb
RW
1364for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369done
c6b750e1
DJ
1370
1371#
1372# Report the --help message.
1373#
1374if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378\`configure' configures this package to adapt to many kinds of systems.
1379
1380Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385Defaults for the options are specified in brackets.
1386
1387Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
c6b750e1
DJ
1398Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1400 [$ac_default_prefix]
c6b750e1 1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1402 [PREFIX]
c6b750e1
DJ
1403
1404By default, \`make install' will install all the files in
1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407for instance \`--prefix=\$HOME'.
1408
1409For better control, use the options below.
1410
1411Fine tuning of the installation directories:
81ecdfbb
RW
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1431_ACEOF
1432
1433 cat <<\_ACEOF
1434
1435Program names:
1436 --program-prefix=PREFIX prepend PREFIX to installed program names
1437 --program-suffix=SUFFIX append SUFFIX to installed program names
1438 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1439
1440System types:
1441 --build=BUILD configure for building on BUILD [guessed]
1442 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1443 --target=TARGET configure for building compilers for TARGET [HOST]
1444_ACEOF
a0da8069 1445fi
a0da8069 1446
c6b750e1
DJ
1447if test -n "$ac_init_help"; then
1448
1449 cat <<\_ACEOF
1450
1451Optional Features:
81ecdfbb 1452 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
c7791212 1455 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
7837304f 1456 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
89a1e9c3
PB
1457 --disable-libquadmath do not build libquadmath directory
1458 --disable-libquadmath-support
1459 disable libquadmath support for Fortran
521ec477
DD
1460 --enable-libada build libada directory
1461 --enable-libssp build libssp directory
e8a5fa9c 1462 --enable-build-with-cxx build with C++ compiler instead of C compiler
7837304f
AS
1463 --disable-ppl-version-check
1464 disable check for PPL version
ceca0218
PB
1465 --enable-cloog-backend[=BACKEND]
1466 set the CLooG BACKEND used to either isl, ppl or
1467 ppl-legacy (default)
e552509b
ILT
1468 --disable-cloog-version-check
1469 disable check for CLooG version
700d40ca 1470 --enable-lto enable link time optimization support
7837304f
AS
1471 --enable-stage1-languages[=all]
1472 choose additional languages to build during stage1.
1473 Mostly useful for compiler development
1474 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1475 Objective-C runtime
521ec477
DD
1476 --enable-bootstrap enable bootstrapping [yes if native build]
1477 --enable-serial-[{host,target,build}-]configure
7837304f
AS
1478 force sequential configuration of sub-packages for
1479 the host, target or build machine, or all
1480 sub-packages
1481 --enable-maintainer-mode
1482 enable make rules and dependencies not useful (and
1483 sometimes confusing) to the casual installer
1484 --enable-stage1-checking[=all]
1485 choose additional checking for stage1 of the
1486 compiler
c6b750e1
DJ
1487 --enable-werror enable -Werror in bootstrap stage2 and later
1488
1489Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-build-libsubdir=DIR Directory where to find libraries for build system
7837304f
AS
1493 --with-mpc=PATH specify prefix directory for installed MPC package.
1494 Equivalent to --with-mpc-include=PATH/include plus
1495 --with-mpc-lib=PATH/lib
1496 --with-mpc-include=PATH specify directory for installed MPC include files
1497 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1498 --with-mpfr-dir=PATH this option has been REMOVED
1499 --with-mpfr=PATH specify prefix directory for installed MPFR package.
7837304f
AS
1500 Equivalent to --with-mpfr-include=PATH/include plus
1501 --with-mpfr-lib=PATH/lib
c6b750e1 1502 --with-mpfr-include=PATH
521ec477
DD
1503 specify directory for installed MPFR include files
1504 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1505 --with-gmp-dir=PATH this option has been REMOVED
7837304f
AS
1506 --with-gmp=PATH specify prefix directory for the installed GMP
1507 package. Equivalent to
1508 --with-gmp-include=PATH/include plus
1509 --with-gmp-lib=PATH/lib
521ec477
DD
1510 --with-gmp-include=PATH specify directory for installed GMP include files
1511 --with-gmp-lib=PATH specify directory for the installed GMP library
7837304f
AS
1512 --with-host-libstdcxx=L use linker arguments L to link with libstdc++ when
1513 linking with PPL
1514 --with-stage1-ldflags=FLAGS
1515 linker flags for stage1
1516 --with-stage1-libs=LIBS libraries for stage1
1517 --with-boot-libs=LIBS libraries for stage2 and later
1518 --with-boot-ldflags=FLAGS
1519 linker flags for stage2 and later
1520 --with-ppl=PATH specify prefix directory for the installed PPL
1521 package. Equivalent to
1522 --with-ppl-include=PATH/include plus
1523 --with-ppl-lib=PATH/lib
1524 --with-ppl-include=PATH specify directory for installed PPL include files
1525 --with-ppl-lib=PATH specify directory for the installed PPL library
e552509b
ILT
1526 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1527 package. Equivalent to
1528 --with-cloog-include=PATH/include plus
1529 --with-cloog-lib=PATH/lib
1530 --with-cloog-include=PATH
1531 Specify directory for installed CLooG include files
1532 --with-cloog-lib=PATH Specify the directory for the installed CLooG
1533 library
521ec477 1534 --with-build-sysroot=SYSROOT
c6b750e1 1535 use sysroot as the system root during the build
8a6ee3ab 1536 --with-debug-prefix-map='A=B C=D ...'
7837304f
AS
1537 map A to B, C to D ... in debug information
1538 --with-build-config='NAME NAME2...'
1539 use config/NAME.mk build configuration
521ec477 1540 --with-build-time-tools=PATH
c6b750e1 1541 use given path to find target tools during the build
c6b750e1
DJ
1542
1543Some influential environment variables:
1544 CC C compiler command
1545 CFLAGS C compiler flags
1546 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1547 nonstandard directory <lib dir>
81ecdfbb
RW
1548 LIBS libraries to pass to the linker, e.g. -l<library>
1549 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1550 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1551 CXX C++ compiler command
1552 CXXFLAGS C++ compiler flags
4074d5f2
RW
1553 build_configargs
1554 additional configure arguments for build directories
1555 host_configargs
1556 additional configure arguments for host directories
1557 target_configargs
1558 additional configure arguments for target directories
9a819804
AO
1559 AR AR for the host
1560 AS AS for the host
1561 DLLTOOL DLLTOOL for the host
1562 LD LD for the host
1563 LIPO LIPO for the host
1564 NM NM for the host
1565 RANLIB RANLIB for the host
1566 STRIP STRIP for the host
1567 WINDRES WINDRES for the host
0c24b341 1568 WINDMC WINDMC for the host
9a819804
AO
1569 OBJCOPY OBJCOPY for the host
1570 OBJDUMP OBJDUMP for the host
1571 CC_FOR_TARGET
1572 CC for the target
1573 CXX_FOR_TARGET
1574 CXX for the target
1575 GCC_FOR_TARGET
1576 GCC for the target
1577 GCJ_FOR_TARGET
1578 GCJ for the target
1579 GFORTRAN_FOR_TARGET
1580 GFORTRAN for the target
e552509b
ILT
1581 GOC_FOR_TARGET
1582 GOC for the target
9a819804
AO
1583 AR_FOR_TARGET
1584 AR for the target
1585 AS_FOR_TARGET
1586 AS for the target
1587 DLLTOOL_FOR_TARGET
1588 DLLTOOL for the target
1589 LD_FOR_TARGET
1590 LD for the target
1591 LIPO_FOR_TARGET
1592 LIPO for the target
1593 NM_FOR_TARGET
1594 NM for the target
1595 OBJDUMP_FOR_TARGET
1596 OBJDUMP for the target
1597 RANLIB_FOR_TARGET
1598 RANLIB for the target
1599 STRIP_FOR_TARGET
1600 STRIP for the target
1601 WINDRES_FOR_TARGET
1602 WINDRES for the target
0c24b341
NC
1603 WINDMC_FOR_TARGET
1604 WINDMC for the target
c6b750e1
DJ
1605
1606Use these variables to override the choices made by `configure' or to help
1607it to find libraries and programs with nonstandard names/locations.
1608
81ecdfbb 1609Report bugs to the package provider.
c6b750e1 1610_ACEOF
81ecdfbb 1611ac_status=$?
c6b750e1
DJ
1612fi
1613
1614if test "$ac_init_help" = "recursive"; then
1615 # If there are subdirs, report their specific --help.
c6b750e1 1616 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1617 test -d "$ac_dir" ||
1618 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1619 continue
c6b750e1
DJ
1620 ac_builddir=.
1621
81ecdfbb
RW
1622case "$ac_dir" in
1623.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624*)
1625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1626 # A ".." for each directory in $ac_dir_suffix.
1627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1628 case $ac_top_builddir_sub in
1629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631 esac ;;
1632esac
1633ac_abs_top_builddir=$ac_pwd
1634ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635# for backward compatibility:
1636ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1637
1638case $srcdir in
81ecdfbb 1639 .) # We are building in place.
c6b750e1 1640 ac_srcdir=.
81ecdfbb
RW
1641 ac_top_srcdir=$ac_top_builddir_sub
1642 ac_abs_top_srcdir=$ac_pwd ;;
1643 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1644 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1645 ac_top_srcdir=$srcdir
1646 ac_abs_top_srcdir=$srcdir ;;
1647 *) # Relative name.
1648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649 ac_top_srcdir=$ac_top_build_prefix$srcdir
1650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1651esac
81ecdfbb
RW
1652ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654 cd "$ac_dir" || { ac_status=$?; continue; }
1655 # Check for guested configure.
1656 if test -f "$ac_srcdir/configure.gnu"; then
1657 echo &&
1658 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659 elif test -f "$ac_srcdir/configure"; then
1660 echo &&
1661 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1662 else
81ecdfbb
RW
1663 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 fi || ac_status=$?
1665 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1666 done
1667fi
1668
81ecdfbb 1669test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1670if $ac_init_version; then
1671 cat <<\_ACEOF
81ecdfbb
RW
1672configure
1673generated by GNU Autoconf 2.64
c6b750e1 1674
81ecdfbb 1675Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1676This configure script is free software; the Free Software Foundation
1677gives unlimited permission to copy, distribute and modify it.
1678_ACEOF
81ecdfbb 1679 exit
c6b750e1 1680fi
81ecdfbb
RW
1681
1682## ------------------------ ##
1683## Autoconf initialization. ##
1684## ------------------------ ##
1685
1686# ac_fn_c_try_compile LINENO
1687# --------------------------
1688# Try to compile conftest.$ac_ext, and return whether this succeeded.
1689ac_fn_c_try_compile ()
1690{
1691 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1692 rm -f conftest.$ac_objext
1693 if { { ac_try="$ac_compile"
1694case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697esac
1698eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699$as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_compile") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1706 fi
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } && {
1709 test -z "$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 } && test -s conftest.$ac_objext; then :
1712 ac_retval=0
1713else
1714 $as_echo "$as_me: failed program was:" >&5
1715sed 's/^/| /' conftest.$ac_ext >&5
1716
1717 ac_retval=1
1718fi
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 return $ac_retval
1721
1722} # ac_fn_c_try_compile
1723
1724# ac_fn_cxx_try_compile LINENO
1725# ----------------------------
1726# Try to compile conftest.$ac_ext, and return whether this succeeded.
1727ac_fn_cxx_try_compile ()
1728{
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext
1731 if { { ac_try="$ac_compile"
1732case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_compile") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1744 fi
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_cxx_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest.$ac_objext; then :
1750 ac_retval=0
1751else
1752 $as_echo "$as_me: failed program was:" >&5
1753sed 's/^/| /' conftest.$ac_ext >&5
1754
1755 ac_retval=1
1756fi
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 return $ac_retval
1759
1760} # ac_fn_cxx_try_compile
1761
1762# ac_fn_c_try_link LINENO
1763# -----------------------
1764# Try to link conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_link ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest$ac_exeext
1769 if { { ac_try="$ac_link"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_link") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest$ac_exeext && {
1788 test "$cross_compiling" = yes ||
1789 $as_test_x conftest$ac_exeext
1790 }; then :
1791 ac_retval=0
1792else
1793 $as_echo "$as_me: failed program was:" >&5
1794sed 's/^/| /' conftest.$ac_ext >&5
1795
1796 ac_retval=1
1797fi
1798 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1799 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1800 # interfere with the next link command; also delete a directory that is
1801 # left behind by Apple's compiler. We do this before executing the actions.
1802 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1803 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1804 return $ac_retval
1805
1806} # ac_fn_c_try_link
1807cat >config.log <<_ACEOF
c6b750e1
DJ
1808This file contains any messages produced by compilers while
1809running configure, to aid debugging if configure makes a mistake.
1810
1811It was created by $as_me, which was
81ecdfbb 1812generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1813
1814 $ $0 $@
1815
1816_ACEOF
81ecdfbb 1817exec 5>>config.log
c6b750e1
DJ
1818{
1819cat <<_ASUNAME
1820## --------- ##
1821## Platform. ##
1822## --------- ##
1823
1824hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1825uname -m = `(uname -m) 2>/dev/null || echo unknown`
1826uname -r = `(uname -r) 2>/dev/null || echo unknown`
1827uname -s = `(uname -s) 2>/dev/null || echo unknown`
1828uname -v = `(uname -v) 2>/dev/null || echo unknown`
1829
1830/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1831/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1832
1833/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1834/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1835/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1836/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1837/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1838/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1839/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1840
1841_ASUNAME
1842
1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844for as_dir in $PATH
1845do
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1848 $as_echo "PATH: $as_dir"
1849 done
1850IFS=$as_save_IFS
c6b750e1
DJ
1851
1852} >&5
1853
1854cat >&5 <<_ACEOF
1855
1856
1857## ----------- ##
1858## Core tests. ##
1859## ----------- ##
1860
1861_ACEOF
1862
1863
1864# Keep a trace of the command line.
1865# Strip out --no-create and --no-recursion so they do not pile up.
1866# Strip out --silent because we don't want to record it for future runs.
1867# Also quote any args containing shell meta-characters.
1868# Make two passes to allow for proper duplicate-argument suppression.
1869ac_configure_args=
1870ac_configure_args0=
1871ac_configure_args1=
c6b750e1
DJ
1872ac_must_keep_next=false
1873for ac_pass in 1 2
1874do
1875 for ac_arg
1876 do
1877 case $ac_arg in
1878 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1880 | -silent | --silent | --silen | --sile | --sil)
1881 continue ;;
81ecdfbb
RW
1882 *\'*)
1883 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1884 esac
1885 case $ac_pass in
81ecdfbb 1886 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1887 2)
81ecdfbb 1888 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1889 if test $ac_must_keep_next = true; then
1890 ac_must_keep_next=false # Got value, back to normal.
1891 else
1892 case $ac_arg in
1893 *=* | --config-cache | -C | -disable-* | --disable-* \
1894 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1895 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1896 | -with-* | --with-* | -without-* | --without-* | --x)
1897 case "$ac_configure_args0 " in
1898 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1899 esac
1900 ;;
1901 -* ) ac_must_keep_next=true ;;
1902 esac
1903 fi
81ecdfbb 1904 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1905 ;;
1906 esac
1907 done
1908done
81ecdfbb
RW
1909{ ac_configure_args0=; unset ac_configure_args0;}
1910{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1911
1912# When interrupted or exit'd, cleanup temporary files, and complete
1913# config.log. We remove comments because anyway the quotes in there
1914# would cause problems or look ugly.
81ecdfbb
RW
1915# WARNING: Use '\'' to represent an apostrophe within the trap.
1916# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1917trap 'exit_status=$?
1918 # Save into config.log some information that might help in debugging.
1919 {
1920 echo
1921
1922 cat <<\_ASBOX
1923## ---------------- ##
1924## Cache variables. ##
1925## ---------------- ##
1926_ASBOX
1927 echo
1928 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1929(
1930 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1931 eval ac_val=\$$ac_var
1932 case $ac_val in #(
1933 *${as_nl}*)
1934 case $ac_var in #(
1935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1936$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1937 esac
1938 case $ac_var in #(
1939 _ | IFS | as_nl) ;; #(
1940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1941 *) { eval $ac_var=; unset $ac_var;} ;;
1942 esac ;;
1943 esac
1944 done
c6b750e1 1945 (set) 2>&1 |
81ecdfbb
RW
1946 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1947 *${as_nl}ac_space=\ *)
c6b750e1 1948 sed -n \
81ecdfbb
RW
1949 "s/'\''/'\''\\\\'\'''\''/g;
1950 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1951 ;; #(
c6b750e1 1952 *)
81ecdfbb 1953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1954 ;;
81ecdfbb
RW
1955 esac |
1956 sort
1957)
c6b750e1
DJ
1958 echo
1959
1960 cat <<\_ASBOX
1961## ----------------- ##
1962## Output variables. ##
1963## ----------------- ##
1964_ASBOX
1965 echo
1966 for ac_var in $ac_subst_vars
1967 do
81ecdfbb
RW
1968 eval ac_val=\$$ac_var
1969 case $ac_val in
1970 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1971 esac
1972 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1973 done | sort
1974 echo
1975
1976 if test -n "$ac_subst_files"; then
1977 cat <<\_ASBOX
81ecdfbb
RW
1978## ------------------- ##
1979## File substitutions. ##
1980## ------------------- ##
c6b750e1
DJ
1981_ASBOX
1982 echo
1983 for ac_var in $ac_subst_files
1984 do
81ecdfbb
RW
1985 eval ac_val=\$$ac_var
1986 case $ac_val in
1987 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988 esac
1989 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1990 done | sort
1991 echo
1992 fi
1993
1994 if test -s confdefs.h; then
1995 cat <<\_ASBOX
1996## ----------- ##
1997## confdefs.h. ##
1998## ----------- ##
1999_ASBOX
2000 echo
81ecdfbb 2001 cat confdefs.h
c6b750e1
DJ
2002 echo
2003 fi
2004 test "$ac_signal" != 0 &&
81ecdfbb
RW
2005 $as_echo "$as_me: caught signal $ac_signal"
2006 $as_echo "$as_me: exit $exit_status"
c6b750e1 2007 } >&5
81ecdfbb
RW
2008 rm -f core *.core core.conftest.* &&
2009 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 2010 exit $exit_status
81ecdfbb 2011' 0
c6b750e1 2012for ac_signal in 1 2 13 15; do
81ecdfbb 2013 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
2014done
2015ac_signal=0
2016
2017# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2018rm -f -r conftest* confdefs.h
2019
2020$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
2021
2022# Predefined preprocessor variables.
2023
2024cat >>confdefs.h <<_ACEOF
2025#define PACKAGE_NAME "$PACKAGE_NAME"
2026_ACEOF
2027
c6b750e1
DJ
2028cat >>confdefs.h <<_ACEOF
2029#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2030_ACEOF
2031
c6b750e1
DJ
2032cat >>confdefs.h <<_ACEOF
2033#define PACKAGE_VERSION "$PACKAGE_VERSION"
2034_ACEOF
2035
c6b750e1
DJ
2036cat >>confdefs.h <<_ACEOF
2037#define PACKAGE_STRING "$PACKAGE_STRING"
2038_ACEOF
2039
c6b750e1
DJ
2040cat >>confdefs.h <<_ACEOF
2041#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2042_ACEOF
2043
81ecdfbb
RW
2044cat >>confdefs.h <<_ACEOF
2045#define PACKAGE_URL "$PACKAGE_URL"
2046_ACEOF
2047
c6b750e1
DJ
2048
2049# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2050# Prefer an explicitly selected file to automatically selected ones.
2051ac_site_file1=NONE
2052ac_site_file2=NONE
2053if test -n "$CONFIG_SITE"; then
2054 ac_site_file1=$CONFIG_SITE
2055elif test "x$prefix" != xNONE; then
2056 ac_site_file1=$prefix/share/config.site
2057 ac_site_file2=$prefix/etc/config.site
2058else
2059 ac_site_file1=$ac_default_prefix/share/config.site
2060 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2061fi
81ecdfbb
RW
2062for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2063do
2064 test "x$ac_site_file" = xNONE && continue
a0da8069 2065 if test -r "$ac_site_file"; then
81ecdfbb
RW
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2067$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2068 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2069 . "$ac_site_file"
2070 fi
2071done
2072
2073if test -r "$cache_file"; then
c6b750e1
DJ
2074 # Some versions of bash will fail to source /dev/null (special
2075 # files actually), so we avoid doing that.
2076 if test -f "$cache_file"; then
81ecdfbb
RW
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2078$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2079 case $cache_file in
81ecdfbb
RW
2080 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2081 *) . "./$cache_file";;
c6b750e1
DJ
2082 esac
2083 fi
a0da8069 2084else
81ecdfbb
RW
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2086$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2087 >$cache_file
2088fi
2089
2090# Check that the precious variables saved in the cache have kept the same
2091# value.
2092ac_cache_corrupted=false
81ecdfbb 2093for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2095 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2097 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2098 case $ac_old_set,$ac_new_set in
2099 set,)
81ecdfbb
RW
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2101$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2102 ac_cache_corrupted=: ;;
2103 ,set)
81ecdfbb
RW
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2105$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2106 ac_cache_corrupted=: ;;
2107 ,);;
2108 *)
2109 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2110 # differences in whitespace do not lead to failure.
2111 ac_old_val_w=`echo x $ac_old_val`
2112 ac_new_val_w=`echo x $ac_new_val`
2113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2115$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2116 ac_cache_corrupted=:
2117 else
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2119$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2120 eval $ac_var=\$ac_old_val
2121 fi
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2123$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2125$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2126 fi;;
2127 esac
2128 # Pass precious variables to config.status.
2129 if test "$ac_new_set" = set; then
2130 case $ac_new_val in
81ecdfbb 2131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2132 *) ac_arg=$ac_var=$ac_new_val ;;
2133 esac
2134 case " $ac_configure_args " in
2135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2137 esac
2138 fi
2139done
2140if $ac_cache_corrupted; then
81ecdfbb
RW
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2144$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2145 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2146fi
81ecdfbb
RW
2147## -------------------- ##
2148## Main body of script. ##
2149## -------------------- ##
a0da8069
NN
2150
2151ac_ext=c
a0da8069 2152ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2155ac_compiler_gnu=$ac_cv_c_compiler_gnu
2156
2157
2158
2159
c6b750e1
DJ
2160
2161
34a0f3cf 2162
c6b750e1 2163
5b553f7e
RW
2164
2165progname=$0
2166# if PWD already has a value, it is probably wrong.
2167if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2168
2169# Export original configure arguments for use by sub-configures.
2170# Quote arguments with shell meta charatcers.
2171TOPLEVEL_CONFIGURE_ARGUMENTS=
2172set -- "$progname" "$@"
2173for ac_arg
2174do
2175 case "$ac_arg" in
2176 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2177 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2178 # if the argument is of the form -foo=baz, quote the baz part only
2179 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2180 *) ;;
2181 esac
2182 # Add the quoted argument to the list.
2183 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2184done
2185if test "$silent" = yes; then
2186 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2187fi
2188# Remove the initial space we just introduced and, as these will be
2189# expanded by make, quote '$'.
2190TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2191
c6b750e1
DJ
2192
2193# Find the build, host, and target systems.
a0da8069 2194ac_aux_dir=
81ecdfbb
RW
2195for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2196 for ac_t in install-sh install.sh shtool; do
2197 if test -f "$ac_dir/$ac_t"; then
2198 ac_aux_dir=$ac_dir
2199 ac_install_sh="$ac_aux_dir/$ac_t -c"
2200 break 2
2201 fi
2202 done
a0da8069
NN
2203done
2204if test -z "$ac_aux_dir"; then
81ecdfbb 2205 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2206fi
81ecdfbb
RW
2207
2208# These three variables are undocumented and unsupported,
2209# and are intended to be withdrawn in a future Autoconf release.
2210# They can cause serious problems if a builder's source tree is in a directory
2211# whose full name contains unusual characters.
2212ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2213ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2214ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2215
a0da8069 2216
c6b750e1 2217# Make sure we can run config.sub.
81ecdfbb
RW
2218$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2219 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2220
2221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2222$as_echo_n "checking build system type... " >&6; }
2223if test "${ac_cv_build+set}" = set; then :
2224 $as_echo_n "(cached) " >&6
2225else
2226 ac_build_alias=$build_alias
2227test "x$ac_build_alias" = x &&
2228 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2229test "x$ac_build_alias" = x &&
2230 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2231ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2232 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2233
2234fi
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2236$as_echo "$ac_cv_build" >&6; }
2237case $ac_cv_build in
2238*-*-*) ;;
2239*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2240esac
c6b750e1 2241build=$ac_cv_build
81ecdfbb
RW
2242ac_save_IFS=$IFS; IFS='-'
2243set x $ac_cv_build
2244shift
2245build_cpu=$1
2246build_vendor=$2
2247shift; shift
2248# Remember, the first character of IFS is used to create $*,
2249# except with old shells:
2250build_os=$*
2251IFS=$ac_save_IFS
2252case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2253
a0da8069 2254
c6b750e1
DJ
2255 case ${build_alias} in
2256 "") build_noncanonical=${build} ;;
2257 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2258esac
2259
2260
cac3d6c4 2261
c6b750e1
DJ
2262 case ${host_alias} in
2263 "") host_noncanonical=${build_noncanonical} ;;
2264 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2265esac
2266
cac3d6c4 2267
c6b750e1
DJ
2268
2269 case ${target_alias} in
2270 "") target_noncanonical=${host_noncanonical} ;;
2271 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2272esac
2273
cac3d6c4 2274
c6b750e1
DJ
2275
2276
2277test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2278 test "$program_prefix$program_suffix$program_transform_name" = \
2279 NONENONEs,x,x, &&
c6b750e1 2280 program_transform_name=s,y,y,
cac3d6c4 2281
81ecdfbb
RW
2282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2283$as_echo_n "checking host system type... " >&6; }
2284if test "${ac_cv_host+set}" = set; then :
2285 $as_echo_n "(cached) " >&6
cac3d6c4 2286else
81ecdfbb
RW
2287 if test "x$host_alias" = x; then
2288 ac_cv_host=$ac_cv_build
2289else
2290 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2291 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2292fi
c6b750e1
DJ
2293
2294fi
81ecdfbb
RW
2295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2296$as_echo "$ac_cv_host" >&6; }
2297case $ac_cv_host in
2298*-*-*) ;;
2299*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2300esac
c6b750e1 2301host=$ac_cv_host
81ecdfbb
RW
2302ac_save_IFS=$IFS; IFS='-'
2303set x $ac_cv_host
2304shift
2305host_cpu=$1
2306host_vendor=$2
2307shift; shift
2308# Remember, the first character of IFS is used to create $*,
2309# except with old shells:
2310host_os=$*
2311IFS=$ac_save_IFS
2312case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2313
2314
81ecdfbb
RW
2315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2316$as_echo_n "checking target system type... " >&6; }
2317if test "${ac_cv_target+set}" = set; then :
2318 $as_echo_n "(cached) " >&6
c6b750e1 2319else
81ecdfbb
RW
2320 if test "x$target_alias" = x; then
2321 ac_cv_target=$ac_cv_host
2322else
2323 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2324 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2325fi
c6b750e1 2326
cac3d6c4 2327fi
81ecdfbb
RW
2328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2329$as_echo "$ac_cv_target" >&6; }
2330case $ac_cv_target in
2331*-*-*) ;;
2332*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2333esac
c6b750e1 2334target=$ac_cv_target
81ecdfbb
RW
2335ac_save_IFS=$IFS; IFS='-'
2336set x $ac_cv_target
2337shift
2338target_cpu=$1
2339target_vendor=$2
2340shift; shift
2341# Remember, the first character of IFS is used to create $*,
2342# except with old shells:
2343target_os=$*
2344IFS=$ac_save_IFS
2345case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2346
2347
2348# The aliases save the names the user supplied, while $host etc.
2349# will get canonicalized.
2350test -n "$target_alias" &&
2351 test "$program_prefix$program_suffix$program_transform_name" = \
2352 NONENONEs,x,x, &&
2353 program_prefix=${target_alias}-
81ecdfbb 2354
a0da8069 2355test "$program_prefix" != NONE &&
81ecdfbb 2356 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2357# Use a double $ so make ignores it.
2358test "$program_suffix" != NONE &&
81ecdfbb
RW
2359 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2360# Double any \ or $.
c6b750e1 2361# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2362ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2363program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2364
a0da8069
NN
2365
2366
e5c3f801
NN
2367# Get 'install' or 'install-sh' and its variants.
2368# Find a good install program. We prefer a C program (faster),
2369# so one script is as good as another. But avoid the broken or
2370# incompatible versions:
2371# SysV /etc/install, /usr/sbin/install
2372# SunOS /usr/etc/install
2373# IRIX /sbin/install
2374# AIX /bin/install
c6b750e1 2375# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2376# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2377# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2378# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2379# OS/2's system install, which has a completely different semantic
e5c3f801 2380# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2381# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2383$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2384if test -z "$INSTALL"; then
81ecdfbb
RW
2385if test "${ac_cv_path_install+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2387else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389for as_dir in $PATH
2390do
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2393 # Account for people who put trailing slashes in PATH elements.
2394case $as_dir/ in #((
2395 ./ | .// | /[cC]/* | \
c6b750e1 2396 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2397 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2398 /usr/ucb/* ) ;;
2399 *)
2400 # OSF1 and SCO ODT 3.0 have their own names for install.
2401 # Don't use installbsd from OSF since it installs stuff as root
2402 # by default.
2403 for ac_prog in ginstall scoinst install; do
2404 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2405 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2406 if test $ac_prog = install &&
c6b750e1 2407 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2408 # AIX install. It has an incompatible calling convention.
2409 :
c6b750e1
DJ
2410 elif test $ac_prog = install &&
2411 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2412 # program-specific install script used by HP pwplus--don't use.
2413 :
e5c3f801 2414 else
58c85be7
RW
2415 rm -rf conftest.one conftest.two conftest.dir
2416 echo one > conftest.one
2417 echo two > conftest.two
2418 mkdir conftest.dir
2419 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2420 test -s conftest.one && test -s conftest.two &&
2421 test -s conftest.dir/conftest.one &&
2422 test -s conftest.dir/conftest.two
2423 then
2424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2425 break 3
2426 fi
e5c3f801
NN
2427 fi
2428 fi
2429 done
c6b750e1
DJ
2430 done
2431 ;;
2432esac
81ecdfbb
RW
2433
2434 done
2435IFS=$as_save_IFS
c6b750e1 2436
58c85be7 2437rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2438
2439fi
2440 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2441 INSTALL=$ac_cv_path_install
e5c3f801 2442 else
58c85be7
RW
2443 # As a last resort, use the slow shell script. Don't cache a
2444 # value for INSTALL within a source directory, because that will
e5c3f801 2445 # break other packages using the cache if that directory is
58c85be7 2446 # removed, or if the value is a relative name.
c6b750e1 2447 INSTALL=$ac_install_sh
e5c3f801
NN
2448 fi
2449fi
81ecdfbb
RW
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2451$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2452
2453# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2454# It thinks the first close brace ends the variable substitution.
2455test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2456
c6b750e1 2457test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2458
2459test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2460
81ecdfbb
RW
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2462$as_echo_n "checking whether ln works... " >&6; }
2463if test "${acx_cv_prog_LN+set}" = set; then :
2464 $as_echo_n "(cached) " >&6
656fdd47
PB
2465else
2466 rm -f conftestdata_t
2467echo >conftestdata_f
2468if ln conftestdata_f conftestdata_t 2>/dev/null
2469then
2470 acx_cv_prog_LN=ln
2471else
2472 acx_cv_prog_LN=no
2473fi
2474rm -f conftestdata_f conftestdata_t
2475
2476fi
2477if test $acx_cv_prog_LN = no; then
2478 LN="cp"
81ecdfbb
RW
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2480$as_echo "no, using $LN" >&6; }
656fdd47
PB
2481else
2482 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2484$as_echo "yes" >&6; }
656fdd47
PB
2485fi
2486
81ecdfbb
RW
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2488$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2489LN_S=$as_ln_s
2490if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2492$as_echo "yes" >&6; }
cac3d6c4 2493else
81ecdfbb
RW
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2495$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2496fi
2497
8e957354
PB
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2499$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2500if test "${ac_cv_path_SED+set}" = set; then :
2501 $as_echo_n "(cached) " >&6
2502else
2503 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2504 for ac_i in 1 2 3 4 5 6 7; do
2505 ac_script="$ac_script$as_nl$ac_script"
2506 done
2507 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2508 { ac_script=; unset ac_script;}
2509 if test -z "$SED"; then
2510 ac_path_SED_found=false
2511 # Loop through the user's path and test for each of PROGNAME-LIST
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513for as_dir in $PATH
2514do
2515 IFS=$as_save_IFS
2516 test -z "$as_dir" && as_dir=.
2517 for ac_prog in sed gsed; do
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2520 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2521# Check for GNU ac_path_SED and select it if it is found.
2522 # Check for GNU $ac_path_SED
2523case `"$ac_path_SED" --version 2>&1` in
2524*GNU*)
2525 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2526*)
2527 ac_count=0
2528 $as_echo_n 0123456789 >"conftest.in"
2529 while :
2530 do
2531 cat "conftest.in" "conftest.in" >"conftest.tmp"
2532 mv "conftest.tmp" "conftest.in"
2533 cp "conftest.in" "conftest.nl"
2534 $as_echo '' >> "conftest.nl"
2535 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2536 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2537 as_fn_arith $ac_count + 1 && ac_count=$as_val
2538 if test $ac_count -gt ${ac_path_SED_max-0}; then
2539 # Best one so far, save it but keep looking for a better one
2540 ac_cv_path_SED="$ac_path_SED"
2541 ac_path_SED_max=$ac_count
2542 fi
2543 # 10*(2^10) chars as input seems more than enough
2544 test $ac_count -gt 10 && break
2545 done
2546 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2547esac
2548
2549 $ac_path_SED_found && break 3
2550 done
2551 done
2552 done
2553IFS=$as_save_IFS
2554 if test -z "$ac_cv_path_SED"; then
2555 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2556 fi
2557else
2558 ac_cv_path_SED=$SED
2559fi
2560
2561fi
2562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2563$as_echo "$ac_cv_path_SED" >&6; }
2564 SED="$ac_cv_path_SED"
2565 rm -f conftest.sed
2566
2567for ac_prog in gawk mawk nawk awk
2568do
2569 # Extract the first word of "$ac_prog", so it can be a program name with args.
2570set dummy $ac_prog; ac_word=$2
2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572$as_echo_n "checking for $ac_word... " >&6; }
2573if test "${ac_cv_prog_AWK+set}" = set; then :
2574 $as_echo_n "(cached) " >&6
2575else
2576 if test -n "$AWK"; then
2577 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2578else
2579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580for as_dir in $PATH
2581do
2582 IFS=$as_save_IFS
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_AWK="$ac_prog"
2587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 break 2
2589 fi
2590done
2591 done
2592IFS=$as_save_IFS
2593
2594fi
2595fi
2596AWK=$ac_cv_prog_AWK
2597if test -n "$AWK"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2599$as_echo "$AWK" >&6; }
2600else
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602$as_echo "no" >&6; }
2603fi
2604
2605
2606 test -n "$AWK" && break
2607done
2608
e5c3f801 2609
0fdbe983
DJ
2610srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2611
2612# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2613# a relative path.
2614if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2615 INSTALL="${srcpwd}/install-sh -c"
2616fi
2617
a0da8069
NN
2618# Set srcdir to "." if that's what it is.
2619# This is important for multilib support.
2620pwd=`${PWDCMD-pwd}`
a0da8069
NN
2621if test "${pwd}" = "${srcpwd}" ; then
2622 srcdir=.
252b5132
RH
2623fi
2624
a0da8069 2625topsrcdir=$srcpwd
252b5132 2626
a0da8069 2627extra_host_args=
afefada0 2628
a0da8069
NN
2629### To add a new directory to the tree, first choose whether it is a target
2630### or a host dependent tool. Then put it into the appropriate list
2631### (library or tools, host or target), doing a dependency sort.
252b5132 2632
c6b750e1 2633# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2634# configdirs, or target_configdirs; see the serialization section below.
252b5132 2635
c6b750e1
DJ
2636# Dependency sorting is only needed when *configuration* must be done in
2637# a particular order. In all cases a dependency should be specified in
a0da8069 2638# the Makefile, whether or not it's implicitly specified here.
252b5132 2639
a0da8069
NN
2640# Double entries in build_configdirs, configdirs, or target_configdirs may
2641# cause circular dependencies and break everything horribly.
252b5132 2642
6a9cf61e
PB
2643# these library is used by various programs built for the build
2644# environment
2645#
2646build_libs="build-libiberty"
2647
2648# these tools are built for the build environment
a90ef4bf 2649build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2650
a0da8069
NN
2651# these libraries are used by various programs built for the host environment
2652#
a90ef4bf 2653host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2654
a0da8069
NN
2655# these tools are built for the host environment
2656# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2657# know that we are building the simulator.
2658# binutils, gas and ld appear in that order because it makes sense to run
2659# "make check" in that particular order.
e6de499b 2660# If --enable-gold is used, "gold" may replace "ld".
a90ef4bf 2661host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
a0da8069
NN
2662
2663# libgcj represents the runtime libraries only used by gcj.
2664libgcj="target-libffi \
a0da8069 2665 target-zlib \
a0da8069
NN
2666 target-libjava"
2667
2668# these libraries are built for the target environment, and are built after
2669# the host libraries and the host tools (which may be a cross compiler)
2670#
b1299c4e
DJ
2671target_libraries="target-libgcc \
2672 target-libiberty \
a0da8069
NN
2673 target-libgloss \
2674 target-newlib \
cff87f51 2675 target-libgomp \
b9459e83 2676 target-libstdc++-v3 \
4b1cb4fe 2677 target-libmudflap \
bb780410 2678 target-libssp \
e552509b 2679 target-libquadmath \
4b1cb4fe 2680 target-libgfortran \
4f0ef2d8 2681 target-boehm-gc \
83326456 2682 ${libgcj} \
a2592b1b 2683 target-libobjc \
e552509b
ILT
2684 target-libada \
2685 target-libgo"
a0da8069 2686
9c14acb8
NN
2687# these tools are built using the target libraries, and are intended to
2688# run only in the target environment
a0da8069 2689#
9c14acb8 2690# note: any program that *uses* libraries that are in the "target_libraries"
0377a422 2691# list belongs in this list.
a0da8069 2692#
a90ef4bf 2693target_tools="target-rda"
252b5132 2694
a0da8069 2695################################################################################
252b5132 2696
a0da8069
NN
2697## All tools belong in one of the four categories, and are assigned above
2698## We assign ${configdirs} this way to remove all embedded newlines. This
2699## is important because configure will choke if they ever get through.
2700## ${configdirs} is directories we build using the host tools.
2701## ${target_configdirs} is directories we build using the target tools.
a0da8069 2702configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2703target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2704build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2705
9cc8ae67
PB
2706
2707
a0da8069 2708################################################################################
252b5132 2709
a0da8069 2710srcname="gnu development package"
252b5132 2711
a0da8069
NN
2712# This gets set non-empty for some net releases of packages.
2713appdirs=""
252b5132 2714
a0da8069
NN
2715# Define is_cross_compiler to save on calls to 'test'.
2716is_cross_compiler=
2717if test x"${host}" = x"${target}" ; then
2718 is_cross_compiler=no
252b5132 2719else
a0da8069 2720 is_cross_compiler=yes
c6b750e1 2721fi
252b5132 2722
9175bfc0 2723# Find the build and target subdir names.
dd12c3a8 2724
66a79c16
DJ
2725# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2726# have matching libraries, they should use host libraries: Makefile.tpl
2727# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2728# However, they still use the build modules, because the corresponding
2729# host modules (e.g. bison) are only built for the host when bootstrap
2730# finishes. So:
2731# - build_subdir is where we find build modules, and never changes.
2732# - build_libsubdir is where we find build libraries, and can be overridden.
2733
2734# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2735build_subdir="build-${build_noncanonical}"
c6b750e1 2736
81ecdfbb
RW
2737# Check whether --with-build-libsubdir was given.
2738if test "${with_build_libsubdir+set}" = set; then :
2739 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2740else
2741 build_libsubdir="$build_subdir"
81ecdfbb
RW
2742fi
2743
b00612cc
PB
2744# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2745if ( test $srcdir = . && test -d gcc ) \
2746 || test -d $srcdir/../host-${host_noncanonical}; then
2747 host_subdir="host-${host_noncanonical}"
2748else
2749 host_subdir=.
2750fi
dd12c3a8
NN
2751# No prefix.
2752target_subdir=${target_noncanonical}
c6b750e1 2753
2fd0b40b
RW
2754# Be sure to cover against remnants of an in-tree build.
2755if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2756 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2757Use a pristine source tree when building in a separate tree" "$LINENO" 5
2758fi
252b5132 2759
a0da8069
NN
2760# Skipdirs are removed silently.
2761skipdirs=
2762# Noconfigdirs are removed loudly.
2763noconfigdirs=""
252b5132 2764
a0da8069
NN
2765use_gnu_ld=
2766# Make sure we don't let GNU ld be added if we didn't want it.
2767if test x$with_gnu_ld = xno ; then
2768 use_gnu_ld=no
93f9b408 2769 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2770fi
2771
a0da8069
NN
2772use_gnu_as=
2773# Make sure we don't let GNU as be added if we didn't want it.
2774if test x$with_gnu_as = xno ; then
2775 use_gnu_as=no
2776 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2777fi
2778
700d40ca
ILT
2779use_included_zlib=
2780# Make sure we don't let ZLIB be added if we didn't want it.
2781if test x$with_system_zlib = xyes ; then
2782 use_included_zlib=no
2783 noconfigdirs="$noconfigdirs zlib"
2784fi
2785
c6b750e1 2786# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2787# it's not even worth trying to configure, much less build, that tool.
252b5132 2788
a0da8069
NN
2789case ${with_x} in
2790 yes | "") ;; # the default value for this tree is that X11 is available
2791 no)
675c6968 2792 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2793 # We won't be able to build gdbtk without X.
c6b750e1 2794 enable_gdbtk=no
a0da8069
NN
2795 ;;
2796 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2797esac
252b5132 2798
0377a422 2799# Some are only suitable for cross toolchains.
a0da8069
NN
2800# Remove these if host=target.
2801cross_only="target-libgloss target-newlib target-opcodes"
2802
2803case $is_cross_compiler in
2804 no) skipdirs="${skipdirs} ${cross_only}" ;;
a0da8069 2805esac
252b5132 2806
a0da8069
NN
2807# If both --with-headers and --with-libs are specified, default to
2808# --without-newlib.
32be62b5
RS
2809if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2810 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2811 if test x"${with_newlib}" = x ; then
2812 with_newlib=no
2813 fi
252b5132
RH
2814fi
2815
a0da8069
NN
2816# Recognize --with-newlib/--without-newlib.
2817case ${with_newlib} in
2818 no) skipdirs="${skipdirs} target-newlib" ;;
2819 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2820esac
252b5132 2821
c7791212
NC
2822# Handle --enable-gold, --enable-ld.
2823# --disable-gold [--enable-ld]
2824# Build only ld. Default option.
d3b50760
L
2825# --enable-gold [--enable-ld]
2826# Build both gold and ld. Install gold as "ld.gold", install ld
2827# as "ld.bfd" and "ld".
2828# --enable-gold=default [--enable-ld]
c7791212
NC
2829# Build both gold and ld. Install gold as "ld.gold" and "ld",
2830# install ld as "ld.bfd".
2831# --enable-gold[=default] --disable-ld
2832# Build only gold, which is then installed as both "ld.gold" and "ld".
2833# --enable-gold --enable-ld=default
d3b50760
L
2834# Build both gold (installed as "ld.gold") and ld (installed as "ld"
2835# and ld.bfd).
c7791212
NC
2836# In other words, ld is default
2837# --enable-gold=default --enable-ld=default
2838# Error.
2839
2840default_ld=
81ecdfbb
RW
2841# Check whether --enable-gold was given.
2842if test "${enable_gold+set}" = set; then :
2843 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2844else
2845 ENABLE_GOLD=no
81ecdfbb
RW
2846fi
2847
c7791212
NC
2848case "${ENABLE_GOLD}" in
2849 yes|default)
e6de499b
NC
2850 # Check for ELF target.
2851 is_elf=no
2852 case "${target}" in
2853 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2854 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
5b806d27
NC
2855 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
2856 | *-*-solaris2* | *-*-nto*)
e6de499b
NC
2857 case "${target}" in
2858 *-*-linux*aout* | *-*-linux*oldld*)
2859 ;;
2860 *)
2861 is_elf=yes
2862 ;;
2863 esac
2864 esac
2865
2866 if test "$is_elf" = "yes"; then
2867 # Check for target supported by gold.
93f9b408 2868 case "${target}" in
e6de499b 2869 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
c7791212
NC
2870 configdirs="$configdirs gold"
2871 if test x${ENABLE_GOLD} = xdefault; then
2872 default_ld=gold
2873 fi
e6de499b 2874 ENABLE_GOLD=yes
93f9b408
ILT
2875 ;;
2876 esac
e6de499b
NC
2877 fi
2878 ;;
2879 no)
2880 ;;
2881 *)
2882 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2883 ;;
c7791212
NC
2884esac
2885
2886# Check whether --enable-ld was given.
2887if test "${enable_ld+set}" = set; then :
2888 enableval=$enable_ld; ENABLE_LD=$enableval
2889else
2890 ENABLE_LD=yes
2891fi
2892
2893
2894case "${ENABLE_LD}" in
2895 default)
d3b50760 2896 if test x${default_ld} != x; then
c7791212
NC
2897 as_fn_error "either gold or ld can be the default ld" "$LINENO" 5
2898 fi
2899 ;;
2900 yes)
2901 ;;
2902 no)
2903 if test x${ENABLE_GOLD} != xyes; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
2905$as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
2906 fi
2907 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
2908 ;;
2909 *)
2910 as_fn_error "invalid --enable-ld argument" "$LINENO" 5
2911 ;;
2912esac
93f9b408 2913
a0da8069 2914# Configure extra directories which are host specific
252b5132 2915
a0da8069
NN
2916case "${host}" in
2917 *-cygwin*)
2918 configdirs="$configdirs libtermcap" ;;
2919esac
252b5132 2920
59f7ec45
HPN
2921# A target can indicate whether a language isn't supported for some reason.
2922# Only spaces may be used in this macro; not newlines or tabs.
2923unsupported_languages=
2924
c6b750e1 2925# Remove more programs from consideration, based on the host or
a0da8069
NN
2926# target this usually means that a port of the program doesn't
2927# exist yet.
252b5132 2928
a0da8069 2929case "${host}" in
3516a403 2930 i[3456789]86-*-msdosdjgpp*)
6a608608 2931 noconfigdirs="$noconfigdirs tcl tk itcl"
a0da8069 2932 ;;
a0da8069 2933esac
252b5132 2934
4b1cb4fe 2935
89a1e9c3
PB
2936# Check whether --enable-libquadmath was given.
2937if test "${enable_libquadmath+set}" = set; then :
2938 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
2939else
2940 ENABLE_LIBQUADMATH=yes
2941fi
2942
2943if test "${ENABLE_LIBQUADMATH}" = "no" ; then
2944 noconfigdirs="$noconfigdirs target-libquadmath"
2945fi
2946
2947
2948# Check whether --enable-libquadmath-support was given.
2949if test "${enable_libquadmath_support+set}" = set; then :
2950 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
2951else
2952 ENABLE_LIBQUADMATH_SUPPORT=yes
2953fi
2954
2955enable_libquadmath_support=
2956if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
2957 enable_libquadmath_support=no
2958fi
2959
2960
81ecdfbb
RW
2961# Check whether --enable-libada was given.
2962if test "${enable_libada+set}" = set; then :
2963 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2964else
2965 ENABLE_LIBADA=yes
81ecdfbb
RW
2966fi
2967
a2592b1b 2968if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2969 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2970fi
2971
81ecdfbb
RW
2972# Check whether --enable-libssp was given.
2973if test "${enable_libssp+set}" = set; then :
2974 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
2975else
2976 ENABLE_LIBSSP=yes
81ecdfbb
RW
2977fi
2978
5f128533 2979
a0da8069
NN
2980# Save it here so that, even in case of --enable-libgcj, if the Java
2981# front-end isn't enabled, we still get libgcj disabled.
2982libgcj_saved=$libgcj
2983case $enable_libgcj in
2984yes)
2985 # If we reset it here, it won't get added to noconfigdirs in the
2986 # target-specific build rules, so it will be forcibly enabled
2987 # (unless the Java language itself isn't enabled).
2988 libgcj=
2989 ;;
2990no)
2991 # Make sure we get it printed in the list of not supported target libs.
9e1a94f4
ILT
2992 # Don't disable libffi, though, other languages use it.
2993 noconfigdirs="$noconfigdirs `echo ${libgcj} | sed -e 's/target-libffi//'`"
33d23ee8
ILT
2994 # Clear libgcj_saved so that even if java is enabled libffi won't be
2995 # built.
2996 libgcj_saved=
a0da8069
NN
2997 ;;
2998esac
252b5132 2999
4b1cb4fe 3000
a6df5a19
PB
3001# Disable libmudflap on some systems.
3002if test x$enable_libmudflap = x ; then
3e707e94 3003 case "${target}" in
29383458 3004 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 3005 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
3006 ;;
3007 *-*-freebsd*)
3008 # Enable libmudflap by default in FreeBSD.
3009 ;;
3010 *)
3011 # Disable it by default everywhere else.
3012 noconfigdirs="$noconfigdirs target-libmudflap"
3013 ;;
3014 esac
a6df5a19 3015fi
4b1cb4fe 3016
a6df5a19
PB
3017# Disable libgomp on non POSIX hosted systems.
3018if test x$enable_libgomp = x ; then
b3ded179
PB
3019 # Enable libgomp by default on hosted POSIX systems.
3020 case "${target}" in
29383458 3021 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179 3022 ;;
5b806d27 3023 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
b3ded179 3024 ;;
1f111696 3025 *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3026 ;;
3027 *-*-darwin* | *-*-aix*)
3028 ;;
3029 *)
3030 noconfigdirs="$noconfigdirs target-libgomp"
3031 ;;
3032 esac
a6df5a19 3033fi
b3ded179 3034
065a5627
JM
3035# Disable libssp for some systems.
3036case "${target}" in
3037 avr-*-*)
c5f5c3c2 3038 # No hosted I/O support.
065a5627
JM
3039 noconfigdirs="$noconfigdirs target-libssp"
3040 ;;
3041 powerpc-*-aix* | rs6000-*-aix*)
3042 noconfigdirs="$noconfigdirs target-libssp"
3043 ;;
065a5627
JM
3044esac
3045
3046# Disable target libiberty for some systems.
3047case "${target}" in
3048 *-*-kaos*)
3049 # Remove unsupported stuff on all kaOS configurations.
3050 skipdirs="target-libiberty"
3051 ;;
3052 *-*-netbsd*)
3053 # Skip some stuff on all NetBSD configurations.
3054 noconfigdirs="$noconfigdirs target-libiberty"
3055 ;;
3056 *-*-netware*)
3057 noconfigdirs="$noconfigdirs target-libiberty"
3058 ;;
3059 *-*-rtems*)
3060 skipdirs="${skipdirs} target-libiberty"
3061 ;;
3062 *-*-tpf*)
3063 noconfigdirs="$noconfigdirs target-libiberty"
3064 ;;
3065 *-*-vxworks*)
3066 noconfigdirs="$noconfigdirs target-libiberty"
3067 ;;
3068 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3069 noconfigdirs="$noconfigdirs target-libiberty"
3070 ;;
3071 arm*-*-symbianelf*)
3072 noconfigdirs="$noconfigdirs target-libiberty"
3073 ;;
3074 avr-*-*)
3075 noconfigdirs="$noconfigdirs target-libiberty"
3076 ;;
3077 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3078 noconfigdirs="$noconfigdirs target-libiberty"
3079 ;;
3080 picochip-*-*)
3081 noconfigdirs="$noconfigdirs target-libiberty"
3082 ;;
3083 mips*-sde-elf*)
3084 skipdirs="$skipdirs target-libiberty"
3085 ;;
3086 ip2k-*-*)
3087 noconfigdirs="$noconfigdirs target-libiberty"
3088 ;;
3089esac
3090
3091# Disable libstdc++-v3 for some systems.
3092case "${target}" in
3093 *-*-vxworks*)
3094 # VxWorks uses the Dinkumware C++ library.
3095 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3096 ;;
3097 arm*-wince-pe*)
3098 # the C++ libraries don't build on top of CE's C libraries
3099 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3100 ;;
3101 avr-*-*)
3102 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3103 ;;
3104esac
3105
3106# Disable Fortran for some systems.
3107case "${target}" in
3108 mmix-*-*)
3109 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3110 unsupported_languages="$unsupported_languages fortran"
3111 ;;
3112esac
3113
9863d716
JM
3114# Disable Java, libgcj or related libraries for some systems.
3115case "${target}" in
3116 *-*-chorusos)
3117 ;;
3118 powerpc-*-darwin*)
3119 ;;
3120 i[3456789]86-*-darwin*)
3121 ;;
3122 x86_64-*-darwin[912]*)
3123 ;;
3124 *-*-darwin*)
3125 noconfigdirs="$noconfigdirs ${libgcj}"
3126 ;;
3127 *-*-dragonfly*)
3128 ;;
3129 *-*-freebsd*)
3130 # Skip some stuff that's unsupported on some FreeBSD configurations.
3131 case "${target}" in
3132 i*86-*-*) ;;
3133 alpha*-*-*) ;;
3134 x86_64-*-*) ;;
3135 *)
3136 noconfigdirs="$noconfigdirs ${libgcj}"
3137 ;;
3138 esac
3139 ;;
3140 *-*-kaos*)
3141 ;;
3142 *-*-netbsd*)
3143 # Skip some stuff that's unsupported on some NetBSD configurations.
3144 case "${target}" in
3145 i*86-*-netbsdelf*) ;;
3146 arm*-*-netbsdelf*) ;;
3147 *)
3148 noconfigdirs="$noconfigdirs ${libgcj}"
3149 ;;
3150 esac
3151 ;;
3152 *-*-netware*)
3153 noconfigdirs="$noconfigdirs ${libgcj}"
3154 ;;
3155 *-*-rtems*)
3156 noconfigdirs="$noconfigdirs ${libgcj}"
3157 ;;
3158 *-*-tpf*)
3159 noconfigdirs="$noconfigdirs ${libgcj}"
3160 ;;
3161 *-*-uclinux*)
3162 noconfigdirs="$noconfigdirs ${libgcj}"
3163 ;;
3164 *-*-vxworks*)
3165 noconfigdirs="$noconfigdirs ${libgcj}"
3166 ;;
3167 alpha*-dec-osf*)
3168 ;;
3169 alpha*-*-*vms*)
3170 noconfigdirs="$noconfigdirs ${libgcj}"
3171 ;;
3172 alpha*-*-linux*)
3173 ;;
3174 alpha*-*-*)
3175 noconfigdirs="$noconfigdirs ${libgcj}"
3176 ;;
3177 am33_2.0-*-linux*)
3178 noconfigdirs="$noconfigdirs ${libgcj}"
3179 ;;
3180 sh-*-linux*)
3181 noconfigdirs="$noconfigdirs ${libgcj}"
3182 ;;
3183 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3184 noconfigdirs="$noconfigdirs ${libgcj}"
3185 ;;
3186 arc-*-*)
3187 ;;
3188 arm-*-coff)
3189 ;;
3190 arm-*-elf* | arm*-*-eabi* )
3191 noconfigdirs="$noconfigdirs target-libffi"
3192 ;;
3193 arm*-*-linux-gnueabi)
3194 ;;
3195 arm*-*-symbianelf*)
3196 noconfigdirs="$noconfigdirs ${libgcj}"
3197 ;;
3198 arm-*-pe*)
3199 noconfigdirs="$noconfigdirs ${libgcj}"
3200 ;;
3201 arm-*-riscix*)
3202 ;;
3203 avr-*-*)
3204 noconfigdirs="$noconfigdirs ${libgcj}"
3205 ;;
3206 bfin-*-*)
3207 unsupported_languages="$unsupported_languages java"
3208 noconfigdirs="$noconfigdirs target-boehm-gc"
3209 ;;
3210 c4x-*-* | tic4x-*-*)
3211 ;;
3212 tic54x-*-*)
3213 ;;
3214 cr16-*-*)
3215 noconfigdirs="$noconfigdirs ${libgcj}"
3216 ;;
3217 cris-*-* | crisv32-*-*)
3218 unsupported_languages="$unsupported_languages java"
3219 case "${target}" in
3220 *-*-linux*)
3221 ;;
3222 *) # See PR46792 regarding target-libffi.
3223 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
3224 esac
3225 ;;
3226 d10v-*-*)
3227 ;;
3228 d30v-*-*)
3229 ;;
3230 fr30-*-elf*)
3231 noconfigdirs="$noconfigdirs ${libgcj}"
3232 ;;
3233 frv-*-*)
3234 noconfigdirs="$noconfigdirs ${libgcj}"
3235 ;;
3236 moxie-*-*)
3237 noconfigdirs="$noconfigdirs ${libgcj}"
3238 ;;
3239 h8300*-*-*)
3240 noconfigdirs="$noconfigdirs ${libgcj}"
3241 ;;
3242 h8500-*-*)
3243 ;;
3244 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3245 ;;
3246 hppa*64*-*-linux*)
3247 # In this case, it's because the hppa64-linux target is for
3248 # the kernel only at this point and has no libc, and thus no
3249 # headers, crt*.o, etc., all of which are needed by these.
3250 noconfigdirs="$noconfigdirs target-zlib"
3251 ;;
3252 hppa*-*-linux*)
3253 ;;
3254 hppa*-*-*elf* | \
3255 hppa*-*-lites* | \
3256 hppa*-*-openbsd* | \
3257 hppa*64*-*-*)
3258 noconfigdirs="$noconfigdirs ${libgcj}"
3259 ;;
3260 hppa*-hp-hpux11*)
3261 ;;
3262 hppa*-*-pro*)
3263 ;;
3264 hppa*-*-*)
3265 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3266 # build on HP-UX 10.20.
3267 noconfigdirs="$noconfigdirs ${libgcj}"
3268 ;;
3269 i960-*-*)
3270 ;;
3271 ia64*-*-elf*)
3272 ;;
3273 ia64*-**-hpux*)
3274 ;;
3275 ia64*-*-*vms*)
3276 noconfigdirs="$noconfigdirs ${libgcj}"
3277 ;;
3278 i[3456789]86-*-coff | i[3456789]86-*-elf)
3279 noconfigdirs="$noconfigdirs ${libgcj}"
3280 ;;
3281 i[3456789]86-*-linux*)
3282 ;;
3283 i[3456789]86-w64-mingw*)
3284 noconfigdirs="$noconfigdirs ${libgcj}"
3285 ;;
3286 i[3456789]86-*-mingw*)
3287 noconfigdirs="$noconfigdirs ${libgcj}"
3288 ;;
3289 x86_64-*-mingw*)
3290 noconfigdirs="$noconfigdirs ${libgcj}"
3291 ;;
3292 *-*-cygwin*)
3293 ;;
3294 i[3456789]86-*-interix* )
3295 ;;
3296 i[3456789]86-*-pe)
3297 ;;
3298 i[3456789]86-*-sco3.2v5*)
3299 ;;
3300 i[3456789]86-*-sco*)
3301 ;;
3302 i[3456789]86-*-solaris2*)
3303 ;;
3304 i[3456789]86-*-sysv4*)
3305 ;;
3306 i[3456789]86-*-beos*)
3307 ;;
3308 i[3456789]86-*-rdos*)
3309 ;;
3310 m32r-*-*)
3311 noconfigdirs="$noconfigdirs ${libgcj}"
3312 ;;
3313 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3314 ;;
3315 m68k-*-elf*)
3316 noconfigdirs="$noconfigdirs ${libgcj}"
3317 ;;
3318 m68*-*-* | fido-*-*)
3319 ;;
3320 mmix-*-*)
3321 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
3322 unsupported_languages="$unsupported_languages java"
3323 ;;
3324 mt-*-*)
3325 ;;
3326 powerpc-*-aix*)
3327 # copied from rs6000-*-* entry
3328 noconfigdirs="$noconfigdirs ${libgcj}"
3329 ;;
3330 powerpc*-*-winnt* | powerpc*-*-pe*)
3331 ;;
3332 powerpcle-*-solaris*)
3333 ;;
3334 powerpc-*-beos*)
3335 ;;
3336 powerpc-*-eabi)
3337 noconfigdirs="$noconfigdirs ${libgcj}"
3338 ;;
3339 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
3340 ;;
3341 rs6000-*-lynxos*)
3342 noconfigdirs="$noconfigdirs ${libgcj}"
3343 ;;
3344 rs6000-*-aix*)
3345 noconfigdirs="$noconfigdirs ${libgcj}"
3346 ;;
3347 rs6000-*-*)
3348 noconfigdirs="$noconfigdirs ${libgcj}"
3349 ;;
3350 m68k-apollo-*)
3351 ;;
3352 microblaze*)
3353 noconfigdirs="$noconfigdirs ${libgcj}"
3354 ;;
3355 mips*-sde-elf*)
3356 noconfigdirs="$noconfigdirs ${libgcj}"
3357 ;;
3358 mips*-*-irix5*)
3359 ;;
3360 mips*-*-irix6*)
3361 # Linking libjava exceeds command-line length limits on at least
3362 # IRIX 6.2, but not on IRIX 6.5.
3363 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3364 # <oldham@codesourcery.com>
3365 noconfigdirs="$noconfigdirs ${libgcj}"
3366 ;;
3367 mips*-*-bsd*)
3368 ;;
3369 mips*-*-linux*)
3370 ;;
3371 mips*-*-*)
3372 noconfigdirs="$noconfigdirs ${libgcj}"
3373 ;;
3374 sh-*-* | sh64-*-*)
3375 noconfigdirs="$noconfigdirs ${libgcj}"
3376 ;;
3377 sparclet-*-aout* | sparc86x-*-*)
3378 ;;
3379 sparc-*-elf*)
3380 noconfigdirs="$noconfigdirs ${libgcj}"
3381 ;;
3382 sparc64-*-elf*)
3383 noconfigdirs="$noconfigdirs ${libgcj}"
3384 ;;
3385 sparclite-*-*)
3386 ;;
3387 sparc-*-sunos4*)
3388 ;;
3389 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3390 ;;
3391 tic6x-*-*)
3392 noconfigdirs="$noconfigdirs ${libgcj}"
3393 ;;
3394 v810-*-*)
3395 ;;
3396 vax-*-*)
3397 noconfigdirs="$noconfigdirs ${libgcj}"
3398 ;;
3399 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3400 ;;
3401 *-*-lynxos*)
3402 noconfigdirs="$noconfigdirs ${libgcj}"
3403 ;;
3404 *-*-*)
3405 noconfigdirs="$noconfigdirs ${libgcj}"
3406 ;;
3407esac
3408
691bb5a1
DD
3409# Default libgloss CPU subdirectory.
3410libgloss_dir="$target_cpu"
4b1cb4fe 3411
a0da8069
NN
3412case "${target}" in
3413 *-*-chorusos)
b2f14e4a 3414 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3415 ;;
24741ab2 3416 powerpc-*-darwin*)
9d39db92 3417 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3418 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3419 ;;
85bd1942
TG
3420 i[3456789]86-*-darwin*)
3421 noconfigdirs="$noconfigdirs ld gprof"
3422 noconfigdirs="$noconfigdirs sim target-rda"
3423 ;;
e8a5fa9c 3424 x86_64-*-darwin[912]*)
652dec25
TG
3425 noconfigdirs="$noconfigdirs ld gas gprof"
3426 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3427 ;;
04d1ab34 3428 *-*-darwin*)
d320aacb 3429 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3430 noconfigdirs="$noconfigdirs sim target-rda"
04d1ab34 3431 ;;
5b806d27
NC
3432 *-*-dragonfly*)
3433 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3434 ;;
de0b4a87 3435 *-*-freebsd*)
4b1cb4fe
DD
3436 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3437 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3438 && test -f /usr/local/include/gmp.h; then
3439 with_gmp=/usr/local
3440 fi
4b1cb4fe 3441 ;;
f8a495c8
NC
3442 *-*-kaos*)
3443 # Remove unsupported stuff on all kaOS configurations.
f8a495c8
NC
3444 noconfigdirs="$noconfigdirs target-libgloss"
3445 ;;
a0da8069
NN
3446 *-*-netbsd*)
3447 # Skip some stuff on all NetBSD configurations.
065a5627 3448 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3449 ;;
2a3124ca 3450 *-*-netware*)
9863d716 3451 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069
NN
3452 ;;
3453 *-*-rtems*)
9863d716 3454 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3455 ;;
1587117a
EC
3456 # The tpf target doesn't support gdb yet.
3457 *-*-tpf*)
9863d716 3458 noconfigdirs="$noconfigdirs target-newlib target-libgloss gdb tcl tk libgui itcl"
1587117a 3459 ;;
c1968181 3460 *-*-uclinux*)
9863d716 3461 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda"
c1968181 3462 ;;
a0da8069 3463 *-*-vxworks*)
9863d716 3464 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069
NN
3465 ;;
3466 alpha*-dec-osf*)
3467 # ld works, but does not support shared libraries.
0377a422 3468 # newlib is not 64 bit ready.
a0da8069 3469 # gas doesn't generate exception information.
0377a422 3470 noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
a0da8069
NN
3471 ;;
3472 alpha*-*-*vms*)
9863d716 3473 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069
NN
3474 ;;
3475 alpha*-*-linux*)
3476 # newlib is not 64 bit ready
3477 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3478 ;;
a0da8069
NN
3479 alpha*-*-*)
3480 # newlib is not 64 bit ready
9863d716 3481 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3482 ;;
4a18bd6b 3483 am33_2.0-*-linux*)
9863d716 3484 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4a18bd6b 3485 ;;
a0da8069 3486 sh-*-linux*)
9863d716 3487 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
c6b750e1 3488 ;;
a0da8069 3489 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
675c6968 3490 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069 3491 noconfigdirs="$noconfigdirs target-newlib"
691bb5a1 3492 libgloss_dir=wince
a0da8069
NN
3493 ;;
3494 arc-*-*)
782cb41f 3495 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3496 ;;
93cc359e 3497 arm-*-coff)
691bb5a1 3498 libgloss_dir=arm
a0da8069 3499 ;;
93cc359e 3500 arm-*-elf* | arm*-*-eabi* )
691bb5a1 3501 libgloss_dir=arm
a0da8069 3502 ;;
bd70a46f 3503 arm*-*-linux-gnueabi)
a5b3b4dd
DD
3504 case ${with_newlib} in
3505 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3506 esac
691bb5a1 3507 libgloss_dir=arm
bd70a46f 3508 ;;
df4a6958 3509 arm*-*-symbianelf*)
691bb5a1 3510 libgloss_dir=arm
df4a6958 3511 ;;
a0da8069 3512 arm-*-pe*)
9863d716 3513 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3514 ;;
a0da8069 3515 arm-*-riscix*)
b2f14e4a 3516 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069
NN
3517 ;;
3518 avr-*-*)
a0da8069 3519 ;;
376a0e54 3520 bfin-*-*)
376a0e54 3521 ;;
a0da8069 3522 c4x-*-* | tic4x-*-*)
b2f14e4a 3523 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3524 ;;
b2f14e4a
JM
3525 tic54x-*-*)
3526 noconfigdirs="$noconfigdirs target-libgloss gdb"
a0da8069 3527 ;;
52310858 3528 cr16-*-*)
9863d716 3529 noconfigdirs="$noconfigdirs gdb"
52310858 3530 ;;
c7e66c6d
HPN
3531 cris-*-* | crisv32-*-*)
3532 case "${target}" in
2faa2958 3533 *-*-linux*)
5e818318 3534 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3535 esac
691bb5a1 3536 libgloss_dir=cris
a0da8069
NN
3537 ;;
3538 d10v-*-*)
b2f14e4a 3539 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3540 ;;
3541 d30v-*-*)
b2f14e4a 3542 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3543 ;;
3544 fr30-*-elf*)
9863d716 3545 noconfigdirs="$noconfigdirs gdb"
a0da8069
NN
3546 ;;
3547 frv-*-*)
a0da8069 3548 ;;
20135e4c 3549 moxie-*-*)
20135e4c
NC
3550 noconfigdirs="$noconfigdirs gprof"
3551 ;;
a0da8069 3552 h8300*-*-*)
9863d716 3553 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069
NN
3554 ;;
3555 h8500-*-*)
b2f14e4a 3556 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3557 ;;
caeba88f 3558 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3559 ;;
93cc359e 3560 hppa*64*-*-linux*)
a0da8069 3561 ;;
f0ff0f90 3562 hppa*-*-linux*)
5dcac624 3563 ;;
a0da8069 3564 hppa*-*-*elf* | \
a0da8069
NN
3565 hppa*-*-lites* | \
3566 hppa*-*-openbsd* | \
3567 hppa*64*-*-*)
4f0ef2d8
CD
3568 ;;
3569 hppa*-hp-hpux11*)
0377a422 3570 noconfigdirs="$noconfigdirs ld"
a0da8069 3571 ;;
691bb5a1
DD
3572 hppa*-*-pro*)
3573 libgloss_dir=pa
3574 ;;
a0da8069 3575 hppa*-*-*)
9863d716 3576 noconfigdirs="$noconfigdirs ld"
a0da8069 3577 ;;
b07c2aad 3578 i960-*-*)
b2f14e4a 3579 noconfigdirs="$noconfigdirs gdb"
b07c2aad 3580 ;;
a0da8069
NN
3581 ia64*-*-elf*)
3582 # No gdb support yet.
0377a422 3583 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
a0da8069
NN
3584 ;;
3585 ia64*-**-hpux*)
92c9a463 3586 # No ld support yet.
9863d716 3587 noconfigdirs="$noconfigdirs libgui itcl ld"
a0da8069 3588 ;;
19e99079
NC
3589 ia64*-*-*vms*)
3590 # No gdb or ld support yet.
9863d716 3591 noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
19e99079 3592 ;;
ec11bdc6 3593 i[3456789]86-*-coff | i[3456789]86-*-elf)
691bb5a1 3594 libgloss_dir=i386
a0da8069 3595 ;;
ec11bdc6 3596 i[3456789]86-*-linux*)
a0da8069
NN
3597 # This section makes it possible to build newlib natively on linux.
3598 # If we are using a cross compiler then don't configure newlib.
3599 if test x${is_cross_compiler} != xno ; then
bba45b8b 3600 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3601 fi
3602 noconfigdirs="$noconfigdirs target-libgloss"
3603 # If we are not using a cross compiler, do configure newlib.
3604 # Note however, that newlib will only be configured in this situation
3605 # if the --with-newlib option has been given, because otherwise
3606 # 'target-newlib' will appear in skipdirs.
3607 ;;
1f53ca9a 3608 i[3456789]86-w64-mingw*)
9863d716 3609 noconfigdirs="$noconfigdirs target-libgloss target-newlib"
1f53ca9a
AO
3610 ;;
3611 i[3456789]86-*-mingw*)
45055374 3612 target_configdirs="$target_configdirs target-winsup"
9863d716 3613 noconfigdirs="$noconfigdirs target-libgloss target-newlib"
c6b750e1 3614 ;;
2d1e8239 3615 x86_64-*-mingw*)
9863d716 3616 noconfigdirs="$noconfigdirs target-libgloss target-newlib"
c6b750e1 3617 ;;
a0da8069
NN
3618 *-*-cygwin*)
3619 target_configdirs="$target_configdirs target-libtermcap target-winsup"
0377a422 3620 noconfigdirs="$noconfigdirs target-libgloss"
b76d7de0 3621 # always build newlib if winsup directory is present.
45055374 3622 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3623 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3624 elif test -d "$srcdir/newlib"; then
45055374 3625 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3626 fi
c6b750e1 3627 ;;
f0ff0f90 3628 i[3456789]86-*-interix* )
caeba88f 3629 ;;
ec11bdc6 3630 i[3456789]86-*-pe)
782cb41f 3631 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3632 ;;
ec11bdc6 3633 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3634 # The linker does not yet know about weak symbols in COFF,
3635 # and is not configured to handle mixed ELF and COFF.
b2f14e4a 3636 noconfigdirs="$noconfigdirs ld target-libgloss"
a0da8069 3637 ;;
ec11bdc6 3638 i[3456789]86-*-sco*)
b2f14e4a 3639 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3640 ;;
ec11bdc6 3641 i[3456789]86-*-solaris2*)
a0da8069
NN
3642 noconfigdirs="$noconfigdirs target-libgloss"
3643 ;;
ec11bdc6 3644 i[3456789]86-*-sysv4*)
b2f14e4a 3645 noconfigdirs="$noconfigdirs target-libgloss"
a0da8069 3646 ;;
ec11bdc6 3647 i[3456789]86-*-beos*)
b2f14e4a 3648 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
bba45b8b 3649 ;;
b59bea8a 3650 i[3456789]86-*-rdos*)
2429c060
PB
3651 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3652 ;;
b07c2aad 3653 m32r-*-*)
b07c2aad 3654 ;;
a0da8069 3655 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
691bb5a1 3656 libgloss_dir=m68hc11
a0da8069
NN
3657 ;;
3658 m68k-*-elf*)
a0da8069 3659 ;;
691bb5a1
DD
3660 m68*-*-* | fido-*-*)
3661 libgloss_dir=m68k
3662 ;;
a0da8069 3663 mmix-*-*)
9863d716 3664 noconfigdirs="$noconfigdirs gdb"
a0da8069 3665 ;;
4970f871 3666 mt-*-*)
cdb9b172
AH
3667 noconfigdirs="$noconfigdirs sim"
3668 ;;
a0da8069
NN
3669 powerpc-*-aix*)
3670 # copied from rs6000-*-* entry
9863d716 3671 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib"
a0da8069 3672 ;;
93cc359e 3673 powerpc*-*-winnt* | powerpc*-*-pe*)
a0da8069 3674 target_configdirs="$target_configdirs target-winsup"
b2f14e4a 3675 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
a0da8069
NN
3676 # always build newlib.
3677 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3678 ;;
3679 # This is temporary until we can link against shared libraries
3680 powerpcle-*-solaris*)
b2f14e4a 3681 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
691bb5a1 3682 libgloss_dir=rs6000
a0da8069
NN
3683 ;;
3684 powerpc-*-beos*)
b2f14e4a 3685 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
a0da8069 3686 ;;
a0da8069 3687 powerpc-*-eabi)
691bb5a1 3688 libgloss_dir=rs6000
caeba88f
AL
3689 ;;
3690 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3691 libgloss_dir=rs6000
a0da8069 3692 ;;
a0da8069 3693 rs6000-*-lynxos*)
9863d716 3694 noconfigdirs="$noconfigdirs target-newlib gprof"
a0da8069
NN
3695 ;;
3696 rs6000-*-aix*)
9863d716 3697 noconfigdirs="$noconfigdirs gprof target-libgloss target-newlib"
a0da8069
NN
3698 ;;
3699 rs6000-*-*)
9863d716 3700 noconfigdirs="$noconfigdirs gprof"
a0da8069
NN
3701 ;;
3702 m68k-apollo-*)
b2f14e4a 3703 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
a0da8069 3704 ;;
25a07265 3705 microblaze*)
9863d716 3706 noconfigdirs="$noconfigdirs gprof"
25a07265 3707 ;;
5bd8be13 3708 mips*-sde-elf*)
5bd8be13
RS
3709 if test x$with_newlib = xyes; then
3710 noconfigdirs="$noconfigdirs gprof"
3711 fi
3712 libgloss_dir=mips
3713 ;;
a0da8069 3714 mips*-*-irix5*)
b2f14e4a 3715 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069
NN
3716 ;;
3717 mips*-*-irix6*)
9863d716 3718 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3719 ;;
a0da8069 3720 mips*-*-bsd*)
b2f14e4a 3721 noconfigdirs="$noconfigdirs gprof target-libgloss"
a0da8069 3722 ;;
a0da8069
NN
3723 mips*-*-linux*)
3724 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3725 ;;
3726 mips*-*-*)
9863d716 3727 noconfigdirs="$noconfigdirs gprof"
691bb5a1 3728 libgloss_dir=mips
a0da8069 3729 ;;
dbf85af7 3730 sh-*-* | sh64-*-*)
e8a5fa9c
RW
3731 case "${target}" in
3732 sh*-*-elf)
9863d716 3733 ;;
e8a5fa9c 3734 *)
9863d716 3735 noconfigdirs="$noconfigdirs target-libgloss" ;;
e8a5fa9c 3736 esac
a0da8069 3737 ;;
691bb5a1
DD
3738 sparclet-*-aout* | sparc86x-*-*)
3739 libgloss_dir=sparc
3740 ;;
a0da8069 3741 sparc-*-elf*)
a0da8069
NN
3742 ;;
3743 sparc64-*-elf*)
691bb5a1 3744 libgloss_dir=sparc
a0da8069
NN
3745 ;;
3746 sparclite-*-*)
691bb5a1 3747 libgloss_dir=sparc
a0da8069
NN
3748 ;;
3749 sparc-*-sunos4*)
a0da8069
NN
3750 if test x${is_cross_compiler} != xno ; then
3751 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3752 else
3753 use_gnu_ld=no
3754 fi
3755 ;;
3756 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3757 ;;
619a3713 3758 tic6x-*-*)
9863d716 3759 noconfigdirs="$noconfigdirs gdb sim"
619a3713 3760 ;;
a0da8069 3761 v810-*-*)
b2f14e4a 3762 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
a0da8069
NN
3763 ;;
3764 vax-*-*)
9863d716 3765 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
a0da8069 3766 ;;
29383458 3767 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3768 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3769 ;;
3770 *-*-lynxos*)
9863d716 3771 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
c6b750e1 3772 ;;
a0da8069 3773 *-*-*)
a0da8069
NN
3774 ;;
3775esac
252b5132 3776
a0da8069
NN
3777# If we aren't building newlib, then don't build libgloss, since libgloss
3778# depends upon some newlib header files.
3779case "${noconfigdirs}" in
3780 *target-libgloss*) ;;
3781 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3782esac
3783
a0da8069 3784# Work in distributions that contain no compiler tools, like Autoconf.
a0da8069
NN
3785host_makefile_frag=/dev/null
3786if test -d ${srcdir}/config ; then
3787case "${host}" in
ec11bdc6 3788 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3789 host_makefile_frag="config/mh-djgpp"
3790 ;;
3791 *-cygwin*)
e33b51a6 3792
81ecdfbb
RW
3793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3794$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3795echo a >cygwin-cat-check
1f53ca9a 3796if test `cat cygwin-cat-check` = a ; then
8ade07e9 3797 rm cygwin-cat-check
81ecdfbb
RW
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3799$as_echo "yes" >&6; }
e33b51a6 3800else
8ade07e9 3801 rm cygwin-cat-check
81ecdfbb
RW
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803$as_echo "no" >&6; }
3804 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3805 Please either mount the build directory in binary mode or run the following
3806 commands before running any configure script:
3807set -o igncr
3808export SHELLOPTS
81ecdfbb 3809 " "$LINENO" 5
e33b51a6 3810fi
e33b51a6 3811
a0da8069
NN
3812 host_makefile_frag="config/mh-cygwin"
3813 ;;
8a1599ab 3814 *-mingw*)
84e7906e 3815 host_makefile_frag="config/mh-mingw"
2d1e8239 3816 ;;
a0da8069
NN
3817 *-interix*)
3818 host_makefile_frag="config/mh-interix"
3819 ;;
da888c87 3820 hppa*-hp-hpux10*)
da888c87 3821 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3822 ;;
3516a403 3823 hppa*-hp-hpux*)
da888c87
PB
3824 host_makefile_frag="config/mh-pa"
3825 ;;
3826 hppa*-*)
3827 host_makefile_frag="config/mh-pa"
3828 ;;
e552509b
ILT
3829 *-*-darwin*)
3830 host_makefile_frag="config/mh-darwin"
0df3d27f 3831 ;;
f6d183c0
PB
3832 powerpc-*-aix*)
3833 host_makefile_frag="config/mh-ppc-aix"
3834 ;;
3835 rs6000-*-aix*)
3836 host_makefile_frag="config/mh-ppc-aix"
3837 ;;
a0da8069
NN
3838esac
3839fi
3840
9e07f89d 3841if test "${build}" != "${host}" ; then
1576798e
PB
3842 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3843 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3844 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3845 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3846 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3847 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
e552509b 3848 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
1576798e
PB
3849 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3850 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3851 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3852 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3853 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3854 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3855else
3856 AR_FOR_BUILD="\$(AR)"
3857 AS_FOR_BUILD="\$(AS)"
512b7dfb 3858 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3859 CXX_FOR_BUILD="\$(CXX)"
3860 GCJ_FOR_BUILD="\$(GCJ)"
3861 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
e552509b 3862 GOC_FOR_BUILD="\$(GOC)"
1576798e
PB
3863 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3864 LD_FOR_BUILD="\$(LD)"
3865 NM_FOR_BUILD="\$(NM)"
3866 RANLIB_FOR_BUILD="\$(RANLIB)"
3867 WINDRES_FOR_BUILD="\$(WINDRES)"
3868 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3869fi
3870
3871ac_ext=c
c6b750e1
DJ
3872ac_cpp='$CPP $CPPFLAGS'
3873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876if test -n "$ac_tool_prefix"; then
3877 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3878set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3880$as_echo_n "checking for $ac_word... " >&6; }
3881if test "${ac_cv_prog_CC+set}" = set; then :
3882 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3883else
3884 if test -n "$CC"; then
3885 ac_cv_prog_CC="$CC" # Let the user override the test.
3886else
3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH
3889do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3894 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3896 break 2
3897 fi
3898done
81ecdfbb
RW
3899 done
3900IFS=$as_save_IFS
c6b750e1
DJ
3901
3902fi
3903fi
3904CC=$ac_cv_prog_CC
3905if test -n "$CC"; then
81ecdfbb
RW
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3907$as_echo "$CC" >&6; }
c6b750e1 3908else
81ecdfbb
RW
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910$as_echo "no" >&6; }
c6b750e1
DJ
3911fi
3912
81ecdfbb 3913
c6b750e1
DJ
3914fi
3915if test -z "$ac_cv_prog_CC"; then
3916 ac_ct_CC=$CC
6a9cf61e 3917 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3918set dummy gcc; ac_word=$2
81ecdfbb
RW
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920$as_echo_n "checking for $ac_word... " >&6; }
3921if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3922 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3923else
3924 if test -n "$ac_ct_CC"; then
3925 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3926else
3927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928for as_dir in $PATH
3929do
3930 IFS=$as_save_IFS
3931 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3934 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3936 break 2
3937 fi
3938done
81ecdfbb
RW
3939 done
3940IFS=$as_save_IFS
c6b750e1
DJ
3941
3942fi
3943fi
3944ac_ct_CC=$ac_cv_prog_ac_ct_CC
3945if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3947$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3948else
81ecdfbb
RW
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3950$as_echo "no" >&6; }
c6b750e1
DJ
3951fi
3952
81ecdfbb
RW
3953 if test "x$ac_ct_CC" = x; then
3954 CC=""
3955 else
3956 case $cross_compiling:$ac_tool_warned in
3957yes:)
3958{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3959$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3960ac_tool_warned=yes ;;
3961esac
3962 CC=$ac_ct_CC
3963 fi
c6b750e1
DJ
3964else
3965 CC="$ac_cv_prog_CC"
3966fi
3967
3968if test -z "$CC"; then
81ecdfbb
RW
3969 if test -n "$ac_tool_prefix"; then
3970 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3971set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973$as_echo_n "checking for $ac_word... " >&6; }
3974if test "${ac_cv_prog_CC+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
9e07f89d
NN
3976else
3977 if test -n "$CC"; then
3978 ac_cv_prog_CC="$CC" # Let the user override the test.
3979else
c6b750e1
DJ
3980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981for as_dir in $PATH
3982do
3983 IFS=$as_save_IFS
3984 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3987 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3989 break 2
3990 fi
3991done
81ecdfbb
RW
3992 done
3993IFS=$as_save_IFS
c6b750e1 3994
9e07f89d
NN
3995fi
3996fi
c6b750e1 3997CC=$ac_cv_prog_CC
9e07f89d 3998if test -n "$CC"; then
81ecdfbb
RW
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4000$as_echo "$CC" >&6; }
c6b750e1 4001else
81ecdfbb
RW
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003$as_echo "no" >&6; }
c6b750e1
DJ
4004fi
4005
c6b750e1 4006
81ecdfbb 4007 fi
c6b750e1 4008fi
9e07f89d
NN
4009if test -z "$CC"; then
4010 # Extract the first word of "cc", so it can be a program name with args.
4011set dummy cc; ac_word=$2
81ecdfbb
RW
4012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4013$as_echo_n "checking for $ac_word... " >&6; }
4014if test "${ac_cv_prog_CC+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
9e07f89d
NN
4016else
4017 if test -n "$CC"; then
4018 ac_cv_prog_CC="$CC" # Let the user override the test.
4019else
9e07f89d 4020 ac_prog_rejected=no
c6b750e1
DJ
4021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022for as_dir in $PATH
4023do
4024 IFS=$as_save_IFS
4025 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
4028 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4029 ac_prog_rejected=yes
4030 continue
4031 fi
4032 ac_cv_prog_CC="cc"
81ecdfbb 4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4034 break 2
4035 fi
4036done
81ecdfbb
RW
4037 done
4038IFS=$as_save_IFS
c6b750e1 4039
9e07f89d
NN
4040if test $ac_prog_rejected = yes; then
4041 # We found a bogon in the path, so make sure we never use it.
4042 set dummy $ac_cv_prog_CC
4043 shift
c6b750e1 4044 if test $# != 0; then
9e07f89d
NN
4045 # We chose a different compiler from the bogus one.
4046 # However, it has the same basename, so the bogon will be chosen
4047 # first if we set CC to just the basename; use the full file name.
4048 shift
c6b750e1 4049 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
4050 fi
4051fi
4052fi
4053fi
c6b750e1 4054CC=$ac_cv_prog_CC
9e07f89d 4055if test -n "$CC"; then
81ecdfbb
RW
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4057$as_echo "$CC" >&6; }
9e07f89d 4058else
81ecdfbb
RW
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060$as_echo "no" >&6; }
9e07f89d
NN
4061fi
4062
81ecdfbb 4063
c6b750e1
DJ
4064fi
4065if test -z "$CC"; then
4066 if test -n "$ac_tool_prefix"; then
81ecdfbb 4067 for ac_prog in cl.exe
c6b750e1
DJ
4068 do
4069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4070set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4072$as_echo_n "checking for $ac_word... " >&6; }
4073if test "${ac_cv_prog_CC+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
9e07f89d
NN
4075else
4076 if test -n "$CC"; then
4077 ac_cv_prog_CC="$CC" # Let the user override the test.
4078else
c6b750e1
DJ
4079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080for as_dir in $PATH
4081do
4082 IFS=$as_save_IFS
4083 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4084 for ac_exec_ext in '' $ac_executable_extensions; do
4085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4086 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 4088 break 2
376a0e54 4089 fi
c6b750e1 4090done
81ecdfbb
RW
4091 done
4092IFS=$as_save_IFS
cac3d6c4 4093
c6b750e1
DJ
4094fi
4095fi
4096CC=$ac_cv_prog_CC
4097if test -n "$CC"; then
81ecdfbb
RW
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4099$as_echo "$CC" >&6; }
cac3d6c4 4100else
81ecdfbb
RW
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102$as_echo "no" >&6; }
9e07f89d 4103fi
cac3d6c4 4104
81ecdfbb 4105
c6b750e1
DJ
4106 test -n "$CC" && break
4107 done
cac3d6c4 4108fi
c6b750e1
DJ
4109if test -z "$CC"; then
4110 ac_ct_CC=$CC
81ecdfbb 4111 for ac_prog in cl.exe
c6b750e1
DJ
4112do
4113 # Extract the first word of "$ac_prog", so it can be a program name with args.
4114set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116$as_echo_n "checking for $ac_word... " >&6; }
4117if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4118 $as_echo_n "(cached) " >&6
cac3d6c4 4119else
c6b750e1
DJ
4120 if test -n "$ac_ct_CC"; then
4121 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4122else
c6b750e1
DJ
4123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124for as_dir in $PATH
4125do
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4130 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4132 break 2
4133 fi
4134done
81ecdfbb
RW
4135 done
4136IFS=$as_save_IFS
c6b750e1 4137
cac3d6c4
CM
4138fi
4139fi
c6b750e1
DJ
4140ac_ct_CC=$ac_cv_prog_ac_ct_CC
4141if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4143$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4144else
81ecdfbb
RW
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146$as_echo "no" >&6; }
cac3d6c4 4147fi
376a0e54 4148
81ecdfbb 4149
c6b750e1
DJ
4150 test -n "$ac_ct_CC" && break
4151done
4152
81ecdfbb
RW
4153 if test "x$ac_ct_CC" = x; then
4154 CC=""
4155 else
4156 case $cross_compiling:$ac_tool_warned in
4157yes:)
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4160ac_tool_warned=yes ;;
4161esac
4162 CC=$ac_ct_CC
4163 fi
c6b750e1
DJ
4164fi
4165
4166fi
4167
4168
81ecdfbb
RW
4169test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171as_fn_error "no acceptable C compiler found in \$PATH
4172See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4173
4174# Provide some information about the compiler.
81ecdfbb
RW
4175$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4176set X $ac_compile
4177ac_compiler=$2
4178for ac_option in --version -v -V -qversion; do
4179 { { ac_try="$ac_compiler $ac_option >&5"
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_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4187 ac_status=$?
81ecdfbb
RW
4188 if test -s conftest.err; then
4189 sed '10a\
4190... rest of stderr output deleted ...
4191 10q' conftest.err >conftest.er1
4192 cat conftest.er1 >&5
4193 rm -f conftest.er1 conftest.err
4194 fi
4195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4196 test $ac_status = 0; }
4197done
c6b750e1 4198
81ecdfbb 4199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4200/* end confdefs.h. */
4201
4202int
4203main ()
4204{
4205
4206 ;
4207 return 0;
4208}
4209_ACEOF
4210ac_clean_files_save=$ac_clean_files
81ecdfbb 4211ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4212# Try to create an executable without -o first, disregard a.out.
4213# It will help us diagnose broken compilers, and finding out an intuition
4214# of exeext.
81ecdfbb
RW
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4216$as_echo_n "checking for C compiler default output file name... " >&6; }
4217ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4218
4219# The possible output files:
4220ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4221
4222ac_rmfiles=
4223for ac_file in $ac_files
4224do
4225 case $ac_file in
4226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4227 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4228 esac
4229done
4230rm -f $ac_rmfiles
4231
4232if { { ac_try="$ac_link_default"
4233case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236esac
4237eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4238$as_echo "$ac_try_echo"; } >&5
4239 (eval "$ac_link_default") 2>&5
c6b750e1 4240 ac_status=$?
81ecdfbb
RW
4241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242 test $ac_status = 0; }; then :
4243 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4244# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4245# in a Makefile. We should not override ac_cv_exeext if it was cached,
4246# so that the user can short-circuit this test for compilers unknown to
4247# Autoconf.
4248for ac_file in $ac_files ''
c6b750e1
DJ
4249do
4250 test -f "$ac_file" || continue
4251 case $ac_file in
81ecdfbb 4252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4253 ;;
4254 [ab].out )
4255 # We found the default executable, but exeext='' is most
4256 # certainly right.
4257 break;;
4258 *.* )
81ecdfbb
RW
4259 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4260 then :; else
4261 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4262 fi
4263 # We set ac_cv_exeext here because the later test for it is not
4264 # safe: cross compilers may not add the suffix if given an `-o'
4265 # argument, so we may need to know it at that point already.
4266 # Even if this section looks crufty: it has the advantage of
4267 # actually working.
c6b750e1
DJ
4268 break;;
4269 * )
4270 break;;
4271 esac
4272done
81ecdfbb
RW
4273test "$ac_cv_exeext" = no && ac_cv_exeext=
4274
c6b750e1 4275else
81ecdfbb
RW
4276 ac_file=''
4277fi
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4279$as_echo "$ac_file" >&6; }
4280if test -z "$ac_file"; then :
4281 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4282sed 's/^/| /' conftest.$ac_ext >&5
4283
81ecdfbb
RW
4284{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4285$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4286{ as_fn_set_status 77
4287as_fn_error "C compiler cannot create executables
4288See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4289fi
c6b750e1 4290ac_exeext=$ac_cv_exeext
c6b750e1 4291
81ecdfbb 4292# Check that the compiler produces executables we can run. If not, either
c6b750e1 4293# the compiler is broken, or we cross compile.
81ecdfbb
RW
4294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4295$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4296# If not cross compiling, check that we can run a simple program.
4297if test "$cross_compiling" != yes; then
4298 if { ac_try='./$ac_file'
81ecdfbb
RW
4299 { { case "(($ac_try" in
4300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4301 *) ac_try_echo=$ac_try;;
4302esac
4303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4304$as_echo "$ac_try_echo"; } >&5
4305 (eval "$ac_try") 2>&5
c6b750e1 4306 ac_status=$?
81ecdfbb
RW
4307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4308 test $ac_status = 0; }; }; then
c6b750e1
DJ
4309 cross_compiling=no
4310 else
4311 if test "$cross_compiling" = maybe; then
4312 cross_compiling=yes
4313 else
81ecdfbb
RW
4314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4316as_fn_error "cannot run C compiled programs.
c6b750e1 4317If you meant to cross compile, use \`--host'.
81ecdfbb 4318See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4319 fi
4320 fi
4321fi
81ecdfbb
RW
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4323$as_echo "yes" >&6; }
c6b750e1 4324
81ecdfbb 4325rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4326ac_clean_files=$ac_clean_files_save
81ecdfbb 4327# Check that the compiler produces executables we can run. If not, either
c6b750e1 4328# the compiler is broken, or we cross compile.
81ecdfbb
RW
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4330$as_echo_n "checking whether we are cross compiling... " >&6; }
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4332$as_echo "$cross_compiling" >&6; }
4333
4334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4335$as_echo_n "checking for suffix of executables... " >&6; }
4336if { { ac_try="$ac_link"
4337case "(($ac_try" in
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4340esac
4341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4342$as_echo "$ac_try_echo"; } >&5
4343 (eval "$ac_link") 2>&5
c6b750e1 4344 ac_status=$?
81ecdfbb
RW
4345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4346 test $ac_status = 0; }; then :
c6b750e1
DJ
4347 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4348# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4349# work properly (i.e., refer to `conftest.exe'), while it won't with
4350# `rm'.
4351for ac_file in conftest.exe conftest conftest.*; do
4352 test -f "$ac_file" || continue
4353 case $ac_file in
81ecdfbb 4354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4355 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4356 break;;
4357 * ) break;;
4358 esac
4359done
4360else
81ecdfbb
RW
4361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4363as_fn_error "cannot compute suffix of executables: cannot compile and link
4364See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4365fi
c6b750e1 4366rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4368$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4369
4370rm -f conftest.$ac_ext
4371EXEEXT=$ac_cv_exeext
4372ac_exeext=$EXEEXT
81ecdfbb
RW
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4374$as_echo_n "checking for suffix of object files... " >&6; }
4375if test "${ac_cv_objext+set}" = set; then :
4376 $as_echo_n "(cached) " >&6
c6b750e1 4377else
81ecdfbb 4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4379/* end confdefs.h. */
4380
4381int
4382main ()
4383{
4384
4385 ;
4386 return 0;
4387}
4388_ACEOF
4389rm -f conftest.o conftest.obj
81ecdfbb
RW
4390if { { ac_try="$ac_compile"
4391case "(($ac_try" in
4392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4393 *) ac_try_echo=$ac_try;;
4394esac
4395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4396$as_echo "$ac_try_echo"; } >&5
4397 (eval "$ac_compile") 2>&5
c6b750e1 4398 ac_status=$?
81ecdfbb
RW
4399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4400 test $ac_status = 0; }; then :
4401 for ac_file in conftest.o conftest.obj conftest.*; do
4402 test -f "$ac_file" || continue;
c6b750e1 4403 case $ac_file in
81ecdfbb 4404 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4405 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4406 break;;
4407 esac
4408done
cac3d6c4 4409else
81ecdfbb 4410 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4411sed 's/^/| /' conftest.$ac_ext >&5
4412
81ecdfbb
RW
4413{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4414$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4415as_fn_error "cannot compute suffix of object files: cannot compile
4416See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4417fi
c6b750e1
DJ
4418rm -f conftest.$ac_cv_objext conftest.$ac_ext
4419fi
81ecdfbb
RW
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4421$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4422OBJEXT=$ac_cv_objext
4423ac_objext=$OBJEXT
81ecdfbb
RW
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4425$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4426if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4427 $as_echo_n "(cached) " >&6
c6b750e1 4428else
81ecdfbb 4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4430/* end confdefs.h. */
4431
4432int
4433main ()
4434{
4435#ifndef __GNUC__
4436 choke me
4437#endif
4438
4439 ;
4440 return 0;
4441}
4442_ACEOF
81ecdfbb 4443if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4444 ac_compiler_gnu=yes
4445else
81ecdfbb 4446 ac_compiler_gnu=no
c6b750e1 4447fi
81ecdfbb 4448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4449ac_cv_c_compiler_gnu=$ac_compiler_gnu
4450
4451fi
81ecdfbb
RW
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4453$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4454if test $ac_compiler_gnu = yes; then
4455 GCC=yes
4456else
4457 GCC=
4458fi
c6b750e1
DJ
4459ac_test_CFLAGS=${CFLAGS+set}
4460ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4462$as_echo_n "checking whether $CC accepts -g... " >&6; }
4463if test "${ac_cv_prog_cc_g+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465else
4466 ac_save_c_werror_flag=$ac_c_werror_flag
4467 ac_c_werror_flag=yes
4468 ac_cv_prog_cc_g=no
4469 CFLAGS="-g"
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4471/* end confdefs.h. */
4472
4473int
4474main ()
4475{
4476
4477 ;
4478 return 0;
4479}
4480_ACEOF
81ecdfbb 4481if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4482 ac_cv_prog_cc_g=yes
4483else
81ecdfbb
RW
4484 CFLAGS=""
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486/* end confdefs.h. */
4487
4488int
4489main ()
4490{
4491
4492 ;
4493 return 0;
4494}
4495_ACEOF
4496if ac_fn_c_try_compile "$LINENO"; then :
4497
4498else
4499 ac_c_werror_flag=$ac_save_c_werror_flag
4500 CFLAGS="-g"
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502/* end confdefs.h. */
cac3d6c4 4503
81ecdfbb
RW
4504int
4505main ()
4506{
4507
4508 ;
4509 return 0;
4510}
4511_ACEOF
4512if ac_fn_c_try_compile "$LINENO"; then :
4513 ac_cv_prog_cc_g=yes
4514fi
4515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4516fi
81ecdfbb 4517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4518fi
81ecdfbb
RW
4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4520 ac_c_werror_flag=$ac_save_c_werror_flag
4521fi
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4523$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4524if test "$ac_test_CFLAGS" = set; then
c6b750e1 4525 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4526elif test $ac_cv_prog_cc_g = yes; then
4527 if test "$GCC" = yes; then
4528 CFLAGS="-g -O2"
4529 else
4530 CFLAGS="-g"
4531 fi
4532else
4533 if test "$GCC" = yes; then
4534 CFLAGS="-O2"
4535 else
4536 CFLAGS=
4537 fi
4538fi
81ecdfbb
RW
4539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4540$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4541if test "${ac_cv_prog_cc_c89+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
c6b750e1 4543else
81ecdfbb 4544 ac_cv_prog_cc_c89=no
c6b750e1 4545ac_save_CC=$CC
81ecdfbb 4546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4547/* end confdefs.h. */
4548#include <stdarg.h>
4549#include <stdio.h>
4550#include <sys/types.h>
4551#include <sys/stat.h>
4552/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4553struct buf { int x; };
4554FILE * (*rcsopen) (struct buf *, struct stat *, int);
4555static char *e (p, i)
4556 char **p;
4557 int i;
4558{
4559 return p[i];
4560}
4561static char *f (char * (*g) (char **, int), char **p, ...)
4562{
4563 char *s;
4564 va_list v;
4565 va_start (v,p);
4566 s = g (p, va_arg (v,int));
4567 va_end (v);
4568 return s;
4569}
4570
4571/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4572 function prototypes and stuff, but not '\xHH' hex character constants.
4573 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4574 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4575 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4576 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4577 that's true only with -std. */
c6b750e1
DJ
4578int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4579
81ecdfbb
RW
4580/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4581 inside strings and character constants. */
4582#define FOO(x) 'x'
4583int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4584
c6b750e1
DJ
4585int test (int i, double x);
4586struct s1 {int (*f) (int a);};
4587struct s2 {int (*f) (double a);};
4588int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4589int argc;
4590char **argv;
4591int
4592main ()
4593{
4594return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4595 ;
4596 return 0;
4597}
4598_ACEOF
81ecdfbb
RW
4599for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4600 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4601do
4602 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4603 if ac_fn_c_try_compile "$LINENO"; then :
4604 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4605fi
81ecdfbb
RW
4606rm -f core conftest.err conftest.$ac_objext
4607 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4608done
81ecdfbb 4609rm -f conftest.$ac_ext
c6b750e1
DJ
4610CC=$ac_save_CC
4611
4612fi
81ecdfbb
RW
4613# AC_CACHE_VAL
4614case "x$ac_cv_prog_cc_c89" in
4615 x)
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4617$as_echo "none needed" >&6; } ;;
4618 xno)
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4620$as_echo "unsupported" >&6; } ;;
c6b750e1 4621 *)
81ecdfbb
RW
4622 CC="$CC $ac_cv_prog_cc_c89"
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4624$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4625esac
81ecdfbb 4626if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4627
c6b750e1
DJ
4628fi
4629
c6b750e1
DJ
4630ac_ext=c
4631ac_cpp='$CPP $CPPFLAGS'
4632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4634ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4635
81ecdfbb 4636ac_ext=cpp
18f6b6ee
PB
4637ac_cpp='$CXXCPP $CPPFLAGS'
4638ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4639ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4640ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4641if test -z "$CXX"; then
4642 if test -n "$CCC"; then
4643 CXX=$CCC
4644 else
4645 if test -n "$ac_tool_prefix"; then
4646 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4647 do
4648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4649set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4651$as_echo_n "checking for $ac_word... " >&6; }
4652if test "${ac_cv_prog_CXX+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4654else
4655 if test -n "$CXX"; then
4656 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4657else
4658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659for as_dir in $PATH
4660do
4661 IFS=$as_save_IFS
4662 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4665 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4667 break 2
4668 fi
4669done
81ecdfbb
RW
4670 done
4671IFS=$as_save_IFS
512b7dfb 4672
18f6b6ee
PB
4673fi
4674fi
4675CXX=$ac_cv_prog_CXX
4676if test -n "$CXX"; then
81ecdfbb
RW
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4678$as_echo "$CXX" >&6; }
18f6b6ee 4679else
81ecdfbb
RW
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681$as_echo "no" >&6; }
18f6b6ee
PB
4682fi
4683
81ecdfbb 4684
18f6b6ee
PB
4685 test -n "$CXX" && break
4686 done
4687fi
4688if test -z "$CXX"; then
4689 ac_ct_CXX=$CXX
81ecdfbb 4690 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4691do
4692 # Extract the first word of "$ac_prog", so it can be a program name with args.
4693set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4695$as_echo_n "checking for $ac_word... " >&6; }
4696if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4697 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4698else
4699 if test -n "$ac_ct_CXX"; then
4700 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4701else
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4709 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4711 break 2
512b7dfb 4712 fi
18f6b6ee 4713done
81ecdfbb
RW
4714 done
4715IFS=$as_save_IFS
512b7dfb 4716
18f6b6ee
PB
4717fi
4718fi
4719ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4720if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4722$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4723else
81ecdfbb
RW
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4725$as_echo "no" >&6; }
18f6b6ee
PB
4726fi
4727
81ecdfbb 4728
18f6b6ee
PB
4729 test -n "$ac_ct_CXX" && break
4730done
18f6b6ee 4731
81ecdfbb
RW
4732 if test "x$ac_ct_CXX" = x; then
4733 CXX="g++"
4734 else
4735 case $cross_compiling:$ac_tool_warned in
4736yes:)
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4739ac_tool_warned=yes ;;
4740esac
4741 CXX=$ac_ct_CXX
4742 fi
18f6b6ee
PB
4743fi
4744
81ecdfbb
RW
4745 fi
4746fi
18f6b6ee 4747# Provide some information about the compiler.
81ecdfbb
RW
4748$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4749set X $ac_compile
4750ac_compiler=$2
4751for ac_option in --version -v -V -qversion; do
4752 { { ac_try="$ac_compiler $ac_option >&5"
4753case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4756esac
4757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758$as_echo "$ac_try_echo"; } >&5
4759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4760 ac_status=$?
81ecdfbb
RW
4761 if test -s conftest.err; then
4762 sed '10a\
4763... rest of stderr output deleted ...
4764 10q' conftest.err >conftest.er1
4765 cat conftest.er1 >&5
4766 rm -f conftest.er1 conftest.err
4767 fi
4768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4769 test $ac_status = 0; }
4770done
18f6b6ee 4771
81ecdfbb
RW
4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4773$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4774if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4775 $as_echo_n "(cached) " >&6
18f6b6ee 4776else
81ecdfbb 4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4778/* end confdefs.h. */
4779
4780int
4781main ()
4782{
4783#ifndef __GNUC__
4784 choke me
4785#endif
4786
4787 ;
4788 return 0;
4789}
4790_ACEOF
81ecdfbb 4791if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4792 ac_compiler_gnu=yes
4793else
81ecdfbb 4794 ac_compiler_gnu=no
18f6b6ee 4795fi
81ecdfbb 4796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4797ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4798
4799fi
81ecdfbb
RW
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4801$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4802if test $ac_compiler_gnu = yes; then
4803 GXX=yes
4804else
4805 GXX=
4806fi
18f6b6ee
PB
4807ac_test_CXXFLAGS=${CXXFLAGS+set}
4808ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4810$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4811if test "${ac_cv_prog_cxx_g+set}" = set; then :
4812 $as_echo_n "(cached) " >&6
4813else
4814 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4815 ac_cxx_werror_flag=yes
4816 ac_cv_prog_cxx_g=no
4817 CXXFLAGS="-g"
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4819/* end confdefs.h. */
4820
4821int
4822main ()
4823{
4824
4825 ;
4826 return 0;
4827}
4828_ACEOF
81ecdfbb 4829if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4830 ac_cv_prog_cxx_g=yes
4831else
81ecdfbb
RW
4832 CXXFLAGS=""
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4834/* end confdefs.h. */
81ecdfbb 4835
18f6b6ee
PB
4836int
4837main ()
4838{
81ecdfbb 4839
18f6b6ee
PB
4840 ;
4841 return 0;
4842}
4843_ACEOF
81ecdfbb 4844if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4845
81ecdfbb
RW
4846else
4847 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4848 CXXFLAGS="-g"
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4850/* end confdefs.h. */
81ecdfbb 4851
18f6b6ee
PB
4852int
4853main ()
4854{
81ecdfbb 4855
18f6b6ee
PB
4856 ;
4857 return 0;
4858}
4859_ACEOF
81ecdfbb
RW
4860if ac_fn_cxx_try_compile "$LINENO"; then :
4861 ac_cv_prog_cxx_g=yes
18f6b6ee 4862fi
81ecdfbb
RW
4863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4864fi
4865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866fi
4867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4869fi
4870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4871$as_echo "$ac_cv_prog_cxx_g" >&6; }
4872if test "$ac_test_CXXFLAGS" = set; then
4873 CXXFLAGS=$ac_save_CXXFLAGS
4874elif test $ac_cv_prog_cxx_g = yes; then
4875 if test "$GXX" = yes; then
4876 CXXFLAGS="-g -O2"
4877 else
4878 CXXFLAGS="-g"
4879 fi
4880else
4881 if test "$GXX" = yes; then
4882 CXXFLAGS="-O2"
4883 else
4884 CXXFLAGS=
4885 fi
18f6b6ee 4886fi
18f6b6ee
PB
4887ac_ext=c
4888ac_cpp='$CPP $CPPFLAGS'
4889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891ac_compiler_gnu=$ac_cv_c_compiler_gnu
4892
4893
4894# We must set the default linker to the linker used by gcc for the correct
4895# operation of libtool. If LD is not defined and we are using gcc, try to
4896# set the LD default to the ld used by gcc.
4897if test -z "$LD"; then
4898 if test "$GCC" = yes; then
4899 case $build in
4900 *-*-mingw*)
4901 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4902 *)
4903 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4904 esac
4905 case $gcc_prog_ld in
4906 # Accept absolute paths.
4907 [\\/]* | [A-Za-z]:[\\/]*)
4908 LD="$gcc_prog_ld" ;;
4909 esac
4910 fi
512b7dfb
PB
4911fi
4912
4913
4914
4915
c6b750e1 4916if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4917 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4918set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920$as_echo_n "checking for $ac_word... " >&6; }
4921if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
9e07f89d 4923else
512b7dfb
PB
4924 if test -n "$GNATBIND"; then
4925 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4926else
c6b750e1
DJ
4927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928for as_dir in $PATH
4929do
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4934 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4936 break 2
4937 fi
4938done
81ecdfbb
RW
4939 done
4940IFS=$as_save_IFS
c6b750e1 4941
9e07f89d
NN
4942fi
4943fi
512b7dfb
PB
4944GNATBIND=$ac_cv_prog_GNATBIND
4945if test -n "$GNATBIND"; then
81ecdfbb
RW
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4947$as_echo "$GNATBIND" >&6; }
9e07f89d 4948else
81ecdfbb
RW
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950$as_echo "no" >&6; }
9e07f89d
NN
4951fi
4952
81ecdfbb 4953
c6b750e1 4954fi
512b7dfb
PB
4955if test -z "$ac_cv_prog_GNATBIND"; then
4956 ac_ct_GNATBIND=$GNATBIND
4957 # Extract the first word of "gnatbind", so it can be a program name with args.
4958set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4960$as_echo_n "checking for $ac_word... " >&6; }
4961if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4962 $as_echo_n "(cached) " >&6
9e07f89d 4963else
512b7dfb
PB
4964 if test -n "$ac_ct_GNATBIND"; then
4965 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4966else
c6b750e1
DJ
4967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968for as_dir in $PATH
4969do
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4974 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4976 break 2
4977 fi
4978done
81ecdfbb
RW
4979 done
4980IFS=$as_save_IFS
c6b750e1 4981
9e07f89d
NN
4982fi
4983fi
512b7dfb
PB
4984ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4985if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4987$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4988else
81ecdfbb
RW
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4990$as_echo "no" >&6; }
9e07f89d
NN
4991fi
4992
81ecdfbb
RW
4993 if test "x$ac_ct_GNATBIND" = x; then
4994 GNATBIND="no"
4995 else
4996 case $cross_compiling:$ac_tool_warned in
4997yes:)
4998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5000ac_tool_warned=yes ;;
5001esac
5002 GNATBIND=$ac_ct_GNATBIND
5003 fi
24ff9987 5004else
512b7dfb 5005 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
5006fi
5007
7df2cd5d 5008if test -n "$ac_tool_prefix"; then
512b7dfb
PB
5009 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5010set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5012$as_echo_n "checking for $ac_word... " >&6; }
5013if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
5014 $as_echo_n "(cached) " >&6
7df2cd5d 5015else
512b7dfb
PB
5016 if test -n "$GNATMAKE"; then
5017 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5018else
5019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020for as_dir in $PATH
5021do
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5026 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 5027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5028 break 2
5029 fi
5030done
81ecdfbb
RW
5031 done
5032IFS=$as_save_IFS
7df2cd5d
PB
5033
5034fi
5035fi
512b7dfb
PB
5036GNATMAKE=$ac_cv_prog_GNATMAKE
5037if test -n "$GNATMAKE"; then
81ecdfbb
RW
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5039$as_echo "$GNATMAKE" >&6; }
7df2cd5d 5040else
81ecdfbb
RW
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5042$as_echo "no" >&6; }
7df2cd5d
PB
5043fi
5044
81ecdfbb 5045
7df2cd5d 5046fi
512b7dfb
PB
5047if test -z "$ac_cv_prog_GNATMAKE"; then
5048 ac_ct_GNATMAKE=$GNATMAKE
5049 # Extract the first word of "gnatmake", so it can be a program name with args.
5050set dummy gnatmake; ac_word=$2
81ecdfbb
RW
5051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052$as_echo_n "checking for $ac_word... " >&6; }
5053if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
5054 $as_echo_n "(cached) " >&6
7df2cd5d 5055else
512b7dfb
PB
5056 if test -n "$ac_ct_GNATMAKE"; then
5057 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
5058else
5059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060for as_dir in $PATH
5061do
5062 IFS=$as_save_IFS
5063 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
5064 for ac_exec_ext in '' $ac_executable_extensions; do
5065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 5066 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 5067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
5068 break 2
5069 fi
5070done
81ecdfbb
RW
5071 done
5072IFS=$as_save_IFS
7df2cd5d 5073
7df2cd5d
PB
5074fi
5075fi
512b7dfb
PB
5076ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5077if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5079$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 5080else
81ecdfbb
RW
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082$as_echo "no" >&6; }
7df2cd5d
PB
5083fi
5084
81ecdfbb
RW
5085 if test "x$ac_ct_GNATMAKE" = x; then
5086 GNATMAKE="no"
5087 else
5088 case $cross_compiling:$ac_tool_warned in
5089yes:)
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5091$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5092ac_tool_warned=yes ;;
5093esac
5094 GNATMAKE=$ac_ct_GNATMAKE
5095 fi
7df2cd5d 5096else
512b7dfb 5097 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
5098fi
5099
81ecdfbb
RW
5100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5101$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5102if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
9e07f89d
NN
5104else
5105 cat >conftest.adb <<EOF
5106procedure conftest is begin null; end conftest;
5107EOF
5108acx_cv_cc_gcc_supports_ada=no
5109# There is a bug in old released versions of GCC which causes the
5110# driver to exit successfully when the appropriate language module
5111# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5112# Therefore we must check for the error message as well as an
5113# unsuccessful exit.
b8908782
DD
5114# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5115# given a .adb file, but produce no object file. So we must check
5116# if an object file was really produced to guard against this.
9e07f89d 5117errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5118if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5119 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5120fi
5121rm -f conftest.*
5122fi
81ecdfbb
RW
5123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5124$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5125
512b7dfb 5126if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5127 have_gnat=yes
5128else
5129 have_gnat=no
5130fi
5131
81ecdfbb
RW
5132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5133$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5134if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
b8908782
DD
5136else
5137 echo abfoo >t1
5138 echo cdfoo >t2
5139 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5140 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5141 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5142 :
5143 else
5144 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5145 fi
5146 fi
b8908782
DD
5147 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5148 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5149 :
b8908782
DD
5150 else
5151 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5152 fi
5153 fi
5154 rm t1 t2
5155
5156fi
81ecdfbb
RW
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5158$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5159do_compare="$gcc_cv_prog_cmp_skip"
5160
5161
9e07f89d 5162
e8a5fa9c 5163# See if we are building gcc with C++.
81ecdfbb
RW
5164# Check whether --enable-build-with-cxx was given.
5165if test "${enable_build_with_cxx+set}" = set; then :
5166 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5167else
5168 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5169fi
5170
e8a5fa9c 5171
d5f2ee2e
KG
5172# Used for setting $lt_cv_objdir
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5174$as_echo_n "checking for objdir... " >&6; }
5175if test "${lt_cv_objdir+set}" = set; then :
5176 $as_echo_n "(cached) " >&6
5177else
5178 rm -f .libs 2>/dev/null
5179mkdir .libs 2>/dev/null
5180if test -d .libs; then
5181 lt_cv_objdir=.libs
5182else
5183 # MS-DOS does not allow filenames that begin with a dot.
5184 lt_cv_objdir=_libs
5185fi
5186rmdir .libs 2>/dev/null
5187fi
5188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5189$as_echo "$lt_cv_objdir" >&6; }
5190objdir=$lt_cv_objdir
5191
5192
5193
5194
5195
5196cat >>confdefs.h <<_ACEOF
5197#define LT_OBJDIR "$lt_cv_objdir/"
5198_ACEOF
5199
5200
5201
e8a5fa9c 5202# Check for GMP, MPFR and MPC
d9b76ff9 5203gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5204gmpinc=
4b900473 5205have_gmp=no
e8a5fa9c
RW
5206
5207# Specify a location for mpc
5208# check for this first so it ends up on the link line before mpfr.
5209
81ecdfbb
RW
5210# Check whether --with-mpc was given.
5211if test "${with_mpc+set}" = set; then :
5212 withval=$with_mpc;
5213fi
e8a5fa9c 5214
e8a5fa9c 5215
e552509b 5216# Check whether --with-mpc-include was given.
81ecdfbb
RW
5217if test "${with_mpc_include+set}" = set; then :
5218 withval=$with_mpc_include;
5219fi
e8a5fa9c 5220
e8a5fa9c 5221
e552509b 5222# Check whether --with-mpc-lib was given.
81ecdfbb
RW
5223if test "${with_mpc_lib+set}" = set; then :
5224 withval=$with_mpc_lib;
5225fi
e8a5fa9c 5226
e8a5fa9c
RW
5227
5228if test "x$with_mpc" != x; then
d9b76ff9
KG
5229 gmplibs="-L$with_mpc/lib $gmplibs"
5230 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5231fi
5232if test "x$with_mpc_include" != x; then
d9b76ff9 5233 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5234fi
5235if test "x$with_mpc_lib" != x; then
d9b76ff9 5236 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5237fi
5238if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5239 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5240 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5241 # Do not test the mpc 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.
d9b76ff9 5245 have_gmp=yes
e8a5fa9c 5246fi
4b900473 5247
11b04d1f
DD
5248# Specify a location for mpfr
5249# check for this first so it ends up on the link line before gmp.
c6b750e1 5250
81ecdfbb
RW
5251# Check whether --with-mpfr-dir was given.
5252if test "${with_mpfr_dir+set}" = set; then :
5253 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5254Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5255fi
5256
11b04d1f
DD
5257
5258
81ecdfbb
RW
5259# Check whether --with-mpfr was given.
5260if test "${with_mpfr+set}" = set; then :
5261 withval=$with_mpfr;
5262fi
c6b750e1 5263
11b04d1f 5264
e552509b 5265# Check whether --with-mpfr-include was given.
81ecdfbb
RW
5266if test "${with_mpfr_include+set}" = set; then :
5267 withval=$with_mpfr_include;
5268fi
c6b750e1 5269
8a0d8a5c 5270
e552509b 5271# Check whether --with-mpfr-lib was given.
81ecdfbb
RW
5272if test "${with_mpfr_lib+set}" = set; then :
5273 withval=$with_mpfr_lib;
5274fi
8a0d8a5c 5275
11b04d1f
DD
5276
5277if test "x$with_mpfr" != x; then
5278 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5279 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5280fi
8a0d8a5c 5281if test "x$with_mpfr_include" != x; then
d9b76ff9 5282 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5283fi
5284if test "x$with_mpfr_lib" != x; then
5285 gmplibs="-L$with_mpfr_lib $gmplibs"
5286fi
4b900473 5287if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5288 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5289 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5290 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5291 # Do not test the mpfr version. Assume that it is sufficient, since
5292 # it is in the source tree, and the library has not been built yet
5293 # but it would be included on the link line in the version check below
5294 # hence making the test fail.
5295 have_gmp=yes
5296fi
11b04d1f 5297
4b1cb4fe 5298# Specify a location for gmp
c6b750e1 5299
81ecdfbb
RW
5300# Check whether --with-gmp-dir was given.
5301if test "${with_gmp_dir+set}" = set; then :
5302 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5303Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5304fi
5305
4b1cb4fe
DD
5306
5307
81ecdfbb
RW
5308# Check whether --with-gmp was given.
5309if test "${with_gmp+set}" = set; then :
5310 withval=$with_gmp;
5311fi
c6b750e1 5312
4b1cb4fe 5313
e552509b 5314# Check whether --with-gmp-include was given.
81ecdfbb
RW
5315if test "${with_gmp_include+set}" = set; then :
5316 withval=$with_gmp_include;
5317fi
c6b750e1 5318
8a0d8a5c 5319
e552509b 5320# Check whether --with-gmp-lib was given.
81ecdfbb
RW
5321if test "${with_gmp_lib+set}" = set; then :
5322 withval=$with_gmp_lib;
5323fi
8a0d8a5c
PB
5324
5325
4b1cb4fe 5326
11b04d1f
DD
5327if test "x$with_gmp" != x; then
5328 gmplibs="-L$with_gmp/lib $gmplibs"
5329 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5330fi
8a0d8a5c
PB
5331if test "x$with_gmp_include" != x; then
5332 gmpinc="-I$with_gmp_include $gmpinc"
5333fi
5334if test "x$with_gmp_lib" != x; then
5335 gmplibs="-L$with_gmp_lib $gmplibs"
5336fi
4b900473 5337if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5338 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5339 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5340 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5341 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5342 # Do not test the gmp version. Assume that it is sufficient, since
5343 # it is in the source tree, and the library has not been built yet
5344 # but it would be included on the link line in the version check below
5345 # hence making the test fail.
5346 have_gmp=yes
5347fi
4b1cb4fe 5348
ceb92e78 5349if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5350 have_gmp=yes
5351 saved_CFLAGS="$CFLAGS"
5352 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5353 # Check for the recommended and required versions of GMP.
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5355$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5356
5357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5358/* end confdefs.h. */
5359#include "gmp.h"
5360int
5361main ()
5362{
5363
5364 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5365 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5366 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5367 choke me
5368 #endif
5369
5370 ;
5371 return 0;
5372}
5373_ACEOF
5374if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5376/* end confdefs.h. */
a6b5846e 5377#include <gmp.h>
c6b750e1
DJ
5378int
5379main ()
5380{
4b1cb4fe 5381
a6b5846e
KG
5382 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5383 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5384 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5385 choke me
5386 #endif
c6b750e1
DJ
5387
5388 ;
5389 return 0;
5390}
5391_ACEOF
81ecdfbb
RW
5392if ac_fn_c_try_compile "$LINENO"; then :
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5394$as_echo "yes" >&6; }
a6b5846e
KG
5395else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5397$as_echo "buggy but acceptable" >&6; }
5398fi
5399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5400else
81ecdfbb
RW
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5403fi
81ecdfbb 5404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5405
e8a5fa9c 5406 # If we have GMP, check the MPFR version.
4b900473 5407 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5408 # Check for the recommended and required versions of MPFR.
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5410$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5412/* end confdefs.h. */
9b134994 5413#include <gmp.h>
4b900473 5414 #include <mpfr.h>
c6b750e1
DJ
5415int
5416main ()
5417{
9b134994 5418
ef699244 5419 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5420 choke me
5421 #endif
c6b750e1
DJ
5422
5423 ;
5424 return 0;
5425}
5426_ACEOF
81ecdfbb
RW
5427if ac_fn_c_try_compile "$LINENO"; then :
5428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5429/* end confdefs.h. */
4b1cb4fe 5430#include <gmp.h>
4b900473 5431 #include <mpfr.h>
c6b750e1
DJ
5432int
5433main ()
5434{
9dbaa842 5435
a6b5846e 5436 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5437 choke me
5438 #endif
e8a5fa9c
RW
5439
5440 ;
5441 return 0;
5442}
5443_ACEOF
81ecdfbb
RW
5444if ac_fn_c_try_compile "$LINENO"; then :
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5446$as_echo "yes" >&6; }
e8a5fa9c 5447else
81ecdfbb
RW
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5449$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5450fi
81ecdfbb 5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5452else
81ecdfbb
RW
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5455fi
81ecdfbb 5456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5457 fi
5458
5459 # Check for the MPC header version.
d9b76ff9 5460 if test x"$have_gmp" = xyes ; then
a6b5846e 5461 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5463$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5465/* end confdefs.h. */
5466#include <mpc.h>
5467int
5468main ()
5469{
5470
a6b5846e
KG
5471 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5472 choke me
5473 #endif
5474
5475 ;
5476 return 0;
5477}
5478_ACEOF
5479if ac_fn_c_try_compile "$LINENO"; then :
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481/* end confdefs.h. */
5482#include <mpc.h>
5483int
5484main ()
5485{
5486
5487 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5488 choke me
5489 #endif
5490
5491 ;
5492 return 0;
5493}
5494_ACEOF
81ecdfbb
RW
5495if ac_fn_c_try_compile "$LINENO"; then :
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5497$as_echo "yes" >&6; }
a6b5846e
KG
5498else
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5500$as_echo "buggy but acceptable" >&6; }
5501fi
5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5503else
81ecdfbb 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5505$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5506fi
81ecdfbb 5507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5508 fi
5509
5510 # Now check the MPFR library.
5511 if test x"$have_gmp" = xyes; then
5512 saved_LIBS="$LIBS"
5513 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5515$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5517/* end confdefs.h. */
d9b76ff9 5518#include <mpc.h>
e8a5fa9c
RW
5519int
5520main ()
5521{
5522
5523 mpfr_t n;
5524 mpfr_t x;
d9b76ff9 5525 mpc_t c;
e8a5fa9c
RW
5526 int t;
5527 mpfr_init (n);
5528 mpfr_init (x);
5529 mpfr_atan2 (n, n, x, GMP_RNDN);
5530 mpfr_erfc (n, x, GMP_RNDN);
5531 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5532 mpfr_clear(n);
5533 mpfr_clear(x);
5534 mpc_init2 (c, 53);
5535 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5536 mpc_cosh (c, c, MPC_RNDNN);
5537 mpc_pow (c, c, c, MPC_RNDNN);
5538 mpc_acosh (c, c, MPC_RNDNN);
5539 mpc_clear (c);
c6b750e1
DJ
5540
5541 ;
5542 return 0;
5543}
5544_ACEOF
81ecdfbb
RW
5545if ac_fn_c_try_link "$LINENO"; then :
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5547$as_echo "yes" >&6; }
c6b750e1 5548else
81ecdfbb
RW
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5551fi
81ecdfbb
RW
5552rm -f core conftest.err conftest.$ac_objext \
5553 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5554 LIBS="$saved_LIBS"
5555 fi
5556
4b900473 5557 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5558
a6b5846e
KG
5559# The library versions listed in the error message below should match
5560# the HARD-minimums enforced above.
4b900473 5561 if test x$have_gmp != xyes; then
a6b5846e 5562 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5563Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5564their locations. Source code for these libraries can be found at
5565their respective hosting sites as well as at
5566ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5567http://gcc.gnu.org/install/prerequisites.html for additional info. If
5568you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5569make sure that you have installed both the libraries and the header
5570files. They may be located in separate packages." "$LINENO" 5
4b900473 5571 fi
9dbaa842
DD
5572fi
5573
e8a5fa9c
RW
5574# Flags needed for both GMP, MPFR and/or MPC.
5575
5576
5577
4b1cb4fe
DD
5578
5579
5580
29383458
JM
5581# Allow host libstdc++ to be specified for static linking with PPL.
5582
81ecdfbb
RW
5583# Check whether --with-host-libstdcxx was given.
5584if test "${with_host_libstdcxx+set}" = set; then :
5585 withval=$with_host_libstdcxx;
5586fi
29383458 5587
29383458
JM
5588
5589case $with_host_libstdcxx in
5590 no|yes)
81ecdfbb 5591 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5592 ;;
5593esac
e28c595f 5594
e8a5fa9c
RW
5595# Linker flags to use for stage1 or when not boostrapping.
5596
81ecdfbb
RW
5597# Check whether --with-stage1-ldflags was given.
5598if test "${with_stage1_ldflags+set}" = set; then :
5599 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5600 stage1_ldflags=
5601 else
5602 stage1_ldflags=$withval
5603 fi
5604else
5605 stage1_ldflags=
81ecdfbb
RW
5606fi
5607
e8a5fa9c
RW
5608
5609
5610# Libraries to use for stage1 or when not bootstrapping.
5611
81ecdfbb
RW
5612# Check whether --with-stage1-libs was given.
5613if test "${with_stage1_libs+set}" = set; then :
5614 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5615 stage1_libs=
5616 else
5617 stage1_libs=$withval
5618 fi
5619else
5620 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5621fi
5622
e8a5fa9c
RW
5623
5624
e8a5fa9c
RW
5625# Libraries to use for stage2 and later builds. This defaults to the
5626# argument passed to --with-host-libstdcxx.
5627
81ecdfbb
RW
5628# Check whether --with-boot-libs was given.
5629if test "${with_boot_libs+set}" = set; then :
5630 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5631 poststage1_libs=
5632 else
5633 poststage1_libs=$withval
5634 fi
5635else
5636 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5637fi
5638
e8a5fa9c
RW
5639
5640
143754cd
NC
5641# Linker flags to use for stage2 and later builds.
5642
5643# Check whether --with-boot-ldflags was given.
5644if test "${with_boot_ldflags+set}" = set; then :
5645 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5646 poststage1_ldflags=
5647 else
5648 poststage1_ldflags=$withval
5649 fi
5650else
5651 poststage1_ldflags=
4f11b223
ILT
5652 # In stages 2 and 3, default to linking libstdc++ and libgcc
5653 # statically. But if the user explicitly specified the libraries to
5654 # use, trust that they are doing what they want.
5655 if test "$poststage1_libs" = ""; then
143754cd
NC
5656 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5657 fi
5658fi
5659
5660
5661
e28c595f 5662# Check for PPL
b123da99 5663ppllibs=
e28c595f 5664pplinc=
b123da99 5665pwllib=
e28c595f
JM
5666
5667
81ecdfbb
RW
5668# Check whether --with-ppl was given.
5669if test "${with_ppl+set}" = set; then :
5670 withval=$with_ppl;
81ecdfbb 5671fi
e28c595f 5672
e28c595f 5673
e552509b 5674# Check whether --with-ppl-include was given.
81ecdfbb
RW
5675if test "${with_ppl_include+set}" = set; then :
5676 withval=$with_ppl_include;
5677fi
5678
e28c595f 5679
e552509b 5680# Check whether --with-ppl-lib was given.
81ecdfbb
RW
5681if test "${with_ppl_lib+set}" = set; then :
5682 withval=$with_ppl_lib;
5683fi
e28c595f 5684
e28c595f 5685
b123da99
SP
5686# Check whether --enable-ppl-version-check was given.
5687if test "${enable_ppl_version_check+set}" = set; then :
5688 enableval=$enable_ppl_version_check;
5689fi
5690
5691
29383458 5692case $with_ppl in
b123da99 5693 yes | no | "")
1f53ca9a 5694 ;;
29383458 5695 *)
b123da99 5696 ppllibs="-L$with_ppl/lib"
29383458 5697 pplinc="-I$with_ppl/include $pplinc"
b123da99
SP
5698 if test -d "$with_ppl/lib" && test -d "$with_ppl/include"; then
5699 with_ppl=yes
5700 else
5701 as_fn_error "cannot find directories \"$with_ppl/lib\" or \"$with_ppl/include\"" "$LINENO" 5
5702 fi
29383458
JM
5703 ;;
5704esac
b123da99
SP
5705
5706if test x"$with_ppl_include" != x; then
e28c595f 5707 pplinc="-I$with_ppl_include $pplinc"
b123da99 5708 with_ppl=yes
e28c595f 5709fi
b123da99 5710
e28c595f 5711if test "x$with_ppl_lib" != x; then
b123da99
SP
5712 ppllibs="-L$with_ppl_lib"
5713 with_ppl=yes
e28c595f 5714fi
b123da99
SP
5715
5716if test x"$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
5717 if test x"$enable_watchdog" = xyes; then
5718 pwllib="-lpwl"
5719 fi
5720 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"
1f53ca9a
AO
5721 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5722 enable_ppl_version_check=no
b123da99 5723 with_ppl=yes
e28c595f
JM
5724fi
5725
86ed8cf6 5726if test "x$with_ppl" != xno; then
b123da99 5727 if test "x$pwllib" = x; then
0e8ad34f
RO
5728 saved_LIBS="$LIBS"
5729 LIBS="$LIBS $ppllibs -lstdc++ -lm"
b123da99
SP
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PWL_handle_timeout in -lpwl" >&5
5731$as_echo_n "checking for PWL_handle_timeout in -lpwl... " >&6; }
5732if test "${ac_cv_lib_pwl_PWL_handle_timeout+set}" = set; then :
5733 $as_echo_n "(cached) " >&6
5734else
5735 ac_check_lib_save_LIBS=$LIBS
5736LIBS="-lpwl $LIBS"
5737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738/* end confdefs.h. */
5739
5740/* Override any GCC internal prototype to avoid an error.
5741 Use char because int might match the return type of a GCC
5742 builtin and then its argument prototype would still apply. */
5743#ifdef __cplusplus
5744extern "C"
5745#endif
5746char PWL_handle_timeout ();
5747int
5748main ()
5749{
5750return PWL_handle_timeout ();
5751 ;
5752 return 0;
5753}
5754_ACEOF
5755if ac_fn_c_try_link "$LINENO"; then :
5756 ac_cv_lib_pwl_PWL_handle_timeout=yes
e28c595f 5757else
b123da99
SP
5758 ac_cv_lib_pwl_PWL_handle_timeout=no
5759fi
5760rm -f core conftest.err conftest.$ac_objext \
5761 conftest$ac_exeext conftest.$ac_ext
5762LIBS=$ac_check_lib_save_LIBS
5763fi
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pwl_PWL_handle_timeout" >&5
5765$as_echo "$ac_cv_lib_pwl_PWL_handle_timeout" >&6; }
5766if test "x$ac_cv_lib_pwl_PWL_handle_timeout" = x""yes; then :
5767 pwllib="-lpwl"
81ecdfbb
RW
5768fi
5769
0e8ad34f 5770 LIBS="$saved_LIBS"
b123da99 5771 fi
e28c595f 5772
b123da99
SP
5773 ppllibs="$ppllibs -lppl_c -lppl $pwllib -lgmpxx"
5774
5775 if test "$enable_ppl_version_check" != no; then
5776 saved_CFLAGS="$CFLAGS"
5777 CFLAGS="$CFLAGS $pplinc $gmpinc"
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.11 (revision 0 or later) of PPL" >&5
5779$as_echo_n "checking for version 0.11 (revision 0 or later) of PPL... " >&6; }
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5781/* end confdefs.h. */
5782#include "ppl_c.h"
5783int
5784main ()
5785{
5786
b123da99
SP
5787 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 11
5788 choke me
5789 #endif
e28c595f
JM
5790
5791 ;
5792 return 0;
5793}
5794_ACEOF
81ecdfbb
RW
5795if ac_fn_c_try_compile "$LINENO"; then :
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5797$as_echo "yes" >&6; }
e28c595f 5798else
81ecdfbb 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5800$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5801fi
81ecdfbb 5802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b123da99
SP
5803 CFLAGS="$saved_CFLAGS"
5804 fi
e28c595f
JM
5805fi
5806
5807# Flags needed for PPL
5808
5809
5810
5811
5812# Check for CLOOG
e552509b 5813
e28c595f
JM
5814
5815
81ecdfbb
RW
5816# Check whether --with-cloog was given.
5817if test "${with_cloog+set}" = set; then :
5818 withval=$with_cloog;
81ecdfbb
RW
5819fi
5820
e28c595f 5821
e552509b 5822# Check whether --with-cloog-include was given.
81ecdfbb
RW
5823if test "${with_cloog_include+set}" = set; then :
5824 withval=$with_cloog_include;
5825fi
e28c595f 5826
e28c595f 5827
e552509b 5828# Check whether --with-cloog-lib was given.
81ecdfbb
RW
5829if test "${with_cloog_lib+set}" = set; then :
5830 withval=$with_cloog_lib;
5831fi
e28c595f 5832
e28c595f 5833
e552509b
ILT
5834 # Check whether --enable-cloog-backend was given.
5835if test "${enable_cloog_backend+set}" = set; then :
5836 enableval=$enable_cloog_backend; if test "x${enableval}" = "xisl"; then
5837 cloog_backend=isl
5838 elif test "x${enableval}" = "xppl"; then
5839 cloog_backend=ppl
5840 else
5841 cloog_backend=ppl-legacy
5842 fi
5843else
5844 cloog_backend=ppl-legacy
5845fi
5846
5847 # Check whether --enable-cloog-version-check was given.
5848if test "${enable_cloog_version_check+set}" = set; then :
5849 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
5850else
5851 ENABLE_CLOOG_CHECK=yes
5852fi
5853
5854
5855 # Initialize clooglibs and clooginc.
5856 case $with_cloog in
5857 no)
5858 clooglibs=
5859 clooginc=
5860 ;;
5861 "" | yes)
5862 ;;
5863 *)
5864 clooglibs="-L$with_cloog/lib"
5865 clooginc="-I$with_cloog/include"
5866 ;;
5867 esac
5868 if test "x${with_cloog_include}" != x ; then
5869 clooginc="-I$with_cloog_include"
5870 fi
5871 if test "x${with_cloog_lib}" != x; then
5872 clooglibs="-L$with_cloog_lib"
5873 fi
5874
5875
5876
5877
5878
1f53ca9a 5879if test "x$with_ppl" = "xno"; then
8d8eef9a
RW
5880
5881
5882
5883 if test "x${with_cloog}" = xno; then
5884 graphite_requested=no
5885 elif test "x${with_cloog}" != x \
5886 || test "x${with_cloog_include}" != x \
5887 || test "x${with_cloog_lib}" != x ; then
5888 graphite_requested=yes
5889 else
5890 graphite_requested=no
5891 fi
5892
5893
5894 if test "${graphite_requested}" = yes; then
5895 as_fn_error "Unable to find a usable PPL. See config.log for details." "$LINENO" 5
5896 fi
1f53ca9a
AO
5897 with_cloog=no
5898fi
e552509b
ILT
5899if test "x${with_cloog}" = x && test "x${with_cloog_include}" = x \
5900 && test "x${with_cloog_lib}" = x && test -d ${srcdir}/cloog; then
5901 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' '
5902 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include '
5903fi
5904if test "x$with_cloog" != "xno"; then
1f53ca9a 5905
e552509b
ILT
5906
5907
5908 _cloog_saved_CFLAGS=$CFLAGS
5909 _cloog_saved_CPPFLAGS=$CPPFLAGS
5910 _cloog_saved_LDFLAGS=$LDFLAGS
5911 _cloog_saved_LIBS=$LIBS
5912
5913 _cloogorginc="-DCLOOG_INT_GMP -DCLOOG_ORG"
5914
5915 CFLAGS="${CFLAGS} ${clooginc} ${gmpinc}"
5916 CPPFLAGS="${CPPFLAGS} ${_cloogorginc}"
5917 LDFLAGS="${LDFLAGS} ${clooglibs}"
5918
5919 case $cloog_backend in
5920 "ppl-legacy")
5921 CFLAGS="${CFLAGS} ${pplinc}"
5922 LDFLAGS="${LDFLAGS} ${ppllibs}"
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL Legacy" >&5
5924$as_echo_n "checking for installed CLooG PPL Legacy... " >&6; }
5925if test "${gcc_cv_cloog_type+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927else
5928 LIBS="-lcloog ${_cloog_saved_LIBS}"
5929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5930/* end confdefs.h. */
5931#include "cloog/cloog.h"
5932int
5933main ()
5934{
5935#ifndef CLOOG_PPL_BACKEND
5936 choke me
5937 #endif
5938 ;
5939 return 0;
5940}
5941_ACEOF
5942if ac_fn_c_try_link "$LINENO"; then :
5943 gcc_cv_cloog_type="PPL Legacy"
5944else
5945 gcc_cv_cloog_type=no
5946fi
5947rm -f core conftest.err conftest.$ac_objext \
5948 conftest$ac_exeext conftest.$ac_ext
e28c595f 5949fi
e552509b
ILT
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5951$as_echo "$gcc_cv_cloog_type" >&6; }
5952 ;;
5953 "isl")
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG ISL" >&5
5955$as_echo_n "checking for installed CLooG ISL... " >&6; }
5956if test "${gcc_cv_cloog_type+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958else
5959 LIBS="-lcloog-isl ${_cloog_saved_LIBS}"
5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5961/* end confdefs.h. */
5962#include "cloog/cloog.h"
5963int
5964main ()
5965{
5966cloog_version ()
5967 ;
5968 return 0;
5969}
5970_ACEOF
5971if ac_fn_c_try_link "$LINENO"; then :
5972 gcc_cv_cloog_type="ISL"
5973else
5974 gcc_cv_cloog_type=no
e28c595f 5975fi
e552509b
ILT
5976rm -f core conftest.err conftest.$ac_objext \
5977 conftest$ac_exeext conftest.$ac_ext
e28c595f 5978fi
e552509b
ILT
5979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
5980$as_echo "$gcc_cv_cloog_type" >&6; }
5981 ;;
5982 "ppl")
5983 CFLAGS="${CFLAGS} ${pplinc}"
5984 LDFLAGS="${LDFLAGS} ${ppllibs}"
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for installed CLooG PPL" >&5
5986$as_echo_n "checking for installed CLooG PPL... " >&6; }
5987if test "${gcc_cv_cloog_type+set}" = set; then :
5988 $as_echo_n "(cached) " >&6
e28c595f 5989else
e552509b
ILT
5990 LIBS="-lcloog-ppl ${_cloog_saved_LIBS}"
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992/* end confdefs.h. */
5993#include "cloog/cloog.h"
5994 #include "cloog/ppl/cloog.h"
5995int
5996main ()
5997{
5998cloog_version ()
5999 ;
6000 return 0;
6001}
6002_ACEOF
6003if ac_fn_c_try_link "$LINENO"; then :
6004 gcc_cv_cloog_type="PPL"
6005else
6006 gcc_cv_cloog_type=no
81ecdfbb 6007fi
e552509b
ILT
6008rm -f core conftest.err conftest.$ac_objext \
6009 conftest$ac_exeext conftest.$ac_ext
6010fi
6011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_type" >&5
6012$as_echo "$gcc_cv_cloog_type" >&6; }
6013 ;;
6014 *)
6015 gcc_cv_cloog_type=""
6016 esac
6017
6018 case $gcc_cv_cloog_type in
6019 "PPL Legacy")
6020 clooginc="${clooginc}"
6021 clooglibs="${clooglibs} -lcloog"
6022 cloog_org=no
6023 ;;
6024 "ISL")
6025 clooginc="${clooginc} ${_cloogorginc}"
b123da99 6026 clooglibs="${clooglibs} -lcloog-isl -lisl"
e552509b
ILT
6027 cloog_org=yes
6028 ;;
6029 "PPL")
6030 clooginc="${clooginc} ${_cloogorginc}"
6031 clooglibs="${clooglibs} -lcloog-ppl"
6032 cloog_org=yes
6033 ;;
6034 *)
6035 clooglibs=
6036 clooginc=
6037 cloog_org=
6038 ;;
6039 esac
81ecdfbb 6040
e552509b
ILT
6041 LIBS=$_cloog_saved_LIBS
6042 CFLAGS=$_cloog_saved_CFLAGS
6043 CPPFLAGS=$_cloog_saved_CPPFLAGS
6044 LDFLAGS=$_cloog_saved_LDFLAGS
e28c595f 6045
e552509b
ILT
6046
6047
6048
6049
6050 if test "${ENABLE_CLOOG_CHECK}" = yes ; then
6051 _cloog_saved_CFLAGS=$CFLAGS
6052 _cloog_saved_LDFLAGS=$LDFLAGS
6053
6054 CFLAGS="${_cloog_saved_CFLAGS} ${clooginc} ${pplinc} ${gmpinc}"
6055 LDFLAGS="${_cloog_saved_LDFLAGS} ${clooglibs} ${ppllibs}"
6056
6057 if test "${cloog_org}" = yes ; then
8d8eef9a
RW
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.16.1 of CLooG" >&5
6059$as_echo_n "checking for version 0.16.1 of CLooG... " >&6; }
e552509b
ILT
6060if test "${gcc_cv_cloog_ct_0_14_0+set}" = set; then :
6061 $as_echo_n "(cached) " >&6
6062else
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064/* end confdefs.h. */
6065#include "cloog/cloog.h"
6066int
6067main ()
6068{
6069#if CLOOG_VERSION_MAJOR != 0 \
8d8eef9a
RW
6070 || CLOOG_VERSION_MINOR != 16 \
6071 || CLOOG_VERSION_REVISION < 1
e552509b
ILT
6072 choke me
6073 #endif
6074 ;
6075 return 0;
6076}
6077_ACEOF
6078if ac_fn_c_try_compile "$LINENO"; then :
6079 gcc_cv_cloog_ct_0_14_0=yes
6080else
6081 gcc_cv_cloog_ct_0_14_0=no
6082fi
6083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084fi
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_14_0" >&5
6086$as_echo "$gcc_cv_cloog_ct_0_14_0" >&6; }
6087 elif test "${cloog_org}" = no ; then
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
143754cd 6089$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
e552509b
ILT
6090if test "${gcc_cv_cloog_ct_0_15_5+set}" = set; then :
6091 $as_echo_n "(cached) " >&6
6092else
81ecdfbb 6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
6094/* end confdefs.h. */
6095#include "cloog/cloog.h"
6096int
6097main ()
6098{
e552509b
ILT
6099#if CLOOG_VERSION_MAJOR != 0 \
6100 || CLOOG_VERSION_MINOR != 15 \
6101 || CLOOG_VERSION_REVISION < 5
6102 choke me
6103 #endif
e28c595f
JM
6104 ;
6105 return 0;
6106}
6107_ACEOF
a009f2e7
RW
6108if ac_fn_c_try_compile "$LINENO"; then :
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110/* end confdefs.h. */
6111#include "cloog/cloog.h"
6112int
6113main ()
6114{
e552509b
ILT
6115#if CLOOG_VERSION_MAJOR != 0 \
6116 || CLOOG_VERSION_MINOR != 15 \
6117 || CLOOG_VERSION_REVISION < 9
6118 choke me
6119 #endif
a009f2e7
RW
6120 ;
6121 return 0;
6122}
6123_ACEOF
81ecdfbb 6124if ac_fn_c_try_compile "$LINENO"; then :
e552509b 6125 gcc_cv_cloog_ct_0_15_5=yes
a009f2e7 6126else
e552509b 6127 gcc_cv_cloog_ct_0_15_5="buggy but acceptable"
a009f2e7
RW
6128fi
6129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6130else
e552509b 6131 gcc_cv_cloog_ct_0_15_5=no
e28c595f 6132fi
81ecdfbb 6133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 6134fi
e552509b
ILT
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_cloog_ct_0_15_5" >&5
6136$as_echo "$gcc_cv_cloog_ct_0_15_5" >&6; }
6137 fi
6138
6139 CFLAGS=$_cloog_saved_CFLAGS
6140 LDFLAGS=$_cloog_saved_LDFLAGS
6141 fi
6142
6143
6144
e28c595f 6145
e28c595f
JM
6146
6147
6148
8d8eef9a
RW
6149 if test "x${with_cloog}" = xno; then
6150 graphite_requested=no
6151 elif test "x${with_cloog}" != x \
e552509b
ILT
6152 || test "x${with_cloog_include}" != x \
6153 || test "x${with_cloog_lib}" != x ; then
6154 graphite_requested=yes
6155 else
6156 graphite_requested=no
6157 fi
6158
6159
6160
6161 if test "${gcc_cv_cloog_ct_0_14_0}" = no \
6162 || test "${gcc_cv_cloog_rt_0_14_0}" = no \
6163 || test "${gcc_cv_cloog_ct_0_15_5}" = no; then
6164 clooglibs=
6165 clooginc=
6166 fi
6167
6168 if test "${graphite_requested}" = yes \
6169 && test "x${clooglibs}" = x \
6170 && test "x${clooginc}" = x ; then
6171
8d8eef9a 6172 as_fn_error "Unable to find a usable CLooG. See config.log for details." "$LINENO" 5
e552509b
ILT
6173 fi
6174
6175
6176fi
6177
700d40ca
ILT
6178# Check for LTO support.
6179# Check whether --enable-lto was given.
6180if test "${enable_lto+set}" = set; then :
6181 enableval=$enable_lto; enable_lto=$enableval
6182else
6183 enable_lto=yes; default_enable_lto=yes
6184fi
6185
6186
143754cd 6187
e49e5c92
DK
6188
6189
6190target_elf=no
6191case $target in
6192 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
6193 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 6194 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
6195 target_elf=no
6196 ;;
6197 *)
6198 target_elf=yes
6199 ;;
6200esac
6201
6202if test $target_elf = yes; then :
74cea91b
DK
6203 # ELF platforms build the lto-plugin always.
6204 build_lto_plugin=yes
e49e5c92 6205
e49e5c92
DK
6206else
6207 if test x"$default_enable_lto" = x"yes" ; then
29821356 6208 case $target in
899b04ef 6209 *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
74cea91b 6210 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
6211 *) enable_lto=no ;;
6212 esac
e49e5c92 6213 else
29821356
RW
6214 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
6215 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
6216 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
6217 # warn during gcc/ subconfigure; unless you're bootstrapping with
6218 # -flto it won't be needed until after installation anyway.
6219 case $target in
a8eb3f0a 6220 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
6221 *) if test x"$enable_lto" = x"yes"; then
6222 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
6223 fi
6224 ;;
6225 esac
6226 fi
a8eb3f0a 6227 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 6228 # Build it unless LTO was explicitly disabled.
a8eb3f0a 6229 case $target in
74cea91b 6230 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
6231 *) ;;
6232 esac
74cea91b 6233
e49e5c92
DK
6234fi
6235
700d40ca 6236
e28c595f 6237
947f426e 6238# By default, C is the only stage 1 language.
9b134994 6239stage1_languages=,c,
1d39f329 6240
e8a5fa9c 6241# Target libraries that we bootstrap.
2aa2364a 6242bootstrap_target_libs=,target-libgcc,
e8a5fa9c 6243
9e07f89d
NN
6244# Figure out what language subdirectories are present.
6245# Look if the user specified --enable-languages="..."; if not, use
6246# the environment variable $LANGUAGES if defined. $LANGUAGES might
6247# go away some day.
6248# NB: embedded tabs in this IF block -- do not untabify
6249if test -d ${srcdir}/gcc; then
6250 if test x"${enable_languages+set}" != xset; then
6251 if test x"${LANGUAGES+set}" = xset; then
6252 enable_languages="${LANGUAGES}"
6253 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
6254 else
6255 enable_languages=all
6256 fi
6257 else
6258 if test x"${enable_languages}" = x ||
6259 test x"${enable_languages}" = xyes;
6260 then
6261 echo configure.in: --enable-languages needs at least one language argument 1>&2
6262 exit 1
6263 fi
6264 fi
6265 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
6266
096f7d00
DE
6267 # 'f95' is the old name for the 'fortran' language. We issue a warning
6268 # and make the substitution.
6269 case ,${enable_languages}, in
6270 *,f95,*)
6271 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
6272 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
6273 ;;
6274 esac
6275
9e07f89d
NN
6276 # First scan to see if an enabled language requires some other language.
6277 # We assume that a given config-lang.in will list all the language
6278 # front ends it requires, even if some are required indirectly.
6279 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6280 case ${lang_frag} in
6281 ..) ;;
6282 # The odd quoting in the next line works around
6283 # an apparent bug in bash 1.12 on linux.
6284 ${srcdir}/gcc/[*]/config-lang.in) ;;
6285 *)
e552509b
ILT
6286 # From the config-lang.in, get $language, $lang_requires, and
6287 # $lang_requires_boot_languages.
9e07f89d
NN
6288 language=
6289 lang_requires=
e552509b 6290 lang_requires_boot_languages=
9e07f89d 6291 . ${lang_frag}
e552509b 6292 for other in ${lang_requires} ${lang_requires_boot_languages}; do
9e07f89d
NN
6293 case ,${enable_languages}, in
6294 *,$other,*) ;;
6295 *,all,*) ;;
6296 *,$language,*)
6297 echo " \`$other' language required by \`$language'; enabling" 1>&2
6298 enable_languages="${enable_languages},${other}"
6299 ;;
6300 esac
6301 done
e552509b
ILT
6302 for other in ${lang_requires_boot_languages} ; do
6303 if test "$other" != "c"; then
6304 case ,${enable_stage1_languages}, in
6305 *,$other,*) ;;
6306 *,all,*) ;;
6307 *)
6308 case ,${enable_languages}, in
6309 *,$language,*)
6310 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
6311 enable_stage1_languages="$enable_stage1_languages,${other}"
6312 ;;
6313 esac
6314 ;;
6315 esac
6316 fi
6317 done
9e07f89d
NN
6318 ;;
6319 esac
6320 done
6321
9b134994 6322 new_enable_languages=,c,
700d40ca
ILT
6323
6324 # If LTO is enabled, add the LTO front end.
6325 extra_host_libiberty_configure_flags=
6326 if test "$enable_lto" = "yes" ; then
6811fb56
RW
6327 case ,${enable_languages}, in
6328 *,lto,*) ;;
6329 *) enable_languages="${enable_languages},lto" ;;
6330 esac
a8eb3f0a 6331 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
6332 configdirs="$configdirs lto-plugin"
6333 extra_host_libiberty_configure_flags=--enable-shared
6334 fi
6335 fi
6336
6337
9e07f89d 6338 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 6339 potential_languages=,c,
9e07f89d 6340
9e1a94f4
ILT
6341 enabled_target_libs=
6342 disabled_target_libs=
6343
9e07f89d
NN
6344 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
6345 case ${lang_frag} in
6346 ..) ;;
6347 # The odd quoting in the next line works around
6348 # an apparent bug in bash 1.12 on linux.
6349 ${srcdir}/gcc/[*]/config-lang.in) ;;
6350 *)
c6b750e1 6351 # From the config-lang.in, get $language, $target_libs,
1d39f329 6352 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
6353 language=
6354 target_libs=
6355 lang_dirs=
64ce424c 6356 subdir_requires=
9b134994
PB
6357 boot_language=no
6358 build_by_default=yes
9e07f89d 6359 . ${lang_frag}
9b134994
PB
6360 if test x${language} = x; then
6361 echo "${lang_frag} doesn't set \$language." 1>&2
6362 exit 1
6363 fi
6364
1f53ca9a
AO
6365 if test "$language" = "c++" \
6366 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
6367 boot_language=yes
6368 fi
6369
9b134994
PB
6370 case ,${enable_languages}, in
6371 *,${language},*)
9e07f89d
NN
6372 # Language was explicitly selected; include it.
6373 add_this_lang=yes
6374 ;;
9b134994
PB
6375 *,all,*)
6376 # 'all' was selected, select it if it is a default language
6377 add_this_lang=${build_by_default}
9e07f89d
NN
6378 ;;
6379 *)
6380 add_this_lang=no
6381 ;;
6382 esac
4b1cb4fe 6383
64ce424c 6384 # Disable languages that need other directories if these aren't available.
1f3f1bbf 6385 for i in $subdir_requires; do
3d3adb43 6386 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
6387 case ,${enable_languages}, in
6388 *,${language},*)
6389 # Specifically requested language; tell them.
81ecdfbb 6390 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
6391 ;;
6392 *)
6393 # Silently disable.
9b134994 6394 add_this_lang=unsupported
64ce424c
PB
6395 ;;
6396 esac
6397 done
6398
9b134994
PB
6399 # Disable Ada if no preexisting GNAT is available.
6400 case ,${enable_languages},:${language}:${have_gnat} in
6401 *,${language},*:ada:no)
6402 # Specifically requested language; tell them.
81ecdfbb 6403 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
6404 ;;
6405 *:ada:no)
6406 # Silently disable.
6407 add_this_lang=unsupported
6408 ;;
6409 esac
6410
59f7ec45
HPN
6411 # Disable a language that is unsupported by the target.
6412 case " $unsupported_languages " in
6413 *" $language "*)
9b134994 6414 add_this_lang=unsupported
59f7ec45
HPN
6415 ;;
6416 esac
6417
4b1cb4fe 6418 case $add_this_lang in
9b134994 6419 unsupported)
9e07f89d 6420 # Remove language-dependent dirs.
9e1a94f4
ILT
6421 disabled_target_libs="$disabled_target_libs $target_libs"
6422 noconfigdirs="$noconfigdirs $lang_dirs"
1d39f329 6423 ;;
9b134994
PB
6424 no)
6425 # Remove language-dependent dirs; still show language as supported.
9e1a94f4
ILT
6426 disabled_target_libs="$disabled_target_libs $target_libs"
6427 noconfigdirs="$noconfigdirs $lang_dirs"
9b134994
PB
6428 potential_languages="${potential_languages}${language},"
6429 ;;
6430 yes)
6431 new_enable_languages="${new_enable_languages}${language},"
6432 potential_languages="${potential_languages}${language},"
1d39f329 6433 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
9e1a94f4 6434 enabled_target_libs="$enabled_target_libs $target_libs"
f8dc745f
RW
6435 case "${boot_language}:,$enable_stage1_languages," in
6436 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6437 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6438 case ",$stage1_languages," in
6439 *,$language,* | ,yes, | ,all,) ;;
6440 *) stage1_languages="${stage1_languages}${language}," ;;
6441 esac
e8a5fa9c
RW
6442 # We need to bootstrap any supporting libraries.
6443 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6444 ;;
6445 esac
6446 ;;
9e07f89d
NN
6447 esac
6448 ;;
6449 esac
6450 done
6451
9e1a94f4
ILT
6452 # Add target libraries which are only needed for disabled languages
6453 # to noconfigdirs.
6454 if test -n "$disabled_target_libs"; then
6455 for dir in $disabled_target_libs; do
6456 case " $enabled_target_libs " in
6457 *" ${dir} "*) ;;
6458 *) noconfigdirs="$noconfigdirs $dir" ;;
6459 esac
6460 done
6461 fi
6462
81ecdfbb
RW
6463 # Check whether --enable-stage1-languages was given.
6464if test "${enable_stage1_languages+set}" = set; then :
6465 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6466 ,no,|,,)
6467 # Set it to something that will have no effect in the loop below
6468 enable_stage1_languages=c ;;
6469 ,yes,)
6470 enable_stage1_languages=`echo $new_enable_languages | \
6471 sed -e "s/^,//" -e "s/,$//" ` ;;
6472 *,all,*)
6473 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6474 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6475 esac
6476
6477 # Add "good" languages from enable_stage1_languages to stage1_languages,
6478 # while "bad" languages go in missing_languages. Leave no duplicates.
6479 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6480 case $potential_languages in
6481 *,$i,*)
6482 case $stage1_languages in
6483 *,$i,*) ;;
6484 *) stage1_languages="$stage1_languages$i," ;;
6485 esac ;;
6486 *)
6487 case $missing_languages in
6488 *,$i,*) ;;
6489 *) missing_languages="$missing_languages$i," ;;
6490 esac ;;
6491 esac
6492 done
81ecdfbb
RW
6493fi
6494
9b134994
PB
6495
6496 # Remove leading/trailing commas that were added for simplicity
6497 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6498 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6499 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6500 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6501
9e07f89d 6502 if test "x$missing_languages" != x; then
81ecdfbb 6503 as_fn_error "
27258dd4 6504The following requested languages could not be built: ${missing_languages}
81ecdfbb 6505Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6506 fi
9e07f89d
NN
6507 if test "x$new_enable_languages" != "x$enable_languages"; then
6508 echo The following languages will be built: ${new_enable_languages}
9b134994 6509 enable_languages="$new_enable_languages"
9e07f89d 6510 fi
9b134994 6511
c6b750e1 6512
81ec575a 6513 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6514fi
6515
a6df5a19
PB
6516# Handle --disable-<component> generically.
6517for dir in $configdirs $build_configdirs $target_configdirs ; do
6518 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6519 varname=`echo $dirname | sed -e s/+/_/g`
6520 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6521 noconfigdirs="$noconfigdirs $dir"
6522 fi
6523done
6524
4f0ef2d8 6525# Check for Boehm's garbage collector
81ecdfbb
RW
6526# Check whether --enable-objc-gc was given.
6527if test "${enable_objc_gc+set}" = set; then :
6528 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6529 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6530 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6531 ;;
6532esac
81ecdfbb
RW
6533fi
6534
4f0ef2d8
CD
6535
6536# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6537case ,${enable_languages},:${enable_objc_gc} in
6538 *,objc,*:yes)
4f0ef2d8
CD
6539 # Keep target-boehm-gc if requested for Objective-C.
6540 ;;
4f0ef2d8 6541 *)
d42c4017
DA
6542 # Otherwise remove target-boehm-gc depending on target-libjava.
6543 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6544 noconfigdirs="$noconfigdirs target-boehm-gc"
6545 fi
4f0ef2d8
CD
6546 ;;
6547esac
6548
caeba88f
AL
6549# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6550# $build_configdirs and $target_configdirs.
9e07f89d
NN
6551# If we have the source for $noconfigdirs entries, add them to $notsupp.
6552
6553notsupp=""
6554for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6555 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6556 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6557 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6558 if test -r $srcdir/$dirname/configure ; then
6559 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6560 true
6561 else
6562 notsupp="$notsupp $dir"
6563 fi
6564 fi
6565 fi
caeba88f
AL
6566 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6567 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6568 if test -r $srcdir/$dirname/configure ; then
6569 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6570 true
6571 else
6572 notsupp="$notsupp $dir"
6573 fi
6574 fi
6575 fi
9e07f89d
NN
6576 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6577 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6578 if test -r $srcdir/$dirname/configure ; then
6579 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6580 true
6581 else
6582 notsupp="$notsupp $dir"
6583 fi
6584 fi
6585 fi
6586done
6587
6588# Sometimes the tools are distributed with libiberty but with no other
6589# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6590# Don't let libgcc imply libiberty either.
9e07f89d 6591if test -n "${target_configdirs}" ; then
f86e35b8 6592 libgcc=
9e07f89d
NN
6593 others=
6594 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6595 if test "$i" = "libgcc"; then
6596 libgcc=target-libgcc
6597 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6598 if test -r $srcdir/$i/configure ; then
6599 others=yes;
6600 break;
6601 fi
6602 fi
6603 done
6604 if test -z "${others}" ; then
f86e35b8 6605 target_configdirs=$libgcc
9e07f89d
NN
6606 fi
6607fi
6608
6609# Quietly strip out all directories which aren't configurable in this tree.
6610# This relies on all configurable subdirectories being autoconfiscated, which
6611# is now the case.
6a9cf61e
PB
6612build_configdirs_all="$build_configdirs"
6613build_configdirs=
6614for i in ${build_configdirs_all} ; do
c6b750e1 6615 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6616 if test -f ${srcdir}/$j/configure ; then
6617 build_configdirs="${build_configdirs} $i"
6618 fi
6619done
6620
9e07f89d
NN
6621configdirs_all="$configdirs"
6622configdirs=
6623for i in ${configdirs_all} ; do
6624 if test -f ${srcdir}/$i/configure ; then
6625 configdirs="${configdirs} $i"
6626 fi
6627done
6a9cf61e 6628
9e07f89d
NN
6629target_configdirs_all="$target_configdirs"
6630target_configdirs=
6631for i in ${target_configdirs_all} ; do
c6b750e1 6632 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6633 if test -f ${srcdir}/$j/configure ; then
6634 target_configdirs="${target_configdirs} $i"
6635 fi
6636done
6637
6638# Produce a warning message for the subdirs we can't configure.
6639# This isn't especially interesting in the Cygnus tree, but in the individual
6640# FSF releases, it's important to let people know when their machine isn't
6641# supported by the one or two programs in a package.
6642
6643if test -n "${notsupp}" && test -z "${norecursion}" ; then
6644 # If $appdirs is non-empty, at least one of those directories must still
6645 # be configured, or we error out. (E.g., if the gas release supports a
6646 # specified target in some subdirs but not the gas subdir, we shouldn't
6647 # pretend that all is well.)
6648 if test -n "$appdirs" ; then
6649 for dir in $appdirs ; do
6650 if test -r $dir/Makefile.in ; then
6651 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6652 appdirs=""
6653 break
6654 fi
6a9cf61e 6655 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6656 appdirs=""
6657 break
6658 fi
6659 fi
6660 done
6661 if test -n "$appdirs" ; then
6662 echo "*** This configuration is not supported by this package." 1>&2
6663 exit 1
6664 fi
6665 fi
6666 # Okay, some application will build, or we don't care to check. Still
6667 # notify of subdirs not getting built.
6668 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6669 echo " ${notsupp}" 1>&2
6670 echo " (Any other directories should still work fine.)" 1>&2
6671fi
6672
6673case "$host" in
6674 *msdosdjgpp*)
6675 enable_gdbtk=no ;;
6676esac
6677
18f6b6ee
PB
6678# To find our prefix, in gcc_cv_tool_prefix.
6679
6680# The user is always right.
6681if test "${PATH_SEPARATOR+set}" != set; then
6682 echo "#! /bin/sh" >conf$$.sh
6683 echo "exit 0" >>conf$$.sh
6684 chmod +x conf$$.sh
6685 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6686 PATH_SEPARATOR=';'
6687 else
6688 PATH_SEPARATOR=:
6689 fi
6690 rm -f conf$$.sh
6691fi
6692
6693
6694
6695if test "x$exec_prefix" = xNONE; then
6696 if test "x$prefix" = xNONE; then
6697 gcc_cv_tool_prefix=$ac_default_prefix
6698 else
6699 gcc_cv_tool_prefix=$prefix
6700 fi
6701else
6702 gcc_cv_tool_prefix=$exec_prefix
6703fi
6704
6705# If there is no compiler in the tree, use the PATH only. In any
6706# case, if there is no compiler in the tree nobody should use
6707# AS_FOR_TARGET and LD_FOR_TARGET.
6708if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6709 gcc_version=`cat $srcdir/gcc/BASE-VER`
6710 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6711 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6712 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6713 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6714 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6715 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6716else
6717 gcc_cv_tool_dirs=
6718fi
6719
6720if test x$build = x$target && test -n "$md_exec_prefix"; then
6721 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6722fi
6723
6724
6725
9e07f89d
NN
6726copy_dirs=
6727
c6b750e1 6728
81ecdfbb
RW
6729# Check whether --with-build-sysroot was given.
6730if test "${with_build_sysroot+set}" = set; then :
6731 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6732 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6733 fi
6734else
6735 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6736fi
a19b6204
MM
6737
6738
8a6ee3ab 6739
81ecdfbb
RW
6740
6741# Check whether --with-debug-prefix-map was given.
6742if test "${with_debug_prefix_map+set}" = set; then :
6743 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6744 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6745 for debug_map in $withval; do
6746 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6747 done
6748 fi
6749else
6750 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6751fi
6752
8a6ee3ab
JM
6753
6754
7f6ef0c0
PB
6755# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6756# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6757# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6758# We want to ensure that TARGET libraries (which we know are built with
6759# gcc) are built with "-O2 -g", so include those options when setting
6760# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6761if test "x$CFLAGS_FOR_TARGET" = x; then
6762 CFLAGS_FOR_TARGET=$CFLAGS
6763 case " $CFLAGS " in
6764 *" -O2 "*) ;;
6765 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6766 esac
6767 case " $CFLAGS " in
6768 *" -g "* | *" -g3 "*) ;;
6769 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6770 esac
6771fi
6772
6773
6774if test "x$CXXFLAGS_FOR_TARGET" = x; then
6775 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6776 case " $CXXFLAGS " in
6777 *" -O2 "*) ;;
6778 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6779 esac
6780 case " $CXXFLAGS " in
6781 *" -g "* | *" -g3 "*) ;;
6782 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6783 esac
6784fi
6785
6786
9e07f89d
NN
6787# Handle --with-headers=XXX. If the value is not "yes", the contents of
6788# the named directory are copied to $(tooldir)/sys-include.
6789if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6790 if test x${is_cross_compiler} = xno ; then
6791 echo 1>&2 '***' --with-headers is only supported when cross compiling
6792 exit 1
6793 fi
6794 if test x"${with_headers}" != xyes ; then
18f6b6ee 6795 x=${gcc_cv_tool_prefix}
c6b750e1 6796 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6797 fi
6798fi
6799
6800# Handle --with-libs=XXX. If the value is not "yes", the contents of
6801# the name directories are copied to $(tooldir)/lib. Multiple directories
6802# are permitted.
6803if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6804 if test x${is_cross_compiler} = xno ; then
6805 echo 1>&2 '***' --with-libs is only supported when cross compiling
6806 exit 1
6807 fi
6808 if test x"${with_libs}" != xyes ; then
6809 # Copy the libraries in reverse order, so that files in the first named
6810 # library override files in subsequent libraries.
18f6b6ee 6811 x=${gcc_cv_tool_prefix}
9e07f89d 6812 for l in ${with_libs}; do
c6b750e1 6813 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6814 done
6815 fi
6816fi
6817
700d40ca 6818# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6819#
6820# This is done by determining whether or not the appropriate directory
6821# is available, and by checking whether or not specific configurations
6822# have requested that this magic not happen.
c6b750e1
DJ
6823#
6824# The command line options always override the explicit settings in
2429c060
PB
6825# configure.in, and the settings in configure.in override this magic.
6826#
c6b750e1 6827# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6828# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6829# --without-gnu-ld options for the configure script. Similarly, if
6830# the default is to use the included zlib and you don't want to do that,
6831# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6832
6833if test x${use_gnu_as} = x &&
6834 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6835 with_gnu_as=yes
6836 extra_host_args="$extra_host_args --with-gnu-as"
6837fi
6838
6839if test x${use_gnu_ld} = x &&
93f9b408 6840 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6841 with_gnu_ld=yes
6842 extra_host_args="$extra_host_args --with-gnu-ld"
6843fi
6844
700d40ca
ILT
6845if test x${use_included_zlib} = x &&
6846 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6847 :
6848else
6849 with_system_zlib=yes
6850 extra_host_args="$extra_host_args --with-system-zlib"
6851fi
6852
2429c060
PB
6853# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6854# can detect this case.
6855
6856if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6857 with_newlib=yes
6858 extra_host_args="$extra_host_args --with-newlib"
6859fi
6860
9e07f89d
NN
6861# Handle ${copy_dirs}
6862set fnord ${copy_dirs}
6863shift
6864while test $# != 0 ; do
6865 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6866 :
6867 else
6868 echo Copying $1 to $2
6869
6870 # Use the install script to create the directory and all required
6871 # parent directories.
6872 if test -d $2 ; then
6873 :
6874 else
6875 echo >config.temp
6876 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6877 fi
6878
6879 # Copy the directory, assuming we have tar.
6880 # FIXME: Should we use B in the second tar? Not all systems support it.
6881 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6882
6883 # It is the responsibility of the user to correctly adjust all
6884 # symlinks. If somebody can figure out how to handle them correctly
6885 # here, feel free to add the code.
6886
6887 echo $1 > $2/COPIED
6888 fi
6889 shift; shift
6890done
6891
2429c060
PB
6892# Determine a target-dependent exec_prefix that the installed
6893# gcc will search in. Keep this list sorted by triplet, with
6894# the *-*-osname triplets last.
6895md_exec_prefix=
6896case "${target}" in
521ec477 6897 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6898 md_exec_prefix=/dev/env/DJDIR/bin
6899 ;;
2429c060 6900 *-*-hpux* | \
2429c060 6901 *-*-nto-qnx* | \
1f111696 6902 *-*-solaris2*)
2429c060
PB
6903 md_exec_prefix=/usr/ccs/bin
6904 ;;
6905esac
6906
a0da8069
NN
6907extra_arflags_for_target=
6908extra_nmflags_for_target=
6909extra_ranlibflags_for_target=
6910target_makefile_frag=/dev/null
6911case "${target}" in
77d7106f
AM
6912 spu-*-*)
6913 target_makefile_frag="config/mt-spu"
6914 ;;
429acdec
RS
6915 mips*-sde-elf*)
6916 target_makefile_frag="config/mt-sde"
6917 ;;
f3b1e08e
RS
6918 mipsisa*-*-elfoabi*)
6919 target_makefile_frag="config/mt-mips-elfoabi"
6920 ;;
e7c8859c
RS
6921 mips*-*-*linux* | mips*-*-gnu*)
6922 target_makefile_frag="config/mt-mips-gnu"
6923 ;;
29383458 6924 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6925 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6926 ;;
6927 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6928 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6929 # commands to handle both 32-bit and 64-bit objects. These flags are
6930 # harmless if we're using GNU nm or ar.
6931 extra_arflags_for_target=" -X32_64"
6932 extra_nmflags_for_target=" -B -X32_64"
6933 ;;
92f4e989
JM
6934 *-*-darwin[3-9]*)
6935 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6936 extra_ranlibflags_for_target=" -c"
6937 ;;
a0da8069
NN
6938esac
6939
6940alphaieee_frag=/dev/null
6941case $target in
6942 alpha*-*-*)
6943 # This just makes sure to use the -mieee option to build target libs.
6944 # This should probably be set individually by each library.
6945 alphaieee_frag="config/mt-alphaieee"
6946 ;;
6947esac
6948
6949# If --enable-target-optspace always use -Os instead of -O2 to build
6950# the target libraries, similarly if it is not specified, use -Os
6951# on selected platforms.
6952ospace_frag=/dev/null
6953case "${enable_target_optspace}:${target}" in
6954 yes:*)
6955 ospace_frag="config/mt-ospace"
6956 ;;
6957 :d30v-*)
6958 ospace_frag="config/mt-d30v"
6959 ;;
6960 :m32r-* | :d10v-* | :fr30-*)
6961 ospace_frag="config/mt-ospace"
6962 ;;
6963 no:* | :*)
6964 ;;
6965 *)
6966 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6967 ;;
6968esac
6969
a0da8069
NN
6970# Default to using --with-stabs for certain targets.
6971if test x${with_stabs} = x ; then
6972 case "${target}" in
e31d1ea3 6973 mips*-*-irix[56]*)
a0da8069
NN
6974 ;;
6975 mips*-*-* | alpha*-*-osf*)
6976 with_stabs=yes;
6977 extra_host_args="${extra_host_args} --with-stabs"
6978 ;;
6979 esac
6980fi
6981
6982# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6983# them automatically.
6984case "${host}" in
c6b750e1 6985 hppa*64*-*-hpux11*)
a0da8069
NN
6986 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6987 ;;
6988esac
6989
a0da8069
NN
6990# Some systems (e.g., one of the i386-aix systems the gas testers are
6991# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6992tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6993build_tooldir=${tooldir}
6994
a0da8069
NN
6995# Create a .gdbinit file which runs the one in srcdir
6996# and tells GDB to look there for source files.
6997
6998if test -r ${srcdir}/.gdbinit ; then
6999 case ${srcdir} in
7000 .) ;;
7001 *) cat > ./.gdbinit <<EOF
7002# ${NO_EDIT}
7003dir ${srcdir}
7004dir .
7005source ${srcdir}/.gdbinit
7006EOF
7007 ;;
7008 esac
7009fi
7010
a0da8069
NN
7011# Make sure that the compiler is able to generate an executable. If it
7012# can't, we are probably in trouble. We don't care whether we can run the
7013# executable--we might be using a cross compiler--we only care whether it
7014# can be created. At this point the main configure script has set CC.
7015we_are_ok=no
7016echo "int main () { return 0; }" > conftest.c
7017${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
7018if test $? = 0 ; then
7019 if test -s conftest || test -s conftest.exe ; then
7020 we_are_ok=yes
7021 fi
c6b750e1 7022fi
a0da8069
NN
7023case $we_are_ok in
7024 no)
7025 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
7026 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
7027 rm -f conftest*
7028 exit 1
7029 ;;
7030esac
7031rm -f conftest*
7032
7033# The Solaris /usr/ucb/cc compiler does not appear to work.
7034case "${host}" in
7035 sparc-sun-solaris2*)
7036 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
7037 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
7038 could_use=
7039 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
7040 if test -d /opt/cygnus/bin ; then
7041 if test "$could_use" = "" ; then
7042 could_use="/opt/cygnus/bin"
7043 else
7044 could_use="$could_use or /opt/cygnus/bin"
7045 fi
7046 fi
7047 if test "$could_use" = "" ; then
7048 echo "Warning: compilation may fail because you're using"
7049 echo "/usr/ucb/cc. You should change your PATH or CC "
7050 echo "variable and rerun configure."
7051 else
7052 echo "Warning: compilation may fail because you're using"
7053 echo "/usr/ucb/cc, when you should use the C compiler from"
7054 echo "$could_use. You should change your"
7055 echo "PATH or CC variable and rerun configure."
7056 fi
7057 fi
7058 ;;
7059esac
7060
3bbd2f8f 7061# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
7062case "${host}" in
7063 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
3516a403 7064 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 7065 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
7066 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
7067esac
7068
3bbd2f8f 7069# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
7070# gcc/ will put dynamic libraries into a subdirectory to avoid adding
7071# built executables to PATH.
3bbd2f8f
AL
7072if test "$RPATH_ENVVAR" = PATH; then
7073 GCC_SHLIB_SUBDIR=/shlib
7074else
7075 GCC_SHLIB_SUBDIR=
7076fi
7077
a0da8069
NN
7078# Record target_configdirs and the configure arguments for target and
7079# build configuration in Makefile.
7080target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 7081build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 7082
2aa2364a
JR
7083# If we are building libgomp, bootstrap it.
7084if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
7085 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
7086fi
7087
a0da8069
NN
7088# Determine whether gdb needs tk/tcl or not.
7089# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
7090# and in that case we want gdb to be built without tk. Ugh!
7091# In fact I believe gdb is the *only* package directly dependent on tk,
7092# so we should be able to put the 'maybe's in unconditionally and
7093# leave out the maybe dependencies when enable_gdbtk is false. I'm not
7094# 100% sure that that's safe though.
c180f501 7095
675c6968 7096gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
7097case "$enable_gdbtk" in
7098 no)
7099 GDB_TK="" ;;
c180f501
AC
7100 yes)
7101 GDB_TK="${gdb_tk}" ;;
a0da8069 7102 *)
c180f501
AC
7103 # Only add the dependency on gdbtk when GDBtk is part of the gdb
7104 # distro. Eventually someone will fix this and move Insight, nee
7105 # gdbtk to a separate directory.
7106 if test -d ${srcdir}/gdb/gdbtk ; then
7107 GDB_TK="${gdb_tk}"
7108 else
7109 GDB_TK=""
7110 fi
7111 ;;
a0da8069 7112esac
907be67c
DJ
7113CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
7114INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 7115
6bd3dfaa 7116# Strip out unwanted targets.
dd12c3a8
NN
7117
7118# While at that, we remove Makefiles if we were started for recursive
7119# configuration, so that the top-level Makefile reconfigures them,
7120# like we used to do when configure itself was recursive.
dd12c3a8 7121
06a51eac
RW
7122# Loop over modules. We used to use the "$extrasub" feature from Autoconf
7123# but now we're fixing up the Makefile ourselves with the additional
7124# commands passed to AC_CONFIG_FILES. Use separate variables
7125# extrasub-{build,host,target} not because there is any reason to split
7126# the substitutions up that way, but only to remain below the limit of
7127# 99 commands in a script, for HP-UX sed.
7128# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 7129
81ecdfbb
RW
7130# Check whether --enable-bootstrap was given.
7131if test "${enable_bootstrap+set}" = set; then :
7132 enableval=$enable_bootstrap;
319cab08 7133else
9cb3fa6f 7134 enable_bootstrap=default
81ecdfbb
RW
7135fi
7136
319cab08 7137
9cb3fa6f
PB
7138# Issue errors and warnings for invalid/strange bootstrap combinations.
7139case "$configdirs" in
7140 *gcc*) have_compiler=yes ;;
7141 *) have_compiler=no ;;
7142esac
7143
7144case "$have_compiler:$host:$target:$enable_bootstrap" in
7145 *:*:*:no) ;;
7146
0aed8855 7147 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
7148 # and we are in a native configuration.
7149 yes:$build:$build:default)
0aed8855 7150 enable_bootstrap=yes ;;
9cb3fa6f
PB
7151
7152 *:*:*:default)
7153 enable_bootstrap=no ;;
7154
7155 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 7156 yes:$build:$build:yes)
9cb3fa6f
PB
7157 ;;
7158
7159 # Other configurations, but we have a compiler. Assume the user knows
7160 # what he's doing.
80911fe1 7161 yes:*:*:yes)
81ecdfbb
RW
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
7163$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
7164 ;;
7165
7166 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 7167 no:*:*:yes)
81ecdfbb 7168 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
7169
7170 # Fail if wrong command line
7171 *)
81ecdfbb 7172 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
7173 ;;
7174esac
7175
4385ad3c
RW
7176case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
7177 *,c++,*:yes:yes) ;;
7178 *:yes:yes)
7179 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
7180 ;;
7181esac
7182
16b1ad29
RW
7183case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
7184 yes:yes:*\ gold\ *:*,c++,*) ;;
7185 yes:yes:*\ gold\ *:*)
7186 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
7187 ;;
7188esac
7189
9cb3fa6f 7190# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 7191case $enable_bootstrap in
319cab08 7192 yes)
96655cc4
AO
7193 bootstrap_suffix=bootstrap
7194 BUILD_CONFIG=bootstrap-debug
7195 ;;
319cab08 7196 no)
96655cc4
AO
7197 bootstrap_suffix=no-bootstrap
7198 BUILD_CONFIG=
7199 ;;
319cab08
PB
7200esac
7201
96655cc4
AO
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
7203$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
7204
7205
7206# Check whether --with-build-config was given.
7207if test "${with_build_config+set}" = set; then :
7208 withval=$with_build_config; case $with_build_config in
7209 yes) with_build_config= ;;
7210 no) with_build_config= BUILD_CONFIG= ;;
7211 esac
7212fi
7213
7214
7215if test "x${with_build_config}" != x; then
7216 BUILD_CONFIG=$with_build_config
7217else
7218 case $BUILD_CONFIG in
7219 bootstrap-debug)
7220 if echo "int f (void) { return 0; }" > conftest.c &&
7221 ${CC} -c conftest.c &&
7222 mv conftest.o conftest.o.g0 &&
7223 ${CC} -c -g conftest.c &&
7224 mv conftest.o conftest.o.g &&
a009f2e7 7225 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
7226 :
7227 else
7228 BUILD_CONFIG=
7229 fi
7230 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
7231 ;;
7232 esac
7233fi
7234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
7235$as_echo "$BUILD_CONFIG" >&6; }
7236
7237
06a51eac 7238extrasub_build=
6a9cf61e 7239for module in ${build_configdirs} ; do
498d4a71
CF
7240 if test -z "${no_recursion}" \
7241 && test -f ${build_subdir}/${module}/Makefile; then
7242 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
7243 rm -f ${build_subdir}/${module}/Makefile
7244 fi
06a51eac 7245 extrasub_build="$extrasub_build
498d4a71
CF
7246/^@if build-$module\$/d
7247/^@endif build-$module\$/d
7248/^@if build-$module-$bootstrap_suffix\$/d
7249/^@endif build-$module-$bootstrap_suffix\$/d"
7250done
06a51eac 7251extrasub_host=
498d4a71 7252for module in ${configdirs} ; do
80911fe1 7253 if test -z "${no_recursion}"; then
8cf39b1b 7254 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
7255 if test -f ${file}; then
7256 echo 1>&2 "*** removing ${file} to force reconfigure"
7257 rm -f ${file}
7258 fi
7259 done
498d4a71 7260 fi
06a51eac 7261 extrasub_host="$extrasub_host
498d4a71
CF
7262/^@if $module\$/d
7263/^@endif $module\$/d
7264/^@if $module-$bootstrap_suffix\$/d
7265/^@endif $module-$bootstrap_suffix\$/d"
7266done
06a51eac 7267extrasub_target=
498d4a71
CF
7268for module in ${target_configdirs} ; do
7269 if test -z "${no_recursion}" \
7270 && test -f ${target_subdir}/${module}/Makefile; then
7271 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
7272 rm -f ${target_subdir}/${module}/Makefile
7273 fi
e8a5fa9c
RW
7274
7275 # We only bootstrap target libraries listed in bootstrap_target_libs.
7276 case $bootstrap_target_libs in
7277 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
7278 *) target_bootstrap_suffix=no-bootstrap ;;
7279 esac
7280
06a51eac 7281 extrasub_target="$extrasub_target
498d4a71
CF
7282/^@if target-$module\$/d
7283/^@endif target-$module\$/d
e8a5fa9c
RW
7284/^@if target-$module-$target_bootstrap_suffix\$/d
7285/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
7286done
7287
06a51eac
RW
7288# Do the final fixup along with target modules.
7289extrasub_target="$extrasub_target
6bd3dfaa 7290/^@if /,/^@endif /d"
a0da8069
NN
7291
7292# Create the serialization dependencies. This uses a temporary file.
7293
81ecdfbb
RW
7294# Check whether --enable-serial-configure was given.
7295if test "${enable_serial_configure+set}" = set; then :
7296 enableval=$enable_serial_configure;
7297fi
e6bfb94a
AO
7298
7299
1047cb91
DD
7300case ${enable_serial_configure} in
7301 yes)
7302 enable_serial_build_configure=yes
7303 enable_serial_host_configure=yes
7304 enable_serial_target_configure=yes
7305 ;;
7306esac
7307
a0da8069
NN
7308# These force 'configure's to be done one at a time, to avoid problems
7309# with contention over a shared config.cache.
7310rm -f serdep.tmp
e6bfb94a 7311echo '# serdep.tmp' > serdep.tmp
a0da8069 7312olditem=
1047cb91 7313test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
7314for item in ${build_configdirs} ; do
7315 case ${olditem} in
7316 "") ;;
e6bfb94a 7317 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7318 esac
7319 olditem=${item}
7320done
7321olditem=
1047cb91 7322test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
7323for item in ${configdirs} ; do
7324 case ${olditem} in
7325 "") ;;
e6bfb94a 7326 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7327 esac
7328 olditem=${item}
7329done
7330olditem=
1047cb91 7331test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
7332for item in ${target_configdirs} ; do
7333 case ${olditem} in
7334 "") ;;
e6bfb94a 7335 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
7336 esac
7337 olditem=${item}
7338done
7339serialization_dependencies=serdep.tmp
7340
7341
e6bfb94a 7342# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 7343# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
7344# might not want to pass down to subconfigures. The exception being
7345# --cache-file=/dev/null, which is used to turn off the use of cache
7346# files altogether, and which should be passed on to subconfigures.
7347# Also strip program-prefix, program-suffix, and program-transform-name,
7348# so that we can pass down a consistent program-transform-name.
c6b750e1 7349baseargs=
65b4571a 7350tbaseargs=
c6b750e1
DJ
7351keep_next=no
7352skip_next=no
7353eval "set -- $ac_configure_args"
18f6b6ee
PB
7354for ac_arg
7355do
c6b750e1
DJ
7356 if test X"$skip_next" = X"yes"; then
7357 skip_next=no
7358 continue
7359 fi
7360 if test X"$keep_next" = X"yes"; then
7361 case $ac_arg in
7362 *\'*)
7363 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7364 esac
7365 baseargs="$baseargs '$ac_arg'"
65b4571a 7366 tbaseargs="$tbaseargs '$ac_arg'"
c6b750e1
DJ
7367 keep_next=no
7368 continue
7369 fi
7370
7371 # Handle separated arguments. Based on the logic generated by
7372 # autoconf 2.59.
7373 case $ac_arg in
7374 *=* | --config-cache | -C | -disable-* | --disable-* \
7375 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
7376 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
7377 | -with-* | --with-* | -without-* | --without-* | --x)
7378 separate_arg=no
7379 ;;
7380 -*)
7381 separate_arg=yes
7382 ;;
7383 *)
7384 separate_arg=no
7385 ;;
7386 esac
7387
65b4571a
AO
7388 skip_targ=no
7389 case $ac_arg in
7390
7391 --with-* | --without-*)
7392 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
7393
7394 case $libopt in
7395 *[-_]include)
7396 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
7397 ;;
7398 *[-_]lib)
7399 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
7400 ;;
7401 *)
7402 lib=$libopt
7403 ;;
7404 esac
7405
7406
7407 case $lib in
7408 mpc | mpfr | gmp | ppl | cloog)
7409 # If we're processing --with-$lib, --with-$lib-include or
7410 # --with-$lib-lib, for one of the libs above, and target is
7411 # different from host, don't pass the current argument to any
7412 # target library's configure.
7413 if test x$is_cross_compiler = xyes; then
7414 skip_targ=yes
7415 fi
7416 ;;
7417 esac
7418 ;;
7419 esac
7420
c6b750e1 7421 case "$ac_arg" in
30167e0a
NC
7422 --cache-file=/dev/null | \
7423 -cache-file=/dev/null )
7424 # Handled here to avoid the test to skip args below.
7425 baseargs="$baseargs '$ac_arg'"
65b4571a 7426 tbaseargs="$tbaseargs '$ac_arg'"
30167e0a
NC
7427 # Assert: $separate_arg should always be no.
7428 keep_next=$separate_arg
7429 ;;
c6b750e1
DJ
7430 --no*)
7431 continue
7432 ;;
7433 --c* | \
7434 --sr* | \
7435 --ho* | \
7436 --bu* | \
7437 --t* | \
7438 --program-* | \
7439 -cache_file* | \
7440 -srcdir* | \
7441 -host* | \
7442 -build* | \
7443 -target* | \
7444 -program-prefix* | \
7445 -program-suffix* | \
7446 -program-transform-name* )
7447 skip_next=$separate_arg
7448 continue
7449 ;;
7450 -*)
7451 # An option. Add it.
7452 case $ac_arg in
7453 *\'*)
7454 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7455 esac
7456 baseargs="$baseargs '$ac_arg'"
65b4571a
AO
7457 if test X"$skip_targ" = Xno; then
7458 tbaseargs="$tbaseargs '$ac_arg'"
7459 fi
c6b750e1
DJ
7460 keep_next=$separate_arg
7461 ;;
7462 *)
7463 # Either a variable assignment, or a nonopt (triplet). Don't
7464 # pass it down; let the Makefile handle this.
7465 continue
7466 ;;
7467 esac
7468done
7469# Remove the initial space we just introduced and, as these will be
7470# expanded by make, quote '$'.
7471baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7472
f27d4f92
DJ
7473# Add in --program-transform-name, after --program-prefix and
7474# --program-suffix have been applied to it. Autoconf has already
7475# doubled dollar signs and backslashes in program_transform_name; we want
7476# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7477# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7478# Also, because we want to override the logic in subdir configure scripts to
7479# choose program_transform_name, replace any s,x,x, with s,y,y,.
7480sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7481${program_transform_name}
7482EOF_SED
7483gcc_transform_name=`cat conftestsed.out`
7484rm -f conftestsed.out
7485baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
65b4571a 7486tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7487if test "$silent" = yes; then
7488 baseargs="$baseargs --silent"
65b4571a 7489 tbaseargs="$tbaseargs --silent"
2444379b 7490fi
34a0f3cf 7491baseargs="$baseargs --disable-option-checking"
65b4571a 7492tbaseargs="$tbaseargs --disable-option-checking"
f27d4f92 7493
4074d5f2
RW
7494# Record and document user additions to sub configure arguments.
7495
7496
7497
7498
a0da8069
NN
7499# For the build-side libraries, we just need to pretend we're native,
7500# and not use the same cache file. Multilibs are neither needed nor
7501# desired.
4074d5f2 7502build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7503
7504# For host modules, accept cache file option, or specification as blank.
7505case "${cache_file}" in
7506"") # empty
7507 cache_file_option="" ;;
7508/* | [A-Za-z]:[\\/]* ) # absolute path
7509 cache_file_option="--cache-file=${cache_file}" ;;
7510*) # relative path
7511 cache_file_option="--cache-file=../${cache_file}" ;;
7512esac
7513
82252c06
NN
7514# Host dirs don't like to share a cache file either, horribly enough.
7515# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7516host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7517
65b4571a 7518target_configargs="$target_configargs ${tbaseargs}"
a0da8069
NN
7519
7520# Passing a --with-cross-host argument lets the target libraries know
7521# whether they are being built with a cross-compiler or being built
7522# native. However, it would be better to use other mechanisms to make the
7523# sorts of decisions they want to make on this basis. Please consider
7524# this option to be deprecated. FIXME.
7525if test x${is_cross_compiler} = xyes ; then
c6b750e1 7526 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7527fi
7528
938d2b74
RW
7529# Default to --enable-multilib.
7530if test x${enable_multilib} = x ; then
a0da8069 7531 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7532fi
a0da8069
NN
7533
7534# Pass --with-newlib if appropriate. Note that target_configdirs has
7535# changed from the earlier setting of with_newlib.
7536if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7537 target_configargs="--with-newlib ${target_configargs}"
7538fi
7539
95036d20
NN
7540# Different target subdirs use different values of certain variables
7541# (notably CXX). Worse, multilibs use *lots* of different values.
7542# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7543# it doesn't automatically accept command-line overrides of them.
7544# This means it's not safe for target subdirs to share a cache file,
7545# which is disgusting, but there you have it. Hopefully this can be
7546# fixed in future. It's still worthwhile to use a cache file for each
7547# directory. I think.
7548
ae380b45
MS
7549# Pass the appropriate --build, --host, --target and --cache-file arguments.
7550# We need to pass --target, as newer autoconf's requires consistency
7551# for target_alias and gcc doesn't manage it consistently.
4b900473 7552target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7553
a0da8069
NN
7554FLAGS_FOR_TARGET=
7555case " $target_configdirs " in
7556 *" newlib "*)
7557 case " $target_configargs " in
7558 *" --with-newlib "*)
7559 case "$target" in
1f53ca9a
AO
7560 *-cygwin*)
7561 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'
7562 ;;
a0da8069
NN
7563 esac
7564
7565 # If we're not building GCC, don't discard standard headers.
7566 if test -d ${srcdir}/gcc; then
7567 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7568
7569 if test "${build}" != "${host}"; then
7570 # On Canadian crosses, CC_FOR_TARGET will have already been set
7571 # by `configure', so we won't have an opportunity to add -Bgcc/
7572 # to it. This is right: we don't want to search that directory
7573 # for binaries, but we want the header files in there, so add
7574 # them explicitly.
e552509b 7575 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
a0da8069
NN
7576
7577 # Someone might think of using the pre-installed headers on
7578 # Canadian crosses, in case the installed compiler is not fully
7579 # compatible with the compiler being built. In this case, it
7580 # would be better to flag an error than risking having
7581 # incompatible object files being constructed. We can't
7582 # guarantee that an error will be flagged, but let's hope the
7583 # compiler will do it, when presented with incompatible header
7584 # files.
7585 fi
7586 fi
7587
7588 case "${target}-${is_cross_compiler}" in
ec11bdc6 7589 i[3456789]86-*-linux*-no)
a0da8069
NN
7590 # Here host == target, so we don't need to build gcc,
7591 # so we don't want to discard standard headers.
7592 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7593 ;;
7594 *)
7595 # If we're building newlib, use its generic headers last, but search
7596 # for any libc-related directories first (so make it the last -B
7597 # switch).
7598 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
691bb5a1
DD
7599
7600 # If we're building libgloss, find the startup file, simulator library
7601 # and linker script.
7602 case " $target_configdirs " in
7603 *" libgloss "*)
7604 # Look for startup file, simulator library and maybe linker script.
7605 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7606 # Look for libnosys.a in case the target needs it.
7607 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7608 # Most targets have the linker script in the source directory.
7609 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7610 ;;
7611 esac
a0da8069
NN
7612 ;;
7613 esac
7614 ;;
7615 esac
7616 ;;
7617esac
1f53ca9a 7618
45055374 7619case "$target" in
1f53ca9a
AO
7620 x86_64-*mingw* | *-w64-mingw*)
7621 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7622 # however, use a symlink named 'mingw' in ${prefix} .
7623 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7624 ;;
7625 *-mingw*)
7626 # MinGW can't be handled as Cygwin above since it does not use newlib.
7627 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'
7628 ;;
45055374 7629esac
a0da8069 7630
5fbad20a
DD
7631# Allow the user to override the flags for
7632# our build compiler if desired.
c66487f8
NC
7633if test x"${build}" = x"${host}" ; then
7634 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7635 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7636 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7637fi
5fbad20a 7638
a0da8069
NN
7639# On Canadian crosses, we'll be searching the right directories for
7640# the previously-installed cross compiler, so don't bother to add
7641# flags for directories within the install tree of the compiler
7642# being built; programs in there won't even run.
7643if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7644 # Search for pre-installed headers if nothing else fits.
bba45b8b 7645 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
a0da8069
NN
7646fi
7647
7648if test "x${use_gnu_ld}" = x &&
7649 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7650 # Arrange for us to find uninstalled linker scripts.
b00612cc 7651 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7652fi
7653
a481dbb7
DD
7654# Search for other target-specific linker scripts and such.
7655case "${target}" in
4e206d7e
DB
7656 mep*)
7657 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7658 ;;
7659esac
7660
a0da8069 7661# Makefile fragments.
3e707e94
PB
7662for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7663do
7664 eval fragval=\$$frag
7665 if test $fragval != /dev/null; then
7666 eval $frag=${srcdir}/$fragval
7667 fi
7668done
a0da8069
NN
7669
7670
7671
7672
7673
7674# Miscellanea: directories, flags, etc.
7675
7676
7677
7678
7679
7680
7681
3bbd2f8f 7682
6a9cf61e 7683# Build module lists & subconfigure args.
a0da8069
NN
7684
7685
7686
be01d343
PB
7687# Host module lists & subconfigure args.
7688
7689
7690
911e63d0 7691
be01d343
PB
7692# Target module lists & subconfigure args.
7693
7694
7695
7696# Build tools.
7697
7698
7699
1576798e
PB
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
be01d343
PB
7714# Generate default definitions for YACC, M4, LEX and other programs that run
7715# on the build machine. These are used if the Makefile can't locate these
7716# programs in objdir.
7717MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7718
7719for ac_prog in 'bison -y' byacc yacc
7720do
c6b750e1 7721 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7722set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724$as_echo_n "checking for $ac_word... " >&6; }
7725if test "${ac_cv_prog_YACC+set}" = set; then :
7726 $as_echo_n "(cached) " >&6
be01d343
PB
7727else
7728 if test -n "$YACC"; then
7729 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7730else
c6b750e1
DJ
7731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732for as_dir in $PATH
7733do
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7738 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7740 break 2
7741 fi
7742done
81ecdfbb
RW
7743 done
7744IFS=$as_save_IFS
c6b750e1 7745
be01d343
PB
7746fi
7747fi
c6b750e1 7748YACC=$ac_cv_prog_YACC
be01d343 7749if test -n "$YACC"; then
81ecdfbb
RW
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7751$as_echo "$YACC" >&6; }
be01d343 7752else
81ecdfbb
RW
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754$as_echo "no" >&6; }
be01d343
PB
7755fi
7756
81ecdfbb 7757
c6b750e1 7758 test -n "$YACC" && break
be01d343
PB
7759done
7760test -n "$YACC" || YACC="$MISSING bison -y"
7761
7762case " $build_configdirs " in
7763 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
be01d343
PB
7764esac
7765
7766for ac_prog in bison
7767do
c6b750e1 7768 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7769set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7771$as_echo_n "checking for $ac_word... " >&6; }
7772if test "${ac_cv_prog_BISON+set}" = set; then :
7773 $as_echo_n "(cached) " >&6
be01d343
PB
7774else
7775 if test -n "$BISON"; then
7776 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7777else
c6b750e1
DJ
7778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779for as_dir in $PATH
7780do
7781 IFS=$as_save_IFS
7782 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7783 for ac_exec_ext in '' $ac_executable_extensions; do
7784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7785 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7787 break 2
7788 fi
7789done
81ecdfbb
RW
7790 done
7791IFS=$as_save_IFS
c6b750e1 7792
be01d343
PB
7793fi
7794fi
c6b750e1 7795BISON=$ac_cv_prog_BISON
be01d343 7796if test -n "$BISON"; then
81ecdfbb
RW
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7798$as_echo "$BISON" >&6; }
be01d343 7799else
81ecdfbb
RW
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7801$as_echo "no" >&6; }
be01d343
PB
7802fi
7803
81ecdfbb 7804
c6b750e1 7805 test -n "$BISON" && break
be01d343
PB
7806done
7807test -n "$BISON" || BISON="$MISSING bison"
7808
7809case " $build_configdirs " in
7810 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7811esac
7812
7813for ac_prog in gm4 gnum4 m4
7814do
c6b750e1 7815 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7816set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7818$as_echo_n "checking for $ac_word... " >&6; }
7819if test "${ac_cv_prog_M4+set}" = set; then :
7820 $as_echo_n "(cached) " >&6
be01d343
PB
7821else
7822 if test -n "$M4"; then
7823 ac_cv_prog_M4="$M4" # Let the user override the test.
7824else
c6b750e1
DJ
7825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7826for as_dir in $PATH
7827do
7828 IFS=$as_save_IFS
7829 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7832 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7834 break 2
7835 fi
7836done
81ecdfbb
RW
7837 done
7838IFS=$as_save_IFS
c6b750e1 7839
be01d343
PB
7840fi
7841fi
c6b750e1 7842M4=$ac_cv_prog_M4
be01d343 7843if test -n "$M4"; then
81ecdfbb
RW
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7845$as_echo "$M4" >&6; }
be01d343 7846else
81ecdfbb
RW
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848$as_echo "no" >&6; }
be01d343
PB
7849fi
7850
81ecdfbb 7851
c6b750e1 7852 test -n "$M4" && break
be01d343
PB
7853done
7854test -n "$M4" || M4="$MISSING m4"
7855
7856case " $build_configdirs " in
7857 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7858esac
7859
7860for ac_prog in flex lex
7861do
c6b750e1 7862 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7863set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865$as_echo_n "checking for $ac_word... " >&6; }
7866if test "${ac_cv_prog_LEX+set}" = set; then :
7867 $as_echo_n "(cached) " >&6
be01d343
PB
7868else
7869 if test -n "$LEX"; then
7870 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7871else
c6b750e1
DJ
7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873for as_dir in $PATH
7874do
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7879 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7881 break 2
7882 fi
7883done
81ecdfbb
RW
7884 done
7885IFS=$as_save_IFS
c6b750e1 7886
be01d343
PB
7887fi
7888fi
c6b750e1 7889LEX=$ac_cv_prog_LEX
be01d343 7890if test -n "$LEX"; then
81ecdfbb
RW
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7892$as_echo "$LEX" >&6; }
be01d343 7893else
81ecdfbb
RW
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895$as_echo "no" >&6; }
be01d343
PB
7896fi
7897
81ecdfbb 7898
c6b750e1 7899 test -n "$LEX" && break
be01d343
PB
7900done
7901test -n "$LEX" || LEX="$MISSING flex"
7902
7903case " $build_configdirs " in
7904 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7905 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7906esac
7907
7908for ac_prog in flex
7909do
c6b750e1 7910 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7911set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7913$as_echo_n "checking for $ac_word... " >&6; }
7914if test "${ac_cv_prog_FLEX+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
be01d343
PB
7916else
7917 if test -n "$FLEX"; then
7918 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7919else
c6b750e1
DJ
7920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921for as_dir in $PATH
7922do
7923 IFS=$as_save_IFS
7924 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7925 for ac_exec_ext in '' $ac_executable_extensions; do
7926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7927 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7929 break 2
7930 fi
7931done
81ecdfbb
RW
7932 done
7933IFS=$as_save_IFS
c6b750e1 7934
be01d343
PB
7935fi
7936fi
c6b750e1 7937FLEX=$ac_cv_prog_FLEX
be01d343 7938if test -n "$FLEX"; then
81ecdfbb
RW
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7940$as_echo "$FLEX" >&6; }
be01d343 7941else
81ecdfbb
RW
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943$as_echo "no" >&6; }
be01d343
PB
7944fi
7945
81ecdfbb 7946
c6b750e1 7947 test -n "$FLEX" && break
be01d343
PB
7948done
7949test -n "$FLEX" || FLEX="$MISSING flex"
7950
7951case " $build_configdirs " in
7952 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7953esac
7954
7955for ac_prog in makeinfo
7956do
c6b750e1 7957 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7958set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960$as_echo_n "checking for $ac_word... " >&6; }
7961if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7962 $as_echo_n "(cached) " >&6
be01d343
PB
7963else
7964 if test -n "$MAKEINFO"; then
7965 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7966else
c6b750e1
DJ
7967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968for as_dir in $PATH
7969do
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7974 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7976 break 2
7977 fi
7978done
81ecdfbb
RW
7979 done
7980IFS=$as_save_IFS
c6b750e1 7981
be01d343
PB
7982fi
7983fi
c6b750e1 7984MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7985if test -n "$MAKEINFO"; then
81ecdfbb
RW
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7987$as_echo "$MAKEINFO" >&6; }
be01d343 7988else
81ecdfbb
RW
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990$as_echo "no" >&6; }
be01d343
PB
7991fi
7992
81ecdfbb 7993
c6b750e1 7994 test -n "$MAKEINFO" && break
be01d343
PB
7995done
7996test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7997
7998case " $build_configdirs " in
7999 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
8000 *)
8001
10ad8ef3 8002 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
8003 # higher, else we use the "missing" dummy.
8004 if ${MAKEINFO} --version \
10ad8ef3 8005 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
8006 :
8007 else
8008 MAKEINFO="$MISSING makeinfo"
8009 fi
8010 ;;
8011
8012esac
a0da8069 8013
be01d343 8014# FIXME: expect and dejagnu may become build tools?
a0da8069 8015
be01d343
PB
8016for ac_prog in expect
8017do
c6b750e1 8018 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8019set dummy $ac_prog; ac_word=$2
81ecdfbb
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_EXPECT+set}" = set; then :
8023 $as_echo_n "(cached) " >&6
be01d343
PB
8024else
8025 if test -n "$EXPECT"; then
8026 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
8027else
c6b750e1
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=.
81ecdfbb
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
c6b750e1 8035 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8037 break 2
8038 fi
8039done
81ecdfbb
RW
8040 done
8041IFS=$as_save_IFS
c6b750e1 8042
be01d343
PB
8043fi
8044fi
c6b750e1 8045EXPECT=$ac_cv_prog_EXPECT
be01d343 8046if test -n "$EXPECT"; then
81ecdfbb
RW
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
8048$as_echo "$EXPECT" >&6; }
be01d343 8049else
81ecdfbb
RW
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051$as_echo "no" >&6; }
be01d343 8052fi
a0da8069 8053
81ecdfbb 8054
c6b750e1 8055 test -n "$EXPECT" && break
be01d343
PB
8056done
8057test -n "$EXPECT" || EXPECT="expect"
a0da8069 8058
be01d343
PB
8059case " $configdirs " in
8060 *" expect "*)
8061 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
8062 ;;
8063esac
a0da8069 8064
be01d343
PB
8065for ac_prog in runtest
8066do
c6b750e1 8067 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 8068set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8070$as_echo_n "checking for $ac_word... " >&6; }
8071if test "${ac_cv_prog_RUNTEST+set}" = set; then :
8072 $as_echo_n "(cached) " >&6
be01d343
PB
8073else
8074 if test -n "$RUNTEST"; then
8075 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
8076else
c6b750e1
DJ
8077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8078for as_dir in $PATH
8079do
8080 IFS=$as_save_IFS
8081 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8084 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 8085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8086 break 2
8087 fi
8088done
81ecdfbb
RW
8089 done
8090IFS=$as_save_IFS
c6b750e1 8091
be01d343
PB
8092fi
8093fi
c6b750e1 8094RUNTEST=$ac_cv_prog_RUNTEST
be01d343 8095if test -n "$RUNTEST"; then
81ecdfbb
RW
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
8097$as_echo "$RUNTEST" >&6; }
be01d343 8098else
81ecdfbb
RW
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8100$as_echo "no" >&6; }
be01d343 8101fi
a0da8069 8102
81ecdfbb 8103
c6b750e1 8104 test -n "$RUNTEST" && break
be01d343
PB
8105done
8106test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 8107
be01d343
PB
8108case " $configdirs " in
8109 *" dejagnu "*)
6b89cc21 8110 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
8111 ;;
8112esac
a0da8069
NN
8113
8114
a0da8069 8115# Host tools.
859789af
AC
8116ncn_tool_prefix=
8117test -n "$host_alias" && ncn_tool_prefix=$host_alias-
8118ncn_target_tool_prefix=
8119test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
8120
9a819804
AO
8121
8122
8123if test -n "$AR"; then
8124 ac_cv_prog_AR=$AR
8125elif test -n "$ac_cv_prog_AR"; then
8126 AR=$ac_cv_prog_AR
8127fi
8128
8129if test -n "$ac_cv_prog_AR"; then
8130 for ncn_progname in ar; do
8131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8132set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8134$as_echo_n "checking for $ac_word... " >&6; }
8135if test "${ac_cv_prog_AR+set}" = set; then :
8136 $as_echo_n "(cached) " >&6
9a819804
AO
8137else
8138 if test -n "$AR"; then
8139 ac_cv_prog_AR="$AR" # Let the user override the test.
8140else
8141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8142for as_dir in $PATH
8143do
8144 IFS=$as_save_IFS
8145 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8146 for ac_exec_ext in '' $ac_executable_extensions; do
8147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8148 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8150 break 2
8151 fi
8152done
81ecdfbb
RW
8153 done
8154IFS=$as_save_IFS
9a819804
AO
8155
8156fi
8157fi
8158AR=$ac_cv_prog_AR
8159if test -n "$AR"; then
81ecdfbb
RW
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8161$as_echo "$AR" >&6; }
9a819804 8162else
81ecdfbb
RW
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8164$as_echo "no" >&6; }
9a819804
AO
8165fi
8166
81ecdfbb 8167
9a819804
AO
8168 done
8169fi
8170
8171for ncn_progname in ar; do
05cbd757
PB
8172 if test -n "$ncn_tool_prefix"; then
8173 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8174set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176$as_echo_n "checking for $ac_word... " >&6; }
8177if test "${ac_cv_prog_AR+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
859789af
AC
8179else
8180 if test -n "$AR"; then
8181 ac_cv_prog_AR="$AR" # Let the user override the test.
8182else
c6b750e1
DJ
8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186 IFS=$as_save_IFS
8187 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8190 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8192 break 2
8193 fi
8194done
81ecdfbb
RW
8195 done
8196IFS=$as_save_IFS
c6b750e1 8197
859789af
AC
8198fi
8199fi
c6b750e1 8200AR=$ac_cv_prog_AR
859789af 8201if test -n "$AR"; then
81ecdfbb
RW
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8203$as_echo "$AR" >&6; }
859789af 8204else
81ecdfbb
RW
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
859789af
AC
8207fi
8208
81ecdfbb 8209
05cbd757
PB
8210 fi
8211 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
8212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8213set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215$as_echo_n "checking for $ac_word... " >&6; }
8216if test "${ac_cv_prog_AR+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
859789af 8218else
05cbd757
PB
8219 if test -n "$AR"; then
8220 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 8221else
c6b750e1
DJ
8222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223for as_dir in $PATH
8224do
8225 IFS=$as_save_IFS
8226 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8229 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 8230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8231 break 2
8232 fi
8233done
81ecdfbb
RW
8234 done
8235IFS=$as_save_IFS
c6b750e1 8236
859789af
AC
8237fi
8238fi
c6b750e1 8239AR=$ac_cv_prog_AR
05cbd757 8240if test -n "$AR"; then
81ecdfbb
RW
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8242$as_echo "$AR" >&6; }
859789af 8243else
81ecdfbb
RW
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8245$as_echo "no" >&6; }
859789af 8246fi
c6b750e1 8247
81ecdfbb 8248
05cbd757
PB
8249 fi
8250 test -n "$ac_cv_prog_AR" && break
8251done
8252
8253if test -z "$ac_cv_prog_AR" ; then
8254 set dummy ar
8255 if test $build = $host ; then
8256 AR="$2"
859789af 8257 else
05cbd757 8258 AR="${ncn_tool_prefix}$2"
859789af 8259 fi
859789af
AC
8260fi
8261
9a819804
AO
8262
8263
8264if test -n "$AS"; then
8265 ac_cv_prog_AS=$AS
8266elif test -n "$ac_cv_prog_AS"; then
8267 AS=$ac_cv_prog_AS
8268fi
8269
8270if test -n "$ac_cv_prog_AS"; then
8271 for ncn_progname in as; do
8272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8273set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275$as_echo_n "checking for $ac_word... " >&6; }
8276if test "${ac_cv_prog_AS+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
9a819804
AO
8278else
8279 if test -n "$AS"; then
8280 ac_cv_prog_AS="$AS" # Let the user override the test.
8281else
8282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283for as_dir in $PATH
8284do
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8289 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8291 break 2
8292 fi
8293done
81ecdfbb
RW
8294 done
8295IFS=$as_save_IFS
9a819804
AO
8296
8297fi
8298fi
8299AS=$ac_cv_prog_AS
8300if test -n "$AS"; then
81ecdfbb
RW
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8302$as_echo "$AS" >&6; }
9a819804 8303else
81ecdfbb
RW
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305$as_echo "no" >&6; }
9a819804
AO
8306fi
8307
81ecdfbb 8308
9a819804
AO
8309 done
8310fi
8311
8312for ncn_progname in as; do
05cbd757
PB
8313 if test -n "$ncn_tool_prefix"; then
8314 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8315set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317$as_echo_n "checking for $ac_word... " >&6; }
8318if test "${ac_cv_prog_AS+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
859789af
AC
8320else
8321 if test -n "$AS"; then
8322 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
8323else
8324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325for as_dir in $PATH
8326do
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8331 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8333 break 2
8334 fi
8335done
81ecdfbb
RW
8336 done
8337IFS=$as_save_IFS
c6b750e1 8338
859789af
AC
8339fi
8340fi
c6b750e1 8341AS=$ac_cv_prog_AS
859789af 8342if test -n "$AS"; then
81ecdfbb
RW
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8344$as_echo "$AS" >&6; }
859789af 8345else
81ecdfbb
RW
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347$as_echo "no" >&6; }
859789af
AC
8348fi
8349
81ecdfbb 8350
05cbd757
PB
8351 fi
8352 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
8353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8354set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8356$as_echo_n "checking for $ac_word... " >&6; }
8357if test "${ac_cv_prog_AS+set}" = set; then :
8358 $as_echo_n "(cached) " >&6
859789af 8359else
05cbd757
PB
8360 if test -n "$AS"; then
8361 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 8362else
c6b750e1
DJ
8363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8364for as_dir in $PATH
8365do
8366 IFS=$as_save_IFS
8367 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8370 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 8371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8372 break 2
8373 fi
8374done
81ecdfbb
RW
8375 done
8376IFS=$as_save_IFS
c6b750e1 8377
859789af
AC
8378fi
8379fi
c6b750e1 8380AS=$ac_cv_prog_AS
05cbd757 8381if test -n "$AS"; then
81ecdfbb
RW
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8383$as_echo "$AS" >&6; }
859789af 8384else
81ecdfbb
RW
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386$as_echo "no" >&6; }
859789af 8387fi
c6b750e1 8388
81ecdfbb 8389
05cbd757
PB
8390 fi
8391 test -n "$ac_cv_prog_AS" && break
8392done
8393
8394if test -z "$ac_cv_prog_AS" ; then
8395 set dummy as
8396 if test $build = $host ; then
8397 AS="$2"
859789af 8398 else
05cbd757 8399 AS="${ncn_tool_prefix}$2"
859789af 8400 fi
859789af
AC
8401fi
8402
9a819804
AO
8403
8404
8405if test -n "$DLLTOOL"; then
8406 ac_cv_prog_DLLTOOL=$DLLTOOL
8407elif test -n "$ac_cv_prog_DLLTOOL"; then
8408 DLLTOOL=$ac_cv_prog_DLLTOOL
8409fi
8410
8411if test -n "$ac_cv_prog_DLLTOOL"; then
8412 for ncn_progname in dlltool; do
8413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8414set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8416$as_echo_n "checking for $ac_word... " >&6; }
8417if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8418 $as_echo_n "(cached) " >&6
9a819804
AO
8419else
8420 if test -n "$DLLTOOL"; then
8421 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8422else
8423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424for as_dir in $PATH
8425do
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8430 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8432 break 2
8433 fi
8434done
81ecdfbb
RW
8435 done
8436IFS=$as_save_IFS
9a819804
AO
8437
8438fi
8439fi
8440DLLTOOL=$ac_cv_prog_DLLTOOL
8441if test -n "$DLLTOOL"; then
81ecdfbb
RW
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8443$as_echo "$DLLTOOL" >&6; }
9a819804 8444else
81ecdfbb
RW
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8446$as_echo "no" >&6; }
9a819804
AO
8447fi
8448
81ecdfbb 8449
9a819804
AO
8450 done
8451fi
8452
8453for ncn_progname in dlltool; do
05cbd757
PB
8454 if test -n "$ncn_tool_prefix"; then
8455 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8456set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8458$as_echo_n "checking for $ac_word... " >&6; }
8459if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8460 $as_echo_n "(cached) " >&6
859789af
AC
8461else
8462 if test -n "$DLLTOOL"; then
8463 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8464else
c6b750e1
DJ
8465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8466for as_dir in $PATH
8467do
8468 IFS=$as_save_IFS
8469 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8470 for ac_exec_ext in '' $ac_executable_extensions; do
8471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8472 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8474 break 2
8475 fi
8476done
81ecdfbb
RW
8477 done
8478IFS=$as_save_IFS
c6b750e1 8479
859789af
AC
8480fi
8481fi
c6b750e1 8482DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8483if test -n "$DLLTOOL"; then
81ecdfbb
RW
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8485$as_echo "$DLLTOOL" >&6; }
859789af 8486else
81ecdfbb
RW
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
859789af
AC
8489fi
8490
81ecdfbb 8491
05cbd757
PB
8492 fi
8493 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8495set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8497$as_echo_n "checking for $ac_word... " >&6; }
8498if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8499 $as_echo_n "(cached) " >&6
859789af 8500else
05cbd757
PB
8501 if test -n "$DLLTOOL"; then
8502 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8503else
c6b750e1
DJ
8504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505for as_dir in $PATH
8506do
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8511 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8513 break 2
8514 fi
8515done
81ecdfbb
RW
8516 done
8517IFS=$as_save_IFS
c6b750e1 8518
859789af
AC
8519fi
8520fi
c6b750e1 8521DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8522if test -n "$DLLTOOL"; then
81ecdfbb
RW
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8524$as_echo "$DLLTOOL" >&6; }
859789af 8525else
81ecdfbb
RW
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527$as_echo "no" >&6; }
859789af 8528fi
c6b750e1 8529
81ecdfbb 8530
05cbd757
PB
8531 fi
8532 test -n "$ac_cv_prog_DLLTOOL" && break
8533done
8534
8535if test -z "$ac_cv_prog_DLLTOOL" ; then
8536 set dummy dlltool
8537 if test $build = $host ; then
8538 DLLTOOL="$2"
859789af 8539 else
05cbd757 8540 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8541 fi
859789af
AC
8542fi
8543
9a819804
AO
8544
8545
8546if test -n "$LD"; then
8547 ac_cv_prog_LD=$LD
8548elif test -n "$ac_cv_prog_LD"; then
8549 LD=$ac_cv_prog_LD
8550fi
8551
8552if test -n "$ac_cv_prog_LD"; then
8553 for ncn_progname in ld; do
8554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8555set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557$as_echo_n "checking for $ac_word... " >&6; }
8558if test "${ac_cv_prog_LD+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
9a819804
AO
8560else
8561 if test -n "$LD"; then
8562 ac_cv_prog_LD="$LD" # Let the user override the test.
8563else
8564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565for as_dir in $PATH
8566do
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8571 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8573 break 2
8574 fi
8575done
81ecdfbb
RW
8576 done
8577IFS=$as_save_IFS
9a819804
AO
8578
8579fi
8580fi
8581LD=$ac_cv_prog_LD
8582if test -n "$LD"; then
81ecdfbb
RW
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8584$as_echo "$LD" >&6; }
9a819804 8585else
81ecdfbb
RW
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587$as_echo "no" >&6; }
9a819804
AO
8588fi
8589
81ecdfbb 8590
9a819804
AO
8591 done
8592fi
8593
8594for ncn_progname in ld; do
05cbd757
PB
8595 if test -n "$ncn_tool_prefix"; then
8596 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8597set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599$as_echo_n "checking for $ac_word... " >&6; }
8600if test "${ac_cv_prog_LD+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
859789af
AC
8602else
8603 if test -n "$LD"; then
8604 ac_cv_prog_LD="$LD" # Let the user override the test.
8605else
c6b750e1
DJ
8606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607for as_dir in $PATH
8608do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8613 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8615 break 2
8616 fi
8617done
81ecdfbb
RW
8618 done
8619IFS=$as_save_IFS
c6b750e1 8620
859789af
AC
8621fi
8622fi
c6b750e1 8623LD=$ac_cv_prog_LD
859789af 8624if test -n "$LD"; then
81ecdfbb
RW
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8626$as_echo "$LD" >&6; }
859789af 8627else
81ecdfbb
RW
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629$as_echo "no" >&6; }
859789af
AC
8630fi
8631
81ecdfbb 8632
05cbd757
PB
8633 fi
8634 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8636set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638$as_echo_n "checking for $ac_word... " >&6; }
8639if test "${ac_cv_prog_LD+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
859789af 8641else
05cbd757
PB
8642 if test -n "$LD"; then
8643 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8644else
c6b750e1
DJ
8645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646for as_dir in $PATH
8647do
8648 IFS=$as_save_IFS
8649 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8652 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8654 break 2
8655 fi
8656done
81ecdfbb
RW
8657 done
8658IFS=$as_save_IFS
c6b750e1 8659
859789af
AC
8660fi
8661fi
c6b750e1 8662LD=$ac_cv_prog_LD
05cbd757 8663if test -n "$LD"; then
81ecdfbb
RW
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8665$as_echo "$LD" >&6; }
859789af 8666else
81ecdfbb
RW
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668$as_echo "no" >&6; }
859789af 8669fi
c6b750e1 8670
81ecdfbb 8671
05cbd757
PB
8672 fi
8673 test -n "$ac_cv_prog_LD" && break
8674done
8675
8676if test -z "$ac_cv_prog_LD" ; then
8677 set dummy ld
8678 if test $build = $host ; then
8679 LD="$2"
859789af 8680 else
05cbd757 8681 LD="${ncn_tool_prefix}$2"
859789af 8682 fi
859789af
AC
8683fi
8684
9a819804
AO
8685
8686
8687if test -n "$LIPO"; then
8688 ac_cv_prog_LIPO=$LIPO
8689elif test -n "$ac_cv_prog_LIPO"; then
8690 LIPO=$ac_cv_prog_LIPO
8691fi
8692
8693if test -n "$ac_cv_prog_LIPO"; then
8694 for ncn_progname in lipo; do
8695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8696set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8698$as_echo_n "checking for $ac_word... " >&6; }
8699if test "${ac_cv_prog_LIPO+set}" = set; then :
8700 $as_echo_n "(cached) " >&6
9a819804
AO
8701else
8702 if test -n "$LIPO"; then
8703 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8704else
8705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706for as_dir in $PATH
8707do
8708 IFS=$as_save_IFS
8709 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8710 for ac_exec_ext in '' $ac_executable_extensions; do
8711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8712 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8714 break 2
8715 fi
8716done
81ecdfbb
RW
8717 done
8718IFS=$as_save_IFS
9a819804
AO
8719
8720fi
8721fi
8722LIPO=$ac_cv_prog_LIPO
8723if test -n "$LIPO"; then
81ecdfbb
RW
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8725$as_echo "$LIPO" >&6; }
9a819804 8726else
81ecdfbb
RW
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8728$as_echo "no" >&6; }
9a819804
AO
8729fi
8730
81ecdfbb 8731
9a819804
AO
8732 done
8733fi
8734
8735for ncn_progname in lipo; do
be01d343
PB
8736 if test -n "$ncn_tool_prefix"; then
8737 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8738set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740$as_echo_n "checking for $ac_word... " >&6; }
8741if test "${ac_cv_prog_LIPO+set}" = set; then :
8742 $as_echo_n "(cached) " >&6
be01d343
PB
8743else
8744 if test -n "$LIPO"; then
8745 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8746else
c6b750e1
DJ
8747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748for as_dir in $PATH
8749do
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8754 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8756 break 2
8757 fi
8758done
81ecdfbb
RW
8759 done
8760IFS=$as_save_IFS
c6b750e1 8761
be01d343
PB
8762fi
8763fi
c6b750e1 8764LIPO=$ac_cv_prog_LIPO
be01d343 8765if test -n "$LIPO"; then
81ecdfbb
RW
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8767$as_echo "$LIPO" >&6; }
be01d343 8768else
81ecdfbb
RW
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770$as_echo "no" >&6; }
be01d343
PB
8771fi
8772
81ecdfbb 8773
be01d343
PB
8774 fi
8775 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8777set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8779$as_echo_n "checking for $ac_word... " >&6; }
8780if test "${ac_cv_prog_LIPO+set}" = set; then :
8781 $as_echo_n "(cached) " >&6
be01d343
PB
8782else
8783 if test -n "$LIPO"; then
8784 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8785else
c6b750e1
DJ
8786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8787for as_dir in $PATH
8788do
8789 IFS=$as_save_IFS
8790 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8791 for ac_exec_ext in '' $ac_executable_extensions; do
8792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8793 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8795 break 2
8796 fi
8797done
81ecdfbb
RW
8798 done
8799IFS=$as_save_IFS
c6b750e1 8800
be01d343
PB
8801fi
8802fi
c6b750e1 8803LIPO=$ac_cv_prog_LIPO
be01d343 8804if test -n "$LIPO"; then
81ecdfbb
RW
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8806$as_echo "$LIPO" >&6; }
be01d343 8807else
81ecdfbb
RW
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809$as_echo "no" >&6; }
be01d343 8810fi
c6b750e1 8811
81ecdfbb 8812
be01d343
PB
8813 fi
8814 test -n "$ac_cv_prog_LIPO" && break
8815done
8816
8817if test -z "$ac_cv_prog_LIPO" ; then
8818 set dummy lipo
8819 if test $build = $host ; then
8820 LIPO="$2"
8821 else
8822 LIPO="${ncn_tool_prefix}$2"
8823 fi
8824fi
8825
9a819804
AO
8826
8827
8828if test -n "$NM"; then
8829 ac_cv_prog_NM=$NM
8830elif test -n "$ac_cv_prog_NM"; then
8831 NM=$ac_cv_prog_NM
8832fi
8833
8834if test -n "$ac_cv_prog_NM"; then
8835 for ncn_progname in nm; do
8836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8837set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839$as_echo_n "checking for $ac_word... " >&6; }
8840if test "${ac_cv_prog_NM+set}" = set; then :
8841 $as_echo_n "(cached) " >&6
859789af
AC
8842else
8843 if test -n "$NM"; then
8844 ac_cv_prog_NM="$NM" # Let the user override the test.
8845else
c6b750e1
DJ
8846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847for as_dir in $PATH
8848do
8849 IFS=$as_save_IFS
8850 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8853 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8855 break 2
8856 fi
8857done
81ecdfbb
RW
8858 done
8859IFS=$as_save_IFS
c6b750e1 8860
859789af
AC
8861fi
8862fi
c6b750e1 8863NM=$ac_cv_prog_NM
859789af 8864if test -n "$NM"; then
81ecdfbb
RW
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8866$as_echo "$NM" >&6; }
859789af 8867else
81ecdfbb
RW
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869$as_echo "no" >&6; }
859789af
AC
8870fi
8871
81ecdfbb 8872
9a819804
AO
8873 done
8874fi
8875
8876for ncn_progname in nm; do
8877 if test -n "$ncn_tool_prefix"; then
8878 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8879set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881$as_echo_n "checking for $ac_word... " >&6; }
8882if test "${ac_cv_prog_NM+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
859789af 8884else
05cbd757
PB
8885 if test -n "$NM"; then
8886 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8887else
c6b750e1
DJ
8888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889for as_dir in $PATH
8890do
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8895 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8897 break 2
8898 fi
8899done
81ecdfbb
RW
8900 done
8901IFS=$as_save_IFS
c6b750e1 8902
859789af
AC
8903fi
8904fi
c6b750e1 8905NM=$ac_cv_prog_NM
05cbd757 8906if test -n "$NM"; then
81ecdfbb
RW
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8908$as_echo "$NM" >&6; }
859789af 8909else
81ecdfbb
RW
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911$as_echo "no" >&6; }
859789af 8912fi
c6b750e1 8913
81ecdfbb 8914
05cbd757 8915 fi
9a819804
AO
8916 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8918set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920$as_echo_n "checking for $ac_word... " >&6; }
8921if test "${ac_cv_prog_NM+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
9a819804
AO
8923else
8924 if test -n "$NM"; then
8925 ac_cv_prog_NM="$NM" # Let the user override the test.
8926else
8927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8928for as_dir in $PATH
8929do
8930 IFS=$as_save_IFS
8931 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8934 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8936 break 2
8937 fi
8938done
81ecdfbb
RW
8939 done
8940IFS=$as_save_IFS
9a819804
AO
8941
8942fi
8943fi
8944NM=$ac_cv_prog_NM
8945if test -n "$NM"; then
81ecdfbb
RW
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8947$as_echo "$NM" >&6; }
9a819804 8948else
81ecdfbb
RW
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950$as_echo "no" >&6; }
9a819804
AO
8951fi
8952
81ecdfbb 8953
9a819804
AO
8954 fi
8955 test -n "$ac_cv_prog_NM" && break
8956done
8957
8958if test -z "$ac_cv_prog_NM" ; then
8959 set dummy nm
8960 if test $build = $host ; then
8961 NM="$2"
8962 else
8963 NM="${ncn_tool_prefix}$2"
8964 fi
8965fi
8966
8967
8968
8969if test -n "$RANLIB"; then
8970 ac_cv_prog_RANLIB=$RANLIB
8971elif test -n "$ac_cv_prog_RANLIB"; then
8972 RANLIB=$ac_cv_prog_RANLIB
8973fi
8974
8975if test -n "$ac_cv_prog_RANLIB"; then
8976 for ncn_progname in ranlib; do
8977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8978set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8980$as_echo_n "checking for $ac_word... " >&6; }
8981if test "${ac_cv_prog_RANLIB+set}" = set; then :
8982 $as_echo_n "(cached) " >&6
9a819804
AO
8983else
8984 if test -n "$RANLIB"; then
8985 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8986else
8987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988for as_dir in $PATH
8989do
8990 IFS=$as_save_IFS
8991 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8992 for ac_exec_ext in '' $ac_executable_extensions; do
8993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8994 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8996 break 2
8997 fi
8998done
81ecdfbb
RW
8999 done
9000IFS=$as_save_IFS
9a819804
AO
9001
9002fi
9003fi
9004RANLIB=$ac_cv_prog_RANLIB
9005if test -n "$RANLIB"; then
81ecdfbb
RW
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9007$as_echo "$RANLIB" >&6; }
9a819804 9008else
81ecdfbb
RW
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010$as_echo "no" >&6; }
9a819804
AO
9011fi
9012
81ecdfbb 9013
9a819804
AO
9014 done
9015fi
859789af 9016
9a819804 9017for ncn_progname in ranlib; do
05cbd757
PB
9018 if test -n "$ncn_tool_prefix"; then
9019 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9020set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9022$as_echo_n "checking for $ac_word... " >&6; }
9023if test "${ac_cv_prog_RANLIB+set}" = set; then :
9024 $as_echo_n "(cached) " >&6
859789af
AC
9025else
9026 if test -n "$RANLIB"; then
9027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9028else
c6b750e1
DJ
9029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030for as_dir in $PATH
9031do
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9036 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9038 break 2
9039 fi
9040done
81ecdfbb
RW
9041 done
9042IFS=$as_save_IFS
c6b750e1 9043
859789af
AC
9044fi
9045fi
c6b750e1 9046RANLIB=$ac_cv_prog_RANLIB
859789af 9047if test -n "$RANLIB"; then
81ecdfbb
RW
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9049$as_echo "$RANLIB" >&6; }
859789af 9050else
81ecdfbb
RW
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052$as_echo "no" >&6; }
859789af
AC
9053fi
9054
81ecdfbb 9055
05cbd757
PB
9056 fi
9057 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
9058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9059set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9061$as_echo_n "checking for $ac_word... " >&6; }
9062if test "${ac_cv_prog_RANLIB+set}" = set; then :
9063 $as_echo_n "(cached) " >&6
859789af 9064else
05cbd757
PB
9065 if test -n "$RANLIB"; then
9066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 9067else
c6b750e1
DJ
9068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069for as_dir in $PATH
9070do
9071 IFS=$as_save_IFS
9072 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9073 for ac_exec_ext in '' $ac_executable_extensions; do
9074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9075 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 9076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9077 break 2
9078 fi
9079done
81ecdfbb
RW
9080 done
9081IFS=$as_save_IFS
c6b750e1 9082
859789af
AC
9083fi
9084fi
c6b750e1 9085RANLIB=$ac_cv_prog_RANLIB
05cbd757 9086if test -n "$RANLIB"; then
81ecdfbb
RW
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9088$as_echo "$RANLIB" >&6; }
859789af 9089else
81ecdfbb
RW
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9091$as_echo "no" >&6; }
859789af 9092fi
c6b750e1 9093
81ecdfbb 9094
859789af 9095 fi
05cbd757
PB
9096 test -n "$ac_cv_prog_RANLIB" && break
9097done
9098
9099if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 9100 RANLIB="true"
859789af
AC
9101fi
9102
9a819804
AO
9103
9104
9105if test -n "$STRIP"; then
9106 ac_cv_prog_STRIP=$STRIP
9107elif test -n "$ac_cv_prog_STRIP"; then
9108 STRIP=$ac_cv_prog_STRIP
9109fi
9110
9111if test -n "$ac_cv_prog_STRIP"; then
9112 for ncn_progname in strip; do
9113 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9114set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9116$as_echo_n "checking for $ac_word... " >&6; }
9117if test "${ac_cv_prog_STRIP+set}" = set; then :
9118 $as_echo_n "(cached) " >&6
9a819804
AO
9119else
9120 if test -n "$STRIP"; then
9121 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9122else
9123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9124for as_dir in $PATH
9125do
9126 IFS=$as_save_IFS
9127 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9128 for ac_exec_ext in '' $ac_executable_extensions; do
9129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9130 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9132 break 2
9133 fi
9134done
81ecdfbb
RW
9135 done
9136IFS=$as_save_IFS
9a819804
AO
9137
9138fi
9139fi
9140STRIP=$ac_cv_prog_STRIP
9141if test -n "$STRIP"; then
81ecdfbb
RW
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9143$as_echo "$STRIP" >&6; }
9a819804 9144else
81ecdfbb
RW
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9146$as_echo "no" >&6; }
9a819804
AO
9147fi
9148
81ecdfbb 9149
9a819804
AO
9150 done
9151fi
9152
9153for ncn_progname in strip; do
be01d343
PB
9154 if test -n "$ncn_tool_prefix"; then
9155 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9156set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9158$as_echo_n "checking for $ac_word... " >&6; }
9159if test "${ac_cv_prog_STRIP+set}" = set; then :
9160 $as_echo_n "(cached) " >&6
be01d343
PB
9161else
9162 if test -n "$STRIP"; then
9163 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9164else
c6b750e1
DJ
9165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9166for as_dir in $PATH
9167do
9168 IFS=$as_save_IFS
9169 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9170 for ac_exec_ext in '' $ac_executable_extensions; do
9171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9172 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9174 break 2
9175 fi
9176done
81ecdfbb
RW
9177 done
9178IFS=$as_save_IFS
c6b750e1 9179
be01d343
PB
9180fi
9181fi
c6b750e1 9182STRIP=$ac_cv_prog_STRIP
be01d343 9183if test -n "$STRIP"; then
81ecdfbb
RW
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9185$as_echo "$STRIP" >&6; }
be01d343 9186else
81ecdfbb
RW
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188$as_echo "no" >&6; }
be01d343
PB
9189fi
9190
81ecdfbb 9191
be01d343
PB
9192 fi
9193 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
9194 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9195set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9197$as_echo_n "checking for $ac_word... " >&6; }
9198if test "${ac_cv_prog_STRIP+set}" = set; then :
9199 $as_echo_n "(cached) " >&6
be01d343
PB
9200else
9201 if test -n "$STRIP"; then
9202 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9203else
c6b750e1
DJ
9204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205for as_dir in $PATH
9206do
9207 IFS=$as_save_IFS
9208 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9209 for ac_exec_ext in '' $ac_executable_extensions; do
9210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9211 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 9212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9213 break 2
9214 fi
9215done
81ecdfbb
RW
9216 done
9217IFS=$as_save_IFS
c6b750e1 9218
be01d343
PB
9219fi
9220fi
c6b750e1 9221STRIP=$ac_cv_prog_STRIP
be01d343 9222if test -n "$STRIP"; then
81ecdfbb
RW
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9224$as_echo "$STRIP" >&6; }
be01d343 9225else
81ecdfbb
RW
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9227$as_echo "no" >&6; }
be01d343 9228fi
c6b750e1 9229
81ecdfbb 9230
be01d343
PB
9231 fi
9232 test -n "$ac_cv_prog_STRIP" && break
9233done
9234
9235if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 9236 STRIP="true"
be01d343
PB
9237fi
9238
9a819804
AO
9239
9240
9241if test -n "$WINDRES"; then
9242 ac_cv_prog_WINDRES=$WINDRES
9243elif test -n "$ac_cv_prog_WINDRES"; then
9244 WINDRES=$ac_cv_prog_WINDRES
9245fi
9246
9247if test -n "$ac_cv_prog_WINDRES"; then
9248 for ncn_progname in windres; do
9249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9250set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9252$as_echo_n "checking for $ac_word... " >&6; }
9253if test "${ac_cv_prog_WINDRES+set}" = set; then :
9254 $as_echo_n "(cached) " >&6
9a819804
AO
9255else
9256 if test -n "$WINDRES"; then
9257 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9258else
9259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260for as_dir in $PATH
9261do
9262 IFS=$as_save_IFS
9263 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9264 for ac_exec_ext in '' $ac_executable_extensions; do
9265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9266 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9268 break 2
9269 fi
9270done
81ecdfbb
RW
9271 done
9272IFS=$as_save_IFS
9a819804
AO
9273
9274fi
9275fi
9276WINDRES=$ac_cv_prog_WINDRES
9277if test -n "$WINDRES"; then
81ecdfbb
RW
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9279$as_echo "$WINDRES" >&6; }
9a819804 9280else
81ecdfbb
RW
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9282$as_echo "no" >&6; }
9a819804
AO
9283fi
9284
81ecdfbb 9285
9a819804
AO
9286 done
9287fi
9288
9289for ncn_progname in windres; do
05cbd757
PB
9290 if test -n "$ncn_tool_prefix"; then
9291 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9292set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294$as_echo_n "checking for $ac_word... " >&6; }
9295if test "${ac_cv_prog_WINDRES+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
859789af
AC
9297else
9298 if test -n "$WINDRES"; then
9299 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9300else
c6b750e1
DJ
9301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9302for as_dir in $PATH
9303do
9304 IFS=$as_save_IFS
9305 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9306 for ac_exec_ext in '' $ac_executable_extensions; do
9307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9308 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9310 break 2
9311 fi
9312done
81ecdfbb
RW
9313 done
9314IFS=$as_save_IFS
c6b750e1 9315
859789af
AC
9316fi
9317fi
c6b750e1 9318WINDRES=$ac_cv_prog_WINDRES
859789af 9319if test -n "$WINDRES"; then
81ecdfbb
RW
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9321$as_echo "$WINDRES" >&6; }
859789af 9322else
81ecdfbb
RW
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9324$as_echo "no" >&6; }
859789af
AC
9325fi
9326
81ecdfbb 9327
05cbd757
PB
9328 fi
9329 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
9330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9331set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9333$as_echo_n "checking for $ac_word... " >&6; }
9334if test "${ac_cv_prog_WINDRES+set}" = set; then :
9335 $as_echo_n "(cached) " >&6
859789af 9336else
05cbd757
PB
9337 if test -n "$WINDRES"; then
9338 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 9339else
c6b750e1
DJ
9340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9341for as_dir in $PATH
9342do
9343 IFS=$as_save_IFS
9344 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9345 for ac_exec_ext in '' $ac_executable_extensions; do
9346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9347 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 9348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9349 break 2
9350 fi
9351done
81ecdfbb
RW
9352 done
9353IFS=$as_save_IFS
c6b750e1 9354
859789af
AC
9355fi
9356fi
c6b750e1 9357WINDRES=$ac_cv_prog_WINDRES
05cbd757 9358if test -n "$WINDRES"; then
81ecdfbb
RW
9359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
9360$as_echo "$WINDRES" >&6; }
859789af 9361else
81ecdfbb
RW
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9363$as_echo "no" >&6; }
859789af 9364fi
c6b750e1 9365
81ecdfbb 9366
05cbd757
PB
9367 fi
9368 test -n "$ac_cv_prog_WINDRES" && break
9369done
9370
9371if test -z "$ac_cv_prog_WINDRES" ; then
9372 set dummy windres
9373 if test $build = $host ; then
9374 WINDRES="$2"
859789af 9375 else
05cbd757 9376 WINDRES="${ncn_tool_prefix}$2"
859789af 9377 fi
859789af
AC
9378fi
9379
9a819804
AO
9380
9381
0c24b341
NC
9382if test -n "$WINDMC"; then
9383 ac_cv_prog_WINDMC=$WINDMC
9384elif test -n "$ac_cv_prog_WINDMC"; then
9385 WINDMC=$ac_cv_prog_WINDMC
9386fi
9387
9388if test -n "$ac_cv_prog_WINDMC"; then
9389 for ncn_progname in windmc; do
9390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9391set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9393$as_echo_n "checking for $ac_word... " >&6; }
9394if test "${ac_cv_prog_WINDMC+set}" = set; then :
9395 $as_echo_n "(cached) " >&6
0c24b341
NC
9396else
9397 if test -n "$WINDMC"; then
9398 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9399else
9400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9401for as_dir in $PATH
9402do
9403 IFS=$as_save_IFS
9404 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9405 for ac_exec_ext in '' $ac_executable_extensions; do
9406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9407 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9409 break 2
9410 fi
9411done
81ecdfbb
RW
9412 done
9413IFS=$as_save_IFS
0c24b341
NC
9414
9415fi
9416fi
9417WINDMC=$ac_cv_prog_WINDMC
9418if test -n "$WINDMC"; then
81ecdfbb
RW
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9420$as_echo "$WINDMC" >&6; }
0c24b341 9421else
81ecdfbb
RW
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423$as_echo "no" >&6; }
0c24b341
NC
9424fi
9425
81ecdfbb 9426
0c24b341
NC
9427 done
9428fi
9429
9430for ncn_progname in windmc; do
9431 if test -n "$ncn_tool_prefix"; then
9432 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9433set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435$as_echo_n "checking for $ac_word... " >&6; }
9436if test "${ac_cv_prog_WINDMC+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
0c24b341
NC
9438else
9439 if test -n "$WINDMC"; then
9440 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9441else
9442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443for as_dir in $PATH
9444do
9445 IFS=$as_save_IFS
9446 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9449 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9451 break 2
9452 fi
9453done
81ecdfbb
RW
9454 done
9455IFS=$as_save_IFS
0c24b341
NC
9456
9457fi
9458fi
9459WINDMC=$ac_cv_prog_WINDMC
9460if test -n "$WINDMC"; then
81ecdfbb
RW
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9462$as_echo "$WINDMC" >&6; }
0c24b341 9463else
81ecdfbb
RW
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9465$as_echo "no" >&6; }
0c24b341
NC
9466fi
9467
81ecdfbb 9468
0c24b341
NC
9469 fi
9470 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9472set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9474$as_echo_n "checking for $ac_word... " >&6; }
9475if test "${ac_cv_prog_WINDMC+set}" = set; then :
9476 $as_echo_n "(cached) " >&6
0c24b341
NC
9477else
9478 if test -n "$WINDMC"; then
9479 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9480else
9481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9482for as_dir in $PATH
9483do
9484 IFS=$as_save_IFS
9485 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9486 for ac_exec_ext in '' $ac_executable_extensions; do
9487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9488 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9490 break 2
9491 fi
9492done
81ecdfbb
RW
9493 done
9494IFS=$as_save_IFS
0c24b341
NC
9495
9496fi
9497fi
9498WINDMC=$ac_cv_prog_WINDMC
9499if test -n "$WINDMC"; then
81ecdfbb
RW
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9501$as_echo "$WINDMC" >&6; }
0c24b341 9502else
81ecdfbb
RW
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504$as_echo "no" >&6; }
0c24b341
NC
9505fi
9506
81ecdfbb 9507
0c24b341
NC
9508 fi
9509 test -n "$ac_cv_prog_WINDMC" && break
9510done
9511
9512if test -z "$ac_cv_prog_WINDMC" ; then
9513 set dummy windmc
9514 if test $build = $host ; then
9515 WINDMC="$2"
9516 else
9517 WINDMC="${ncn_tool_prefix}$2"
9518 fi
9519fi
9520
9521
9522
9a819804
AO
9523if test -n "$OBJCOPY"; then
9524 ac_cv_prog_OBJCOPY=$OBJCOPY
9525elif test -n "$ac_cv_prog_OBJCOPY"; then
9526 OBJCOPY=$ac_cv_prog_OBJCOPY
9527fi
9528
9529if test -n "$ac_cv_prog_OBJCOPY"; then
9530 for ncn_progname in objcopy; do
9531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9532set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9534$as_echo_n "checking for $ac_word... " >&6; }
9535if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9536 $as_echo_n "(cached) " >&6
9a819804
AO
9537else
9538 if test -n "$OBJCOPY"; then
9539 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9540else
9541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9542for as_dir in $PATH
9543do
9544 IFS=$as_save_IFS
9545 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9546 for ac_exec_ext in '' $ac_executable_extensions; do
9547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9548 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9550 break 2
9551 fi
9552done
81ecdfbb
RW
9553 done
9554IFS=$as_save_IFS
9a819804
AO
9555
9556fi
9557fi
9558OBJCOPY=$ac_cv_prog_OBJCOPY
9559if test -n "$OBJCOPY"; then
81ecdfbb
RW
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9561$as_echo "$OBJCOPY" >&6; }
9a819804 9562else
81ecdfbb
RW
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564$as_echo "no" >&6; }
9a819804
AO
9565fi
9566
81ecdfbb 9567
9a819804
AO
9568 done
9569fi
9570
9571for ncn_progname in objcopy; do
05cbd757
PB
9572 if test -n "$ncn_tool_prefix"; then
9573 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9574set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576$as_echo_n "checking for $ac_word... " >&6; }
9577if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
859789af
AC
9579else
9580 if test -n "$OBJCOPY"; then
9581 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9582else
c6b750e1
DJ
9583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584for as_dir in $PATH
9585do
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9590 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9592 break 2
9593 fi
9594done
81ecdfbb
RW
9595 done
9596IFS=$as_save_IFS
c6b750e1 9597
859789af
AC
9598fi
9599fi
c6b750e1 9600OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9601if test -n "$OBJCOPY"; then
81ecdfbb
RW
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9603$as_echo "$OBJCOPY" >&6; }
859789af 9604else
81ecdfbb
RW
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9606$as_echo "no" >&6; }
859789af
AC
9607fi
9608
81ecdfbb 9609
05cbd757
PB
9610 fi
9611 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9613set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9615$as_echo_n "checking for $ac_word... " >&6; }
9616if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9617 $as_echo_n "(cached) " >&6
859789af 9618else
05cbd757
PB
9619 if test -n "$OBJCOPY"; then
9620 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9621else
c6b750e1
DJ
9622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9623for as_dir in $PATH
9624do
9625 IFS=$as_save_IFS
9626 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9627 for ac_exec_ext in '' $ac_executable_extensions; do
9628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9629 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9631 break 2
9632 fi
9633done
81ecdfbb
RW
9634 done
9635IFS=$as_save_IFS
c6b750e1 9636
859789af
AC
9637fi
9638fi
c6b750e1 9639OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9640if test -n "$OBJCOPY"; then
81ecdfbb
RW
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9642$as_echo "$OBJCOPY" >&6; }
859789af 9643else
81ecdfbb
RW
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645$as_echo "no" >&6; }
859789af 9646fi
c6b750e1 9647
81ecdfbb 9648
05cbd757
PB
9649 fi
9650 test -n "$ac_cv_prog_OBJCOPY" && break
9651done
9652
9653if test -z "$ac_cv_prog_OBJCOPY" ; then
9654 set dummy objcopy
9655 if test $build = $host ; then
9656 OBJCOPY="$2"
859789af 9657 else
05cbd757 9658 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9659 fi
859789af
AC
9660fi
9661
9a819804
AO
9662
9663
9664if test -n "$OBJDUMP"; then
9665 ac_cv_prog_OBJDUMP=$OBJDUMP
9666elif test -n "$ac_cv_prog_OBJDUMP"; then
9667 OBJDUMP=$ac_cv_prog_OBJDUMP
9668fi
9669
9670if test -n "$ac_cv_prog_OBJDUMP"; then
9671 for ncn_progname in objdump; do
9672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9673set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9675$as_echo_n "checking for $ac_word... " >&6; }
9676if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9677 $as_echo_n "(cached) " >&6
9a819804
AO
9678else
9679 if test -n "$OBJDUMP"; then
9680 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9681else
9682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9683for as_dir in $PATH
9684do
9685 IFS=$as_save_IFS
9686 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9687 for ac_exec_ext in '' $ac_executable_extensions; do
9688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9689 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9691 break 2
9692 fi
9693done
81ecdfbb
RW
9694 done
9695IFS=$as_save_IFS
9a819804
AO
9696
9697fi
9698fi
9699OBJDUMP=$ac_cv_prog_OBJDUMP
9700if test -n "$OBJDUMP"; then
81ecdfbb
RW
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9702$as_echo "$OBJDUMP" >&6; }
9a819804 9703else
81ecdfbb
RW
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9705$as_echo "no" >&6; }
9a819804
AO
9706fi
9707
81ecdfbb 9708
9a819804
AO
9709 done
9710fi
9711
9712for ncn_progname in objdump; do
05cbd757
PB
9713 if test -n "$ncn_tool_prefix"; then
9714 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9715set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9717$as_echo_n "checking for $ac_word... " >&6; }
9718if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9719 $as_echo_n "(cached) " >&6
859789af
AC
9720else
9721 if test -n "$OBJDUMP"; then
9722 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9723else
c6b750e1
DJ
9724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9725for as_dir in $PATH
9726do
9727 IFS=$as_save_IFS
9728 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9729 for ac_exec_ext in '' $ac_executable_extensions; do
9730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9731 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9733 break 2
9734 fi
9735done
81ecdfbb
RW
9736 done
9737IFS=$as_save_IFS
c6b750e1 9738
859789af
AC
9739fi
9740fi
c6b750e1 9741OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9742if test -n "$OBJDUMP"; then
81ecdfbb
RW
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9744$as_echo "$OBJDUMP" >&6; }
859789af 9745else
81ecdfbb
RW
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747$as_echo "no" >&6; }
859789af
AC
9748fi
9749
81ecdfbb 9750
05cbd757
PB
9751 fi
9752 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9754set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9756$as_echo_n "checking for $ac_word... " >&6; }
9757if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9758 $as_echo_n "(cached) " >&6
859789af 9759else
05cbd757
PB
9760 if test -n "$OBJDUMP"; then
9761 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9762else
c6b750e1
DJ
9763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764for as_dir in $PATH
9765do
9766 IFS=$as_save_IFS
9767 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9768 for ac_exec_ext in '' $ac_executable_extensions; do
9769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9770 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9772 break 2
9773 fi
9774done
81ecdfbb
RW
9775 done
9776IFS=$as_save_IFS
c6b750e1 9777
859789af
AC
9778fi
9779fi
c6b750e1 9780OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9781if test -n "$OBJDUMP"; then
81ecdfbb
RW
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9783$as_echo "$OBJDUMP" >&6; }
859789af 9784else
81ecdfbb
RW
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9786$as_echo "no" >&6; }
859789af 9787fi
c6b750e1 9788
81ecdfbb 9789
05cbd757
PB
9790 fi
9791 test -n "$ac_cv_prog_OBJDUMP" && break
9792done
9793
9794if test -z "$ac_cv_prog_OBJDUMP" ; then
9795 set dummy objdump
9796 if test $build = $host ; then
9797 OBJDUMP="$2"
859789af 9798 else
05cbd757 9799 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9800 fi
859789af
AC
9801fi
9802
a0da8069
NN
9803
9804
9805
9806
9807
be01d343 9808# Target tools.
c6b750e1 9809
81ecdfbb
RW
9810# Check whether --with-build-time-tools was given.
9811if test "${with_build_time_tools+set}" = set; then :
9812 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9813 x/*) ;;
9814 *)
9815 with_build_time_tools=
81ecdfbb
RW
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9817$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9818 ;;
9819 esac
859789af 9820else
2429c060 9821 with_build_time_tools=
81ecdfbb
RW
9822fi
9823
859789af 9824
9a819804
AO
9825
9826
9827if test -n "$CC_FOR_TARGET"; then
9828 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9829elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9830 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9831fi
9832
9833if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9834 for ncn_progname in cc gcc; do
9835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9836set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9838$as_echo_n "checking for $ac_word... " >&6; }
9839if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9840 $as_echo_n "(cached) " >&6
9a819804
AO
9841else
9842 if test -n "$CC_FOR_TARGET"; then
9843 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9844else
9845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9846for as_dir in $PATH
9847do
9848 IFS=$as_save_IFS
9849 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9850 for ac_exec_ext in '' $ac_executable_extensions; do
9851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9852 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9854 break 2
9855 fi
9856done
81ecdfbb
RW
9857 done
9858IFS=$as_save_IFS
9a819804
AO
9859
9860fi
9861fi
9862CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9863if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9865$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9866else
81ecdfbb
RW
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868$as_echo "no" >&6; }
9a819804
AO
9869fi
9870
81ecdfbb 9871
9a819804
AO
9872 done
9873fi
9874
9875if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9876 for ncn_progname in cc gcc; do
81ecdfbb
RW
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9878$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9879 if test -x $with_build_time_tools/${ncn_progname}; then
9880 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9882$as_echo "yes" >&6; }
cac3d6c4 9883 break
2429c060 9884 else
81ecdfbb
RW
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886$as_echo "no" >&6; }
cac3d6c4
CM
9887 fi
9888 done
55db4b87
PB
9889fi
9890
2429c060
PB
9891if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9892 for ncn_progname in cc gcc; do
9893 if test -n "$ncn_target_tool_prefix"; then
9894 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9895set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9897$as_echo_n "checking for $ac_word... " >&6; }
9898if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9899 $as_echo_n "(cached) " >&6
55db4b87
PB
9900else
9901 if test -n "$CC_FOR_TARGET"; then
9902 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9903else
c6b750e1
DJ
9904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905for as_dir in $PATH
9906do
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9909 for ac_exec_ext in '' $ac_executable_extensions; do
9910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9911 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9913 break 2
9914 fi
9915done
81ecdfbb
RW
9916 done
9917IFS=$as_save_IFS
c6b750e1 9918
55db4b87
PB
9919fi
9920fi
c6b750e1 9921CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9922if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9924$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9925else
81ecdfbb
RW
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9927$as_echo "no" >&6; }
55db4b87
PB
9928fi
9929
81ecdfbb 9930
2429c060
PB
9931 fi
9932 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9934set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9936$as_echo_n "checking for $ac_word... " >&6; }
9937if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9938 $as_echo_n "(cached) " >&6
55db4b87 9939else
05cbd757
PB
9940 if test -n "$CC_FOR_TARGET"; then
9941 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9942else
c6b750e1
DJ
9943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9944for as_dir in $PATH
9945do
9946 IFS=$as_save_IFS
9947 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9948 for ac_exec_ext in '' $ac_executable_extensions; do
9949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9950 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9952 break 2
9953 fi
9954done
81ecdfbb
RW
9955 done
9956IFS=$as_save_IFS
c6b750e1 9957
55db4b87
PB
9958fi
9959fi
c6b750e1 9960CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9961if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9963$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9964else
81ecdfbb
RW
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9966$as_echo "no" >&6; }
55db4b87 9967fi
c6b750e1 9968
81ecdfbb 9969
2429c060
PB
9970 fi
9971 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9972 done
9973fi
c6b750e1 9974
05cbd757
PB
9975if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9976 set dummy cc gcc
9977 if test $build = $target ; then
9978 CC_FOR_TARGET="$2"
55db4b87 9979 else
05cbd757 9980 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9981 fi
d3f5afc4
MS
9982else
9983 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9984fi
9985
9a819804
AO
9986
9987
9988if test -n "$CXX_FOR_TARGET"; then
9989 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9990elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9991 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9992fi
9993
9994if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9995 for ncn_progname in c++ g++ cxx gxx; do
9996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9997set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9999$as_echo_n "checking for $ac_word... " >&6; }
10000if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10001 $as_echo_n "(cached) " >&6
9a819804
AO
10002else
10003 if test -n "$CXX_FOR_TARGET"; then
10004 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10005else
10006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007for as_dir in $PATH
10008do
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10013 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10015 break 2
10016 fi
10017done
81ecdfbb
RW
10018 done
10019IFS=$as_save_IFS
9a819804
AO
10020
10021fi
10022fi
10023CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
10024if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10026$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 10027else
81ecdfbb
RW
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10029$as_echo "no" >&6; }
9a819804
AO
10030fi
10031
81ecdfbb 10032
9a819804
AO
10033 done
10034fi
10035
10036if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10037 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10039$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10040 if test -x $with_build_time_tools/${ncn_progname}; then
10041 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10043$as_echo "yes" >&6; }
2429c060
PB
10044 break
10045 else
81ecdfbb
RW
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10047$as_echo "no" >&6; }
2429c060
PB
10048 fi
10049 done
10050fi
10051
10052if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
10053 for ncn_progname in c++ g++ cxx gxx; do
10054 if test -n "$ncn_target_tool_prefix"; then
10055 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10056set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10058$as_echo_n "checking for $ac_word... " >&6; }
10059if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10060 $as_echo_n "(cached) " >&6
55db4b87
PB
10061else
10062 if test -n "$CXX_FOR_TARGET"; then
10063 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
10064else
c6b750e1
DJ
10065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066for as_dir in $PATH
10067do
10068 IFS=$as_save_IFS
10069 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10070 for ac_exec_ext in '' $ac_executable_extensions; do
10071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10072 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10074 break 2
10075 fi
10076done
81ecdfbb
RW
10077 done
10078IFS=$as_save_IFS
c6b750e1 10079
55db4b87
PB
10080fi
10081fi
c6b750e1 10082CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 10083if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10085$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10086else
81ecdfbb
RW
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088$as_echo "no" >&6; }
55db4b87
PB
10089fi
10090
81ecdfbb 10091
2429c060
PB
10092 fi
10093 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
10094 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10095set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097$as_echo_n "checking for $ac_word... " >&6; }
10098if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
10099 $as_echo_n "(cached) " >&6
55db4b87 10100else
05cbd757
PB
10101 if test -n "$CXX_FOR_TARGET"; then
10102 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 10103else
c6b750e1
DJ
10104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105for as_dir in $PATH
10106do
10107 IFS=$as_save_IFS
10108 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10109 for ac_exec_ext in '' $ac_executable_extensions; do
10110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10111 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 10112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10113 break 2
10114 fi
10115done
81ecdfbb
RW
10116 done
10117IFS=$as_save_IFS
c6b750e1 10118
55db4b87
PB
10119fi
10120fi
c6b750e1 10121CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 10122if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
10124$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 10125else
81ecdfbb
RW
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127$as_echo "no" >&6; }
55db4b87 10128fi
c6b750e1 10129
81ecdfbb 10130
2429c060
PB
10131 fi
10132 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
10133 done
10134fi
c6b750e1 10135
05cbd757
PB
10136if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
10137 set dummy c++ g++ cxx gxx
10138 if test $build = $target ; then
10139 CXX_FOR_TARGET="$2"
55db4b87 10140 else
05cbd757 10141 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10142 fi
d3f5afc4
MS
10143else
10144 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
10145fi
10146
9a819804
AO
10147
10148
10149if test -n "$GCC_FOR_TARGET"; then
10150 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
10151elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10152 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10153fi
10154
10155if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
10156 for ncn_progname in gcc; do
10157 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10158set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10160$as_echo_n "checking for $ac_word... " >&6; }
10161if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10162 $as_echo_n "(cached) " >&6
9a819804
AO
10163else
10164 if test -n "$GCC_FOR_TARGET"; then
10165 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
10166else
10167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168for as_dir in $PATH
10169do
10170 IFS=$as_save_IFS
10171 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10174 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10176 break 2
10177 fi
10178done
81ecdfbb
RW
10179 done
10180IFS=$as_save_IFS
9a819804
AO
10181
10182fi
10183fi
10184GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
10185if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10187$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 10188else
81ecdfbb
RW
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10190$as_echo "no" >&6; }
9a819804
AO
10191fi
10192
81ecdfbb 10193
9a819804
AO
10194 done
10195fi
10196
10197if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10198 for ncn_progname in gcc; do
81ecdfbb
RW
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10200$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10201 if test -x $with_build_time_tools/${ncn_progname}; then
10202 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10204$as_echo "yes" >&6; }
2429c060
PB
10205 break
10206 else
81ecdfbb
RW
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10208$as_echo "no" >&6; }
2429c060
PB
10209 fi
10210 done
10211fi
10212
10213if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
10214 for ncn_progname in gcc; do
10215 if test -n "$ncn_target_tool_prefix"; then
10216 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10217set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10219$as_echo_n "checking for $ac_word... " >&6; }
10220if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10221 $as_echo_n "(cached) " >&6
859789af 10222else
2429c060
PB
10223 if test -n "$GCC_FOR_TARGET"; then
10224 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10225else
c6b750e1
DJ
10226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227for as_dir in $PATH
10228do
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10231 for ac_exec_ext in '' $ac_executable_extensions; do
10232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10233 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10235 break 2
10236 fi
10237done
81ecdfbb
RW
10238 done
10239IFS=$as_save_IFS
c6b750e1 10240
55db4b87
PB
10241fi
10242fi
c6b750e1 10243GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 10244if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10246$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10247else
81ecdfbb
RW
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249$as_echo "no" >&6; }
55db4b87
PB
10250fi
10251
81ecdfbb 10252
2429c060
PB
10253 fi
10254 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
10255 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10256set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10258$as_echo_n "checking for $ac_word... " >&6; }
10259if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
55db4b87 10261else
05cbd757
PB
10262 if test -n "$GCC_FOR_TARGET"; then
10263 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 10264else
c6b750e1
DJ
10265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10266for as_dir in $PATH
10267do
10268 IFS=$as_save_IFS
10269 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10270 for ac_exec_ext in '' $ac_executable_extensions; do
10271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10272 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 10273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10274 break 2
10275 fi
10276done
81ecdfbb
RW
10277 done
10278IFS=$as_save_IFS
c6b750e1 10279
55db4b87
PB
10280fi
10281fi
c6b750e1 10282GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 10283if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
10285$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 10286else
81ecdfbb
RW
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10288$as_echo "no" >&6; }
55db4b87 10289fi
c6b750e1 10290
81ecdfbb 10291
2429c060
PB
10292 fi
10293 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
10294 done
10295fi
c6b750e1 10296
05cbd757
PB
10297if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
10298 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
10299else
10300 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
10301fi
10302
9a819804
AO
10303
10304
10305if test -n "$GCJ_FOR_TARGET"; then
10306 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
10307elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10308 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10309fi
10310
10311if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
10312 for ncn_progname in gcj; do
10313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10314set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10316$as_echo_n "checking for $ac_word... " >&6; }
10317if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10318 $as_echo_n "(cached) " >&6
9a819804
AO
10319else
10320 if test -n "$GCJ_FOR_TARGET"; then
10321 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10322else
10323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324for as_dir in $PATH
10325do
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10330 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10332 break 2
10333 fi
10334done
81ecdfbb
RW
10335 done
10336IFS=$as_save_IFS
9a819804
AO
10337
10338fi
10339fi
10340GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10341if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10343$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10344else
81ecdfbb
RW
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10346$as_echo "no" >&6; }
9a819804
AO
10347fi
10348
81ecdfbb 10349
9a819804
AO
10350 done
10351fi
10352
10353if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10354 for ncn_progname in gcj; do
81ecdfbb
RW
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10356$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10357 if test -x $with_build_time_tools/${ncn_progname}; then
10358 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10360$as_echo "yes" >&6; }
2429c060
PB
10361 break
10362 else
81ecdfbb
RW
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364$as_echo "no" >&6; }
2429c060
PB
10365 fi
10366 done
10367fi
10368
10369if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
10370 for ncn_progname in gcj; do
10371 if test -n "$ncn_target_tool_prefix"; then
10372 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10373set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10375$as_echo_n "checking for $ac_word... " >&6; }
10376if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10377 $as_echo_n "(cached) " >&6
55db4b87
PB
10378else
10379 if test -n "$GCJ_FOR_TARGET"; then
10380 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10381else
c6b750e1
DJ
10382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10383for as_dir in $PATH
10384do
10385 IFS=$as_save_IFS
10386 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10387 for ac_exec_ext in '' $ac_executable_extensions; do
10388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10389 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10391 break 2
10392 fi
10393done
81ecdfbb
RW
10394 done
10395IFS=$as_save_IFS
c6b750e1 10396
55db4b87
PB
10397fi
10398fi
9a819804
AO
10399GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10400if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10402$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10403else
81ecdfbb
RW
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405$as_echo "no" >&6; }
9a819804
AO
10406fi
10407
81ecdfbb 10408
9a819804
AO
10409 fi
10410 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
10411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10412set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10414$as_echo_n "checking for $ac_word... " >&6; }
10415if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
10416 $as_echo_n "(cached) " >&6
9a819804
AO
10417else
10418 if test -n "$GCJ_FOR_TARGET"; then
10419 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
10420else
10421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422for as_dir in $PATH
10423do
10424 IFS=$as_save_IFS
10425 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10426 for ac_exec_ext in '' $ac_executable_extensions; do
10427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10428 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 10429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10430 break 2
10431 fi
10432done
81ecdfbb
RW
10433 done
10434IFS=$as_save_IFS
9a819804
AO
10435
10436fi
10437fi
10438GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
10439if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
10441$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 10442else
81ecdfbb
RW
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444$as_echo "no" >&6; }
9a819804
AO
10445fi
10446
81ecdfbb 10447
9a819804
AO
10448 fi
10449 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10450 done
10451fi
10452
10453if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10454 set dummy gcj
10455 if test $build = $target ; then
10456 GCJ_FOR_TARGET="$2"
10457 else
10458 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10459 fi
d3f5afc4
MS
10460else
10461 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10462fi
10463
10464
10465
10466if test -n "$GFORTRAN_FOR_TARGET"; then
10467 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10468elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10469 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10470fi
10471
9a819804
AO
10472if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10473 for ncn_progname in gfortran; do
10474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10475set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10477$as_echo_n "checking for $ac_word... " >&6; }
10478if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10479 $as_echo_n "(cached) " >&6
55db4b87 10480else
9a819804
AO
10481 if test -n "$GFORTRAN_FOR_TARGET"; then
10482 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10483else
c6b750e1
DJ
10484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485for as_dir in $PATH
10486do
10487 IFS=$as_save_IFS
10488 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10489 for ac_exec_ext in '' $ac_executable_extensions; do
10490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10491 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10493 break 2
10494 fi
10495done
81ecdfbb
RW
10496 done
10497IFS=$as_save_IFS
c6b750e1 10498
55db4b87
PB
10499fi
10500fi
9a819804
AO
10501GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10502if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10504$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10505else
81ecdfbb
RW
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507$as_echo "no" >&6; }
55db4b87 10508fi
c6b750e1 10509
81ecdfbb 10510
2429c060
PB
10511 done
10512fi
c6b750e1 10513
9a819804 10514if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10515 for ncn_progname in gfortran; do
81ecdfbb
RW
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10517$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10518 if test -x $with_build_time_tools/${ncn_progname}; then
10519 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10521$as_echo "yes" >&6; }
2429c060
PB
10522 break
10523 else
81ecdfbb
RW
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525$as_echo "no" >&6; }
2429c060
PB
10526 fi
10527 done
10528fi
10529
10530if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10531 for ncn_progname in gfortran; do
10532 if test -n "$ncn_target_tool_prefix"; then
10533 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10534set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10536$as_echo_n "checking for $ac_word... " >&6; }
10537if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10538 $as_echo_n "(cached) " >&6
55db4b87
PB
10539else
10540 if test -n "$GFORTRAN_FOR_TARGET"; then
10541 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10542else
c6b750e1
DJ
10543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544for as_dir in $PATH
10545do
10546 IFS=$as_save_IFS
10547 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10550 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10552 break 2
10553 fi
10554done
81ecdfbb
RW
10555 done
10556IFS=$as_save_IFS
c6b750e1 10557
55db4b87
PB
10558fi
10559fi
c6b750e1 10560GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10561if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10563$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10564else
81ecdfbb
RW
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566$as_echo "no" >&6; }
55db4b87
PB
10567fi
10568
81ecdfbb 10569
2429c060
PB
10570 fi
10571 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10573set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10575$as_echo_n "checking for $ac_word... " >&6; }
10576if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10577 $as_echo_n "(cached) " >&6
55db4b87 10578else
05cbd757 10579 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10580 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10581else
10582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583for as_dir in $PATH
10584do
10585 IFS=$as_save_IFS
10586 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10587 for ac_exec_ext in '' $ac_executable_extensions; do
10588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10589 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10591 break 2
10592 fi
10593done
81ecdfbb
RW
10594 done
10595IFS=$as_save_IFS
c6b750e1 10596
55db4b87
PB
10597fi
10598fi
c6b750e1 10599GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10600if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10602$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10603else
81ecdfbb
RW
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10605$as_echo "no" >&6; }
55db4b87 10606fi
c6b750e1 10607
81ecdfbb 10608
2429c060
PB
10609 fi
10610 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10611 done
10612fi
c6b750e1 10613
05cbd757
PB
10614if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10615 set dummy gfortran
10616 if test $build = $target ; then
10617 GFORTRAN_FOR_TARGET="$2"
55db4b87 10618 else
05cbd757 10619 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10620 fi
d3f5afc4
MS
10621else
10622 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10623fi
10624
2429c060
PB
10625
10626
e552509b
ILT
10627if test -n "$GOC_FOR_TARGET"; then
10628 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
10629elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10630 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10631fi
10632
10633if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
10634 for ncn_progname in gccgo; do
10635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10636set dummy ${ncn_progname}; ac_word=$2
10637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10638$as_echo_n "checking for $ac_word... " >&6; }
10639if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10640 $as_echo_n "(cached) " >&6
10641else
10642 if test -n "$GOC_FOR_TARGET"; then
10643 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10644else
10645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10646for as_dir in $PATH
10647do
10648 IFS=$as_save_IFS
10649 test -z "$as_dir" && as_dir=.
10650 for ac_exec_ext in '' $ac_executable_extensions; do
10651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10652 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10654 break 2
10655 fi
10656done
10657 done
10658IFS=$as_save_IFS
10659
10660fi
10661fi
10662GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10663if test -n "$GOC_FOR_TARGET"; then
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10665$as_echo "$GOC_FOR_TARGET" >&6; }
10666else
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10668$as_echo "no" >&6; }
10669fi
10670
10671
10672 done
10673fi
10674
10675if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
10676 for ncn_progname in gccgo; do
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10678$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
10679 if test -x $with_build_time_tools/${ncn_progname}; then
10680 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10682$as_echo "yes" >&6; }
10683 break
10684 else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686$as_echo "no" >&6; }
10687 fi
10688 done
10689fi
10690
10691if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
10692 for ncn_progname in gccgo; do
10693 if test -n "$ncn_target_tool_prefix"; then
10694 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10695set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
10696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697$as_echo_n "checking for $ac_word... " >&6; }
10698if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10699 $as_echo_n "(cached) " >&6
10700else
10701 if test -n "$GOC_FOR_TARGET"; then
10702 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10703else
10704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10705for as_dir in $PATH
10706do
10707 IFS=$as_save_IFS
10708 test -z "$as_dir" && as_dir=.
10709 for ac_exec_ext in '' $ac_executable_extensions; do
10710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10711 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
10712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10713 break 2
10714 fi
10715done
10716 done
10717IFS=$as_save_IFS
10718
10719fi
10720fi
10721GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10722if test -n "$GOC_FOR_TARGET"; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10724$as_echo "$GOC_FOR_TARGET" >&6; }
10725else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727$as_echo "no" >&6; }
10728fi
10729
10730
10731 fi
10732 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
10733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10734set dummy ${ncn_progname}; ac_word=$2
10735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10736$as_echo_n "checking for $ac_word... " >&6; }
10737if test "${ac_cv_prog_GOC_FOR_TARGET+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10739else
10740 if test -n "$GOC_FOR_TARGET"; then
10741 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
10742else
10743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744for as_dir in $PATH
10745do
10746 IFS=$as_save_IFS
10747 test -z "$as_dir" && as_dir=.
10748 for ac_exec_ext in '' $ac_executable_extensions; do
10749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10750 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
10751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10752 break 2
10753 fi
10754done
10755 done
10756IFS=$as_save_IFS
10757
10758fi
10759fi
10760GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
10761if test -n "$GOC_FOR_TARGET"; then
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
10763$as_echo "$GOC_FOR_TARGET" >&6; }
10764else
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10766$as_echo "no" >&6; }
10767fi
10768
10769
10770 fi
10771 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
10772 done
10773fi
10774
10775if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
10776 set dummy gccgo
10777 if test $build = $target ; then
10778 GOC_FOR_TARGET="$2"
10779 else
10780 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
10781 fi
10782else
10783 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
10784fi
10785
10786
10787
2429c060
PB
10788cat > conftest.c << \EOF
10789#ifdef __GNUC__
10790 gcc_yay;
10791#endif
10792EOF
10793if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10794 have_gcc_for_target=yes
859789af 10795else
2429c060
PB
10796 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10797 have_gcc_for_target=no
859789af 10798fi
2429c060
PB
10799rm conftest.c
10800
10801
10802
859789af 10803
2429c060
PB
10804if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10805 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10807$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10808 if test -x $with_build_time_tools/ar; then
10809 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10810 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10812$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10813 else
81ecdfbb
RW
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815$as_echo "no" >&6; }
3a35eeb3 10816 fi
2429c060
PB
10817 elif test $build != $host && test $have_gcc_for_target = yes; then
10818 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10819 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10820 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10821 fi
2429c060 10822fi
c6b750e1 10823if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10824 # Extract the first word of "ar", so it can be a program name with args.
10825set dummy ar; ac_word=$2
81ecdfbb
RW
10826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10827$as_echo_n "checking for $ac_word... " >&6; }
10828if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10829 $as_echo_n "(cached) " >&6
859789af 10830else
c6b750e1
DJ
10831 case $AR_FOR_TARGET in
10832 [\\/]* | ?:[\\/]*)
2429c060
PB
10833 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10834 ;;
2429c060 10835 *)
c6b750e1
DJ
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837for as_dir in $gcc_cv_tool_dirs
10838do
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10843 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10845 break 2
10846 fi
10847done
81ecdfbb
RW
10848 done
10849IFS=$as_save_IFS
c6b750e1 10850
2429c060
PB
10851 ;;
10852esac
859789af 10853fi
c6b750e1 10854AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10855if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10857$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10858else
81ecdfbb
RW
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10860$as_echo "no" >&6; }
859789af 10861fi
05cbd757 10862
81ecdfbb 10863
2429c060
PB
10864fi
10865if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10866
10867
10868if test -n "$AR_FOR_TARGET"; then
10869 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10870elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10871 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10872fi
10873
10874if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10875 for ncn_progname in ar; do
10876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10877set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10879$as_echo_n "checking for $ac_word... " >&6; }
10880if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10881 $as_echo_n "(cached) " >&6
9a819804
AO
10882else
10883 if test -n "$AR_FOR_TARGET"; then
10884 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10885else
10886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887for as_dir in $PATH
10888do
10889 IFS=$as_save_IFS
10890 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10893 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10895 break 2
10896 fi
10897done
81ecdfbb
RW
10898 done
10899IFS=$as_save_IFS
9a819804
AO
10900
10901fi
10902fi
10903AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10904if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10906$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10907else
81ecdfbb
RW
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10909$as_echo "no" >&6; }
9a819804
AO
10910fi
10911
81ecdfbb 10912
9a819804
AO
10913 done
10914fi
10915
10916if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10917 for ncn_progname in ar; do
81ecdfbb
RW
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10919$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10920 if test -x $with_build_time_tools/${ncn_progname}; then
10921 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10923$as_echo "yes" >&6; }
2429c060
PB
10924 break
10925 else
81ecdfbb
RW
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10927$as_echo "no" >&6; }
2429c060
PB
10928 fi
10929 done
859789af
AC
10930fi
10931
2429c060
PB
10932if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10933 for ncn_progname in ar; do
10934 if test -n "$ncn_target_tool_prefix"; then
10935 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10936set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938$as_echo_n "checking for $ac_word... " >&6; }
10939if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
7e0f7140 10941else
2429c060
PB
10942 if test -n "$AR_FOR_TARGET"; then
10943 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10944else
c6b750e1
DJ
10945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946for as_dir in $PATH
10947do
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10950 for ac_exec_ext in '' $ac_executable_extensions; do
10951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10952 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10954 break 2
10955 fi
10956done
81ecdfbb
RW
10957 done
10958IFS=$as_save_IFS
c6b750e1 10959
7e0f7140
GK
10960fi
10961fi
c6b750e1 10962AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10963if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10965$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10966else
81ecdfbb
RW
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968$as_echo "no" >&6; }
7e0f7140
GK
10969fi
10970
81ecdfbb 10971
2429c060
PB
10972 fi
10973 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10975set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977$as_echo_n "checking for $ac_word... " >&6; }
10978if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10979 $as_echo_n "(cached) " >&6
7e0f7140 10980else
2429c060
PB
10981 if test -n "$AR_FOR_TARGET"; then
10982 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10983else
c6b750e1
DJ
10984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985for as_dir in $PATH
10986do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10991 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10993 break 2
10994 fi
10995done
81ecdfbb
RW
10996 done
10997IFS=$as_save_IFS
c6b750e1 10998
7e0f7140
GK
10999fi
11000fi
c6b750e1 11001AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 11002if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
11004$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 11005else
81ecdfbb
RW
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007$as_echo "no" >&6; }
7e0f7140 11008fi
c6b750e1 11009
81ecdfbb 11010
2429c060
PB
11011 fi
11012 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
11013 done
11014fi
c6b750e1 11015
2429c060
PB
11016if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
11017 set dummy ar
7e0f7140 11018 if test $build = $target ; then
2429c060 11019 AR_FOR_TARGET="$2"
7e0f7140 11020 else
2429c060 11021 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 11022 fi
d3f5afc4
MS
11023else
11024 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
11025fi
11026
3a35eeb3
PB
11027else
11028 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
11029fi
11030
11031
11032
11033
11034if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
11035 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
11037$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11038 if test -x $with_build_time_tools/as; then
11039 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
11040 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
11042$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 11043 else
81ecdfbb
RW
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11045$as_echo "no" >&6; }
3a35eeb3 11046 fi
2429c060
PB
11047 elif test $build != $host && test $have_gcc_for_target = yes; then
11048 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
11049 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
11050 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
11051 fi
11052fi
c6b750e1 11053if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11054 # Extract the first word of "as", so it can be a program name with args.
11055set dummy as; ac_word=$2
81ecdfbb
RW
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057$as_echo_n "checking for $ac_word... " >&6; }
11058if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
11059 $as_echo_n "(cached) " >&6
2429c060 11060else
c6b750e1
DJ
11061 case $AS_FOR_TARGET in
11062 [\\/]* | ?:[\\/]*)
2429c060
PB
11063 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
11064 ;;
2429c060 11065 *)
c6b750e1
DJ
11066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067for as_dir in $gcc_cv_tool_dirs
11068do
11069 IFS=$as_save_IFS
11070 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11071 for ac_exec_ext in '' $ac_executable_extensions; do
11072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11073 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11075 break 2
11076 fi
11077done
81ecdfbb
RW
11078 done
11079IFS=$as_save_IFS
c6b750e1 11080
2429c060
PB
11081 ;;
11082esac
11083fi
c6b750e1 11084AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 11085if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11087$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11088else
81ecdfbb
RW
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090$as_echo "no" >&6; }
2429c060
PB
11091fi
11092
81ecdfbb 11093
2429c060
PB
11094fi
11095if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
11096
11097
11098if test -n "$AS_FOR_TARGET"; then
11099 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
11100elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11101 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11102fi
11103
11104if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
11105 for ncn_progname in as; do
11106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11107set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11109$as_echo_n "checking for $ac_word... " >&6; }
11110if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
9a819804
AO
11112else
11113 if test -n "$AS_FOR_TARGET"; then
11114 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11115else
11116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117for as_dir in $PATH
11118do
11119 IFS=$as_save_IFS
11120 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11121 for ac_exec_ext in '' $ac_executable_extensions; do
11122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11123 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11125 break 2
11126 fi
11127done
81ecdfbb
RW
11128 done
11129IFS=$as_save_IFS
9a819804
AO
11130
11131fi
11132fi
11133AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
11134if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11136$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 11137else
81ecdfbb
RW
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11139$as_echo "no" >&6; }
9a819804
AO
11140fi
11141
81ecdfbb 11142
9a819804
AO
11143 done
11144fi
11145
11146if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11147 for ncn_progname in as; do
81ecdfbb
RW
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11149$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11150 if test -x $with_build_time_tools/${ncn_progname}; then
11151 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11153$as_echo "yes" >&6; }
2429c060
PB
11154 break
11155 else
81ecdfbb
RW
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157$as_echo "no" >&6; }
2429c060
PB
11158 fi
11159 done
11160fi
11161
11162if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
11163 for ncn_progname in as; do
11164 if test -n "$ncn_target_tool_prefix"; then
11165 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11166set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11168$as_echo_n "checking for $ac_word... " >&6; }
11169if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11170 $as_echo_n "(cached) " >&6
2429c060
PB
11171else
11172 if test -n "$AS_FOR_TARGET"; then
11173 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11174else
c6b750e1
DJ
11175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11176for as_dir in $PATH
11177do
11178 IFS=$as_save_IFS
11179 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11180 for ac_exec_ext in '' $ac_executable_extensions; do
11181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11182 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11184 break 2
11185 fi
11186done
81ecdfbb
RW
11187 done
11188IFS=$as_save_IFS
c6b750e1 11189
2429c060
PB
11190fi
11191fi
c6b750e1 11192AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11193if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11195$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11196else
81ecdfbb
RW
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198$as_echo "no" >&6; }
2429c060
PB
11199fi
11200
81ecdfbb 11201
2429c060
PB
11202 fi
11203 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
11204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11205set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11207$as_echo_n "checking for $ac_word... " >&6; }
11208if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
2429c060
PB
11210else
11211 if test -n "$AS_FOR_TARGET"; then
11212 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
11213else
c6b750e1
DJ
11214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215for as_dir in $PATH
11216do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11221 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 11222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11223 break 2
11224 fi
11225done
81ecdfbb
RW
11226 done
11227IFS=$as_save_IFS
c6b750e1 11228
2429c060
PB
11229fi
11230fi
c6b750e1 11231AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 11232if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
11234$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 11235else
81ecdfbb
RW
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11237$as_echo "no" >&6; }
2429c060 11238fi
c6b750e1 11239
81ecdfbb 11240
2429c060
PB
11241 fi
11242 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
11243 done
11244fi
c6b750e1 11245
2429c060
PB
11246if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
11247 set dummy as
11248 if test $build = $target ; then
11249 AS_FOR_TARGET="$2"
11250 else
11251 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
11252 fi
d3f5afc4
MS
11253else
11254 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
11255fi
11256
3a35eeb3
PB
11257else
11258 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
11259fi
11260
11261
11262
11263
11264if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
11265 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
11267$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11268 if test -x $with_build_time_tools/dlltool; then
11269 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
11270 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
11272$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 11273 else
81ecdfbb
RW
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11275$as_echo "no" >&6; }
3a35eeb3 11276 fi
2429c060
PB
11277 elif test $build != $host && test $have_gcc_for_target = yes; then
11278 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
11279 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
11280 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
11281 fi
11282fi
c6b750e1 11283if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11284 # Extract the first word of "dlltool", so it can be a program name with args.
11285set dummy dlltool; ac_word=$2
81ecdfbb
RW
11286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11287$as_echo_n "checking for $ac_word... " >&6; }
11288if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
11289 $as_echo_n "(cached) " >&6
2429c060 11290else
c6b750e1
DJ
11291 case $DLLTOOL_FOR_TARGET in
11292 [\\/]* | ?:[\\/]*)
2429c060
PB
11293 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
11294 ;;
2429c060 11295 *)
c6b750e1
DJ
11296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297for as_dir in $gcc_cv_tool_dirs
11298do
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11301 for ac_exec_ext in '' $ac_executable_extensions; do
11302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11303 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11305 break 2
11306 fi
11307done
81ecdfbb
RW
11308 done
11309IFS=$as_save_IFS
c6b750e1 11310
2429c060
PB
11311 ;;
11312esac
11313fi
c6b750e1 11314DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 11315if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11317$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11318else
81ecdfbb
RW
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11320$as_echo "no" >&6; }
2429c060
PB
11321fi
11322
81ecdfbb 11323
2429c060
PB
11324fi
11325if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
11326
11327
11328if test -n "$DLLTOOL_FOR_TARGET"; then
11329 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
11330elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11331 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11332fi
11333
11334if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11335 for ncn_progname in dlltool; do
11336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11337set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11339$as_echo_n "checking for $ac_word... " >&6; }
11340if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11341 $as_echo_n "(cached) " >&6
9a819804
AO
11342else
11343 if test -n "$DLLTOOL_FOR_TARGET"; then
11344 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11345else
11346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347for as_dir in $PATH
11348do
11349 IFS=$as_save_IFS
11350 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11351 for ac_exec_ext in '' $ac_executable_extensions; do
11352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11353 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11355 break 2
11356 fi
11357done
81ecdfbb
RW
11358 done
11359IFS=$as_save_IFS
9a819804
AO
11360
11361fi
11362fi
11363DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
11364if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11366$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 11367else
81ecdfbb
RW
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11369$as_echo "no" >&6; }
9a819804
AO
11370fi
11371
81ecdfbb 11372
9a819804
AO
11373 done
11374fi
11375
11376if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11377 for ncn_progname in dlltool; do
81ecdfbb
RW
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11379$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11380 if test -x $with_build_time_tools/${ncn_progname}; then
11381 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11383$as_echo "yes" >&6; }
2429c060
PB
11384 break
11385 else
81ecdfbb
RW
11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11387$as_echo "no" >&6; }
2429c060
PB
11388 fi
11389 done
11390fi
11391
11392if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
11393 for ncn_progname in dlltool; do
11394 if test -n "$ncn_target_tool_prefix"; then
11395 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11396set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398$as_echo_n "checking for $ac_word... " >&6; }
11399if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11400 $as_echo_n "(cached) " >&6
2429c060
PB
11401else
11402 if test -n "$DLLTOOL_FOR_TARGET"; then
11403 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11404else
c6b750e1
DJ
11405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406for as_dir in $PATH
11407do
11408 IFS=$as_save_IFS
11409 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11412 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11414 break 2
11415 fi
11416done
81ecdfbb
RW
11417 done
11418IFS=$as_save_IFS
c6b750e1 11419
2429c060
PB
11420fi
11421fi
c6b750e1 11422DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11423if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11425$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11426else
81ecdfbb
RW
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428$as_echo "no" >&6; }
2429c060
PB
11429fi
11430
81ecdfbb 11431
2429c060
PB
11432 fi
11433 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
11434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11435set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437$as_echo_n "checking for $ac_word... " >&6; }
11438if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
11439 $as_echo_n "(cached) " >&6
2429c060
PB
11440else
11441 if test -n "$DLLTOOL_FOR_TARGET"; then
11442 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
11443else
c6b750e1
DJ
11444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445for as_dir in $PATH
11446do
11447 IFS=$as_save_IFS
11448 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11451 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 11452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11453 break 2
11454 fi
11455done
81ecdfbb
RW
11456 done
11457IFS=$as_save_IFS
c6b750e1 11458
2429c060
PB
11459fi
11460fi
c6b750e1 11461DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 11462if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
11464$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 11465else
81ecdfbb
RW
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467$as_echo "no" >&6; }
2429c060 11468fi
c6b750e1 11469
81ecdfbb 11470
2429c060
PB
11471 fi
11472 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
11473 done
11474fi
c6b750e1 11475
2429c060
PB
11476if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
11477 set dummy dlltool
11478 if test $build = $target ; then
11479 DLLTOOL_FOR_TARGET="$2"
11480 else
11481 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
11482 fi
d3f5afc4
MS
11483else
11484 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
11485fi
11486
3a35eeb3
PB
11487else
11488 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
11489fi
11490
11491
11492
11493
11494if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
11495 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
11497$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11498 if test -x $with_build_time_tools/ld; then
11499 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
11500 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
11502$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 11503 else
81ecdfbb
RW
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11505$as_echo "no" >&6; }
3a35eeb3 11506 fi
2429c060
PB
11507 elif test $build != $host && test $have_gcc_for_target = yes; then
11508 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
11509 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
11510 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
11511 fi
11512fi
c6b750e1 11513if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11514 # Extract the first word of "ld", so it can be a program name with args.
11515set dummy ld; ac_word=$2
81ecdfbb
RW
11516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11517$as_echo_n "checking for $ac_word... " >&6; }
11518if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
11519 $as_echo_n "(cached) " >&6
2429c060 11520else
c6b750e1
DJ
11521 case $LD_FOR_TARGET in
11522 [\\/]* | ?:[\\/]*)
2429c060
PB
11523 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
11524 ;;
2429c060 11525 *)
c6b750e1
DJ
11526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527for as_dir in $gcc_cv_tool_dirs
11528do
11529 IFS=$as_save_IFS
11530 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11531 for ac_exec_ext in '' $ac_executable_extensions; do
11532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11533 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11535 break 2
11536 fi
11537done
81ecdfbb
RW
11538 done
11539IFS=$as_save_IFS
c6b750e1 11540
2429c060
PB
11541 ;;
11542esac
11543fi
c6b750e1 11544LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 11545if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11547$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11548else
81ecdfbb
RW
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11550$as_echo "no" >&6; }
2429c060
PB
11551fi
11552
81ecdfbb 11553
2429c060
PB
11554fi
11555if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
11556
11557
11558if test -n "$LD_FOR_TARGET"; then
11559 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
11560elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11561 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11562fi
11563
11564if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
11565 for ncn_progname in ld; do
11566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11567set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569$as_echo_n "checking for $ac_word... " >&6; }
11570if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11571 $as_echo_n "(cached) " >&6
9a819804
AO
11572else
11573 if test -n "$LD_FOR_TARGET"; then
11574 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11575else
11576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577for as_dir in $PATH
11578do
11579 IFS=$as_save_IFS
11580 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11581 for ac_exec_ext in '' $ac_executable_extensions; do
11582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11583 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11585 break 2
11586 fi
11587done
81ecdfbb
RW
11588 done
11589IFS=$as_save_IFS
9a819804
AO
11590
11591fi
11592fi
11593LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
11594if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11596$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 11597else
81ecdfbb
RW
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599$as_echo "no" >&6; }
9a819804
AO
11600fi
11601
81ecdfbb 11602
9a819804
AO
11603 done
11604fi
11605
11606if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11607 for ncn_progname in ld; do
81ecdfbb
RW
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11609$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11610 if test -x $with_build_time_tools/${ncn_progname}; then
11611 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11613$as_echo "yes" >&6; }
2429c060
PB
11614 break
11615 else
81ecdfbb
RW
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617$as_echo "no" >&6; }
2429c060
PB
11618 fi
11619 done
11620fi
11621
11622if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11623 for ncn_progname in ld; do
11624 if test -n "$ncn_target_tool_prefix"; then
11625 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11626set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11628$as_echo_n "checking for $ac_word... " >&6; }
11629if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11630 $as_echo_n "(cached) " >&6
2429c060
PB
11631else
11632 if test -n "$LD_FOR_TARGET"; then
11633 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11634else
c6b750e1
DJ
11635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636for as_dir in $PATH
11637do
11638 IFS=$as_save_IFS
11639 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11642 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11644 break 2
11645 fi
11646done
81ecdfbb
RW
11647 done
11648IFS=$as_save_IFS
c6b750e1 11649
2429c060
PB
11650fi
11651fi
c6b750e1 11652LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11653if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11655$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11656else
81ecdfbb
RW
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11658$as_echo "no" >&6; }
2429c060
PB
11659fi
11660
81ecdfbb 11661
2429c060
PB
11662 fi
11663 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11664 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11665set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11667$as_echo_n "checking for $ac_word... " >&6; }
11668if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
2429c060
PB
11670else
11671 if test -n "$LD_FOR_TARGET"; then
11672 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11673else
c6b750e1
DJ
11674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675for as_dir in $PATH
11676do
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11681 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11683 break 2
11684 fi
11685done
81ecdfbb
RW
11686 done
11687IFS=$as_save_IFS
c6b750e1 11688
2429c060
PB
11689fi
11690fi
c6b750e1 11691LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11692if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11694$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11695else
81ecdfbb
RW
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11697$as_echo "no" >&6; }
2429c060 11698fi
c6b750e1 11699
81ecdfbb 11700
2429c060
PB
11701 fi
11702 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11703 done
11704fi
c6b750e1 11705
2429c060
PB
11706if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11707 set dummy ld
11708 if test $build = $target ; then
11709 LD_FOR_TARGET="$2"
11710 else
11711 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11712 fi
d3f5afc4
MS
11713else
11714 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11715fi
11716
3a35eeb3
PB
11717else
11718 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11719fi
11720
11721
11722
11723
11724if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11725 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11727$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11728 if test -x $with_build_time_tools/lipo; then
11729 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11730 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11732$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11733 else
81ecdfbb
RW
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11735$as_echo "no" >&6; }
3a35eeb3 11736 fi
2429c060
PB
11737 elif test $build != $host && test $have_gcc_for_target = yes; then
11738 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11739 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11740 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11741 fi
11742fi
9a819804
AO
11743if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11744 # Extract the first word of "lipo", so it can be a program name with args.
11745set dummy lipo; ac_word=$2
81ecdfbb
RW
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747$as_echo_n "checking for $ac_word... " >&6; }
11748if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
9a819804
AO
11750else
11751 case $LIPO_FOR_TARGET in
11752 [\\/]* | ?:[\\/]*)
11753 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11754 ;;
11755 *)
11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11757for as_dir in $gcc_cv_tool_dirs
11758do
11759 IFS=$as_save_IFS
11760 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11761 for ac_exec_ext in '' $ac_executable_extensions; do
11762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11763 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11765 break 2
11766 fi
11767done
81ecdfbb
RW
11768 done
11769IFS=$as_save_IFS
9a819804
AO
11770
11771 ;;
11772esac
11773fi
11774LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11775if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11777$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11778else
81ecdfbb
RW
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11780$as_echo "no" >&6; }
9a819804
AO
11781fi
11782
81ecdfbb 11783
9a819804
AO
11784fi
11785if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11786
11787
11788if test -n "$LIPO_FOR_TARGET"; then
11789 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11790elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11791 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11792fi
11793
11794if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11795 for ncn_progname in lipo; do
11796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11797set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11799$as_echo_n "checking for $ac_word... " >&6; }
11800if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11801 $as_echo_n "(cached) " >&6
2429c060 11802else
9a819804
AO
11803 if test -n "$LIPO_FOR_TARGET"; then
11804 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11805else
11806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807for as_dir in $PATH
c6b750e1
DJ
11808do
11809 IFS=$as_save_IFS
11810 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11813 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11815 break 2
11816 fi
11817done
81ecdfbb
RW
11818 done
11819IFS=$as_save_IFS
c6b750e1 11820
2429c060 11821fi
9a819804
AO
11822fi
11823LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11824if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11826$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11827else
81ecdfbb
RW
11828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11829$as_echo "no" >&6; }
2429c060
PB
11830fi
11831
81ecdfbb 11832
9a819804 11833 done
2429c060 11834fi
9a819804
AO
11835
11836if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11837 for ncn_progname in lipo; do
81ecdfbb
RW
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11839$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11840 if test -x $with_build_time_tools/${ncn_progname}; then
11841 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11843$as_echo "yes" >&6; }
2429c060
PB
11844 break
11845 else
81ecdfbb
RW
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11847$as_echo "no" >&6; }
2429c060
PB
11848 fi
11849 done
11850fi
11851
11852if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11853 for ncn_progname in lipo; do
11854 if test -n "$ncn_target_tool_prefix"; then
11855 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11856set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858$as_echo_n "checking for $ac_word... " >&6; }
11859if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
2429c060
PB
11861else
11862 if test -n "$LIPO_FOR_TARGET"; then
11863 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11864else
c6b750e1
DJ
11865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $PATH
11867do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11872 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11874 break 2
11875 fi
11876done
81ecdfbb
RW
11877 done
11878IFS=$as_save_IFS
c6b750e1 11879
2429c060
PB
11880fi
11881fi
c6b750e1 11882LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11883if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11885$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11886else
81ecdfbb
RW
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888$as_echo "no" >&6; }
2429c060
PB
11889fi
11890
81ecdfbb 11891
2429c060
PB
11892 fi
11893 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11895set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897$as_echo_n "checking for $ac_word... " >&6; }
11898if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11899 $as_echo_n "(cached) " >&6
2429c060
PB
11900else
11901 if test -n "$LIPO_FOR_TARGET"; then
11902 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11903else
c6b750e1
DJ
11904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11905for as_dir in $PATH
11906do
11907 IFS=$as_save_IFS
11908 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11911 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11913 break 2
11914 fi
11915done
81ecdfbb
RW
11916 done
11917IFS=$as_save_IFS
c6b750e1 11918
2429c060
PB
11919fi
11920fi
c6b750e1 11921LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11922if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11924$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11925else
81ecdfbb
RW
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927$as_echo "no" >&6; }
2429c060 11928fi
c6b750e1 11929
81ecdfbb 11930
2429c060
PB
11931 fi
11932 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11933 done
11934fi
c6b750e1 11935
2429c060
PB
11936if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11937 set dummy lipo
11938 if test $build = $target ; then
11939 LIPO_FOR_TARGET="$2"
11940 else
11941 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11942 fi
d3f5afc4
MS
11943else
11944 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11945fi
11946
3a35eeb3
PB
11947else
11948 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11949fi
11950
11951
11952
11953
11954if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11955 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11957$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11958 if test -x $with_build_time_tools/nm; then
11959 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11960 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11962$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11963 else
81ecdfbb
RW
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965$as_echo "no" >&6; }
3a35eeb3 11966 fi
2429c060
PB
11967 elif test $build != $host && test $have_gcc_for_target = yes; then
11968 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11969 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11970 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11971 fi
11972fi
c6b750e1 11973if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11974 # Extract the first word of "nm", so it can be a program name with args.
11975set dummy nm; ac_word=$2
81ecdfbb
RW
11976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11977$as_echo_n "checking for $ac_word... " >&6; }
11978if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11979 $as_echo_n "(cached) " >&6
2429c060 11980else
c6b750e1
DJ
11981 case $NM_FOR_TARGET in
11982 [\\/]* | ?:[\\/]*)
2429c060
PB
11983 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11984 ;;
2429c060 11985 *)
c6b750e1
DJ
11986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11987for as_dir in $gcc_cv_tool_dirs
11988do
11989 IFS=$as_save_IFS
11990 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11991 for ac_exec_ext in '' $ac_executable_extensions; do
11992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11993 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11995 break 2
11996 fi
11997done
81ecdfbb
RW
11998 done
11999IFS=$as_save_IFS
c6b750e1 12000
2429c060
PB
12001 ;;
12002esac
12003fi
c6b750e1 12004NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 12005if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12007$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 12008else
81ecdfbb
RW
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12010$as_echo "no" >&6; }
2429c060
PB
12011fi
12012
81ecdfbb 12013
2429c060
PB
12014fi
12015if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
12016
12017
12018if test -n "$NM_FOR_TARGET"; then
12019 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
12020elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12021 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12022fi
12023
12024if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
12025 for ncn_progname in nm; do
12026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12027set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029$as_echo_n "checking for $ac_word... " >&6; }
12030if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12031 $as_echo_n "(cached) " >&6
9a819804
AO
12032else
12033 if test -n "$NM_FOR_TARGET"; then
12034 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
12035else
12036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037for as_dir in $PATH
12038do
12039 IFS=$as_save_IFS
12040 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12041 for ac_exec_ext in '' $ac_executable_extensions; do
12042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12043 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12045 break 2
12046 fi
12047done
81ecdfbb
RW
12048 done
12049IFS=$as_save_IFS
9a819804
AO
12050
12051fi
12052fi
12053NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
12054if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12056$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 12057else
81ecdfbb
RW
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059$as_echo "no" >&6; }
9a819804
AO
12060fi
12061
81ecdfbb 12062
9a819804
AO
12063 done
12064fi
12065
12066if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12067 for ncn_progname in nm; do
81ecdfbb
RW
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12069$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12070 if test -x $with_build_time_tools/${ncn_progname}; then
12071 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12073$as_echo "yes" >&6; }
2429c060
PB
12074 break
12075 else
81ecdfbb
RW
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12077$as_echo "no" >&6; }
2429c060
PB
12078 fi
12079 done
12080fi
12081
12082if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
12083 for ncn_progname in nm; do
12084 if test -n "$ncn_target_tool_prefix"; then
12085 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12086set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12088$as_echo_n "checking for $ac_word... " >&6; }
12089if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12090 $as_echo_n "(cached) " >&6
859789af 12091else
55db4b87
PB
12092 if test -n "$NM_FOR_TARGET"; then
12093 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12094else
c6b750e1
DJ
12095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12096for as_dir in $PATH
12097do
12098 IFS=$as_save_IFS
12099 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12100 for ac_exec_ext in '' $ac_executable_extensions; do
12101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12102 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12104 break 2
12105 fi
12106done
81ecdfbb
RW
12107 done
12108IFS=$as_save_IFS
c6b750e1 12109
859789af
AC
12110fi
12111fi
c6b750e1 12112NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 12113if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12115$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12116else
81ecdfbb
RW
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12118$as_echo "no" >&6; }
859789af
AC
12119fi
12120
81ecdfbb 12121
2429c060
PB
12122 fi
12123 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
12124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12125set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127$as_echo_n "checking for $ac_word... " >&6; }
12128if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
12129 $as_echo_n "(cached) " >&6
859789af 12130else
05cbd757
PB
12131 if test -n "$NM_FOR_TARGET"; then
12132 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 12133else
c6b750e1
DJ
12134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135for as_dir in $PATH
12136do
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12141 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12143 break 2
12144 fi
12145done
81ecdfbb
RW
12146 done
12147IFS=$as_save_IFS
c6b750e1 12148
859789af
AC
12149fi
12150fi
c6b750e1 12151NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 12152if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
12154$as_echo "$NM_FOR_TARGET" >&6; }
859789af 12155else
81ecdfbb
RW
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157$as_echo "no" >&6; }
859789af 12158fi
c6b750e1 12159
81ecdfbb 12160
2429c060
PB
12161 fi
12162 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
12163 done
12164fi
c6b750e1 12165
05cbd757
PB
12166if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
12167 set dummy nm
12168 if test $build = $target ; then
12169 NM_FOR_TARGET="$2"
859789af 12170 else
05cbd757 12171 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12172 fi
d3f5afc4
MS
12173else
12174 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
12175fi
12176
3a35eeb3
PB
12177else
12178 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
12179fi
12180
12181
12182
12183
12184if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
12185 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
12187$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12188 if test -x $with_build_time_tools/objdump; then
12189 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
12190 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
12192$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 12193 else
81ecdfbb
RW
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195$as_echo "no" >&6; }
3a35eeb3 12196 fi
2429c060
PB
12197 elif test $build != $host && test $have_gcc_for_target = yes; then
12198 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
12199 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
12200 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
12201 fi
12202fi
c6b750e1 12203if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12204 # Extract the first word of "objdump", so it can be a program name with args.
12205set dummy objdump; ac_word=$2
81ecdfbb
RW
12206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12207$as_echo_n "checking for $ac_word... " >&6; }
12208if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
12209 $as_echo_n "(cached) " >&6
2429c060 12210else
c6b750e1
DJ
12211 case $OBJDUMP_FOR_TARGET in
12212 [\\/]* | ?:[\\/]*)
2429c060
PB
12213 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
12214 ;;
2429c060 12215 *)
c6b750e1
DJ
12216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12217for as_dir in $gcc_cv_tool_dirs
12218do
12219 IFS=$as_save_IFS
12220 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12221 for ac_exec_ext in '' $ac_executable_extensions; do
12222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12223 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12225 break 2
12226 fi
12227done
81ecdfbb
RW
12228 done
12229IFS=$as_save_IFS
c6b750e1 12230
2429c060
PB
12231 ;;
12232esac
12233fi
c6b750e1 12234OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 12235if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12237$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 12238else
81ecdfbb
RW
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12240$as_echo "no" >&6; }
2429c060
PB
12241fi
12242
81ecdfbb 12243
2429c060
PB
12244fi
12245if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
12246
12247
12248if test -n "$OBJDUMP_FOR_TARGET"; then
12249 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
12250elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12251 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12252fi
12253
12254if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12255 for ncn_progname in objdump; do
12256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12257set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259$as_echo_n "checking for $ac_word... " >&6; }
12260if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12261 $as_echo_n "(cached) " >&6
9a819804
AO
12262else
12263 if test -n "$OBJDUMP_FOR_TARGET"; then
12264 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12265else
12266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267for as_dir in $PATH
12268do
12269 IFS=$as_save_IFS
12270 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12271 for ac_exec_ext in '' $ac_executable_extensions; do
12272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12273 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12275 break 2
12276 fi
12277done
81ecdfbb
RW
12278 done
12279IFS=$as_save_IFS
9a819804
AO
12280
12281fi
12282fi
12283OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
12284if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12286$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 12287else
81ecdfbb
RW
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
9a819804
AO
12290fi
12291
81ecdfbb 12292
9a819804
AO
12293 done
12294fi
12295
12296if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12297 for ncn_progname in objdump; do
81ecdfbb
RW
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12299$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12300 if test -x $with_build_time_tools/${ncn_progname}; then
12301 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12303$as_echo "yes" >&6; }
2429c060
PB
12304 break
12305 else
81ecdfbb
RW
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12307$as_echo "no" >&6; }
2429c060
PB
12308 fi
12309 done
12310fi
12311
12312if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
12313 for ncn_progname in objdump; do
12314 if test -n "$ncn_target_tool_prefix"; then
12315 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12316set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12318$as_echo_n "checking for $ac_word... " >&6; }
12319if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12320 $as_echo_n "(cached) " >&6
5ae72758
DJ
12321else
12322 if test -n "$OBJDUMP_FOR_TARGET"; then
12323 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12324else
c6b750e1
DJ
12325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326for as_dir in $PATH
12327do
12328 IFS=$as_save_IFS
12329 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12332 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12334 break 2
12335 fi
12336done
81ecdfbb
RW
12337 done
12338IFS=$as_save_IFS
c6b750e1 12339
5ae72758
DJ
12340fi
12341fi
c6b750e1 12342OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12343if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12345$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12346else
81ecdfbb
RW
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12348$as_echo "no" >&6; }
5ae72758
DJ
12349fi
12350
81ecdfbb 12351
2429c060
PB
12352 fi
12353 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
12354 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 12355set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12357$as_echo_n "checking for $ac_word... " >&6; }
12358if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
12359 $as_echo_n "(cached) " >&6
5ae72758
DJ
12360else
12361 if test -n "$OBJDUMP_FOR_TARGET"; then
12362 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
12363else
c6b750e1
DJ
12364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12365for as_dir in $PATH
12366do
12367 IFS=$as_save_IFS
12368 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12369 for ac_exec_ext in '' $ac_executable_extensions; do
12370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12371 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12373 break 2
12374 fi
12375done
81ecdfbb
RW
12376 done
12377IFS=$as_save_IFS
c6b750e1 12378
5ae72758
DJ
12379fi
12380fi
c6b750e1 12381OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 12382if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
12384$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 12385else
81ecdfbb
RW
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12387$as_echo "no" >&6; }
5ae72758 12388fi
c6b750e1 12389
81ecdfbb 12390
2429c060
PB
12391 fi
12392 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
12393 done
12394fi
c6b750e1 12395
5ae72758
DJ
12396if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
12397 set dummy objdump
12398 if test $build = $target ; then
12399 OBJDUMP_FOR_TARGET="$2"
12400 else
12401 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12402 fi
d3f5afc4
MS
12403else
12404 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
12405fi
12406
3a35eeb3
PB
12407else
12408 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
12409fi
12410
12411
12412
12413
12414if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
12415 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
12417$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12418 if test -x $with_build_time_tools/ranlib; then
12419 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
12420 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
12422$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 12423 else
81ecdfbb
RW
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12425$as_echo "no" >&6; }
3a35eeb3 12426 fi
2429c060
PB
12427 elif test $build != $host && test $have_gcc_for_target = yes; then
12428 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
12429 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
12430 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
12431 fi
12432fi
c6b750e1 12433if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12434 # Extract the first word of "ranlib", so it can be a program name with args.
12435set dummy ranlib; ac_word=$2
81ecdfbb
RW
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12437$as_echo_n "checking for $ac_word... " >&6; }
12438if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
12439 $as_echo_n "(cached) " >&6
2429c060 12440else
c6b750e1
DJ
12441 case $RANLIB_FOR_TARGET in
12442 [\\/]* | ?:[\\/]*)
2429c060
PB
12443 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
12444 ;;
2429c060 12445 *)
c6b750e1
DJ
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447for as_dir in $gcc_cv_tool_dirs
12448do
12449 IFS=$as_save_IFS
12450 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12451 for ac_exec_ext in '' $ac_executable_extensions; do
12452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12453 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12455 break 2
12456 fi
12457done
81ecdfbb
RW
12458 done
12459IFS=$as_save_IFS
c6b750e1 12460
2429c060
PB
12461 ;;
12462esac
12463fi
c6b750e1 12464RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 12465if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12467$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 12468else
81ecdfbb
RW
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12470$as_echo "no" >&6; }
2429c060
PB
12471fi
12472
81ecdfbb 12473
2429c060
PB
12474fi
12475if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
12476
12477
12478if test -n "$RANLIB_FOR_TARGET"; then
12479 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
12480elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12481 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12482fi
12483
12484if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12485 for ncn_progname in ranlib; do
12486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12487set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12489$as_echo_n "checking for $ac_word... " >&6; }
12490if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12491 $as_echo_n "(cached) " >&6
9a819804
AO
12492else
12493 if test -n "$RANLIB_FOR_TARGET"; then
12494 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
12495else
12496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12497for as_dir in $PATH
12498do
12499 IFS=$as_save_IFS
12500 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12501 for ac_exec_ext in '' $ac_executable_extensions; do
12502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12503 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12505 break 2
12506 fi
12507done
81ecdfbb
RW
12508 done
12509IFS=$as_save_IFS
9a819804
AO
12510
12511fi
12512fi
12513RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
12514if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12516$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 12517else
81ecdfbb
RW
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12519$as_echo "no" >&6; }
9a819804
AO
12520fi
12521
81ecdfbb 12522
9a819804
AO
12523 done
12524fi
12525
12526if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12527 for ncn_progname in ranlib; do
81ecdfbb
RW
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12529$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12530 if test -x $with_build_time_tools/${ncn_progname}; then
12531 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12533$as_echo "yes" >&6; }
2429c060
PB
12534 break
12535 else
81ecdfbb
RW
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537$as_echo "no" >&6; }
2429c060
PB
12538 fi
12539 done
12540fi
12541
12542if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
12543 for ncn_progname in ranlib; do
12544 if test -n "$ncn_target_tool_prefix"; then
12545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 12546set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12548$as_echo_n "checking for $ac_word... " >&6; }
12549if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12550 $as_echo_n "(cached) " >&6
859789af 12551else
55db4b87
PB
12552 if test -n "$RANLIB_FOR_TARGET"; then
12553 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12554else
c6b750e1
DJ
12555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12556for as_dir in $PATH
12557do
12558 IFS=$as_save_IFS
12559 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12560 for ac_exec_ext in '' $ac_executable_extensions; do
12561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12562 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12564 break 2
12565 fi
12566done
81ecdfbb
RW
12567 done
12568IFS=$as_save_IFS
c6b750e1 12569
859789af
AC
12570fi
12571fi
c6b750e1 12572RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 12573if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12575$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12576else
81ecdfbb
RW
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12578$as_echo "no" >&6; }
859789af
AC
12579fi
12580
81ecdfbb 12581
2429c060
PB
12582 fi
12583 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
12584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12585set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12587$as_echo_n "checking for $ac_word... " >&6; }
12588if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
12589 $as_echo_n "(cached) " >&6
859789af 12590else
05cbd757
PB
12591 if test -n "$RANLIB_FOR_TARGET"; then
12592 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 12593else
c6b750e1
DJ
12594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12595for as_dir in $PATH
12596do
12597 IFS=$as_save_IFS
12598 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12599 for ac_exec_ext in '' $ac_executable_extensions; do
12600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12601 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 12602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12603 break 2
12604 fi
12605done
81ecdfbb
RW
12606 done
12607IFS=$as_save_IFS
c6b750e1 12608
859789af
AC
12609fi
12610fi
c6b750e1 12611RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12612if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12614$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12615else
81ecdfbb
RW
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12617$as_echo "no" >&6; }
859789af 12618fi
c6b750e1 12619
81ecdfbb 12620
2429c060
PB
12621 fi
12622 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12623 done
12624fi
c6b750e1 12625
2429c060
PB
12626if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12627 set dummy ranlib
12628 if test $build = $target ; then
12629 RANLIB_FOR_TARGET="$2"
12630 else
12631 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12632 fi
d3f5afc4
MS
12633else
12634 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12635fi
05cbd757 12636
3a35eeb3
PB
12637else
12638 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12639fi
12640
2429c060
PB
12641
12642
12643
12644if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12645 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12647$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12648 if test -x $with_build_time_tools/strip; then
12649 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12650 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12652$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12653 else
81ecdfbb
RW
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655$as_echo "no" >&6; }
3a35eeb3 12656 fi
2429c060
PB
12657 elif test $build != $host && test $have_gcc_for_target = yes; then
12658 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12659 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12660 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12661 fi
12662fi
c6b750e1 12663if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12664 # Extract the first word of "strip", so it can be a program name with args.
12665set dummy strip; ac_word=$2
81ecdfbb
RW
12666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12667$as_echo_n "checking for $ac_word... " >&6; }
12668if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
2429c060 12670else
c6b750e1
DJ
12671 case $STRIP_FOR_TARGET in
12672 [\\/]* | ?:[\\/]*)
2429c060
PB
12673 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12674 ;;
2429c060 12675 *)
c6b750e1
DJ
12676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677for as_dir in $gcc_cv_tool_dirs
12678do
12679 IFS=$as_save_IFS
12680 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12681 for ac_exec_ext in '' $ac_executable_extensions; do
12682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12683 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12685 break 2
12686 fi
12687done
81ecdfbb
RW
12688 done
12689IFS=$as_save_IFS
c6b750e1 12690
2429c060
PB
12691 ;;
12692esac
12693fi
c6b750e1 12694STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12695if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12697$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12698else
81ecdfbb
RW
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700$as_echo "no" >&6; }
2429c060
PB
12701fi
12702
81ecdfbb 12703
2429c060
PB
12704fi
12705if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12706
12707
12708if test -n "$STRIP_FOR_TARGET"; then
12709 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12710elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12711 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12712fi
12713
12714if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12715 for ncn_progname in strip; do
12716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12717set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12719$as_echo_n "checking for $ac_word... " >&6; }
12720if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12721 $as_echo_n "(cached) " >&6
9a819804
AO
12722else
12723 if test -n "$STRIP_FOR_TARGET"; then
12724 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12725else
12726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727for as_dir in $PATH
12728do
12729 IFS=$as_save_IFS
12730 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12731 for ac_exec_ext in '' $ac_executable_extensions; do
12732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12733 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12735 break 2
12736 fi
12737done
81ecdfbb
RW
12738 done
12739IFS=$as_save_IFS
9a819804
AO
12740
12741fi
12742fi
12743STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12744if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12746$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12747else
81ecdfbb
RW
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12749$as_echo "no" >&6; }
9a819804
AO
12750fi
12751
81ecdfbb 12752
9a819804
AO
12753 done
12754fi
12755
12756if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12757 for ncn_progname in strip; do
81ecdfbb
RW
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12759$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12760 if test -x $with_build_time_tools/${ncn_progname}; then
12761 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12763$as_echo "yes" >&6; }
2429c060
PB
12764 break
12765 else
81ecdfbb
RW
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12767$as_echo "no" >&6; }
2429c060
PB
12768 fi
12769 done
12770fi
12771
12772if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12773 for ncn_progname in strip; do
12774 if test -n "$ncn_target_tool_prefix"; then
12775 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12776set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778$as_echo_n "checking for $ac_word... " >&6; }
12779if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
7e0f7140
GK
12781else
12782 if test -n "$STRIP_FOR_TARGET"; then
12783 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12784else
12785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786for as_dir in $PATH
12787do
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12792 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12794 break 2
12795 fi
12796done
81ecdfbb
RW
12797 done
12798IFS=$as_save_IFS
c6b750e1 12799
7e0f7140
GK
12800fi
12801fi
c6b750e1 12802STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12803if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12805$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12806else
81ecdfbb
RW
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808$as_echo "no" >&6; }
7e0f7140
GK
12809fi
12810
81ecdfbb 12811
2429c060
PB
12812 fi
12813 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12815set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817$as_echo_n "checking for $ac_word... " >&6; }
12818if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12819 $as_echo_n "(cached) " >&6
7e0f7140
GK
12820else
12821 if test -n "$STRIP_FOR_TARGET"; then
12822 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12823else
c6b750e1
DJ
12824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825for as_dir in $PATH
12826do
12827 IFS=$as_save_IFS
12828 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12829 for ac_exec_ext in '' $ac_executable_extensions; do
12830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12831 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12833 break 2
12834 fi
12835done
81ecdfbb
RW
12836 done
12837IFS=$as_save_IFS
c6b750e1 12838
7e0f7140
GK
12839fi
12840fi
c6b750e1 12841STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12842if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12844$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12845else
81ecdfbb
RW
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847$as_echo "no" >&6; }
7e0f7140 12848fi
c6b750e1 12849
81ecdfbb 12850
2429c060
PB
12851 fi
12852 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12853 done
12854fi
c6b750e1 12855
7e0f7140
GK
12856if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12857 set dummy strip
12858 if test $build = $target ; then
12859 STRIP_FOR_TARGET="$2"
12860 else
12861 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12862 fi
d3f5afc4
MS
12863else
12864 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12865fi
12866
3a35eeb3
PB
12867else
12868 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12869fi
12870
12871
12872
12873
12874if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12875 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12877$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12878 if test -x $with_build_time_tools/windres; then
12879 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12880 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12882$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12883 else
81ecdfbb
RW
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885$as_echo "no" >&6; }
3a35eeb3 12886 fi
2429c060
PB
12887 elif test $build != $host && test $have_gcc_for_target = yes; then
12888 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12889 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12890 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12891 fi
12892fi
c6b750e1 12893if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12894 # Extract the first word of "windres", so it can be a program name with args.
12895set dummy windres; ac_word=$2
81ecdfbb
RW
12896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12897$as_echo_n "checking for $ac_word... " >&6; }
12898if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12899 $as_echo_n "(cached) " >&6
2429c060 12900else
c6b750e1
DJ
12901 case $WINDRES_FOR_TARGET in
12902 [\\/]* | ?:[\\/]*)
2429c060
PB
12903 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12904 ;;
2429c060 12905 *)
c6b750e1
DJ
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907for as_dir in $gcc_cv_tool_dirs
12908do
12909 IFS=$as_save_IFS
12910 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12913 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12915 break 2
12916 fi
12917done
81ecdfbb
RW
12918 done
12919IFS=$as_save_IFS
c6b750e1 12920
2429c060
PB
12921 ;;
12922esac
12923fi
c6b750e1 12924WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12925if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12927$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12928else
81ecdfbb
RW
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12930$as_echo "no" >&6; }
2429c060
PB
12931fi
12932
81ecdfbb 12933
2429c060
PB
12934fi
12935if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12936
12937
12938if test -n "$WINDRES_FOR_TARGET"; then
12939 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12940elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12941 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12942fi
12943
12944if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12945 for ncn_progname in windres; do
12946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12947set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12949$as_echo_n "checking for $ac_word... " >&6; }
12950if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12951 $as_echo_n "(cached) " >&6
9a819804
AO
12952else
12953 if test -n "$WINDRES_FOR_TARGET"; then
12954 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12955else
12956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12957for as_dir in $PATH
12958do
12959 IFS=$as_save_IFS
12960 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12961 for ac_exec_ext in '' $ac_executable_extensions; do
12962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12963 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12965 break 2
12966 fi
12967done
81ecdfbb
RW
12968 done
12969IFS=$as_save_IFS
9a819804
AO
12970
12971fi
12972fi
12973WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12974if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12976$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12977else
81ecdfbb
RW
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979$as_echo "no" >&6; }
9a819804
AO
12980fi
12981
81ecdfbb 12982
9a819804
AO
12983 done
12984fi
12985
12986if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12987 for ncn_progname in windres; do
81ecdfbb
RW
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12989$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12990 if test -x $with_build_time_tools/${ncn_progname}; then
12991 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12993$as_echo "yes" >&6; }
2429c060
PB
12994 break
12995 else
81ecdfbb
RW
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12997$as_echo "no" >&6; }
2429c060
PB
12998 fi
12999 done
13000fi
13001
13002if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
13003 for ncn_progname in windres; do
13004 if test -n "$ncn_target_tool_prefix"; then
13005 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 13006set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13008$as_echo_n "checking for $ac_word... " >&6; }
13009if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
859789af 13011else
55db4b87
PB
13012 if test -n "$WINDRES_FOR_TARGET"; then
13013 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13014else
c6b750e1
DJ
13015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13016for as_dir in $PATH
13017do
13018 IFS=$as_save_IFS
13019 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13020 for ac_exec_ext in '' $ac_executable_extensions; do
13021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13022 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13024 break 2
13025 fi
13026done
81ecdfbb
RW
13027 done
13028IFS=$as_save_IFS
c6b750e1 13029
859789af
AC
13030fi
13031fi
c6b750e1 13032WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 13033if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13035$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13036else
81ecdfbb
RW
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13038$as_echo "no" >&6; }
859789af
AC
13039fi
13040
81ecdfbb 13041
2429c060
PB
13042 fi
13043 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
13044 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 13045set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13047$as_echo_n "checking for $ac_word... " >&6; }
13048if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
13049 $as_echo_n "(cached) " >&6
859789af 13050else
05cbd757
PB
13051 if test -n "$WINDRES_FOR_TARGET"; then
13052 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 13053else
c6b750e1
DJ
13054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13055for as_dir in $PATH
13056do
13057 IFS=$as_save_IFS
13058 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13059 for ac_exec_ext in '' $ac_executable_extensions; do
13060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 13061 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 13062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
13063 break 2
13064 fi
13065done
81ecdfbb
RW
13066 done
13067IFS=$as_save_IFS
c6b750e1 13068
859789af
AC
13069fi
13070fi
c6b750e1 13071WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 13072if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
13074$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 13075else
81ecdfbb
RW
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13077$as_echo "no" >&6; }
859789af 13078fi
c6b750e1 13079
81ecdfbb 13080
2429c060
PB
13081 fi
13082 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
13083 done
13084fi
c6b750e1 13085
05cbd757
PB
13086if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
13087 set dummy windres
13088 if test $build = $target ; then
13089 WINDRES_FOR_TARGET="$2"
859789af 13090 else
05cbd757 13091 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 13092 fi
d3f5afc4
MS
13093else
13094 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
13095fi
13096
3a35eeb3
PB
13097else
13098 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
13099fi
13100
852e5f18 13101
0c24b341
NC
13102
13103
13104if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13105 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
13107$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
13108 if test -x $with_build_time_tools/windmc; then
13109 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
13110 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
13112$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 13113 else
81ecdfbb
RW
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115$as_echo "no" >&6; }
0c24b341
NC
13116 fi
13117 elif test $build != $host && test $have_gcc_for_target = yes; then
13118 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
13119 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
13120 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13121 fi
13122fi
13123if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13124 # Extract the first word of "windmc", so it can be a program name with args.
13125set dummy windmc; ac_word=$2
81ecdfbb
RW
13126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13127$as_echo_n "checking for $ac_word... " >&6; }
13128if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
13129 $as_echo_n "(cached) " >&6
0c24b341
NC
13130else
13131 case $WINDMC_FOR_TARGET in
13132 [\\/]* | ?:[\\/]*)
13133 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
13134 ;;
13135 *)
13136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13137for as_dir in $gcc_cv_tool_dirs
13138do
13139 IFS=$as_save_IFS
13140 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13141 for ac_exec_ext in '' $ac_executable_extensions; do
13142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13143 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13145 break 2
13146 fi
13147done
81ecdfbb
RW
13148 done
13149IFS=$as_save_IFS
0c24b341
NC
13150
13151 ;;
13152esac
13153fi
13154WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 13155if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13157$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13158else
81ecdfbb
RW
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160$as_echo "no" >&6; }
0c24b341
NC
13161fi
13162
81ecdfbb 13163
0c24b341
NC
13164fi
13165if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
13166
13167
13168if test -n "$WINDMC_FOR_TARGET"; then
13169 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
13170elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13171 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13172fi
13173
13174if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13175 for ncn_progname in windmc; do
13176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13177set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13179$as_echo_n "checking for $ac_word... " >&6; }
13180if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13181 $as_echo_n "(cached) " >&6
0c24b341
NC
13182else
13183 if test -n "$WINDMC_FOR_TARGET"; then
13184 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13185else
13186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13187for as_dir in $PATH
13188do
13189 IFS=$as_save_IFS
13190 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13191 for ac_exec_ext in '' $ac_executable_extensions; do
13192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13193 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13195 break 2
13196 fi
13197done
81ecdfbb
RW
13198 done
13199IFS=$as_save_IFS
0c24b341
NC
13200
13201fi
13202fi
13203WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13204if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13206$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13207else
81ecdfbb
RW
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13209$as_echo "no" >&6; }
0c24b341
NC
13210fi
13211
81ecdfbb 13212
0c24b341
NC
13213 done
13214fi
13215
13216if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13217 for ncn_progname in windmc; do
81ecdfbb
RW
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13219$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
13220 if test -x $with_build_time_tools/${ncn_progname}; then
13221 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13223$as_echo "yes" >&6; }
0c24b341
NC
13224 break
13225 else
81ecdfbb
RW
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227$as_echo "no" >&6; }
0c24b341
NC
13228 fi
13229 done
13230fi
13231
13232if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
13233 for ncn_progname in windmc; do
13234 if test -n "$ncn_target_tool_prefix"; then
13235 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13236set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
13237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13238$as_echo_n "checking for $ac_word... " >&6; }
13239if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13240 $as_echo_n "(cached) " >&6
0c24b341
NC
13241else
13242 if test -n "$WINDMC_FOR_TARGET"; then
13243 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13244else
13245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246for as_dir in $PATH
13247do
13248 IFS=$as_save_IFS
13249 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13252 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 13253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13254 break 2
13255 fi
13256done
81ecdfbb
RW
13257 done
13258IFS=$as_save_IFS
0c24b341
NC
13259
13260fi
13261fi
13262WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13263if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13265$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13266else
81ecdfbb
RW
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268$as_echo "no" >&6; }
0c24b341
NC
13269fi
13270
81ecdfbb 13271
0c24b341
NC
13272 fi
13273 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
13274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13275set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
13276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13277$as_echo_n "checking for $ac_word... " >&6; }
13278if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
13279 $as_echo_n "(cached) " >&6
0c24b341
NC
13280else
13281 if test -n "$WINDMC_FOR_TARGET"; then
13282 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
13283else
13284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH
13286do
13287 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
13289 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 13291 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
13293 break 2
13294 fi
13295done
81ecdfbb
RW
13296 done
13297IFS=$as_save_IFS
0c24b341
NC
13298
13299fi
13300fi
13301WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
13302if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
13304$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 13305else
81ecdfbb
RW
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307$as_echo "no" >&6; }
0c24b341
NC
13308fi
13309
81ecdfbb 13310
0c24b341
NC
13311 fi
13312 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
13313 done
13314fi
13315
13316if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
13317 set dummy windmc
13318 if test $build = $target ; then
13319 WINDMC_FOR_TARGET="$2"
13320 else
13321 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13322 fi
13323else
13324 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
13325fi
13326
13327else
13328 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
13329fi
13330
13331
be01d343
PB
13332RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
13333
81ecdfbb
RW
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
13335$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 13336if test "x${build}" != "x${host}" ; then
2429c060
PB
13337 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13338 # We already found the complete path
b8025f34 13339 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13341$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13342 else
13343 # Canadian cross, just use what we found
81ecdfbb
RW
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13345$as_echo "pre-installed" >&6; }
2429c060 13346 fi
be01d343
PB
13347else
13348 ok=yes
13349 case " ${configdirs} " in
13350 *" binutils "*) ;;
13351 *) ok=no ;;
13352 esac
c6b750e1 13353
be01d343
PB
13354 if test $ok = yes; then
13355 # An in-tree tool is available and we can use it
13356 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13358$as_echo "just compiled" >&6; }
2429c060
PB
13359 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
13360 # We already found the complete path
b8025f34 13361 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
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; }
be01d343
PB
13364 elif test "x$target" = "x$host"; then
13365 # We can use an host tool
13366 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13368$as_echo "host tool" >&6; }
be01d343
PB
13369 else
13370 # We need a cross tool
81ecdfbb
RW
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13372$as_echo "pre-installed" >&6; }
be01d343
PB
13373 fi
13374fi
4b900473 13375
81ecdfbb
RW
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
13377$as_echo_n "checking where to find the target as... " >&6; }
be01d343 13378if test "x${build}" != "x${host}" ; then
2429c060
PB
13379 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13380 # We already found the complete path
b8025f34 13381 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13383$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13384 else
13385 # Canadian cross, just use what we found
81ecdfbb
RW
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13387$as_echo "pre-installed" >&6; }
2429c060 13388 fi
be01d343
PB
13389else
13390 ok=yes
13391 case " ${configdirs} " in
13392 *" gas "*) ;;
13393 *) ok=no ;;
13394 esac
c6b750e1 13395
be01d343
PB
13396 if test $ok = yes; then
13397 # An in-tree tool is available and we can use it
13398 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13400$as_echo "just compiled" >&6; }
2429c060
PB
13401 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
13402 # We already found the complete path
b8025f34 13403 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
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; }
be01d343
PB
13406 elif test "x$target" = "x$host"; then
13407 # We can use an host tool
13408 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13410$as_echo "host tool" >&6; }
be01d343
PB
13411 else
13412 # We need a cross tool
81ecdfbb
RW
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13414$as_echo "pre-installed" >&6; }
be01d343
PB
13415 fi
13416fi
4b900473 13417
81ecdfbb
RW
13418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
13419$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 13420if test "x${build}" != "x${host}" ; then
2429c060
PB
13421 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13422 # We already found the complete path
b8025f34 13423 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13425$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13426 else
13427 # Canadian cross, just use what we found
81ecdfbb
RW
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13429$as_echo "pre-installed" >&6; }
2429c060 13430 fi
be01d343
PB
13431else
13432 ok=yes
13433 case " ${configdirs} " in
13434 *" gcc "*) ;;
13435 *) ok=no ;;
13436 esac
c6b750e1 13437
be01d343
PB
13438 if test $ok = yes; then
13439 # An in-tree tool is available and we can use it
13440 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13442$as_echo "just compiled" >&6; }
2429c060
PB
13443 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
13444 # We already found the complete path
b8025f34 13445 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
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; }
be01d343
PB
13448 elif test "x$target" = "x$host"; then
13449 # We can use an host tool
13450 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13452$as_echo "host tool" >&6; }
be01d343
PB
13453 else
13454 # We need a cross tool
81ecdfbb
RW
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13456$as_echo "pre-installed" >&6; }
be01d343
PB
13457 fi
13458fi
4b900473 13459
81ecdfbb
RW
13460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
13461$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 13462if test "x${build}" != "x${host}" ; then
2429c060
PB
13463 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13464 # We already found the complete path
b8025f34 13465 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13467$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13468 else
13469 # Canadian cross, just use what we found
81ecdfbb
RW
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13471$as_echo "pre-installed" >&6; }
2429c060 13472 fi
be01d343
PB
13473else
13474 ok=yes
13475 case " ${configdirs} " in
13476 *" gcc "*) ;;
13477 *) ok=no ;;
13478 esac
13479 case ,${enable_languages}, in
13480 *,c++,*) ;;
13481 *) ok=no ;;
13482 esac
13483 if test $ok = yes; then
13484 # An in-tree tool is available and we can use it
87cda2cf 13485 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'
81ecdfbb
RW
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13487$as_echo "just compiled" >&6; }
2429c060
PB
13488 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
13489 # We already found the complete path
b8025f34 13490 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
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; }
be01d343
PB
13493 elif test "x$target" = "x$host"; then
13494 # We can use an host tool
13495 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13497$as_echo "host tool" >&6; }
be01d343
PB
13498 else
13499 # We need a cross tool
81ecdfbb
RW
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13501$as_echo "pre-installed" >&6; }
be01d343
PB
13502 fi
13503fi
4b900473 13504
81ecdfbb
RW
13505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
13506$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 13507if test "x${build}" != "x${host}" ; then
2429c060
PB
13508 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13509 # We already found the complete path
b8025f34 13510 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13512$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13513 else
13514 # Canadian cross, just use what we found
81ecdfbb
RW
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13516$as_echo "pre-installed" >&6; }
2429c060 13517 fi
be01d343
PB
13518else
13519 ok=yes
13520 case " ${configdirs} " in
13521 *" gcc "*) ;;
13522 *) ok=no ;;
13523 esac
13524 case ,${enable_languages}, in
13525 *,c++,*) ;;
13526 *) ok=no ;;
13527 esac
13528 if test $ok = yes; then
13529 # An in-tree tool is available and we can use it
13530 RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13532$as_echo "just compiled" >&6; }
2429c060
PB
13533 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
13534 # We already found the complete path
b8025f34 13535 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13537$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13538 elif test "x$target" = "x$host"; then
13539 # We can use an host tool
13540 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13542$as_echo "host tool" >&6; }
be01d343
PB
13543 else
13544 # We need a cross tool
81ecdfbb
RW
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13546$as_echo "pre-installed" >&6; }
be01d343
PB
13547 fi
13548fi
4b900473 13549
81ecdfbb
RW
13550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
13551$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 13552if test "x${build}" != "x${host}" ; then
2429c060
PB
13553 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13554 # We already found the complete path
b8025f34 13555 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13557$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13558 else
13559 # Canadian cross, just use what we found
81ecdfbb
RW
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13561$as_echo "pre-installed" >&6; }
2429c060 13562 fi
be01d343
PB
13563else
13564 ok=yes
13565 case " ${configdirs} " in
13566 *" binutils "*) ;;
13567 *) ok=no ;;
13568 esac
c6b750e1 13569
be01d343
PB
13570 if test $ok = yes; then
13571 # An in-tree tool is available and we can use it
13572 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13574$as_echo "just compiled" >&6; }
2429c060
PB
13575 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
13576 # We already found the complete path
b8025f34 13577 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13579$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13580 elif test "x$target" = "x$host"; then
13581 # We can use an host tool
13582 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13584$as_echo "host tool" >&6; }
be01d343
PB
13585 else
13586 # We need a cross tool
81ecdfbb
RW
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13588$as_echo "pre-installed" >&6; }
be01d343
PB
13589 fi
13590fi
4b900473 13591
81ecdfbb
RW
13592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
13593$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 13594if test "x${build}" != "x${host}" ; then
2429c060
PB
13595 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13596 # We already found the complete path
b8025f34 13597 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13599$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13600 else
13601 # Canadian cross, just use what we found
81ecdfbb
RW
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13603$as_echo "pre-installed" >&6; }
2429c060 13604 fi
be01d343
PB
13605else
13606 ok=yes
13607 case " ${configdirs} " in
13608 *" gcc "*) ;;
13609 *) ok=no ;;
13610 esac
c6b750e1 13611
be01d343
PB
13612 if test $ok = yes; then
13613 # An in-tree tool is available and we can use it
13614 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13616$as_echo "just compiled" >&6; }
2429c060
PB
13617 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13618 # We already found the complete path
b8025f34 13619 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13621$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13622 elif test "x$target" = "x$host"; then
13623 # We can use an host tool
13624 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13626$as_echo "host tool" >&6; }
be01d343
PB
13627 else
13628 # We need a cross tool
81ecdfbb
RW
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13630$as_echo "pre-installed" >&6; }
be01d343
PB
13631 fi
13632fi
4b900473 13633
81ecdfbb
RW
13634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13635$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13636if test "x${build}" != "x${host}" ; then
2429c060
PB
13637 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13638 # We already found the complete path
b8025f34 13639 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13641$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13642 else
13643 # Canadian cross, just use what we found
81ecdfbb
RW
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13645$as_echo "pre-installed" >&6; }
2429c060 13646 fi
be01d343
PB
13647else
13648 ok=yes
13649 case " ${configdirs} " in
13650 *" gcc "*) ;;
13651 *) ok=no ;;
13652 esac
13653 case ,${enable_languages}, in
13654 *,java,*) ;;
13655 *) ok=no ;;
13656 esac
13657 if test $ok = yes; then
13658 # An in-tree tool is available and we can use it
13659 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13661$as_echo "just compiled" >&6; }
2429c060
PB
13662 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13663 # We already found the complete path
b8025f34 13664 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13666$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13667 elif test "x$target" = "x$host"; then
13668 # We can use an host tool
13669 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13671$as_echo "host tool" >&6; }
be01d343
PB
13672 else
13673 # We need a cross tool
81ecdfbb
RW
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13675$as_echo "pre-installed" >&6; }
be01d343
PB
13676 fi
13677fi
4b900473 13678
81ecdfbb
RW
13679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13680$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13681if test "x${build}" != "x${host}" ; then
2429c060
PB
13682 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13683 # We already found the complete path
b8025f34 13684 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13686$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13687 else
13688 # Canadian cross, just use what we found
81ecdfbb
RW
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13690$as_echo "pre-installed" >&6; }
2429c060 13691 fi
be01d343
PB
13692else
13693 ok=yes
13694 case " ${configdirs} " in
13695 *" gcc "*) ;;
13696 *) ok=no ;;
13697 esac
13698 case ,${enable_languages}, in
13699 *,fortran,*) ;;
13700 *) ok=no ;;
13701 esac
13702 if test $ok = yes; then
13703 # An in-tree tool is available and we can use it
13704 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13706$as_echo "just compiled" >&6; }
2429c060
PB
13707 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13708 # We already found the complete path
b8025f34 13709 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13711$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13712 elif test "x$target" = "x$host"; then
13713 # We can use an host tool
13714 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13716$as_echo "host tool" >&6; }
be01d343
PB
13717 else
13718 # We need a cross tool
81ecdfbb
RW
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13720$as_echo "pre-installed" >&6; }
be01d343
PB
13721 fi
13722fi
4b900473 13723
e552509b
ILT
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
13725$as_echo_n "checking where to find the target gccgo... " >&6; }
13726if test "x${build}" != "x${host}" ; then
13727 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13728 # We already found the complete path
13729 ac_dir=`dirname $GOC_FOR_TARGET`
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13731$as_echo "pre-installed in $ac_dir" >&6; }
13732 else
13733 # Canadian cross, just use what we found
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13735$as_echo "pre-installed" >&6; }
13736 fi
13737else
13738 ok=yes
13739 case " ${configdirs} " in
13740 *" gcc "*) ;;
13741 *) ok=no ;;
13742 esac
13743 case ,${enable_languages}, in
13744 *,go,*) ;;
13745 *) ok=no ;;
13746 esac
13747 if test $ok = yes; then
13748 # An in-tree tool is available and we can use it
13749 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13751$as_echo "just compiled" >&6; }
13752 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
13753 # We already found the complete path
13754 ac_dir=`dirname $GOC_FOR_TARGET`
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13756$as_echo "pre-installed in $ac_dir" >&6; }
13757 elif test "x$target" = "x$host"; then
13758 # We can use an host tool
13759 GOC_FOR_TARGET='$(GOC)'
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13761$as_echo "host tool" >&6; }
13762 else
13763 # We need a cross tool
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13765$as_echo "pre-installed" >&6; }
13766 fi
13767fi
13768
81ecdfbb
RW
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13770$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13771if test "x${build}" != "x${host}" ; then
2429c060
PB
13772 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13773 # We already found the complete path
b8025f34 13774 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13776$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13777 else
13778 # Canadian cross, just use what we found
81ecdfbb
RW
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13780$as_echo "pre-installed" >&6; }
2429c060 13781 fi
be01d343
PB
13782else
13783 ok=yes
13784 case " ${configdirs} " in
13785 *" ld "*) ;;
13786 *) ok=no ;;
13787 esac
c6b750e1 13788
be01d343
PB
13789 if test $ok = yes; then
13790 # An in-tree tool is available and we can use it
13791 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13793$as_echo "just compiled" >&6; }
2429c060
PB
13794 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13795 # We already found the complete path
b8025f34 13796 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13798$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13799 elif test "x$target" = "x$host"; then
13800 # We can use an host tool
13801 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13803$as_echo "host tool" >&6; }
be01d343
PB
13804 else
13805 # We need a cross tool
81ecdfbb
RW
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13807$as_echo "pre-installed" >&6; }
be01d343
PB
13808 fi
13809fi
4b900473 13810
81ecdfbb
RW
13811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13812$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13813if test "x${build}" != "x${host}" ; then
2429c060
PB
13814 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13815 # We already found the complete path
b8025f34 13816 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13818$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13819 else
13820 # Canadian cross, just use what we found
81ecdfbb
RW
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13822$as_echo "pre-installed" >&6; }
2429c060 13823 fi
be01d343 13824else
2429c060
PB
13825 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13826 # We already found the complete path
b8025f34 13827 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13829$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13830 elif test "x$target" = "x$host"; then
be01d343
PB
13831 # We can use an host tool
13832 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13834$as_echo "host tool" >&6; }
be01d343
PB
13835 else
13836 # We need a cross tool
81ecdfbb
RW
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13838$as_echo "pre-installed" >&6; }
be01d343
PB
13839 fi
13840fi
4b900473 13841
81ecdfbb
RW
13842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13843$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13844if test "x${build}" != "x${host}" ; then
2429c060
PB
13845 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13846 # We already found the complete path
b8025f34 13847 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13849$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13850 else
13851 # Canadian cross, just use what we found
81ecdfbb
RW
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13853$as_echo "pre-installed" >&6; }
2429c060 13854 fi
be01d343
PB
13855else
13856 ok=yes
13857 case " ${configdirs} " in
13858 *" binutils "*) ;;
13859 *) ok=no ;;
13860 esac
c6b750e1 13861
be01d343
PB
13862 if test $ok = yes; then
13863 # An in-tree tool is available and we can use it
13864 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13866$as_echo "just compiled" >&6; }
2429c060
PB
13867 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13868 # We already found the complete path
b8025f34 13869 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13871$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13872 elif test "x$target" = "x$host"; then
13873 # We can use an host tool
13874 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13876$as_echo "host tool" >&6; }
be01d343
PB
13877 else
13878 # We need a cross tool
81ecdfbb
RW
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13880$as_echo "pre-installed" >&6; }
be01d343
PB
13881 fi
13882fi
4b900473 13883
81ecdfbb
RW
13884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13885$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13886if test "x${build}" != "x${host}" ; then
2429c060
PB
13887 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13888 # We already found the complete path
b8025f34 13889 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13891$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13892 else
13893 # Canadian cross, just use what we found
81ecdfbb
RW
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13895$as_echo "pre-installed" >&6; }
2429c060 13896 fi
be01d343
PB
13897else
13898 ok=yes
13899 case " ${configdirs} " in
13900 *" binutils "*) ;;
13901 *) ok=no ;;
13902 esac
c6b750e1 13903
be01d343
PB
13904 if test $ok = yes; then
13905 # An in-tree tool is available and we can use it
13906 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13908$as_echo "just compiled" >&6; }
2429c060
PB
13909 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13910 # We already found the complete path
b8025f34 13911 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13913$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13914 elif test "x$target" = "x$host"; then
13915 # We can use an host tool
13916 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13918$as_echo "host tool" >&6; }
be01d343
PB
13919 else
13920 # We need a cross tool
81ecdfbb
RW
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13922$as_echo "pre-installed" >&6; }
be01d343
PB
13923 fi
13924fi
4b900473 13925
81ecdfbb
RW
13926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13927$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13928if test "x${build}" != "x${host}" ; then
2429c060
PB
13929 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13930 # We already found the complete path
b8025f34 13931 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13933$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13934 else
13935 # Canadian cross, just use what we found
81ecdfbb
RW
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13937$as_echo "pre-installed" >&6; }
2429c060 13938 fi
be01d343
PB
13939else
13940 ok=yes
13941 case " ${configdirs} " in
13942 *" binutils "*) ;;
13943 *) ok=no ;;
13944 esac
c6b750e1 13945
be01d343
PB
13946 if test $ok = yes; then
13947 # An in-tree tool is available and we can use it
13948 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13950$as_echo "just compiled" >&6; }
2429c060
PB
13951 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13952 # We already found the complete path
b8025f34 13953 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13955$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13956 elif test "x$target" = "x$host"; then
13957 # We can use an host tool
13958 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13960$as_echo "host tool" >&6; }
be01d343
PB
13961 else
13962 # We need a cross tool
81ecdfbb
RW
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13964$as_echo "pre-installed" >&6; }
be01d343
PB
13965 fi
13966fi
4b900473 13967
81ecdfbb
RW
13968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13969$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13970if test "x${build}" != "x${host}" ; then
2429c060
PB
13971 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13972 # We already found the complete path
b8025f34 13973 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13975$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13976 else
13977 # Canadian cross, just use what we found
81ecdfbb
RW
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13979$as_echo "pre-installed" >&6; }
2429c060 13980 fi
be01d343
PB
13981else
13982 ok=yes
13983 case " ${configdirs} " in
13984 *" binutils "*) ;;
13985 *) ok=no ;;
13986 esac
c6b750e1 13987
be01d343
PB
13988 if test $ok = yes; then
13989 # An in-tree tool is available and we can use it
9b980aa1 13990 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
81ecdfbb
RW
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13992$as_echo "just compiled" >&6; }
2429c060
PB
13993 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13994 # We already found the complete path
b8025f34 13995 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13997$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13998 elif test "x$target" = "x$host"; then
13999 # We can use an host tool
14000 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14002$as_echo "host tool" >&6; }
be01d343
PB
14003 else
14004 # We need a cross tool
81ecdfbb
RW
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14006$as_echo "pre-installed" >&6; }
be01d343
PB
14007 fi
14008fi
4b900473 14009
81ecdfbb
RW
14010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
14011$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 14012if test "x${build}" != "x${host}" ; then
2429c060
PB
14013 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14014 # We already found the complete path
b8025f34 14015 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14017$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
14018 else
14019 # Canadian cross, just use what we found
81ecdfbb
RW
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14021$as_echo "pre-installed" >&6; }
2429c060 14022 fi
be01d343
PB
14023else
14024 ok=yes
14025 case " ${configdirs} " in
14026 *" binutils "*) ;;
14027 *) ok=no ;;
14028 esac
c6b750e1 14029
be01d343
PB
14030 if test $ok = yes; then
14031 # An in-tree tool is available and we can use it
14032 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14034$as_echo "just compiled" >&6; }
2429c060
PB
14035 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
14036 # We already found the complete path
b8025f34 14037 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14039$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
14040 elif test "x$target" = "x$host"; then
14041 # We can use an host tool
14042 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14044$as_echo "host tool" >&6; }
be01d343
PB
14045 else
14046 # We need a cross tool
81ecdfbb
RW
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14048$as_echo "pre-installed" >&6; }
be01d343 14049 fi
a0da8069 14050fi
54752a6b 14051
81ecdfbb
RW
14052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
14053$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
14054if test "x${build}" != "x${host}" ; then
14055 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14056 # We already found the complete path
14057 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14059$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14060 else
14061 # Canadian cross, just use what we found
81ecdfbb
RW
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14063$as_echo "pre-installed" >&6; }
0c24b341
NC
14064 fi
14065else
14066 ok=yes
14067 case " ${configdirs} " in
14068 *" binutils "*) ;;
14069 *) ok=no ;;
14070 esac
14071
14072 if test $ok = yes; then
14073 # An in-tree tool is available and we can use it
14074 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
14076$as_echo "just compiled" >&6; }
0c24b341
NC
14077 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
14078 # We already found the complete path
14079 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
14081$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
14082 elif test "x$target" = "x$host"; then
14083 # We can use an host tool
14084 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
14086$as_echo "host tool" >&6; }
0c24b341
NC
14087 else
14088 # We need a cross tool
81ecdfbb
RW
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
14090$as_echo "pre-installed" >&6; }
0c24b341
NC
14091 fi
14092fi
14093
54752a6b
NN
14094
14095
be01d343 14096
4b900473 14097
a0da8069
NN
14098# Certain tools may need extra flags.
14099AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
14100RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
14101NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
14102
be01d343
PB
14103# When building target libraries, except in a Canadian cross, we use
14104# the same toolchain as the compiler we just built.
14105COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
14106COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
14107COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
14108if test $host = $build; then
14109 case " $configdirs " in
14110 *" gcc "*)
14111 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
14112 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
14113 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
14114 ;;
14115 esac
14116fi
14117
14118
14119
14120
14121
81ecdfbb
RW
14122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14123$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14124# Check whether --enable-maintainer-mode was given.
14125if test "${enable_maintainer_mode+set}" = set; then :
14126 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
14127else
14128 USE_MAINTAINER_MODE=no
81ecdfbb
RW
14129fi
14130
14131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14132$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
14133
14134
14135if test "$USE_MAINTAINER_MODE" = yes; then
14136 MAINTAINER_MODE_TRUE=
14137 MAINTAINER_MODE_FALSE='#'
14138else
14139 MAINTAINER_MODE_TRUE='#'
14140 MAINTAINER_MODE_FALSE=
c6b750e1 14141fi
3d5e36ae
AO
14142MAINT=$MAINTAINER_MODE_TRUE
14143
1d39f329
NN
14144# ---------------------
14145# GCC bootstrap support
14146# ---------------------
14147
14148# Stage specific cflags for build.
14149stage1_cflags="-g"
14150case $build in
14151 vax-*-*)
14152 case ${GCC} in
14153 yes) stage1_cflags="-g -Wa,-J" ;;
14154 *) stage1_cflags="-g -J" ;;
14155 esac ;;
1d39f329
NN
14156esac
14157
1d89b610 14158# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 14159if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
14160 saved_CFLAGS="$CFLAGS"
14161
14162 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
14163 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
14165$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
14166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
14167/* end confdefs.h. */
14168
2038f525
PB
14169#if (__GNUC__ < 3) \
14170 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
14171 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
14172#error http://gcc.gnu.org/PR29382
14173#endif
14174
c6b750e1
DJ
14175int
14176main ()
14177{
14178
14179 ;
14180 return 0;
14181}
14182_ACEOF
81ecdfbb
RW
14183if ac_fn_c_try_compile "$LINENO"; then :
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14185$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 14186else
81ecdfbb
RW
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14188$as_echo "no" >&6; }
c6b750e1 14189fi
81ecdfbb 14190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
14191
14192 CFLAGS="$saved_CFLAGS"
14193fi
14194
14195
1d39f329 14196
8a0d8a5c 14197# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
14198# Check whether --enable-stage1-checking was given.
14199if test "${enable_stage1_checking+set}" = set; then :
14200 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 14201else
5566c1fa 14202 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 14203 stage1_checking=--enable-checking=yes,types
8a0d8a5c 14204else
5566c1fa 14205 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 14206fi
81ecdfbb 14207fi
8a0d8a5c
PB
14208
14209
c6b750e1 14210
81ecdfbb
RW
14211# Enable -Werror in bootstrap stage2 and later.
14212# Check whether --enable-werror was given.
14213if test "${enable_werror+set}" = set; then :
14214 enableval=$enable_werror;
1d39f329 14215else
a0323144 14216 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 14217 enable_werror=yes
79fcd0ec
PB
14218else
14219 enable_werror=no
14220fi
81ecdfbb
RW
14221fi
14222
1a6f2dc7
NN
14223case ${enable_werror} in
14224 yes) stage2_werror_flag="--enable-werror-always" ;;
14225 *) stage2_werror_flag="" ;;
1d39f329
NN
14226esac
14227
14228
e8a5fa9c
RW
14229# Specify what files to not compare during bootstrap.
14230
14231compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
14232case "$target" in
14233 hppa*64*-*-hpux*) ;;
14234 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
14235esac
1f53ca9a
AO
14236case " $configdirs " in
14237*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
14238esac
e8a5fa9c
RW
14239
14240
81ecdfbb
RW
14241ac_config_files="$ac_config_files Makefile"
14242
c6b750e1 14243cat >confcache <<\_ACEOF
a0da8069
NN
14244# This file is a shell script that caches the results of configure
14245# tests run on this system so they can be shared between configure
c6b750e1
DJ
14246# scripts and configure runs, see configure's option --config-cache.
14247# It is not useful on other systems. If it contains results you don't
14248# want to keep, you may remove or edit it.
a0da8069 14249#
c6b750e1
DJ
14250# config.status only pays attention to the cache file if you give it
14251# the --recheck option to rerun configure.
a0da8069 14252#
c6b750e1
DJ
14253# `ac_cv_env_foo' variables (set or unset) will be overridden when
14254# loading this file, other *unset* `ac_cv_foo' will be assigned the
14255# following values.
14256
14257_ACEOF
14258
a0da8069
NN
14259# The following way of writing the cache mishandles newlines in values,
14260# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 14261# So, we kill variables containing newlines.
a0da8069
NN
14262# Ultrix sh set writes to stderr and can't be redirected directly,
14263# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
14264(
14265 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14266 eval ac_val=\$$ac_var
14267 case $ac_val in #(
14268 *${as_nl}*)
14269 case $ac_var in #(
14270 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14271$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14272 esac
14273 case $ac_var in #(
14274 _ | IFS | as_nl) ;; #(
14275 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14276 *) { eval $ac_var=; unset $ac_var;} ;;
14277 esac ;;
14278 esac
14279 done
14280
c6b750e1 14281 (set) 2>&1 |
81ecdfbb
RW
14282 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14283 *${as_nl}ac_space=\ *)
14284 # `set' does not quote correctly, so add quotes: double-quote
14285 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
14286 sed -n \
14287 "s/'/'\\\\''/g;
14288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 14289 ;; #(
c6b750e1
DJ
14290 *)
14291 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 14292 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 14293 ;;
81ecdfbb
RW
14294 esac |
14295 sort
14296) |
c6b750e1 14297 sed '
81ecdfbb 14298 /^ac_cv_env_/b end
c6b750e1 14299 t clear
81ecdfbb 14300 :clear
c6b750e1
DJ
14301 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14302 t end
81ecdfbb
RW
14303 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14304 :end' >>confcache
14305if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14306 if test -w "$cache_file"; then
14307 test "x$cache_file" != "x/dev/null" &&
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14309$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 14310 cat confcache >$cache_file
a0da8069 14311 else
81ecdfbb
RW
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14313$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 14314 fi
852e5f18 14315fi
a0da8069 14316rm -f confcache
852e5f18 14317
a0da8069
NN
14318test "x$prefix" = xNONE && prefix=$ac_default_prefix
14319# Let make expand exec_prefix.
14320test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 14321
a0da8069
NN
14322# Transform confdefs.h into DEFS.
14323# Protect against shell expansion while executing Makefile rules.
14324# Protect against Makefile macro expansion.
c6b750e1
DJ
14325#
14326# If the first sed substitution is executed (which looks for macros that
81ecdfbb 14327# take arguments), then branch to the quote section. Otherwise,
c6b750e1 14328# look for a macro that doesn't take arguments.
81ecdfbb
RW
14329ac_script='
14330:mline
14331/\\$/{
14332 N
14333 s,\\\n,,
14334 b mline
14335}
c6b750e1 14336t clear
81ecdfbb
RW
14337:clear
14338s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14339t quote
81ecdfbb 14340s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 14341t quote
81ecdfbb
RW
14342b any
14343:quote
14344s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14345s/\[/\\&/g
14346s/\]/\\&/g
14347s/\$/$$/g
14348H
14349:any
14350${
14351 g
14352 s/^\n//
14353 s/\n/ /g
14354 p
14355}
14356'
14357DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
14358
14359
14360ac_libobjs=
14361ac_ltlibobjs=
14362for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14363 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
14364 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14365 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14366 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14367 # will be set to the directory where LIBOBJS objects are built.
14368 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14369 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
14370done
14371LIBOBJS=$ac_libobjs
852e5f18 14372
c6b750e1 14373LTLIBOBJS=$ac_ltlibobjs
376a0e54 14374
cac3d6c4 14375
c6b750e1
DJ
14376
14377: ${CONFIG_STATUS=./config.status}
81ecdfbb 14378ac_write_fail=0
c6b750e1
DJ
14379ac_clean_files_save=$ac_clean_files
14380ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
14381{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14382$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14383as_write_fail=0
14384cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
14385#! $SHELL
14386# Generated by $as_me.
a0da8069 14387# Run this file to recreate the current configuration.
a0da8069 14388# Compiler output produced by configure, useful for debugging
c6b750e1 14389# configure, is in config.log if it exists.
376a0e54 14390
c6b750e1
DJ
14391debug=false
14392ac_cs_recheck=false
14393ac_cs_silent=false
c6b750e1 14394
81ecdfbb
RW
14395SHELL=\${CONFIG_SHELL-$SHELL}
14396export SHELL
14397_ASEOF
14398cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14399## -------------------- ##
14400## M4sh Initialization. ##
14401## -------------------- ##
14402
14403# Be more Bourne compatible
14404DUALCASE=1; export DUALCASE # for MKS sh
14405if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
14406 emulate sh
14407 NULLCMD=:
81ecdfbb 14408 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
14409 # is contrary to our usage. Disable this feature.
14410 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
14411 setopt NO_GLOB_SUBST
14412else
14413 case `(set -o) 2>/dev/null` in #(
14414 *posix*) :
14415 set -o posix ;; #(
14416 *) :
14417 ;;
14418esac
c6b750e1 14419fi
c6b750e1 14420
81ecdfbb
RW
14421
14422as_nl='
14423'
14424export as_nl
14425# Printing a long string crashes Solaris 7 /usr/bin/printf.
14426as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14427as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14428as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14429# Prefer a ksh shell builtin over an external printf program on Solaris,
14430# but without wasting forks for bash or zsh.
14431if test -z "$BASH_VERSION$ZSH_VERSION" \
14432 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14433 as_echo='print -r --'
14434 as_echo_n='print -rn --'
14435elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14436 as_echo='printf %s\n'
14437 as_echo_n='printf %s'
14438else
14439 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14440 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14441 as_echo_n='/usr/ucb/echo -n'
14442 else
14443 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14444 as_echo_n_body='eval
14445 arg=$1;
14446 case $arg in #(
14447 *"$as_nl"*)
14448 expr "X$arg" : "X\\(.*\\)$as_nl";
14449 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14450 esac;
14451 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14452 '
14453 export as_echo_n_body
14454 as_echo_n='sh -c $as_echo_n_body as_echo'
14455 fi
14456 export as_echo_body
14457 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
14458fi
14459
81ecdfbb
RW
14460# The user is always right.
14461if test "${PATH_SEPARATOR+set}" != set; then
14462 PATH_SEPARATOR=:
14463 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14464 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14465 PATH_SEPARATOR=';'
14466 }
14467fi
14468
14469
14470# IFS
14471# We need space, tab and new line, in precisely that order. Quoting is
14472# there to prevent editors from complaining about space-tab.
14473# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14474# splitting by setting IFS to empty value.)
14475IFS=" "" $as_nl"
14476
14477# Find who we are. Look in the path if we contain no directory separator.
14478case $0 in #((
14479 *[\\/]* ) as_myself=$0 ;;
14480 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14481for as_dir in $PATH
14482do
14483 IFS=$as_save_IFS
14484 test -z "$as_dir" && as_dir=.
14485 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14486 done
14487IFS=$as_save_IFS
14488
14489 ;;
14490esac
14491# We did not find ourselves, most probably we were run as `sh COMMAND'
14492# in which case we are not to be found in the path.
14493if test "x$as_myself" = x; then
14494 as_myself=$0
14495fi
14496if test ! -f "$as_myself"; then
14497 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14498 exit 1
14499fi
c6b750e1 14500
81ecdfbb
RW
14501# Unset variables that we do not need and which cause bugs (e.g. in
14502# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14503# suppresses any "Segmentation fault" message there. '((' could
14504# trigger a bug in pdksh 5.2.14.
14505for as_var in BASH_ENV ENV MAIL MAILPATH
14506do eval test x\${$as_var+set} = xset \
14507 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14508done
c6b750e1
DJ
14509PS1='$ '
14510PS2='> '
14511PS4='+ '
14512
14513# NLS nuisances.
81ecdfbb
RW
14514LC_ALL=C
14515export LC_ALL
14516LANGUAGE=C
14517export LANGUAGE
14518
14519# CDPATH.
14520(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14521
14522
14523# as_fn_error ERROR [LINENO LOG_FD]
14524# ---------------------------------
14525# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14526# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14527# script with status $?, using 1 if that was 0.
14528as_fn_error ()
14529{
14530 as_status=$?; test $as_status -eq 0 && as_status=1
14531 if test "$3"; then
14532 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14533 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 14534 fi
81ecdfbb
RW
14535 $as_echo "$as_me: error: $1" >&2
14536 as_fn_exit $as_status
14537} # as_fn_error
14538
14539
14540# as_fn_set_status STATUS
14541# -----------------------
14542# Set $? to STATUS, without forking.
14543as_fn_set_status ()
14544{
14545 return $1
14546} # as_fn_set_status
14547
14548# as_fn_exit STATUS
14549# -----------------
14550# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14551as_fn_exit ()
14552{
14553 set +e
14554 as_fn_set_status $1
14555 exit $1
14556} # as_fn_exit
14557
14558# as_fn_unset VAR
14559# ---------------
14560# Portably unset VAR.
14561as_fn_unset ()
14562{
14563 { eval $1=; unset $1;}
14564}
14565as_unset=as_fn_unset
14566# as_fn_append VAR VALUE
14567# ----------------------
14568# Append the text in VALUE to the end of the definition contained in VAR. Take
14569# advantage of any shell optimizations that allow amortized linear growth over
14570# repeated appends, instead of the typical quadratic growth present in naive
14571# implementations.
14572if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14573 eval 'as_fn_append ()
14574 {
14575 eval $1+=\$2
14576 }'
14577else
14578 as_fn_append ()
14579 {
14580 eval $1=\$$1\$2
14581 }
14582fi # as_fn_append
14583
14584# as_fn_arith ARG...
14585# ------------------
14586# Perform arithmetic evaluation on the ARGs, and store the result in the
14587# global $as_val. Take advantage of shells that can avoid forks. The arguments
14588# must be portable across $(()) and expr.
14589if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14590 eval 'as_fn_arith ()
14591 {
14592 as_val=$(( $* ))
14593 }'
14594else
14595 as_fn_arith ()
14596 {
14597 as_val=`expr "$@" || test $? -eq 1`
14598 }
14599fi # as_fn_arith
14600
c6b750e1 14601
81ecdfbb
RW
14602if expr a : '\(a\)' >/dev/null 2>&1 &&
14603 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
14604 as_expr=expr
14605else
14606 as_expr=false
14607fi
14608
81ecdfbb 14609if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
14610 as_basename=basename
14611else
14612 as_basename=false
14613fi
14614
81ecdfbb
RW
14615if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14616 as_dirname=dirname
14617else
14618 as_dirname=false
14619fi
c6b750e1 14620
81ecdfbb 14621as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
14622$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14623 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
14624 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14625$as_echo X/"$0" |
14626 sed '/^.*\/\([^/][^/]*\)\/*$/{
14627 s//\1/
14628 q
14629 }
14630 /^X\/\(\/\/\)$/{
14631 s//\1/
14632 q
14633 }
14634 /^X\/\(\/\).*/{
14635 s//\1/
14636 q
14637 }
14638 s/.*/./; q'`
c6b750e1 14639
c6b750e1
DJ
14640# Avoid depending upon Character Ranges.
14641as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14642as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14643as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14644as_cr_digits='0123456789'
14645as_cr_alnum=$as_cr_Letters$as_cr_digits
14646
81ecdfbb
RW
14647ECHO_C= ECHO_N= ECHO_T=
14648case `echo -n x` in #(((((
14649-n*)
14650 case `echo 'xy\c'` in
14651 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14652 xy) ECHO_C='\c';;
14653 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14654 ECHO_T=' ';;
14655 esac;;
14656*)
14657 ECHO_N='-n';;
c6b750e1
DJ
14658esac
14659
81ecdfbb
RW
14660rm -f conf$$ conf$$.exe conf$$.file
14661if test -d conf$$.dir; then
14662 rm -f conf$$.dir/conf$$.file
c6b750e1 14663else
81ecdfbb
RW
14664 rm -f conf$$.dir
14665 mkdir conf$$.dir 2>/dev/null
c6b750e1 14666fi
81ecdfbb
RW
14667if (echo >conf$$.file) 2>/dev/null; then
14668 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14669 as_ln_s='ln -s'
81ecdfbb
RW
14670 # ... but there are two gotchas:
14671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14673 # In both cases, we have to default to `cp -p'.
14674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14675 as_ln_s='cp -p'
14676 elif ln conf$$.file conf$$ 2>/dev/null; then
14677 as_ln_s=ln
14678 else
14679 as_ln_s='cp -p'
c6b750e1 14680 fi
c6b750e1
DJ
14681else
14682 as_ln_s='cp -p'
14683fi
81ecdfbb
RW
14684rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14685rmdir conf$$.dir 2>/dev/null
14686
14687
14688# as_fn_mkdir_p
14689# -------------
14690# Create "$as_dir" as a directory, including parents if necessary.
14691as_fn_mkdir_p ()
14692{
14693
14694 case $as_dir in #(
14695 -*) as_dir=./$as_dir;;
14696 esac
14697 test -d "$as_dir" || eval $as_mkdir_p || {
14698 as_dirs=
14699 while :; do
14700 case $as_dir in #(
14701 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14702 *) as_qdir=$as_dir;;
14703 esac
14704 as_dirs="'$as_qdir' $as_dirs"
14705 as_dir=`$as_dirname -- "$as_dir" ||
14706$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14707 X"$as_dir" : 'X\(//\)[^/]' \| \
14708 X"$as_dir" : 'X\(//\)$' \| \
14709 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14710$as_echo X"$as_dir" |
14711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14712 s//\1/
14713 q
14714 }
14715 /^X\(\/\/\)[^/].*/{
14716 s//\1/
14717 q
14718 }
14719 /^X\(\/\/\)$/{
14720 s//\1/
14721 q
14722 }
14723 /^X\(\/\).*/{
14724 s//\1/
14725 q
14726 }
14727 s/.*/./; q'`
14728 test -d "$as_dir" && break
14729 done
14730 test -z "$as_dirs" || eval "mkdir $as_dirs"
14731 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14732
c6b750e1 14733
81ecdfbb 14734} # as_fn_mkdir_p
c6b750e1 14735if mkdir -p . 2>/dev/null; then
81ecdfbb 14736 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14737else
14738 test -d ./-p && rmdir ./-p
14739 as_mkdir_p=false
14740fi
14741
81ecdfbb
RW
14742if test -x / >/dev/null 2>&1; then
14743 as_test_x='test -x'
14744else
14745 if ls -dL / >/dev/null 2>&1; then
14746 as_ls_L_option=L
14747 else
14748 as_ls_L_option=
14749 fi
14750 as_test_x='
14751 eval sh -c '\''
14752 if test -d "$1"; then
14753 test -d "$1/.";
14754 else
14755 case $1 in #(
14756 -*)set "./$1";;
14757 esac;
14758 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14759 ???[sx]*):;;*)false;;esac;fi
14760 '\'' sh
14761 '
14762fi
14763as_executable_p=$as_test_x
c6b750e1
DJ
14764
14765# Sed expression to map a string onto a valid CPP name.
14766as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14767
14768# Sed expression to map a string onto a valid variable name.
14769as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14770
14771
c6b750e1 14772exec 6>&1
81ecdfbb
RW
14773## ----------------------------------- ##
14774## Main body of $CONFIG_STATUS script. ##
14775## ----------------------------------- ##
14776_ASEOF
14777test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14778
14779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14780# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14781# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14782# values after options handling.
14783ac_log="
c6b750e1 14784This file was extended by $as_me, which was
81ecdfbb 14785generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14786
14787 CONFIG_FILES = $CONFIG_FILES
14788 CONFIG_HEADERS = $CONFIG_HEADERS
14789 CONFIG_LINKS = $CONFIG_LINKS
14790 CONFIG_COMMANDS = $CONFIG_COMMANDS
14791 $ $0 $@
14792
81ecdfbb
RW
14793on `(hostname || uname -n) 2>/dev/null | sed 1q`
14794"
14795
c6b750e1
DJ
14796_ACEOF
14797
81ecdfbb
RW
14798case $ac_config_files in *"
14799"*) set x $ac_config_files; shift; ac_config_files=$*;;
14800esac
c6b750e1 14801
c6b750e1 14802
c6b750e1 14803
81ecdfbb
RW
14804cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14805# Files that config.status was made for.
14806config_files="$ac_config_files"
c6b750e1 14807
81ecdfbb 14808_ACEOF
c6b750e1 14809
81ecdfbb 14810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14811ac_cs_usage="\
81ecdfbb
RW
14812\`$as_me' instantiates files and other configuration actions
14813from templates according to the current configuration. Unless the files
14814and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14815
81ecdfbb 14816Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14817
14818 -h, --help print this help, then exit
81ecdfbb
RW
14819 -V, --version print version number and configuration settings, then exit
14820 -q, --quiet, --silent
14821 do not print progress messages
c6b750e1
DJ
14822 -d, --debug don't remove temporary files
14823 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14824 --file=FILE[:TEMPLATE]
14825 instantiate the configuration file FILE
c6b750e1
DJ
14826
14827Configuration files:
14828$config_files
14829
81ecdfbb 14830Report bugs to the package provider."
c6b750e1 14831
81ecdfbb
RW
14832_ACEOF
14833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14834ac_cs_version="\\
14835config.status
81ecdfbb
RW
14836configured by $0, generated by GNU Autoconf 2.64,
14837 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14838
81ecdfbb 14839Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14840This config.status script is free software; the Free Software Foundation
14841gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14842
14843ac_pwd='$ac_pwd'
14844srcdir='$srcdir'
14845INSTALL='$INSTALL'
8e957354 14846AWK='$AWK'
81ecdfbb 14847test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14848_ACEOF
14849
81ecdfbb
RW
14850cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14851# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14852ac_need_defaults=:
14853while test $# != 0
a0da8069 14854do
c6b750e1
DJ
14855 case $1 in
14856 --*=*)
81ecdfbb
RW
14857 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14858 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14859 ac_shift=:
14860 ;;
81ecdfbb 14861 *)
c6b750e1
DJ
14862 ac_option=$1
14863 ac_optarg=$2
14864 ac_shift=shift
14865 ;;
c6b750e1
DJ
14866 esac
14867
14868 case $ac_option in
14869 # Handling of the options.
a0da8069 14870 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14871 ac_cs_recheck=: ;;
81ecdfbb
RW
14872 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14873 $as_echo "$ac_cs_version"; exit ;;
14874 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14875 debug=: ;;
14876 --file | --fil | --fi | --f )
14877 $ac_shift
81ecdfbb
RW
14878 case $ac_optarg in
14879 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14880 esac
14881 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14882 ac_need_defaults=false;;
81ecdfbb
RW
14883 --he | --h | --help | --hel | -h )
14884 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14885 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14886 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14887 ac_cs_silent=: ;;
14888
14889 # This is an error.
81ecdfbb
RW
14890 -*) as_fn_error "unrecognized option: \`$1'
14891Try \`$0 --help' for more information." ;;
c6b750e1 14892
81ecdfbb
RW
14893 *) as_fn_append ac_config_targets " $1"
14894 ac_need_defaults=false ;;
c6b750e1 14895
376a0e54 14896 esac
c6b750e1 14897 shift
376a0e54
CM
14898done
14899
c6b750e1 14900ac_configure_extra_args=
376a0e54 14901
c6b750e1
DJ
14902if $ac_cs_silent; then
14903 exec 6>/dev/null
14904 ac_configure_extra_args="$ac_configure_extra_args --silent"
14905fi
376a0e54 14906
c6b750e1 14907_ACEOF
81ecdfbb 14908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14909if \$ac_cs_recheck; then
81ecdfbb
RW
14910 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14911 shift
14912 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14913 CONFIG_SHELL='$SHELL'
14914 export CONFIG_SHELL
14915 exec "\$@"
c6b750e1
DJ
14916fi
14917
14918_ACEOF
81ecdfbb
RW
14919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14920exec 5>>config.log
14921{
14922 echo
14923 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14924## Running $as_me. ##
14925_ASBOX
14926 $as_echo "$ac_log"
14927} >&5
c6b750e1 14928
81ecdfbb
RW
14929_ACEOF
14930cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14931#
14932# INIT-COMMANDS
14933#
14934extrasub_build="$extrasub_build"
14935 extrasub_host="$extrasub_host"
14936 extrasub_target="$extrasub_target"
14937
81ecdfbb 14938_ACEOF
c6b750e1 14939
81ecdfbb 14940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14941
81ecdfbb 14942# Handling of arguments.
c6b750e1
DJ
14943for ac_config_target in $ac_config_targets
14944do
81ecdfbb
RW
14945 case $ac_config_target in
14946 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14947
14948 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14949 esac
14950done
14951
81ecdfbb 14952
c6b750e1
DJ
14953# If the user did not use the arguments to specify the items to instantiate,
14954# then the envvar interface is used. Set only those that are not.
14955# We use the long form for the default assignment because of an extremely
14956# bizarre bug on SunOS 4.1.3.
14957if $ac_need_defaults; then
14958 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14959fi
14960
14961# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14962# simply because there is no reason against having it here, and in addition,
c6b750e1 14963# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14964# Hook for its removal unless debugging.
14965# Note that there is a small window in which the directory will not be cleaned:
14966# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14967$debug ||
14968{
81ecdfbb
RW
14969 tmp=
14970 trap 'exit_status=$?
14971 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14972' 0
14973 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14974}
c6b750e1
DJ
14975# Create a (secure) tmp directory for tmp files.
14976
14977{
81ecdfbb 14978 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14979 test -n "$tmp" && test -d "$tmp"
14980} ||
14981{
81ecdfbb
RW
14982 tmp=./conf$$-$RANDOM
14983 (umask 077 && mkdir "$tmp")
14984} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14985
14986# Set up the scripts for CONFIG_FILES section.
14987# No need to generate them if there are no CONFIG_FILES.
14988# This happens for instance with `./config.status config.h'.
14989if test -n "$CONFIG_FILES"; then
14990
14991if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14992 ac_cs_awk_getline=:
14993 ac_cs_awk_pipe_init=
14994 ac_cs_awk_read_file='
14995 while ((getline aline < (F[key])) > 0)
14996 print(aline)
14997 close(F[key])'
14998 ac_cs_awk_pipe_fini=
14999else
15000 ac_cs_awk_getline=false
15001 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15002 ac_cs_awk_read_file='
15003 print "|#_!!_#|"
15004 print "cat " F[key] " &&"
15005 '$ac_cs_awk_pipe_init
15006 # The final `:' finishes the AND list.
15007 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15008fi
15009ac_cr=`echo X | tr X '\015'`
15010# On cygwin, bash can eat \r inside `` if the user requested igncr.
15011# But we know of no other shell where ac_cr would be empty at this
15012# point, so we can use a bashism as a fallback.
15013if test "x$ac_cr" = x; then
15014 eval ac_cr=\$\'\\r\'
15015fi
15016ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15017if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15018 ac_cs_awk_cr='\r'
15019else
15020 ac_cs_awk_cr=$ac_cr
15021fi
15022
15023echo 'BEGIN {' >"$tmp/subs1.awk" &&
15024_ACEOF
15025
15026# Create commands to substitute file output variables.
c6b750e1 15027{
81ecdfbb
RW
15028 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15029 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15030 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15031 echo "_ACAWK" &&
15032 echo "_ACEOF"
15033} >conf$$files.sh &&
15034. ./conf$$files.sh ||
15035 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15036rm -f conf$$files.sh
c6b750e1 15037
81ecdfbb
RW
15038{
15039 echo "cat >conf$$subs.awk <<_ACEOF" &&
15040 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15041 echo "_ACEOF"
15042} >conf$$subs.sh ||
15043 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15044ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15045ac_delim='%!_!# '
15046for ac_last_try in false false false false false :; do
15047 . ./conf$$subs.sh ||
15048 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15049
15050 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15051 if test $ac_delim_n = $ac_delim_num; then
15052 break
15053 elif $ac_last_try; then
15054 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15055 else
15056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15057 fi
15058done
15059rm -f conf$$subs.sh
15060
15061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15062cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 15063_ACEOF
81ecdfbb
RW
15064sed -n '
15065h
15066s/^/S["/; s/!.*/"]=/
15067p
15068g
15069s/^[^!]*!//
15070:repl
15071t repl
15072s/'"$ac_delim"'$//
15073t delim
15074:nl
15075h
15076s/\(.\{148\}\).*/\1/
15077t more1
15078s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15079p
15080n
15081b repl
15082:more1
15083s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15084p
15085g
15086s/.\{148\}//
15087t nl
15088:delim
15089h
15090s/\(.\{148\}\).*/\1/
15091t more2
15092s/["\\]/\\&/g; s/^/"/; s/$/"/
15093p
15094b
15095:more2
15096s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15097p
15098g
15099s/.\{148\}//
15100t delim
15101' <conf$$subs.awk | sed '
15102/^[^""]/{
15103 N
15104 s/\n//
15105}
15106' >>$CONFIG_STATUS || ac_write_fail=1
15107rm -f conf$$subs.awk
15108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15109_ACAWK
15110cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15111 for (key in S) S_is_set[key] = 1
15112 FS = "\a"
15113 \$ac_cs_awk_pipe_init
15114}
15115{
15116 line = $ 0
15117 nfields = split(line, field, "@")
15118 substed = 0
15119 len = length(field[1])
15120 for (i = 2; i < nfields; i++) {
15121 key = field[i]
15122 keylen = length(key)
15123 if (S_is_set[key]) {
15124 value = S[key]
15125 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15126 len += length(value) + length(field[++i])
15127 substed = 1
15128 } else
15129 len += 1 + keylen
15130 }
15131 if (nfields == 3 && !substed) {
15132 key = field[2]
15133 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15134 \$ac_cs_awk_read_file
15135 next
15136 }
15137 }
15138 print line
15139}
15140\$ac_cs_awk_pipe_fini
15141_ACAWK
15142_ACEOF
15143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15144if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15145 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15146else
15147 cat
15148fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15149 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15150_ACEOF
15151
15152# VPATH may cause trouble with some makes, so we remove $(srcdir),
15153# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15154# trailing colons and then remove the whole line if VPATH becomes empty
15155# (actually we leave an empty line to preserve line numbers).
15156if test "x$srcdir" = x.; then
15157 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15158s/:*\$(srcdir):*/:/
15159s/:*\${srcdir}:*/:/
15160s/:*@srcdir@:*/:/
15161s/^\([^=]*=[ ]*\):*/\1/
15162s/:*$//
15163s/^[^=]*=[ ]*$//
15164}'
15165fi
c6b750e1 15166
81ecdfbb
RW
15167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15168fi # test -n "$CONFIG_FILES"
c6b750e1 15169
c6b750e1 15170
81ecdfbb
RW
15171eval set X " :F $CONFIG_FILES "
15172shift
15173for ac_tag
15174do
15175 case $ac_tag in
15176 :[FHLC]) ac_mode=$ac_tag; continue;;
15177 esac
15178 case $ac_mode$ac_tag in
15179 :[FHL]*:*);;
15180 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15181 :[FH]-) ac_tag=-:-;;
15182 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15183 esac
15184 ac_save_IFS=$IFS
15185 IFS=:
15186 set x $ac_tag
15187 IFS=$ac_save_IFS
15188 shift
15189 ac_file=$1
15190 shift
252b5132 15191
81ecdfbb
RW
15192 case $ac_mode in
15193 :L) ac_source=$1;;
15194 :[FH])
15195 ac_file_inputs=
15196 for ac_f
15197 do
15198 case $ac_f in
15199 -) ac_f="$tmp/stdin";;
15200 *) # Look for the file first in the build tree, then in the source tree
15201 # (if the path is not absolute). The absolute path cannot be DOS-style,
15202 # because $ac_f cannot contain `:'.
15203 test -f "$ac_f" ||
15204 case $ac_f in
15205 [\\/$]*) false;;
15206 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15207 esac ||
15208 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15209 esac
15210 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15211 as_fn_append ac_file_inputs " '$ac_f'"
15212 done
c6b750e1 15213
81ecdfbb
RW
15214 # Let's still pretend it is `configure' which instantiates (i.e., don't
15215 # use $as_me), people would be surprised to read:
15216 # /* config.h. Generated by config.status. */
15217 configure_input='Generated from '`
15218 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15219 `' by configure.'
15220 if test x"$ac_file" != x-; then
15221 configure_input="$ac_file. $configure_input"
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15223$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 15224 fi
81ecdfbb
RW
15225 # Neutralize special characters interpreted by sed in replacement strings.
15226 case $configure_input in #(
15227 *\&* | *\|* | *\\* )
15228 ac_sed_conf_input=`$as_echo "$configure_input" |
15229 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15230 *) ac_sed_conf_input=$configure_input;;
15231 esac
cac3d6c4 15232
81ecdfbb
RW
15233 case $ac_tag in
15234 *:-:* | *:-) cat >"$tmp/stdin" \
15235 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15236 esac
15237 ;;
a0da8069 15238 esac
252b5132 15239
81ecdfbb 15240 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
15241$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15242 X"$ac_file" : 'X\(//\)[^/]' \| \
15243 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
15244 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15245$as_echo X"$ac_file" |
15246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15247 s//\1/
15248 q
15249 }
15250 /^X\(\/\/\)[^/].*/{
15251 s//\1/
15252 q
15253 }
15254 /^X\(\/\/\)$/{
15255 s//\1/
15256 q
15257 }
15258 /^X\(\/\).*/{
15259 s//\1/
15260 q
15261 }
15262 s/.*/./; q'`
15263 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 15264 ac_builddir=.
252b5132 15265
81ecdfbb
RW
15266case "$ac_dir" in
15267.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15268*)
15269 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15270 # A ".." for each directory in $ac_dir_suffix.
15271 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15272 case $ac_top_builddir_sub in
15273 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15274 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15275 esac ;;
15276esac
15277ac_abs_top_builddir=$ac_pwd
15278ac_abs_builddir=$ac_pwd$ac_dir_suffix
15279# for backward compatibility:
15280ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
15281
15282case $srcdir in
81ecdfbb 15283 .) # We are building in place.
c6b750e1 15284 ac_srcdir=.
81ecdfbb
RW
15285 ac_top_srcdir=$ac_top_builddir_sub
15286 ac_abs_top_srcdir=$ac_pwd ;;
15287 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 15288 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
15289 ac_top_srcdir=$srcdir
15290 ac_abs_top_srcdir=$srcdir ;;
15291 *) # Relative name.
15292 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15293 ac_top_srcdir=$ac_top_build_prefix$srcdir
15294 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 15295esac
81ecdfbb 15296ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 15297
252b5132 15298
81ecdfbb
RW
15299 case $ac_mode in
15300 :F)
15301 #
15302 # CONFIG_FILE
15303 #
c6b750e1
DJ
15304
15305 case $INSTALL in
15306 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 15307 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 15308 esac
81ecdfbb 15309_ACEOF
252b5132 15310
81ecdfbb
RW
15311cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15312# If the template does not know about datarootdir, expand it.
15313# FIXME: This hack should be removed a few years after 2.60.
15314ac_datarootdir_hack=; ac_datarootdir_seen=
15315ac_sed_dataroot='
15316/datarootdir/ {
15317 p
15318 q
15319}
15320/@datadir@/p
15321/@docdir@/p
15322/@infodir@/p
15323/@localedir@/p
15324/@mandir@/p'
15325case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15326*datarootdir*) ac_datarootdir_seen=yes;;
15327*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15329$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 15330_ACEOF
81ecdfbb
RW
15331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15332 ac_datarootdir_hack='
15333 s&@datadir@&$datadir&g
15334 s&@docdir@&$docdir&g
15335 s&@infodir@&$infodir&g
15336 s&@localedir@&$localedir&g
15337 s&@mandir@&$mandir&g
15338 s&\\\${datarootdir}&$datarootdir&g' ;;
15339esac
15340_ACEOF
15341
15342# Neutralize VPATH when `$srcdir' = `.'.
15343# Shell code in configure.ac might set extrasub.
15344# FIXME: do we really want to maintain this feature?
15345cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15346ac_sed_extra="$ac_vpsub
c6b750e1
DJ
15347$extrasub
15348_ACEOF
81ecdfbb 15349cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
15350:t
15351/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
15352s|@configure_input@|$ac_sed_conf_input|;t t
15353s&@top_builddir@&$ac_top_builddir_sub&;t t
15354s&@top_build_prefix@&$ac_top_build_prefix&;t t
15355s&@srcdir@&$ac_srcdir&;t t
15356s&@abs_srcdir@&$ac_abs_srcdir&;t t
15357s&@top_srcdir@&$ac_top_srcdir&;t t
15358s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15359s&@builddir@&$ac_builddir&;t t
15360s&@abs_builddir@&$ac_abs_builddir&;t t
15361s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15362s&@INSTALL@&$ac_INSTALL&;t t
15363$ac_datarootdir_hack
15364"
15365eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15366if $ac_cs_awk_getline; then
15367 $AWK -f "$tmp/subs.awk"
15368else
15369 $AWK -f "$tmp/subs.awk" | $SHELL
15370fi >$tmp/out \
15371 || as_fn_error "could not create $ac_file" "$LINENO" 5
15372
15373test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15374 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15375 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15377which seems to be undefined. Please make sure it is defined." >&5
15378$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15379which seems to be undefined. Please make sure it is defined." >&2;}
15380
15381 rm -f "$tmp/stdin"
15382 case $ac_file in
15383 -) cat "$tmp/out" && rm -f "$tmp/out";;
15384 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15385 esac \
15386 || as_fn_error "could not create $ac_file" "$LINENO" 5
15387 ;;
c148b4cb 15388
c148b4cb 15389
c148b4cb 15390
81ecdfbb
RW
15391 esac
15392
06a51eac
RW
15393
15394 case $ac_file$ac_mode in
15395 "Makefile":F) sed "$extrasub_build" Makefile |
15396 sed "$extrasub_host" |
15397 sed "$extrasub_target" > mf$$
15398 mv -f mf$$ Makefile ;;
15399
15400 esac
81ecdfbb
RW
15401done # for ac_tag
15402
15403
15404as_fn_exit 0
c6b750e1 15405_ACEOF
c6b750e1
DJ
15406ac_clean_files=$ac_clean_files_save
15407
81ecdfbb
RW
15408test $ac_write_fail = 0 ||
15409 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15410
c6b750e1
DJ
15411
15412# configure is writing to config.log, and then calls config.status.
15413# config.status does its own redirection, appending to config.log.
15414# Unfortunately, on DOS this fails, as config.log is still kept open
15415# by configure, so config.status won't be able to write to it; its
15416# output is simply discarded. So we exec the FD to /dev/null,
15417# effectively closing config.log, so it can be properly (re)opened and
15418# appended to by config.status. When coming back to configure, we
15419# need to make the FD available again.
15420if test "$no_create" != yes; then
15421 ac_cs_success=:
15422 ac_config_status_args=
15423 test "$silent" = yes &&
15424 ac_config_status_args="$ac_config_status_args --quiet"
15425 exec 5>/dev/null
15426 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15427 exec 5>>config.log
15428 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15429 # would make configure fail if this is the last instruction.
81ecdfbb
RW
15430 $ac_cs_success || as_fn_exit $?
15431fi
15432if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15434$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 15435fi
c148b4cb 15436
This page took 1.556467 seconds and 4 git commands to generate.