2010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
[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
581GFORTRAN_FOR_TARGET
582GCJ_FOR_TARGET
583GCC_FOR_TARGET
584CXX_FOR_TARGET
585CC_FOR_TARGET
586OBJDUMP
587OBJCOPY
588WINDMC
589WINDRES
590STRIP
591RANLIB
592NM
593LIPO
594LD
595DLLTOOL
596AS
597AR
598RUNTEST
599EXPECT
600MAKEINFO
601FLEX
602LEX
603M4
604BISON
605YACC
606config_shell
607WINDRES_FOR_BUILD
608WINDMC_FOR_BUILD
609RANLIB_FOR_BUILD
610NM_FOR_BUILD
611LD_FOR_BUILD
612LDFLAGS_FOR_BUILD
613GFORTRAN_FOR_BUILD
614GCJ_FOR_BUILD
615DLLTOOL_FOR_BUILD
616CXX_FOR_BUILD
617CXXFLAGS_FOR_BUILD
618CFLAGS_FOR_BUILD
619CC_FOR_BUILD
620AS_FOR_BUILD
621AR_FOR_BUILD
911e63d0 622target_configdirs
81ecdfbb 623configdirs
81ecdfbb 624build_configdirs
81ecdfbb
RW
625INSTALL_GDB_TK
626GDB_TK
627CONFIGURE_GDB_TK
628build_tooldir
629tooldir
630GCC_SHLIB_SUBDIR
631RPATH_ENVVAR
4074d5f2
RW
632target_configargs
633host_configargs
634build_configargs
96655cc4 635BUILD_CONFIG
81ecdfbb
RW
636CXXFLAGS_FOR_TARGET
637CFLAGS_FOR_TARGET
638DEBUG_PREFIX_CFLAGS_FOR_TARGET
639SYSROOT_CFLAGS_FOR_TARGET
640stage1_languages
700d40ca 641extra_host_libiberty_configure_flags
81ecdfbb
RW
642clooginc
643clooglibs
644pplinc
645ppllibs
81ecdfbb 646poststage1_ldflags
143754cd 647poststage1_libs
81ecdfbb
RW
648stage1_libs
649stage1_ldflags
650extra_mpc_mpfr_configure_flags
651extra_mpc_gmp_configure_flags
652extra_mpfr_configure_flags
653gmpinc
654gmplibs
655do_compare
656GNATMAKE
657GNATBIND
658ac_ct_CXX
659CXXFLAGS
660CXX
661OBJEXT
662EXEEXT
663ac_ct_CC
664CPPFLAGS
665LDFLAGS
666CFLAGS
667CC
668target_subdir
669host_subdir
670build_subdir
671build_libsubdir
8e957354
PB
672AWK
673SED
81ecdfbb
RW
674LN_S
675LN
676INSTALL_DATA
677INSTALL_SCRIPT
678INSTALL_PROGRAM
679target_os
680target_vendor
681target_cpu
682target
683host_os
684host_vendor
685host_cpu
686host
687target_noncanonical
688host_noncanonical
689build_noncanonical
690build_os
691build_vendor
692build_cpu
693build
694TOPLEVEL_CONFIGURE_ARGUMENTS
695target_alias
696host_alias
697build_alias
698LIBS
699ECHO_T
700ECHO_N
701ECHO_C
702DEFS
703mandir
704localedir
705libdir
706psdir
707pdfdir
708dvidir
709htmldir
710infodir
711docdir
712oldincludedir
713includedir
714localstatedir
715sharedstatedir
716sysconfdir
717datadir
718datarootdir
719libexecdir
720sbindir
721bindir
722program_transform_name
723prefix
724exec_prefix
725PACKAGE_URL
726PACKAGE_BUGREPORT
727PACKAGE_STRING
728PACKAGE_VERSION
729PACKAGE_TARNAME
730PACKAGE_NAME
731PATH_SEPARATOR
732SHELL'
733ac_subst_files='serialization_dependencies
734host_makefile_frag
735target_makefile_frag
736alphaieee_frag
737ospace_frag'
738ac_user_opts='
739enable_option_checking
740with_build_libsubdir
741enable_gold
742enable_libada
743enable_libssp
744enable_build_with_cxx
745with_mpc
746with_mpc_include
747with_mpc_lib
748with_mpfr_dir
749with_mpfr
750with_mpfr_include
751with_mpfr_lib
752with_gmp_dir
753with_gmp
754with_gmp_include
755with_gmp_lib
756with_host_libstdcxx
757with_stage1_ldflags
758with_stage1_libs
81ecdfbb 759with_boot_libs
143754cd 760with_boot_ldflags
81ecdfbb
RW
761with_ppl
762with_ppl_include
763with_ppl_lib
764enable_ppl_version_check
765with_cloog
766with_cloog_include
767with_cloog_lib
768enable_cloog_version_check
700d40ca 769enable_lto
81ecdfbb
RW
770enable_stage1_languages
771enable_objc_gc
772with_build_sysroot
773with_debug_prefix_map
774enable_bootstrap
96655cc4 775with_build_config
81ecdfbb
RW
776enable_serial_configure
777with_build_time_tools
778enable_maintainer_mode
779enable_stage1_checking
780enable_werror
81ecdfbb
RW
781'
782 ac_precious_vars='build_alias
783host_alias
784target_alias
785CC
786CFLAGS
787LDFLAGS
788LIBS
789CPPFLAGS
790CXX
791CXXFLAGS
792CCC
4074d5f2
RW
793build_configargs
794host_configargs
795target_configargs
81ecdfbb
RW
796AR
797AS
798DLLTOOL
799LD
800LIPO
801NM
802RANLIB
803STRIP
804WINDRES
805WINDMC
806OBJCOPY
807OBJDUMP
808CC_FOR_TARGET
809CXX_FOR_TARGET
810GCC_FOR_TARGET
811GCJ_FOR_TARGET
812GFORTRAN_FOR_TARGET
813AR_FOR_TARGET
814AS_FOR_TARGET
815DLLTOOL_FOR_TARGET
816LD_FOR_TARGET
817LIPO_FOR_TARGET
818NM_FOR_TARGET
819OBJDUMP_FOR_TARGET
820RANLIB_FOR_TARGET
821STRIP_FOR_TARGET
822WINDRES_FOR_TARGET
823WINDMC_FOR_TARGET'
824
a0da8069
NN
825
826# Initialize some variables set by options.
c6b750e1
DJ
827ac_init_help=
828ac_init_version=false
81ecdfbb
RW
829ac_unrecognized_opts=
830ac_unrecognized_sep=
a0da8069
NN
831# The variables have the same names as the options, with
832# dashes changed to underlines.
c6b750e1 833cache_file=/dev/null
a0da8069 834exec_prefix=NONE
a0da8069 835no_create=
a0da8069
NN
836no_recursion=
837prefix=NONE
838program_prefix=NONE
839program_suffix=NONE
840program_transform_name=s,x,x,
841silent=
842site=
843srcdir=
a0da8069
NN
844verbose=
845x_includes=NONE
846x_libraries=NONE
c6b750e1
DJ
847
848# Installation directory options.
849# These are left unexpanded so users can "make install exec_prefix=/foo"
850# and all the variables that are supposed to be based on exec_prefix
851# by default will actually change.
852# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 853# (The list follows the same order as the GNU Coding Standards.)
a0da8069
NN
854bindir='${exec_prefix}/bin'
855sbindir='${exec_prefix}/sbin'
856libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
857datarootdir='${prefix}/share'
858datadir='${datarootdir}'
a0da8069
NN
859sysconfdir='${prefix}/etc'
860sharedstatedir='${prefix}/com'
861localstatedir='${prefix}/var'
a0da8069
NN
862includedir='${prefix}/include'
863oldincludedir='/usr/include'
81ecdfbb
RW
864docdir='${datarootdir}/doc/${PACKAGE}'
865infodir='${datarootdir}/info'
866htmldir='${docdir}'
867dvidir='${docdir}'
868pdfdir='${docdir}'
869psdir='${docdir}'
870libdir='${exec_prefix}/lib'
871localedir='${datarootdir}/locale'
872mandir='${datarootdir}/man'
252b5132 873
a0da8069 874ac_prev=
81ecdfbb 875ac_dashdash=
a0da8069
NN
876for ac_option
877do
a0da8069
NN
878 # If the previous option needs an argument, assign it.
879 if test -n "$ac_prev"; then
81ecdfbb 880 eval $ac_prev=\$ac_option
a0da8069
NN
881 ac_prev=
882 continue
883 fi
252b5132 884
81ecdfbb
RW
885 case $ac_option in
886 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887 *) ac_optarg=yes ;;
888 esac
a0da8069
NN
889
890 # Accept the important Cygnus configure options, so we can diagnose typos.
891
81ecdfbb
RW
892 case $ac_dashdash$ac_option in
893 --)
894 ac_dashdash=yes ;;
a0da8069
NN
895
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 ac_prev=bindir ;;
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
c6b750e1 899 bindir=$ac_optarg ;;
a0da8069
NN
900
901 -build | --build | --buil | --bui | --bu)
c6b750e1 902 ac_prev=build_alias ;;
a0da8069 903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
c6b750e1 904 build_alias=$ac_optarg ;;
a0da8069
NN
905
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
c6b750e1
DJ
911 cache_file=$ac_optarg ;;
912
913 --config-cache | -C)
914 cache_file=config.cache ;;
a0da8069 915
81ecdfbb 916 -datadir | --datadir | --datadi | --datad)
a0da8069 917 ac_prev=datadir ;;
81ecdfbb 918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
c6b750e1 919 datadir=$ac_optarg ;;
a0da8069 920
81ecdfbb
RW
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
927
a0da8069 928 -disable-* | --disable-*)
81ecdfbb 929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
a0da8069 930 # Reject names that are not valid shell variable names.
81ecdfbb
RW
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
936 *"
937"enable_$ac_useropt"
938"*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=no ;;
943
944 -docdir | --docdir | --docdi | --doc | --do)
945 ac_prev=docdir ;;
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 docdir=$ac_optarg ;;
948
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 ac_prev=dvidir ;;
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 dvidir=$ac_optarg ;;
a0da8069
NN
953
954 -enable-* | --enable-*)
81ecdfbb 955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
a0da8069 956 # Reject names that are not valid shell variable names.
81ecdfbb
RW
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963"enable_$ac_useropt"
964"*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
a0da8069 967 esac
81ecdfbb 968 eval enable_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
969
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
c6b750e1 977 exec_prefix=$ac_optarg ;;
a0da8069
NN
978
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
981 with_gas=yes ;;
982
c6b750e1
DJ
983 -help | --help | --hel | --he | -h)
984 ac_init_help=long ;;
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
a0da8069
NN
989
990 -host | --host | --hos | --ho)
c6b750e1 991 ac_prev=host_alias ;;
a0da8069 992 -host=* | --host=* | --hos=* | --ho=*)
c6b750e1 993 host_alias=$ac_optarg ;;
a0da8069 994
81ecdfbb
RW
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 ac_prev=htmldir ;;
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 | --ht=*)
999 htmldir=$ac_optarg ;;
1000
a0da8069
NN
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
c6b750e1 1006 includedir=$ac_optarg ;;
a0da8069
NN
1007
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 ac_prev=infodir ;;
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
c6b750e1 1011 infodir=$ac_optarg ;;
a0da8069
NN
1012
1013 -libdir | --libdir | --libdi | --libd)
1014 ac_prev=libdir ;;
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
c6b750e1 1016 libdir=$ac_optarg ;;
a0da8069
NN
1017
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
c6b750e1 1023 libexecdir=$ac_optarg ;;
a0da8069 1024
81ecdfbb
RW
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1029
a0da8069 1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1031 | --localstate | --localstat | --localsta | --localst | --locals)
a0da8069
NN
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
c6b750e1 1035 localstatedir=$ac_optarg ;;
a0da8069
NN
1036
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 ac_prev=mandir ;;
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
c6b750e1 1040 mandir=$ac_optarg ;;
a0da8069
NN
1041
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1044 with_fp=no ;;
1045
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
c6b750e1 1047 | --no-cr | --no-c | -n)
a0da8069
NN
1048 no_create=yes ;;
1049
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 no_recursion=yes ;;
1053
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
c6b750e1 1061 oldincludedir=$ac_optarg ;;
a0da8069
NN
1062
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 ac_prev=prefix ;;
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
c6b750e1 1066 prefix=$ac_optarg ;;
a0da8069
NN
1067
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
c6b750e1 1073 program_prefix=$ac_optarg ;;
a0da8069
NN
1074
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
c6b750e1 1080 program_suffix=$ac_optarg ;;
a0da8069
NN
1081
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
c6b750e1 1097 program_transform_name=$ac_optarg ;;
a0da8069 1098
81ecdfbb
RW
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 ac_prev=pdfdir ;;
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1103
1104 -psdir | --psdir | --psdi | --psd | --ps)
1105 ac_prev=psdir ;;
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 psdir=$ac_optarg ;;
1108
a0da8069
NN
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 silent=yes ;;
1112
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114 ac_prev=sbindir ;;
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116 | --sbi=* | --sb=*)
c6b750e1 1117 sbindir=$ac_optarg ;;
a0da8069
NN
1118
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1122 | --sha | --sh)
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127 | --sha=* | --sh=*)
c6b750e1 1128 sharedstatedir=$ac_optarg ;;
a0da8069
NN
1129
1130 -site | --site | --sit)
1131 ac_prev=site ;;
1132 -site=* | --site=* | --sit=*)
c6b750e1 1133 site=$ac_optarg ;;
a0da8069
NN
1134
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136 ac_prev=srcdir ;;
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
c6b750e1 1138 srcdir=$ac_optarg ;;
a0da8069
NN
1139
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
c6b750e1 1145 sysconfdir=$ac_optarg ;;
a0da8069
NN
1146
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
c6b750e1 1148 ac_prev=target_alias ;;
a0da8069 1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
c6b750e1 1150 target_alias=$ac_optarg ;;
a0da8069
NN
1151
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 verbose=yes ;;
1154
c6b750e1
DJ
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
a0da8069
NN
1157
1158 -with-* | --with-*)
81ecdfbb 1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
a0da8069 1160 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167"with_$ac_useropt"
1168"*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
a0da8069 1171 esac
81ecdfbb 1172 eval with_$ac_useropt=\$ac_optarg ;;
a0da8069
NN
1173
1174 -without-* | --without-*)
81ecdfbb 1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
a0da8069 1176 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1182 *"
1183"with_$ac_useropt"
1184"*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=no ;;
a0da8069
NN
1189
1190 --x)
1191 # Obsolete; use --with-x.
1192 with_x=yes ;;
1193
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
c6b750e1 1199 x_includes=$ac_optarg ;;
a0da8069
NN
1200
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
c6b750e1 1206 x_libraries=$ac_optarg ;;
a0da8069 1207
81ecdfbb
RW
1208 -*) as_fn_error "unrecognized option: \`$ac_option'
1209Try \`$0 --help' for more information."
a0da8069
NN
1210 ;;
1211
c6b750e1
DJ
1212 *=*)
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1215 case $ac_envvar in #(
1216 '' | [0-9]* | *[!_$as_cr_alnum]* )
1217 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1218 esac
1219 eval $ac_envvar=\$ac_optarg
c6b750e1
DJ
1220 export $ac_envvar ;;
1221
a0da8069 1222 *)
c6b750e1 1223 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
c6b750e1 1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
c6b750e1 1227 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
a0da8069
NN
1228 ;;
1229
1230 esac
1231done
1232
1233if test -n "$ac_prev"; then
c6b750e1 1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
81ecdfbb 1235 as_fn_error "missing argument to $ac_option"
a0da8069 1236fi
a0da8069 1237
81ecdfbb
RW
1238if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1240 no) ;;
1241 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
c6b750e1 1243 esac
81ecdfbb 1244fi
a0da8069 1245
81ecdfbb
RW
1246# Check all directory arguments for consistency.
1247for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
a0da8069 1251do
81ecdfbb
RW
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1254 case $ac_val in
1255 */ )
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1258 esac
1259 # Be sure to have absolute directory names.
c6b750e1 1260 case $ac_val in
81ecdfbb
RW
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
a0da8069 1263 esac
81ecdfbb 1264 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
a0da8069
NN
1265done
1266
c6b750e1
DJ
1267# There might be people who depend on the old broken behavior: `$host'
1268# used to hold the argument of --host etc.
1269# FIXME: To remove some day.
1270build=$build_alias
1271host=$host_alias
1272target=$target_alias
376a0e54 1273
c6b750e1
DJ
1274# FIXME: To remove some day.
1275if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
81ecdfbb 1278 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
c6b750e1
DJ
1279 If a cross compiler is detected then cross compile mode will be used." >&2
1280 elif test "x$build_alias" != "x$host_alias"; then
1281 cross_compiling=yes
1282 fi
1283fi
1284
1285ac_tool_prefix=
1286test -n "$host_alias" && ac_tool_prefix=$host_alias-
1287
1288test "$silent" = yes && exec 6>/dev/null
a0da8069 1289
a0da8069 1290
81ecdfbb
RW
1291ac_pwd=`pwd` && test -n "$ac_pwd" &&
1292ac_ls_di=`ls -di .` &&
1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1294 as_fn_error "working directory cannot be determined"
1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1296 as_fn_error "pwd does not report name of working directory"
1297
1298
a0da8069
NN
1299# Find the source files, if location was not specified.
1300if test -z "$srcdir"; then
1301 ac_srcdir_defaulted=yes
81ecdfbb
RW
1302 # Try the directory containing this script, then the parent directory.
1303 ac_confdir=`$as_dirname -- "$as_myself" ||
1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1305 X"$as_myself" : 'X\(//\)[^/]' \| \
1306 X"$as_myself" : 'X\(//\)$' \| \
1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1308$as_echo X"$as_myself" |
1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)[^/].*/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\/\)$/{
1318 s//\1/
1319 q
1320 }
1321 /^X\(\/\).*/{
1322 s//\1/
1323 q
1324 }
1325 s/.*/./; q'`
a0da8069 1326 srcdir=$ac_confdir
81ecdfbb 1327 if test ! -r "$srcdir/$ac_unique_file"; then
a0da8069
NN
1328 srcdir=..
1329 fi
1330else
1331 ac_srcdir_defaulted=no
1332fi
81ecdfbb
RW
1333if test ! -r "$srcdir/$ac_unique_file"; then
1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1335 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1336fi
1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1338ac_abs_confdir=`(
1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1340 pwd)`
1341# When building in place, set srcdir=.
1342if test "$ac_abs_confdir" = "$ac_pwd"; then
1343 srcdir=.
1344fi
1345# Remove unnecessary trailing slashes from srcdir.
1346# Double slashes in file names in object file debugging info
1347# mess up M-x gdb in Emacs.
1348case $srcdir in
1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1350esac
6d0cd39e
AM
1351case $srcdir in
1352 *" "*)
1353 as_fn_error "path to source, $srcdir, contains spaces"
1354 ;;
1355esac
9cc8ae67
PB
1356ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1357
81ecdfbb
RW
1358for ac_var in $ac_precious_vars; do
1359 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_env_${ac_var}_value=\$${ac_var}
1361 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1363done
c6b750e1
DJ
1364
1365#
1366# Report the --help message.
1367#
1368if test "$ac_init_help" = "long"; then
1369 # Omit some internal or obsolete options to make the list less imposing.
1370 # This message is too long to be a string in the A/UX 3.1 sh.
1371 cat <<_ACEOF
1372\`configure' configures this package to adapt to many kinds of systems.
1373
1374Usage: $0 [OPTION]... [VAR=VALUE]...
1375
1376To assign environment variables (e.g., CC, CFLAGS...), specify them as
1377VAR=VALUE. See below for descriptions of some of the useful variables.
1378
1379Defaults for the options are specified in brackets.
1380
1381Configuration:
1382 -h, --help display this help and exit
1383 --help=short display options specific to this package
1384 --help=recursive display the short help of all the included packages
1385 -V, --version display version information and exit
1386 -q, --quiet, --silent do not print \`checking...' messages
1387 --cache-file=FILE cache test results in FILE [disabled]
1388 -C, --config-cache alias for \`--cache-file=config.cache'
1389 -n, --no-create do not create output files
1390 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1391
c6b750e1
DJ
1392Installation directories:
1393 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1394 [$ac_default_prefix]
c6b750e1 1395 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1396 [PREFIX]
c6b750e1
DJ
1397
1398By default, \`make install' will install all the files in
1399\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1400an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1401for instance \`--prefix=\$HOME'.
1402
1403For better control, use the options below.
1404
1405Fine tuning of the installation directories:
81ecdfbb
RW
1406 --bindir=DIR user executables [EPREFIX/bin]
1407 --sbindir=DIR system admin executables [EPREFIX/sbin]
1408 --libexecdir=DIR program executables [EPREFIX/libexec]
1409 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1410 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1411 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1412 --libdir=DIR object code libraries [EPREFIX/lib]
1413 --includedir=DIR C header files [PREFIX/include]
1414 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1415 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1416 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1417 --infodir=DIR info documentation [DATAROOTDIR/info]
1418 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1419 --mandir=DIR man documentation [DATAROOTDIR/man]
1420 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1421 --htmldir=DIR html documentation [DOCDIR]
1422 --dvidir=DIR dvi documentation [DOCDIR]
1423 --pdfdir=DIR pdf documentation [DOCDIR]
1424 --psdir=DIR ps documentation [DOCDIR]
c6b750e1
DJ
1425_ACEOF
1426
1427 cat <<\_ACEOF
1428
1429Program names:
1430 --program-prefix=PREFIX prepend PREFIX to installed program names
1431 --program-suffix=SUFFIX append SUFFIX to installed program names
1432 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1433
1434System types:
1435 --build=BUILD configure for building on BUILD [guessed]
1436 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1437 --target=TARGET configure for building compilers for TARGET [HOST]
1438_ACEOF
a0da8069 1439fi
a0da8069 1440
c6b750e1
DJ
1441if test -n "$ac_init_help"; then
1442
1443 cat <<\_ACEOF
1444
1445Optional Features:
81ecdfbb 1446 --disable-option-checking ignore unrecognized --enable/--with options
c6b750e1
DJ
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
e6de499b 1449 --enable-gold[=ARG] build gold [ARG={both}[/{gold,ld}]]
521ec477
DD
1450 --enable-libada build libada directory
1451 --enable-libssp build libssp directory
e8a5fa9c 1452 --enable-build-with-cxx build with C++ compiler instead of C compiler
e28c595f
JM
1453 --disable-ppl-version-check disable check for PPL version
1454 --disable-cloog-version-check disable check for CLooG version
700d40ca 1455 --enable-lto enable link time optimization support
521ec477 1456 --enable-stage1-languages[=all] choose additional languages to build during
c6b750e1 1457 stage1. Mostly useful for compiler development.
521ec477
DD
1458 --enable-objc-gc enable use of Boehm's garbage collector with the
1459 GNU Objective-C runtime
1460 --enable-bootstrap enable bootstrapping [yes if native build]
1461 --enable-serial-[{host,target,build}-]configure
1462 force sequential configuration of
c6b750e1 1463 sub-packages for the host, target or build
521ec477 1464 machine, or all sub-packages
c6b750e1
DJ
1465 --enable-maintainer-mode enable make rules and dependencies not useful
1466 (and sometimes confusing) to the casual installer
521ec477
DD
1467 --enable-stage1-checking[=all] choose additional checking for stage1
1468 of the compiler
c6b750e1
DJ
1469 --enable-werror enable -Werror in bootstrap stage2 and later
1470
1471Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-build-libsubdir=DIR Directory where to find libraries for build system
e8a5fa9c
RW
1475 --with-mpc=PATH specify prefix directory for installed MPC package.
1476 Equivalent to --with-mpc-include=PATH/include
1477 plus --with-mpc-lib=PATH/lib
1478 --with-mpc-include=PATH
1479 specify directory for installed MPC include files
1480 --with-mpc-lib=PATH specify directory for the installed MPC library
521ec477
DD
1481 --with-mpfr-dir=PATH this option has been REMOVED
1482 --with-mpfr=PATH specify prefix directory for installed MPFR package.
c6b750e1
DJ
1483 Equivalent to --with-mpfr-include=PATH/include
1484 plus --with-mpfr-lib=PATH/lib
1485 --with-mpfr-include=PATH
521ec477
DD
1486 specify directory for installed MPFR include files
1487 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1488 --with-gmp-dir=PATH this option has been REMOVED
1489 --with-gmp=PATH specify prefix directory for the installed GMP package.
c6b750e1
DJ
1490 Equivalent to --with-gmp-include=PATH/include
1491 plus --with-gmp-lib=PATH/lib
521ec477
DD
1492 --with-gmp-include=PATH specify directory for installed GMP include files
1493 --with-gmp-lib=PATH specify directory for the installed GMP library
29383458
JM
1494 --with-host-libstdcxx=L Use linker arguments L to link with libstdc++
1495 when linking with PPL
e8a5fa9c
RW
1496 --with-stage1-ldflags=FLAGS Linker flags for stage1
1497 -with-stage1-libs=LIBS Libraries for stage1
e8a5fa9c 1498 --with-boot-libs=LIBS Libraries for stage2 and later
143754cd 1499 --with-boot-ldflags=FLAGS Linker flags for stage2 and later
e28c595f
JM
1500 --with-ppl=PATH Specify prefix directory for the installed PPL package
1501 Equivalent to --with-ppl-include=PATH/include
1502 plus --with-ppl-lib=PATH/lib
1503 --with-ppl-include=PATH Specify directory for installed PPL include files
1504 --with-ppl-lib=PATH Specify the directory for the installed PPL library
1505 --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL package
1506 Equivalent to --with-cloog-include=PATH/include
1507 plus --with-cloog-lib=PATH/lib
1508 --with-cloog-include=PATH Specify directory for installed CLooG include files
1509 --with-cloog-lib=PATH Specify the directory for the installed CLooG library
521ec477 1510 --with-build-sysroot=SYSROOT
c6b750e1 1511 use sysroot as the system root during the build
8a6ee3ab
JM
1512 --with-debug-prefix-map='A=B C=D ...'
1513 map A to B, C to D ... in debug information
96655cc4
AO
1514--with-build-config='NAME NAME2...'
1515 Use config/NAME.mk build configuration
521ec477 1516 --with-build-time-tools=PATH
c6b750e1 1517 use given path to find target tools during the build
c6b750e1
DJ
1518
1519Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
81ecdfbb
RW
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
18f6b6ee
PB
1527 CXX C++ compiler command
1528 CXXFLAGS C++ compiler flags
4074d5f2
RW
1529 build_configargs
1530 additional configure arguments for build directories
1531 host_configargs
1532 additional configure arguments for host directories
1533 target_configargs
1534 additional configure arguments for target directories
9a819804
AO
1535 AR AR for the host
1536 AS AS for the host
1537 DLLTOOL DLLTOOL for the host
1538 LD LD for the host
1539 LIPO LIPO for the host
1540 NM NM for the host
1541 RANLIB RANLIB for the host
1542 STRIP STRIP for the host
1543 WINDRES WINDRES for the host
0c24b341 1544 WINDMC WINDMC for the host
9a819804
AO
1545 OBJCOPY OBJCOPY for the host
1546 OBJDUMP OBJDUMP for the host
1547 CC_FOR_TARGET
1548 CC for the target
1549 CXX_FOR_TARGET
1550 CXX for the target
1551 GCC_FOR_TARGET
1552 GCC for the target
1553 GCJ_FOR_TARGET
1554 GCJ for the target
1555 GFORTRAN_FOR_TARGET
1556 GFORTRAN for the target
1557 AR_FOR_TARGET
1558 AR for the target
1559 AS_FOR_TARGET
1560 AS for the target
1561 DLLTOOL_FOR_TARGET
1562 DLLTOOL for the target
1563 LD_FOR_TARGET
1564 LD for the target
1565 LIPO_FOR_TARGET
1566 LIPO for the target
1567 NM_FOR_TARGET
1568 NM for the target
1569 OBJDUMP_FOR_TARGET
1570 OBJDUMP for the target
1571 RANLIB_FOR_TARGET
1572 RANLIB for the target
1573 STRIP_FOR_TARGET
1574 STRIP for the target
1575 WINDRES_FOR_TARGET
1576 WINDRES for the target
0c24b341
NC
1577 WINDMC_FOR_TARGET
1578 WINDMC for the target
c6b750e1
DJ
1579
1580Use these variables to override the choices made by `configure' or to help
1581it to find libraries and programs with nonstandard names/locations.
1582
81ecdfbb 1583Report bugs to the package provider.
c6b750e1 1584_ACEOF
81ecdfbb 1585ac_status=$?
c6b750e1
DJ
1586fi
1587
1588if test "$ac_init_help" = "recursive"; then
1589 # If there are subdirs, report their specific --help.
c6b750e1 1590 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1591 test -d "$ac_dir" ||
1592 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1593 continue
c6b750e1
DJ
1594 ac_builddir=.
1595
81ecdfbb
RW
1596case "$ac_dir" in
1597.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598*)
1599 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1600 # A ".." for each directory in $ac_dir_suffix.
1601 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1602 case $ac_top_builddir_sub in
1603 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1604 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1605 esac ;;
1606esac
1607ac_abs_top_builddir=$ac_pwd
1608ac_abs_builddir=$ac_pwd$ac_dir_suffix
1609# for backward compatibility:
1610ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
1611
1612case $srcdir in
81ecdfbb 1613 .) # We are building in place.
c6b750e1 1614 ac_srcdir=.
81ecdfbb
RW
1615 ac_top_srcdir=$ac_top_builddir_sub
1616 ac_abs_top_srcdir=$ac_pwd ;;
1617 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 1618 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1619 ac_top_srcdir=$srcdir
1620 ac_abs_top_srcdir=$srcdir ;;
1621 *) # Relative name.
1622 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1623 ac_top_srcdir=$ac_top_build_prefix$srcdir
1624 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 1625esac
81ecdfbb
RW
1626ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1627
1628 cd "$ac_dir" || { ac_status=$?; continue; }
1629 # Check for guested configure.
1630 if test -f "$ac_srcdir/configure.gnu"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1633 elif test -f "$ac_srcdir/configure"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure" --help=recursive
c6b750e1 1636 else
81ecdfbb
RW
1637 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1638 fi || ac_status=$?
1639 cd "$ac_pwd" || { ac_status=$?; break; }
c6b750e1
DJ
1640 done
1641fi
1642
81ecdfbb 1643test -n "$ac_init_help" && exit $ac_status
c6b750e1
DJ
1644if $ac_init_version; then
1645 cat <<\_ACEOF
81ecdfbb
RW
1646configure
1647generated by GNU Autoconf 2.64
c6b750e1 1648
81ecdfbb 1649Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
1650This configure script is free software; the Free Software Foundation
1651gives unlimited permission to copy, distribute and modify it.
1652_ACEOF
81ecdfbb 1653 exit
c6b750e1 1654fi
81ecdfbb
RW
1655
1656## ------------------------ ##
1657## Autoconf initialization. ##
1658## ------------------------ ##
1659
1660# ac_fn_c_try_compile LINENO
1661# --------------------------
1662# Try to compile conftest.$ac_ext, and return whether this succeeded.
1663ac_fn_c_try_compile ()
1664{
1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666 rm -f conftest.$ac_objext
1667 if { { ac_try="$ac_compile"
1668case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671esac
1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673$as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_compile") 2>conftest.err
1675 ac_status=$?
1676 if test -s conftest.err; then
1677 grep -v '^ *+' conftest.err >conftest.er1
1678 cat conftest.er1 >&5
1679 mv -f conftest.er1 conftest.err
1680 fi
1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1682 test $ac_status = 0; } && {
1683 test -z "$ac_c_werror_flag" ||
1684 test ! -s conftest.err
1685 } && test -s conftest.$ac_objext; then :
1686 ac_retval=0
1687else
1688 $as_echo "$as_me: failed program was:" >&5
1689sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692fi
1693 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1694 return $ac_retval
1695
1696} # ac_fn_c_try_compile
1697
1698# ac_fn_cxx_try_compile LINENO
1699# ----------------------------
1700# Try to compile conftest.$ac_ext, and return whether this succeeded.
1701ac_fn_cxx_try_compile ()
1702{
1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704 rm -f conftest.$ac_objext
1705 if { { ac_try="$ac_compile"
1706case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709esac
1710eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711$as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_compile") 2>conftest.err
1713 ac_status=$?
1714 if test -s conftest.err; then
1715 grep -v '^ *+' conftest.err >conftest.er1
1716 cat conftest.er1 >&5
1717 mv -f conftest.er1 conftest.err
1718 fi
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && {
1721 test -z "$ac_cxx_werror_flag" ||
1722 test ! -s conftest.err
1723 } && test -s conftest.$ac_objext; then :
1724 ac_retval=0
1725else
1726 $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 ac_retval=1
1730fi
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1733
1734} # ac_fn_cxx_try_compile
1735
1736# ac_fn_c_try_link LINENO
1737# -----------------------
1738# Try to link conftest.$ac_ext, and return whether this succeeded.
1739ac_fn_c_try_link ()
1740{
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 rm -f conftest.$ac_objext conftest$ac_exeext
1743 if { { ac_try="$ac_link"
1744case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_link") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1756 fi
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758 test $ac_status = 0; } && {
1759 test -z "$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 } && test -s conftest$ac_exeext && {
1762 test "$cross_compiling" = yes ||
1763 $as_test_x conftest$ac_exeext
1764 }; then :
1765 ac_retval=0
1766else
1767 $as_echo "$as_me: failed program was:" >&5
1768sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=1
1771fi
1772 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1773 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1774 # interfere with the next link command; also delete a directory that is
1775 # left behind by Apple's compiler. We do this before executing the actions.
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778 return $ac_retval
1779
1780} # ac_fn_c_try_link
1781cat >config.log <<_ACEOF
c6b750e1
DJ
1782This file contains any messages produced by compilers while
1783running configure, to aid debugging if configure makes a mistake.
1784
1785It was created by $as_me, which was
81ecdfbb 1786generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
1787
1788 $ $0 $@
1789
1790_ACEOF
81ecdfbb 1791exec 5>>config.log
c6b750e1
DJ
1792{
1793cat <<_ASUNAME
1794## --------- ##
1795## Platform. ##
1796## --------- ##
1797
1798hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1799uname -m = `(uname -m) 2>/dev/null || echo unknown`
1800uname -r = `(uname -r) 2>/dev/null || echo unknown`
1801uname -s = `(uname -s) 2>/dev/null || echo unknown`
1802uname -v = `(uname -v) 2>/dev/null || echo unknown`
1803
1804/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1805/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1806
1807/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1808/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1809/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 1810/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
c6b750e1
DJ
1811/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1812/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1813/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1814
1815_ASUNAME
1816
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820 IFS=$as_save_IFS
1821 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
1822 $as_echo "PATH: $as_dir"
1823 done
1824IFS=$as_save_IFS
c6b750e1
DJ
1825
1826} >&5
1827
1828cat >&5 <<_ACEOF
1829
1830
1831## ----------- ##
1832## Core tests. ##
1833## ----------- ##
1834
1835_ACEOF
1836
1837
1838# Keep a trace of the command line.
1839# Strip out --no-create and --no-recursion so they do not pile up.
1840# Strip out --silent because we don't want to record it for future runs.
1841# Also quote any args containing shell meta-characters.
1842# Make two passes to allow for proper duplicate-argument suppression.
1843ac_configure_args=
1844ac_configure_args0=
1845ac_configure_args1=
c6b750e1
DJ
1846ac_must_keep_next=false
1847for ac_pass in 1 2
1848do
1849 for ac_arg
1850 do
1851 case $ac_arg in
1852 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1853 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1854 | -silent | --silent | --silen | --sile | --sil)
1855 continue ;;
81ecdfbb
RW
1856 *\'*)
1857 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
1858 esac
1859 case $ac_pass in
81ecdfbb 1860 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
c6b750e1 1861 2)
81ecdfbb 1862 as_fn_append ac_configure_args1 " '$ac_arg'"
c6b750e1
DJ
1863 if test $ac_must_keep_next = true; then
1864 ac_must_keep_next=false # Got value, back to normal.
1865 else
1866 case $ac_arg in
1867 *=* | --config-cache | -C | -disable-* | --disable-* \
1868 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1869 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1870 | -with-* | --with-* | -without-* | --without-* | --x)
1871 case "$ac_configure_args0 " in
1872 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1873 esac
1874 ;;
1875 -* ) ac_must_keep_next=true ;;
1876 esac
1877 fi
81ecdfbb 1878 as_fn_append ac_configure_args " '$ac_arg'"
c6b750e1
DJ
1879 ;;
1880 esac
1881 done
1882done
81ecdfbb
RW
1883{ ac_configure_args0=; unset ac_configure_args0;}
1884{ ac_configure_args1=; unset ac_configure_args1;}
c6b750e1
DJ
1885
1886# When interrupted or exit'd, cleanup temporary files, and complete
1887# config.log. We remove comments because anyway the quotes in there
1888# would cause problems or look ugly.
81ecdfbb
RW
1889# WARNING: Use '\'' to represent an apostrophe within the trap.
1890# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
c6b750e1
DJ
1891trap 'exit_status=$?
1892 # Save into config.log some information that might help in debugging.
1893 {
1894 echo
1895
1896 cat <<\_ASBOX
1897## ---------------- ##
1898## Cache variables. ##
1899## ---------------- ##
1900_ASBOX
1901 echo
1902 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
1903(
1904 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1905 eval ac_val=\$$ac_var
1906 case $ac_val in #(
1907 *${as_nl}*)
1908 case $ac_var in #(
1909 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1910$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1911 esac
1912 case $ac_var in #(
1913 _ | IFS | as_nl) ;; #(
1914 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1915 *) { eval $ac_var=; unset $ac_var;} ;;
1916 esac ;;
1917 esac
1918 done
c6b750e1 1919 (set) 2>&1 |
81ecdfbb
RW
1920 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1921 *${as_nl}ac_space=\ *)
c6b750e1 1922 sed -n \
81ecdfbb
RW
1923 "s/'\''/'\''\\\\'\'''\''/g;
1924 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1925 ;; #(
c6b750e1 1926 *)
81ecdfbb 1927 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 1928 ;;
81ecdfbb
RW
1929 esac |
1930 sort
1931)
c6b750e1
DJ
1932 echo
1933
1934 cat <<\_ASBOX
1935## ----------------- ##
1936## Output variables. ##
1937## ----------------- ##
1938_ASBOX
1939 echo
1940 for ac_var in $ac_subst_vars
1941 do
81ecdfbb
RW
1942 eval ac_val=\$$ac_var
1943 case $ac_val in
1944 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945 esac
1946 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1947 done | sort
1948 echo
1949
1950 if test -n "$ac_subst_files"; then
1951 cat <<\_ASBOX
81ecdfbb
RW
1952## ------------------- ##
1953## File substitutions. ##
1954## ------------------- ##
c6b750e1
DJ
1955_ASBOX
1956 echo
1957 for ac_var in $ac_subst_files
1958 do
81ecdfbb
RW
1959 eval ac_val=\$$ac_var
1960 case $ac_val in
1961 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962 esac
1963 $as_echo "$ac_var='\''$ac_val'\''"
c6b750e1
DJ
1964 done | sort
1965 echo
1966 fi
1967
1968 if test -s confdefs.h; then
1969 cat <<\_ASBOX
1970## ----------- ##
1971## confdefs.h. ##
1972## ----------- ##
1973_ASBOX
1974 echo
81ecdfbb 1975 cat confdefs.h
c6b750e1
DJ
1976 echo
1977 fi
1978 test "$ac_signal" != 0 &&
81ecdfbb
RW
1979 $as_echo "$as_me: caught signal $ac_signal"
1980 $as_echo "$as_me: exit $exit_status"
c6b750e1 1981 } >&5
81ecdfbb
RW
1982 rm -f core *.core core.conftest.* &&
1983 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
c6b750e1 1984 exit $exit_status
81ecdfbb 1985' 0
c6b750e1 1986for ac_signal in 1 2 13 15; do
81ecdfbb 1987 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
c6b750e1
DJ
1988done
1989ac_signal=0
1990
1991# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
1992rm -f -r conftest* confdefs.h
1993
1994$as_echo "/* confdefs.h */" > confdefs.h
c6b750e1
DJ
1995
1996# Predefined preprocessor variables.
1997
1998cat >>confdefs.h <<_ACEOF
1999#define PACKAGE_NAME "$PACKAGE_NAME"
2000_ACEOF
2001
c6b750e1
DJ
2002cat >>confdefs.h <<_ACEOF
2003#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2004_ACEOF
2005
c6b750e1
DJ
2006cat >>confdefs.h <<_ACEOF
2007#define PACKAGE_VERSION "$PACKAGE_VERSION"
2008_ACEOF
2009
c6b750e1
DJ
2010cat >>confdefs.h <<_ACEOF
2011#define PACKAGE_STRING "$PACKAGE_STRING"
2012_ACEOF
2013
c6b750e1
DJ
2014cat >>confdefs.h <<_ACEOF
2015#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2016_ACEOF
2017
81ecdfbb
RW
2018cat >>confdefs.h <<_ACEOF
2019#define PACKAGE_URL "$PACKAGE_URL"
2020_ACEOF
2021
c6b750e1
DJ
2022
2023# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2024# Prefer an explicitly selected file to automatically selected ones.
2025ac_site_file1=NONE
2026ac_site_file2=NONE
2027if test -n "$CONFIG_SITE"; then
2028 ac_site_file1=$CONFIG_SITE
2029elif test "x$prefix" != xNONE; then
2030 ac_site_file1=$prefix/share/config.site
2031 ac_site_file2=$prefix/etc/config.site
2032else
2033 ac_site_file1=$ac_default_prefix/share/config.site
2034 ac_site_file2=$ac_default_prefix/etc/config.site
a0da8069 2035fi
81ecdfbb
RW
2036for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2037do
2038 test "x$ac_site_file" = xNONE && continue
a0da8069 2039 if test -r "$ac_site_file"; then
81ecdfbb
RW
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2041$as_echo "$as_me: loading site script $ac_site_file" >&6;}
c6b750e1 2042 sed 's/^/| /' "$ac_site_file" >&5
a0da8069
NN
2043 . "$ac_site_file"
2044 fi
2045done
2046
2047if test -r "$cache_file"; then
c6b750e1
DJ
2048 # Some versions of bash will fail to source /dev/null (special
2049 # files actually), so we avoid doing that.
2050 if test -f "$cache_file"; then
81ecdfbb
RW
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2052$as_echo "$as_me: loading cache $cache_file" >&6;}
c6b750e1 2053 case $cache_file in
81ecdfbb
RW
2054 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2055 *) . "./$cache_file";;
c6b750e1
DJ
2056 esac
2057 fi
a0da8069 2058else
81ecdfbb
RW
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2060$as_echo "$as_me: creating cache $cache_file" >&6;}
c6b750e1
DJ
2061 >$cache_file
2062fi
2063
2064# Check that the precious variables saved in the cache have kept the same
2065# value.
2066ac_cache_corrupted=false
81ecdfbb 2067for ac_var in $ac_precious_vars; do
c6b750e1
DJ
2068 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2069 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2070 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2071 eval ac_new_val=\$ac_env_${ac_var}_value
c6b750e1
DJ
2072 case $ac_old_set,$ac_new_set in
2073 set,)
81ecdfbb
RW
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2075$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
c6b750e1
DJ
2076 ac_cache_corrupted=: ;;
2077 ,set)
81ecdfbb
RW
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2079$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
c6b750e1
DJ
2080 ac_cache_corrupted=: ;;
2081 ,);;
2082 *)
2083 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2084 # differences in whitespace do not lead to failure.
2085 ac_old_val_w=`echo x $ac_old_val`
2086 ac_new_val_w=`echo x $ac_new_val`
2087 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2089$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2090 ac_cache_corrupted=:
2091 else
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2093$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2094 eval $ac_var=\$ac_old_val
2095 fi
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2097$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2099$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
c6b750e1
DJ
2100 fi;;
2101 esac
2102 # Pass precious variables to config.status.
2103 if test "$ac_new_set" = set; then
2104 case $ac_new_val in
81ecdfbb 2105 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
c6b750e1
DJ
2106 *) ac_arg=$ac_var=$ac_new_val ;;
2107 esac
2108 case " $ac_configure_args " in
2109 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2110 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
c6b750e1
DJ
2111 esac
2112 fi
2113done
2114if $ac_cache_corrupted; then
81ecdfbb
RW
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2116$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2118$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2119 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
a0da8069 2120fi
81ecdfbb
RW
2121## -------------------- ##
2122## Main body of script. ##
2123## -------------------- ##
a0da8069
NN
2124
2125ac_ext=c
a0da8069 2126ac_cpp='$CPP $CPPFLAGS'
c6b750e1
DJ
2127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2129ac_compiler_gnu=$ac_cv_c_compiler_gnu
2130
2131
2132
2133
c6b750e1
DJ
2134
2135
34a0f3cf 2136
c6b750e1 2137
5b553f7e
RW
2138
2139progname=$0
2140# if PWD already has a value, it is probably wrong.
2141if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2142
2143# Export original configure arguments for use by sub-configures.
2144# Quote arguments with shell meta charatcers.
2145TOPLEVEL_CONFIGURE_ARGUMENTS=
2146set -- "$progname" "$@"
2147for ac_arg
2148do
2149 case "$ac_arg" in
2150 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2151 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2152 # if the argument is of the form -foo=baz, quote the baz part only
2153 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2154 *) ;;
2155 esac
2156 # Add the quoted argument to the list.
2157 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2158done
2159if test "$silent" = yes; then
2160 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2161fi
2162# Remove the initial space we just introduced and, as these will be
2163# expanded by make, quote '$'.
2164TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2165
c6b750e1
DJ
2166
2167# Find the build, host, and target systems.
a0da8069 2168ac_aux_dir=
81ecdfbb
RW
2169for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2170 for ac_t in install-sh install.sh shtool; do
2171 if test -f "$ac_dir/$ac_t"; then
2172 ac_aux_dir=$ac_dir
2173 ac_install_sh="$ac_aux_dir/$ac_t -c"
2174 break 2
2175 fi
2176 done
a0da8069
NN
2177done
2178if test -z "$ac_aux_dir"; then
81ecdfbb 2179 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
a0da8069 2180fi
81ecdfbb
RW
2181
2182# These three variables are undocumented and unsupported,
2183# and are intended to be withdrawn in a future Autoconf release.
2184# They can cause serious problems if a builder's source tree is in a directory
2185# whose full name contains unusual characters.
2186ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2187ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2188ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2189
a0da8069 2190
c6b750e1 2191# Make sure we can run config.sub.
81ecdfbb
RW
2192$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2193 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2194
2195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2196$as_echo_n "checking build system type... " >&6; }
2197if test "${ac_cv_build+set}" = set; then :
2198 $as_echo_n "(cached) " >&6
2199else
2200 ac_build_alias=$build_alias
2201test "x$ac_build_alias" = x &&
2202 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2203test "x$ac_build_alias" = x &&
2204 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2205ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2206 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2207
2208fi
2209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2210$as_echo "$ac_cv_build" >&6; }
2211case $ac_cv_build in
2212*-*-*) ;;
2213*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2214esac
c6b750e1 2215build=$ac_cv_build
81ecdfbb
RW
2216ac_save_IFS=$IFS; IFS='-'
2217set x $ac_cv_build
2218shift
2219build_cpu=$1
2220build_vendor=$2
2221shift; shift
2222# Remember, the first character of IFS is used to create $*,
2223# except with old shells:
2224build_os=$*
2225IFS=$ac_save_IFS
2226case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
a0da8069 2227
a0da8069 2228
c6b750e1
DJ
2229 case ${build_alias} in
2230 "") build_noncanonical=${build} ;;
2231 *) build_noncanonical=${build_alias} ;;
cac3d6c4
CM
2232esac
2233
2234
cac3d6c4 2235
c6b750e1
DJ
2236 case ${host_alias} in
2237 "") host_noncanonical=${build_noncanonical} ;;
2238 *) host_noncanonical=${host_alias} ;;
cac3d6c4
CM
2239esac
2240
cac3d6c4 2241
c6b750e1
DJ
2242
2243 case ${target_alias} in
2244 "") target_noncanonical=${host_noncanonical} ;;
2245 *) target_noncanonical=${target_alias} ;;
cac3d6c4
CM
2246esac
2247
cac3d6c4 2248
c6b750e1
DJ
2249
2250
2251test "$host_noncanonical" = "$target_noncanonical" &&
a0da8069
NN
2252 test "$program_prefix$program_suffix$program_transform_name" = \
2253 NONENONEs,x,x, &&
c6b750e1 2254 program_transform_name=s,y,y,
cac3d6c4 2255
81ecdfbb
RW
2256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2257$as_echo_n "checking host system type... " >&6; }
2258if test "${ac_cv_host+set}" = set; then :
2259 $as_echo_n "(cached) " >&6
cac3d6c4 2260else
81ecdfbb
RW
2261 if test "x$host_alias" = x; then
2262 ac_cv_host=$ac_cv_build
2263else
2264 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2265 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2266fi
c6b750e1
DJ
2267
2268fi
81ecdfbb
RW
2269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2270$as_echo "$ac_cv_host" >&6; }
2271case $ac_cv_host in
2272*-*-*) ;;
2273*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2274esac
c6b750e1 2275host=$ac_cv_host
81ecdfbb
RW
2276ac_save_IFS=$IFS; IFS='-'
2277set x $ac_cv_host
2278shift
2279host_cpu=$1
2280host_vendor=$2
2281shift; shift
2282# Remember, the first character of IFS is used to create $*,
2283# except with old shells:
2284host_os=$*
2285IFS=$ac_save_IFS
2286case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2287
2288
81ecdfbb
RW
2289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2290$as_echo_n "checking target system type... " >&6; }
2291if test "${ac_cv_target+set}" = set; then :
2292 $as_echo_n "(cached) " >&6
c6b750e1 2293else
81ecdfbb
RW
2294 if test "x$target_alias" = x; then
2295 ac_cv_target=$ac_cv_host
2296else
2297 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2298 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2299fi
c6b750e1 2300
cac3d6c4 2301fi
81ecdfbb
RW
2302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2303$as_echo "$ac_cv_target" >&6; }
2304case $ac_cv_target in
2305*-*-*) ;;
2306*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2307esac
c6b750e1 2308target=$ac_cv_target
81ecdfbb
RW
2309ac_save_IFS=$IFS; IFS='-'
2310set x $ac_cv_target
2311shift
2312target_cpu=$1
2313target_vendor=$2
2314shift; shift
2315# Remember, the first character of IFS is used to create $*,
2316# except with old shells:
2317target_os=$*
2318IFS=$ac_save_IFS
2319case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
c6b750e1
DJ
2320
2321
2322# The aliases save the names the user supplied, while $host etc.
2323# will get canonicalized.
2324test -n "$target_alias" &&
2325 test "$program_prefix$program_suffix$program_transform_name" = \
2326 NONENONEs,x,x, &&
2327 program_prefix=${target_alias}-
81ecdfbb 2328
a0da8069 2329test "$program_prefix" != NONE &&
81ecdfbb 2330 program_transform_name="s&^&$program_prefix&;$program_transform_name"
a0da8069
NN
2331# Use a double $ so make ignores it.
2332test "$program_suffix" != NONE &&
81ecdfbb
RW
2333 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2334# Double any \ or $.
c6b750e1 2335# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
2336ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2337program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
cac3d6c4 2338
a0da8069
NN
2339
2340
e5c3f801
NN
2341# Get 'install' or 'install-sh' and its variants.
2342# Find a good install program. We prefer a C program (faster),
2343# so one script is as good as another. But avoid the broken or
2344# incompatible versions:
2345# SysV /etc/install, /usr/sbin/install
2346# SunOS /usr/etc/install
2347# IRIX /sbin/install
2348# AIX /bin/install
c6b750e1 2349# AmigaOS /C/install, which installs bootblocks on floppy discs
e5c3f801
NN
2350# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2351# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2352# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
c6b750e1 2353# OS/2's system install, which has a completely different semantic
e5c3f801 2354# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 2355# Reject install programs that cannot install multiple files.
81ecdfbb
RW
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2357$as_echo_n "checking for a BSD-compatible install... " >&6; }
e5c3f801 2358if test -z "$INSTALL"; then
81ecdfbb
RW
2359if test "${ac_cv_path_install+set}" = set; then :
2360 $as_echo_n "(cached) " >&6
c6b750e1
DJ
2361else
2362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2363for as_dir in $PATH
2364do
2365 IFS=$as_save_IFS
2366 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2367 # Account for people who put trailing slashes in PATH elements.
2368case $as_dir/ in #((
2369 ./ | .// | /[cC]/* | \
c6b750e1 2370 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 2371 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
c6b750e1
DJ
2372 /usr/ucb/* ) ;;
2373 *)
2374 # OSF1 and SCO ODT 3.0 have their own names for install.
2375 # Don't use installbsd from OSF since it installs stuff as root
2376 # by default.
2377 for ac_prog in ginstall scoinst install; do
2378 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 2379 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
e5c3f801 2380 if test $ac_prog = install &&
c6b750e1 2381 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
e5c3f801
NN
2382 # AIX install. It has an incompatible calling convention.
2383 :
c6b750e1
DJ
2384 elif test $ac_prog = install &&
2385 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2386 # program-specific install script used by HP pwplus--don't use.
2387 :
e5c3f801 2388 else
58c85be7
RW
2389 rm -rf conftest.one conftest.two conftest.dir
2390 echo one > conftest.one
2391 echo two > conftest.two
2392 mkdir conftest.dir
2393 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2394 test -s conftest.one && test -s conftest.two &&
2395 test -s conftest.dir/conftest.one &&
2396 test -s conftest.dir/conftest.two
2397 then
2398 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2399 break 3
2400 fi
e5c3f801
NN
2401 fi
2402 fi
2403 done
c6b750e1
DJ
2404 done
2405 ;;
2406esac
81ecdfbb
RW
2407
2408 done
2409IFS=$as_save_IFS
c6b750e1 2410
58c85be7 2411rm -rf conftest.one conftest.two conftest.dir
e5c3f801
NN
2412
2413fi
2414 if test "${ac_cv_path_install+set}" = set; then
c6b750e1 2415 INSTALL=$ac_cv_path_install
e5c3f801 2416 else
58c85be7
RW
2417 # As a last resort, use the slow shell script. Don't cache a
2418 # value for INSTALL within a source directory, because that will
e5c3f801 2419 # break other packages using the cache if that directory is
58c85be7 2420 # removed, or if the value is a relative name.
c6b750e1 2421 INSTALL=$ac_install_sh
e5c3f801
NN
2422 fi
2423fi
81ecdfbb
RW
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2425$as_echo "$INSTALL" >&6; }
e5c3f801
NN
2426
2427# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2428# It thinks the first close brace ends the variable substitution.
2429test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2430
c6b750e1 2431test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
e5c3f801
NN
2432
2433test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2434
81ecdfbb
RW
2435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2436$as_echo_n "checking whether ln works... " >&6; }
2437if test "${acx_cv_prog_LN+set}" = set; then :
2438 $as_echo_n "(cached) " >&6
656fdd47
PB
2439else
2440 rm -f conftestdata_t
2441echo >conftestdata_f
2442if ln conftestdata_f conftestdata_t 2>/dev/null
2443then
2444 acx_cv_prog_LN=ln
2445else
2446 acx_cv_prog_LN=no
2447fi
2448rm -f conftestdata_f conftestdata_t
2449
2450fi
2451if test $acx_cv_prog_LN = no; then
2452 LN="cp"
81ecdfbb
RW
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2454$as_echo "no, using $LN" >&6; }
656fdd47
PB
2455else
2456 LN="$acx_cv_prog_LN"
81ecdfbb
RW
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2458$as_echo "yes" >&6; }
656fdd47
PB
2459fi
2460
81ecdfbb
RW
2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2462$as_echo_n "checking whether ln -s works... " >&6; }
c6b750e1
DJ
2463LN_S=$as_ln_s
2464if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2466$as_echo "yes" >&6; }
cac3d6c4 2467else
81ecdfbb
RW
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2469$as_echo "no, using $LN_S" >&6; }
dfdffa2c
PB
2470fi
2471
8e957354
PB
2472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2473$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2474if test "${ac_cv_path_SED+set}" = set; then :
2475 $as_echo_n "(cached) " >&6
2476else
2477 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2478 for ac_i in 1 2 3 4 5 6 7; do
2479 ac_script="$ac_script$as_nl$ac_script"
2480 done
2481 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2482 { ac_script=; unset ac_script;}
2483 if test -z "$SED"; then
2484 ac_path_SED_found=false
2485 # Loop through the user's path and test for each of PROGNAME-LIST
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487for as_dir in $PATH
2488do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 for ac_prog in sed gsed; do
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2494 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2495# Check for GNU ac_path_SED and select it if it is found.
2496 # Check for GNU $ac_path_SED
2497case `"$ac_path_SED" --version 2>&1` in
2498*GNU*)
2499 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2500*)
2501 ac_count=0
2502 $as_echo_n 0123456789 >"conftest.in"
2503 while :
2504 do
2505 cat "conftest.in" "conftest.in" >"conftest.tmp"
2506 mv "conftest.tmp" "conftest.in"
2507 cp "conftest.in" "conftest.nl"
2508 $as_echo '' >> "conftest.nl"
2509 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2511 as_fn_arith $ac_count + 1 && ac_count=$as_val
2512 if test $ac_count -gt ${ac_path_SED_max-0}; then
2513 # Best one so far, save it but keep looking for a better one
2514 ac_cv_path_SED="$ac_path_SED"
2515 ac_path_SED_max=$ac_count
2516 fi
2517 # 10*(2^10) chars as input seems more than enough
2518 test $ac_count -gt 10 && break
2519 done
2520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2521esac
2522
2523 $ac_path_SED_found && break 3
2524 done
2525 done
2526 done
2527IFS=$as_save_IFS
2528 if test -z "$ac_cv_path_SED"; then
2529 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
2530 fi
2531else
2532 ac_cv_path_SED=$SED
2533fi
2534
2535fi
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2537$as_echo "$ac_cv_path_SED" >&6; }
2538 SED="$ac_cv_path_SED"
2539 rm -f conftest.sed
2540
2541for ac_prog in gawk mawk nawk awk
2542do
2543 # Extract the first word of "$ac_prog", so it can be a program name with args.
2544set dummy $ac_prog; ac_word=$2
2545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2546$as_echo_n "checking for $ac_word... " >&6; }
2547if test "${ac_cv_prog_AWK+set}" = set; then :
2548 $as_echo_n "(cached) " >&6
2549else
2550 if test -n "$AWK"; then
2551 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2552else
2553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2554for as_dir in $PATH
2555do
2556 IFS=$as_save_IFS
2557 test -z "$as_dir" && as_dir=.
2558 for ac_exec_ext in '' $ac_executable_extensions; do
2559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2560 ac_cv_prog_AWK="$ac_prog"
2561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 break 2
2563 fi
2564done
2565 done
2566IFS=$as_save_IFS
2567
2568fi
2569fi
2570AWK=$ac_cv_prog_AWK
2571if test -n "$AWK"; then
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2573$as_echo "$AWK" >&6; }
2574else
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2576$as_echo "no" >&6; }
2577fi
2578
2579
2580 test -n "$AWK" && break
2581done
2582
e5c3f801 2583
252b5132 2584### we might need to use some other shell than /bin/sh for running subshells
252b5132
RH
2585### If we are on Windows, search for the shell. This will permit people
2586### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
2587### without also having to set CONFIG_SHELL. This code will work when
2588### using bash, which sets OSTYPE.
2589case "${OSTYPE}" in
2590*win32*)
a0da8069
NN
2591 if test x${CONFIG_SHELL} = x ; then
2592 if test ! -f /bin/sh ; then
2593 if test x${SHELL} != x && test -f ${SHELL} ; then
252b5132
RH
2594 CONFIG_SHELL=${SHELL}
2595 export CONFIG_SHELL
2596 else
2597 for prog in sh sh.exe bash bash.exe; do
2598 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
2599 for dir in $PATH; do
2600 test -z "$dir" && dir=.
2601 if test -f $dir/$prog; then
2602 CONFIG_SHELL=$dir/$prog
2603 export CONFIG_SHELL
2604 break
2605 fi
2606 done
2607 IFS="$save_ifs"
2608 test -n "${CONFIG_SHELL}" && break
2609 done
2610 fi
2611 fi
2612 fi
2613 ;;
2614esac
2615
2616config_shell=${CONFIG_SHELL-/bin/sh}
2617
a0da8069 2618moveifchange=${srcdir}/move-if-change
252b5132 2619
0fdbe983
DJ
2620srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2621
2622# We pass INSTALL explicitly to sub-makes. Make sure that it is not
2623# a relative path.
2624if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2625 INSTALL="${srcpwd}/install-sh -c"
2626fi
2627
a0da8069
NN
2628# Set srcdir to "." if that's what it is.
2629# This is important for multilib support.
2630pwd=`${PWDCMD-pwd}`
a0da8069
NN
2631if test "${pwd}" = "${srcpwd}" ; then
2632 srcdir=.
252b5132
RH
2633fi
2634
a0da8069 2635topsrcdir=$srcpwd
252b5132 2636
a0da8069 2637extra_host_args=
afefada0 2638
a0da8069
NN
2639### To add a new directory to the tree, first choose whether it is a target
2640### or a host dependent tool. Then put it into the appropriate list
2641### (library or tools, host or target), doing a dependency sort.
252b5132 2642
c6b750e1 2643# Subdirs will be configured in the order listed in build_configdirs,
a0da8069 2644# configdirs, or target_configdirs; see the serialization section below.
252b5132 2645
c6b750e1
DJ
2646# Dependency sorting is only needed when *configuration* must be done in
2647# a particular order. In all cases a dependency should be specified in
a0da8069 2648# the Makefile, whether or not it's implicitly specified here.
252b5132 2649
a0da8069
NN
2650# Double entries in build_configdirs, configdirs, or target_configdirs may
2651# cause circular dependencies and break everything horribly.
252b5132 2652
6a9cf61e
PB
2653# these library is used by various programs built for the build
2654# environment
2655#
2656build_libs="build-libiberty"
2657
2658# these tools are built for the build environment
ee025550 2659build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
6a9cf61e 2660
a0da8069
NN
2661# these libraries are used by various programs built for the host environment
2662#
1f53ca9a 2663host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
a0da8069 2664
a0da8069
NN
2665# these tools are built for the host environment
2666# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2667# know that we are building the simulator.
2668# binutils, gas and ld appear in that order because it makes sense to run
2669# "make check" in that particular order.
e6de499b 2670# If --enable-gold is used, "gold" may replace "ld".
f9806fa5 2671host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
a0da8069
NN
2672
2673# libgcj represents the runtime libraries only used by gcj.
2674libgcj="target-libffi \
a0da8069
NN
2675 target-zlib \
2676 target-qthreads \
2677 target-libjava"
2678
2679# these libraries are built for the target environment, and are built after
2680# the host libraries and the host tools (which may be a cross compiler)
2681#
b1299c4e
DJ
2682target_libraries="target-libgcc \
2683 target-libiberty \
a0da8069
NN
2684 target-libgloss \
2685 target-newlib \
cff87f51 2686 target-libgomp \
b9459e83 2687 target-libstdc++-v3 \
4b1cb4fe 2688 target-libmudflap \
bb780410 2689 target-libssp \
4b1cb4fe 2690 target-libgfortran \
4f0ef2d8 2691 target-boehm-gc \
83326456 2692 ${libgcj} \
a2592b1b 2693 target-libobjc \
cff87f51 2694 target-libada"
a0da8069 2695
9c14acb8
NN
2696# these tools are built using the target libraries, and are intended to
2697# run only in the target environment
a0da8069 2698#
9c14acb8 2699# note: any program that *uses* libraries that are in the "target_libraries"
a0da8069
NN
2700# list belongs in this list. those programs are also very likely
2701# candidates for the "native_only" list which follows
2702#
a3dd767d 2703target_tools="target-examples target-groff target-gperf target-rda"
252b5132 2704
a0da8069 2705################################################################################
252b5132 2706
a0da8069
NN
2707## All tools belong in one of the four categories, and are assigned above
2708## We assign ${configdirs} this way to remove all embedded newlines. This
2709## is important because configure will choke if they ever get through.
2710## ${configdirs} is directories we build using the host tools.
2711## ${target_configdirs} is directories we build using the target tools.
a0da8069 2712configdirs=`echo ${host_libs} ${host_tools}`
9c14acb8 2713target_configdirs=`echo ${target_libraries} ${target_tools}`
ee025550 2714build_configdirs=`echo ${build_libs} ${build_tools}`
dd12c3a8 2715
9cc8ae67
PB
2716
2717
a0da8069 2718################################################################################
252b5132 2719
a0da8069 2720srcname="gnu development package"
252b5132 2721
a0da8069
NN
2722# This gets set non-empty for some net releases of packages.
2723appdirs=""
252b5132 2724
a0da8069
NN
2725# Define is_cross_compiler to save on calls to 'test'.
2726is_cross_compiler=
2727if test x"${host}" = x"${target}" ; then
2728 is_cross_compiler=no
252b5132 2729else
a0da8069 2730 is_cross_compiler=yes
c6b750e1 2731fi
252b5132 2732
9175bfc0 2733# Find the build and target subdir names.
dd12c3a8 2734
66a79c16
DJ
2735# post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2736# have matching libraries, they should use host libraries: Makefile.tpl
2737# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2738# However, they still use the build modules, because the corresponding
2739# host modules (e.g. bison) are only built for the host when bootstrap
2740# finishes. So:
2741# - build_subdir is where we find build modules, and never changes.
2742# - build_libsubdir is where we find build libraries, and can be overridden.
2743
2744# Prefix 'build-' so this never conflicts with target_subdir.
dd12c3a8 2745build_subdir="build-${build_noncanonical}"
c6b750e1 2746
81ecdfbb
RW
2747# Check whether --with-build-libsubdir was given.
2748if test "${with_build_libsubdir+set}" = set; then :
2749 withval=$with_build_libsubdir; build_libsubdir="$withval"
66a79c16
DJ
2750else
2751 build_libsubdir="$build_subdir"
81ecdfbb
RW
2752fi
2753
b00612cc
PB
2754# --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2755if ( test $srcdir = . && test -d gcc ) \
2756 || test -d $srcdir/../host-${host_noncanonical}; then
2757 host_subdir="host-${host_noncanonical}"
2758else
2759 host_subdir=.
2760fi
dd12c3a8
NN
2761# No prefix.
2762target_subdir=${target_noncanonical}
c6b750e1 2763
2fd0b40b
RW
2764# Be sure to cover against remnants of an in-tree build.
2765if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2766 as_fn_error "building out of tree but $srcdir contains host-${host_noncanonical}.
2767Use a pristine source tree when building in a separate tree" "$LINENO" 5
2768fi
252b5132 2769
a0da8069
NN
2770# Skipdirs are removed silently.
2771skipdirs=
2772# Noconfigdirs are removed loudly.
2773noconfigdirs=""
252b5132 2774
a0da8069
NN
2775use_gnu_ld=
2776# Make sure we don't let GNU ld be added if we didn't want it.
2777if test x$with_gnu_ld = xno ; then
2778 use_gnu_ld=no
93f9b408 2779 noconfigdirs="$noconfigdirs ld gold"
252b5132
RH
2780fi
2781
a0da8069
NN
2782use_gnu_as=
2783# Make sure we don't let GNU as be added if we didn't want it.
2784if test x$with_gnu_as = xno ; then
2785 use_gnu_as=no
2786 noconfigdirs="$noconfigdirs gas"
252b5132
RH
2787fi
2788
700d40ca
ILT
2789use_included_zlib=
2790# Make sure we don't let ZLIB be added if we didn't want it.
2791if test x$with_system_zlib = xyes ; then
2792 use_included_zlib=no
2793 noconfigdirs="$noconfigdirs zlib"
2794fi
2795
c6b750e1 2796# some tools are so dependent upon X11 that if we're not building with X,
a0da8069 2797# it's not even worth trying to configure, much less build, that tool.
252b5132 2798
a0da8069
NN
2799case ${with_x} in
2800 yes | "") ;; # the default value for this tree is that X11 is available
2801 no)
675c6968 2802 skipdirs="${skipdirs} tk itcl libgui"
a0da8069 2803 # We won't be able to build gdbtk without X.
c6b750e1 2804 enable_gdbtk=no
a0da8069
NN
2805 ;;
2806 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2807esac
252b5132 2808
a0da8069 2809# Some tools are only suitable for building in a "native" situation.
c6b750e1 2810# Remove these if host!=target.
701628f5 2811native_only="autoconf automake libtool fileutils find gawk gettext gzip hello indent m4 rcs recode sed shellutils tar textutils uudecode wdiff target-groff guile perl time ash bash bzip2 prms gnuserv target-gperf"
252b5132 2812
a0da8069
NN
2813# Similarly, some are only suitable for cross toolchains.
2814# Remove these if host=target.
2815cross_only="target-libgloss target-newlib target-opcodes"
2816
2817case $is_cross_compiler in
2818 no) skipdirs="${skipdirs} ${cross_only}" ;;
2819 yes) skipdirs="${skipdirs} ${native_only}" ;;
2820esac
252b5132 2821
a0da8069
NN
2822# If both --with-headers and --with-libs are specified, default to
2823# --without-newlib.
32be62b5
RS
2824if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2825 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
a0da8069
NN
2826 if test x"${with_newlib}" = x ; then
2827 with_newlib=no
2828 fi
252b5132
RH
2829fi
2830
a0da8069
NN
2831# Recognize --with-newlib/--without-newlib.
2832case ${with_newlib} in
2833 no) skipdirs="${skipdirs} target-newlib" ;;
2834 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2835esac
252b5132 2836
93f9b408 2837# Handle --enable-gold.
e6de499b
NC
2838# --enable-gold Build only gold
2839# --disable-gold [default] Build only ld
2840# --enable-gold=both Build both gold and ld, ld is default
2841# --enable-gold=both/ld Same
2842# --enable-gold=both/gold Build both gold and ld, gold is default, ld is renamed ld.bfd
93f9b408 2843
81ecdfbb
RW
2844# Check whether --enable-gold was given.
2845if test "${enable_gold+set}" = set; then :
2846 enableval=$enable_gold; ENABLE_GOLD=$enableval
93f9b408
ILT
2847else
2848 ENABLE_GOLD=no
81ecdfbb
RW
2849fi
2850
e6de499b
NC
2851 case "${ENABLE_GOLD}" in
2852 yes|both|both/gold|both/ld)
2853 # Check for ELF target.
2854 is_elf=no
2855 case "${target}" in
2856 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
2857 | *-*-linux* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
2858 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-solaris2* | *-*-nto*)
2859 case "${target}" in
2860 *-*-linux*aout* | *-*-linux*oldld*)
2861 ;;
2862 *)
2863 is_elf=yes
2864 ;;
2865 esac
2866 esac
2867
2868 if test "$is_elf" = "yes"; then
2869 # Check for target supported by gold.
93f9b408 2870 case "${target}" in
e6de499b
NC
2871 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-*)
2872 case "${ENABLE_GOLD}" in
2873 both*)
2874 configdirs="$configdirs gold"
2875 ;;
2876 *)
3cac54d2 2877 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / gold /'`
e6de499b
NC
2878 ;;
2879 esac
2880 ENABLE_GOLD=yes
93f9b408
ILT
2881 ;;
2882 esac
e6de499b
NC
2883 fi
2884 ;;
2885 no)
2886 ;;
2887 *)
2888 as_fn_error "invalid --enable-gold argument" "$LINENO" 5
2889 ;;
93f9b408
ILT
2890 esac
2891
a0da8069 2892# Configure extra directories which are host specific
252b5132 2893
a0da8069
NN
2894case "${host}" in
2895 *-cygwin*)
2896 configdirs="$configdirs libtermcap" ;;
2897esac
252b5132 2898
59f7ec45
HPN
2899# A target can indicate whether a language isn't supported for some reason.
2900# Only spaces may be used in this macro; not newlines or tabs.
2901unsupported_languages=
2902
c6b750e1 2903# Remove more programs from consideration, based on the host or
a0da8069
NN
2904# target this usually means that a port of the program doesn't
2905# exist yet.
252b5132 2906
a0da8069
NN
2907case "${host}" in
2908 hppa*64*-*-*)
2909 noconfigdirs="$noconfigdirs byacc"
2910 ;;
ec11bdc6 2911 i[3456789]86-*-vsta)
675c6968 2912 noconfigdirs="$noconfigdirs tcl expect dejagnu make texinfo bison patch flex byacc send-pr gprof uudecode dejagnu diff guile perl itcl gnuserv gettext"
a0da8069 2913 ;;
ec11bdc6 2914 i[3456789]86-*-go32* | i[3456789]86-*-msdosdjgpp*)
675c6968 2915 noconfigdirs="$noconfigdirs tcl tk expect dejagnu send-pr uudecode guile itcl gnuserv libffi"
bba45b8b 2916 ;;
2d1e8239
NC
2917 x86_64-*-mingw*)
2918 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
2919 ;;
ec11bdc6 2920 i[3456789]86-*-mingw32*)
675c6968 2921 # noconfigdirs="tcl tk expect dejagnu make texinfo bison patch flex byacc send-pr uudecode dejagnu diff guile perl itcl gnuserv"
45055374 2922 noconfigdirs="$noconfigdirs expect dejagnu autoconf automake send-pr rcs guile perl texinfo libtool newlib"
bba45b8b 2923 ;;
ec11bdc6 2924 i[3456789]86-*-beos*)
675c6968 2925 noconfigdirs="$noconfigdirs tk itcl libgui gdb"
bba45b8b 2926 ;;
a0da8069 2927 *-*-cygwin*)
a92834c8 2928 noconfigdirs="$noconfigdirs autoconf automake send-pr rcs guile perl"
a0da8069
NN
2929 ;;
2930 *-*-netbsd*)
a92834c8 2931 noconfigdirs="$noconfigdirs rcs"
a0da8069
NN
2932 ;;
2933 ppc*-*-pe)
675c6968 2934 noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl gnuserv"
a0da8069
NN
2935 ;;
2936 powerpc-*-beos*)
675c6968 2937 noconfigdirs="$noconfigdirs tk itcl libgui gdb dejagnu readline"
a0da8069 2938 ;;
a0da8069 2939esac
252b5132 2940
4b1cb4fe 2941
81ecdfbb
RW
2942# Check whether --enable-libada was given.
2943if test "${enable_libada+set}" = set; then :
2944 enableval=$enable_libada; ENABLE_LIBADA=$enableval
a2592b1b
DD
2945else
2946 ENABLE_LIBADA=yes
81ecdfbb
RW
2947fi
2948
a2592b1b 2949if test "${ENABLE_LIBADA}" != "yes" ; then
b00612cc 2950 noconfigdirs="$noconfigdirs gnattools"
a2592b1b
DD
2951fi
2952
81ecdfbb
RW
2953# Check whether --enable-libssp was given.
2954if test "${enable_libssp+set}" = set; then :
2955 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
5f128533
KH
2956else
2957 ENABLE_LIBSSP=yes
81ecdfbb
RW
2958fi
2959
5f128533 2960
a0da8069
NN
2961# Save it here so that, even in case of --enable-libgcj, if the Java
2962# front-end isn't enabled, we still get libgcj disabled.
2963libgcj_saved=$libgcj
2964case $enable_libgcj in
2965yes)
2966 # If we reset it here, it won't get added to noconfigdirs in the
2967 # target-specific build rules, so it will be forcibly enabled
2968 # (unless the Java language itself isn't enabled).
2969 libgcj=
2970 ;;
2971no)
2972 # Make sure we get it printed in the list of not supported target libs.
2973 noconfigdirs="$noconfigdirs ${libgcj}"
2974 ;;
2975esac
252b5132 2976
4b1cb4fe 2977
a6df5a19
PB
2978# Disable libmudflap on some systems.
2979if test x$enable_libmudflap = x ; then
3e707e94 2980 case "${target}" in
29383458 2981 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | bfin*-*-uclinux* | *-*-kopensolaris*-gnu)
3d6dfe0f 2982 # Enable libmudflap by default in GNU and friends.
3e707e94
PB
2983 ;;
2984 *-*-freebsd*)
2985 # Enable libmudflap by default in FreeBSD.
2986 ;;
2987 *)
2988 # Disable it by default everywhere else.
2989 noconfigdirs="$noconfigdirs target-libmudflap"
2990 ;;
2991 esac
a6df5a19 2992fi
4b1cb4fe 2993
a6df5a19
PB
2994# Disable libgomp on non POSIX hosted systems.
2995if test x$enable_libgomp = x ; then
b3ded179
PB
2996 # Enable libgomp by default on hosted POSIX systems.
2997 case "${target}" in
29383458 2998 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
b3ded179
PB
2999 ;;
3000 *-*-netbsd* | *-*-freebsd* | *-*-openbsd*)
3001 ;;
64ce424c 3002 *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
b3ded179
PB
3003 ;;
3004 *-*-darwin* | *-*-aix*)
3005 ;;
3006 *)
3007 noconfigdirs="$noconfigdirs target-libgomp"
3008 ;;
3009 esac
a6df5a19 3010fi
b3ded179 3011
691bb5a1
DD
3012# Default libgloss CPU subdirectory.
3013libgloss_dir="$target_cpu"
4b1cb4fe 3014
a0da8069
NN
3015case "${target}" in
3016 *-*-chorusos)
54d1c879 3017 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3018 ;;
24741ab2 3019 powerpc-*-darwin*)
9d39db92 3020 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3021 noconfigdirs="$noconfigdirs sim target-rda"
652dec25 3022 ;;
85bd1942
TG
3023 i[3456789]86-*-darwin*)
3024 noconfigdirs="$noconfigdirs ld gprof"
3025 noconfigdirs="$noconfigdirs sim target-rda"
3026 ;;
e8a5fa9c 3027 x86_64-*-darwin[912]*)
652dec25
TG
3028 noconfigdirs="$noconfigdirs ld gas gprof"
3029 noconfigdirs="$noconfigdirs sim target-rda"
b3f16a9b 3030 ;;
04d1ab34 3031 *-*-darwin*)
d320aacb 3032 noconfigdirs="$noconfigdirs ld gas gdb gprof"
4e3fc8e5 3033 noconfigdirs="$noconfigdirs sim target-rda"
54d1c879 3034 noconfigdirs="$noconfigdirs ${libgcj}"
04d1ab34 3035 ;;
a0da8069 3036 *-*-freebsd[12] | *-*-freebsd[12].* | *-*-freebsd*aout*)
54d1c879 3037 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3038 ;;
de0b4a87 3039 *-*-freebsd*)
4b1cb4fe
DD
3040 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3041 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3042 && test -f /usr/local/include/gmp.h; then
3043 with_gmp=/usr/local
3044 fi
3045
3046 # Skip some stuff that's unsupported on some FreeBSD configurations.
3047 case "${target}" in
3048 i*86-*-*) ;;
3049 alpha*-*-*) ;;
143754cd 3050 x86_64-*-*) ;;
4b1cb4fe 3051 *)
54d1c879 3052 noconfigdirs="$noconfigdirs ${libgcj}"
4b1cb4fe
DD
3053 ;;
3054 esac
3055 ;;
f8a495c8
NC
3056 *-*-kaos*)
3057 # Remove unsupported stuff on all kaOS configurations.
54d1c879 3058 skipdirs="target-libiberty ${libgcj} target-libstdc++-v3 target-librx"
f8a495c8
NC
3059 skipdirs="$skipdirs target-libobjc target-examples target-groff target-gperf"
3060 skipdirs="$skipdirs zlib fastjar target-libjava target-boehm-gc target-zlib"
3061 noconfigdirs="$noconfigdirs target-libgloss"
3062 ;;
a0da8069
NN
3063 *-*-netbsd*)
3064 # Skip some stuff on all NetBSD configurations.
3065 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
3066
3067 # Skip some stuff that's unsupported on some NetBSD configurations.
3068 case "${target}" in
3069 i*86-*-netbsdelf*) ;;
5b474aa8 3070 arm*-*-netbsdelf*) ;;
a0da8069 3071 *)
54d1c879 3072 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3073 ;;
3074 esac
3075 ;;
2a3124ca 3076 *-*-netware*)
54d1c879 3077 noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj} target-libmudflap"
a0da8069
NN
3078 ;;
3079 *-*-rtems*)
a009f2e7 3080 skipdirs="${skipdirs} target-libiberty"
54d1c879 3081 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3082 ;;
1587117a
EC
3083 # The tpf target doesn't support gdb yet.
3084 *-*-tpf*)
54d1c879 3085 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} target-libmudflap gdb tcl tk libgui itcl"
1587117a 3086 ;;
c1968181 3087 *-*-uclinux*)
54d1c879 3088 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
c1968181 3089 ;;
a0da8069 3090 *-*-vxworks*)
54d1c879 3091 noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069
NN
3092 ;;
3093 alpha*-dec-osf*)
3094 # ld works, but does not support shared libraries.
3095 # newlib is not 64 bit ready. I'm not sure about fileutils.
3096 # gas doesn't generate exception information.
3097 noconfigdirs="$noconfigdirs gas ld fileutils target-newlib target-libgloss"
3098 ;;
3099 alpha*-*-*vms*)
d594eacc 3100 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069
NN
3101 ;;
3102 alpha*-*-linux*)
3103 # newlib is not 64 bit ready
3104 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3105 ;;
a0da8069
NN
3106 alpha*-*-*)
3107 # newlib is not 64 bit ready
54d1c879 3108 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3109 ;;
4a18bd6b 3110 am33_2.0-*-linux*)
54d1c879 3111 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
4a18bd6b 3112 ;;
a0da8069 3113 sh-*-linux*)
54d1c879 3114 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
c6b750e1 3115 ;;
a0da8069 3116 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
54d1c879 3117 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3118 noconfigdirs="$noconfigdirs target-examples"
3119 noconfigdirs="$noconfigdirs target-libiberty texinfo send-pr"
675c6968 3120 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
a0da8069
NN
3121 noconfigdirs="$noconfigdirs expect dejagnu"
3122 # the C++ libraries don't build on top of CE's C libraries
b9459e83 3123 noconfigdirs="$noconfigdirs target-libstdc++-v3"
a0da8069
NN
3124 noconfigdirs="$noconfigdirs target-newlib"
3125 case "${host}" in
3126 *-*-cygwin*) ;; # keep gdb and readline
b9459e83 3127 *) noconfigdirs="$noconfigdirs gdb readline"
a0da8069
NN
3128 ;;
3129 esac
691bb5a1 3130 libgloss_dir=wince
a0da8069
NN
3131 ;;
3132 arc-*-*)
54d1c879 3133 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3134 ;;
caeba88f 3135 arm-semi-aof )
caeba88f 3136 ;;
a0da8069 3137 arm-*-coff | strongarm-*-coff | xscale-*-coff)
54d1c879 3138 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3139 libgloss_dir=arm
a0da8069 3140 ;;
11b04d1f 3141 arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
a0da8069 3142 noconfigdirs="$noconfigdirs target-libffi target-qthreads"
691bb5a1 3143 libgloss_dir=arm
a0da8069 3144 ;;
bd70a46f 3145 arm*-*-linux-gnueabi)
6d18b86b 3146 noconfigdirs="$noconfigdirs target-qthreads"
a5b3b4dd
DD
3147 case ${with_newlib} in
3148 no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3149 esac
691bb5a1 3150 libgloss_dir=arm
bd70a46f 3151 ;;
df4a6958 3152 arm*-*-symbianelf*)
54d1c879 3153 noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
691bb5a1 3154 libgloss_dir=arm
df4a6958 3155 ;;
a0da8069 3156 arm-*-pe*)
54d1c879 3157 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3158 ;;
a0da8069 3159 thumb-*-coff)
54d1c879 3160 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3161 ;;
3162 thumb-*-elf)
54d1c879 3163 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3164 ;;
a0da8069 3165 thumb-*-pe)
54d1c879 3166 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3167 ;;
3168 arm-*-riscix*)
54d1c879 3169 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069
NN
3170 ;;
3171 avr-*-*)
266df637 3172 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
a0da8069 3173 ;;
376a0e54 3174 bfin-*-*)
df51e4e1
JZ
3175 unsupported_languages="$unsupported_languages java"
3176 noconfigdirs="$noconfigdirs target-boehm-gc gdb"
3cf3372e 3177 if test x${is_cross_compiler} != xno ; then
376a0e54
CM
3178 target_configdirs="${target_configdirs} target-bsp target-cygmon"
3179 fi
3180 ;;
a0da8069 3181 c4x-*-* | tic4x-*-*)
54d1c879 3182 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3183 ;;
3184 c54x*-*-* | tic54x-*-*)
54d1c879 3185 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
a0da8069 3186 ;;
52310858
NC
3187 cr16-*-*)
3188 noconfigdirs="$noconfigdirs ${libgcj} gdb"
3189 ;;
c7e66c6d 3190 cris-*-* | crisv32-*-*)
59f7ec45 3191 unsupported_languages="$unsupported_languages java"
c7e66c6d 3192 case "${target}" in
2faa2958 3193 *-*-aout)
096f7d00 3194 unsupported_languages="$unsupported_languages fortran"
59f7ec45 3195 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
2faa2958 3196 *-*-elf)
5e818318 3197 noconfigdirs="$noconfigdirs target-boehm-gc";;
2faa2958 3198 *-*-linux*)
5e818318 3199 noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
c7e66c6d 3200 *)
096f7d00 3201 unsupported_languages="$unsupported_languages fortran"
54d1c879 3202 noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
c7e66c6d 3203 esac
691bb5a1 3204 libgloss_dir=cris
a0da8069 3205 ;;
3e707e94 3206 crx-*-*)
54d1c879 3207 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-mudflap ${libgcj}"
3e707e94 3208 ;;
a0da8069 3209 d10v-*-*)
54d1c879 3210 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069
NN
3211 ;;
3212 d30v-*-*)
54d1c879 3213 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069 3214 ;;
691bb5a1
DD
3215 ep9312-*-elf | ep9312-*-coff)
3216 libgloss_dir=arm
3217 ;;
a0da8069 3218 fr30-*-elf*)
54d1c879 3219 noconfigdirs="$noconfigdirs ${libgcj} gdb"
a0da8069
NN
3220 ;;
3221 frv-*-*)
54d1c879 3222 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3223 ;;
20135e4c
NC
3224 moxie-*-*)
3225 noconfigdirs="$noconfigdirs ${libgcj}"
3226 noconfigdirs="$noconfigdirs gprof"
3227 ;;
a0da8069 3228 h8300*-*-*)
54d1c879 3229 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069
NN
3230 ;;
3231 h8500-*-*)
54d1c879 3232 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3233 ;;
caeba88f 3234 hppa1.1-*-osf* | hppa1.1-*-bsd* )
caeba88f 3235 ;;
a0da8069
NN
3236 hppa*64*-*-linux* | parisc*64*-*-linux*)
3237 # In this case, it's because the hppa64-linux target is for
3238 # the kernel only at this point and has no libc, and thus no
3239 # headers, crt*.o, etc., all of which are needed by these.
3240 noconfigdirs="$noconfigdirs target-zlib"
3241 ;;
5dcac624
DA
3242 parisc*-*-linux* | hppa*-*-linux*)
3243 ;;
a0da8069 3244 hppa*-*-*elf* | \
a0da8069
NN
3245 hppa*-*-lites* | \
3246 hppa*-*-openbsd* | \
3247 hppa*64*-*-*)
54d1c879 3248 noconfigdirs="$noconfigdirs ${libgcj}"
4f0ef2d8
CD
3249 ;;
3250 hppa*-hp-hpux11*)
3251 noconfigdirs="$noconfigdirs ld shellutils"
a0da8069 3252 ;;
691bb5a1
DD
3253 hppa*-*-pro*)
3254 libgloss_dir=pa
3255 ;;
a0da8069
NN
3256 hppa*-*-*)
3257 # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
3258 # build on HP-UX 10.20.
54d1c879 3259 noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
a0da8069 3260 ;;
b07c2aad 3261 i960-*-*)
54d1c879 3262 noconfigdirs="$noconfigdirs ${libgcj} gdb"
b07c2aad 3263 ;;
a0da8069
NN
3264 ia64*-*-elf*)
3265 # No gdb support yet.
675c6968 3266 noconfigdirs="$noconfigdirs readline mmalloc libgui itcl gdb"
a0da8069
NN
3267 ;;
3268 ia64*-**-hpux*)
3269 # No gdb or ld support yet.
54d1c879 3270 noconfigdirs="$noconfigdirs ${libgcj} readline mmalloc libgui itcl gdb ld"
a0da8069 3271 ;;
19e99079
NC
3272 ia64*-*-*vms*)
3273 # No gdb or ld support yet.
3274 noconfigdirs="$noconfigdirs ${libgcj} tix readline mmalloc libgui itcl gdb ld"
3275 ;;
caeba88f 3276 i370-*-opened*)
caeba88f 3277 ;;
ec11bdc6 3278 i[3456789]86-*-coff | i[3456789]86-*-elf)
54d1c879 3279 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3280 libgloss_dir=i386
a0da8069 3281 ;;
ec11bdc6 3282 i[3456789]86-*-linux*)
a0da8069
NN
3283 # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's
3284 # not build java stuff by default.
3285 case "${target}" in
3286 *-*-*libc1*)
54d1c879 3287 noconfigdirs="$noconfigdirs ${libgcj}";;
a0da8069
NN
3288 esac
3289
3290 # This section makes it possible to build newlib natively on linux.
3291 # If we are using a cross compiler then don't configure newlib.
3292 if test x${is_cross_compiler} != xno ; then
bba45b8b 3293 noconfigdirs="$noconfigdirs target-newlib"
a0da8069
NN
3294 fi
3295 noconfigdirs="$noconfigdirs target-libgloss"
3296 # If we are not using a cross compiler, do configure newlib.
3297 # Note however, that newlib will only be configured in this situation
3298 # if the --with-newlib option has been given, because otherwise
3299 # 'target-newlib' will appear in skipdirs.
3300 ;;
1f53ca9a
AO
3301 i[3456789]86-w64-mingw*)
3302 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
3303 ;;
3304 i[3456789]86-*-mingw*)
45055374
CV
3305 target_configdirs="$target_configdirs target-winsup"
3306 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3307 ;;
2d1e8239 3308 x86_64-*-mingw*)
2d1e8239 3309 noconfigdirs="$noconfigdirs expect target-libgloss target-newlib ${libgcj}"
c6b750e1 3310 ;;
a0da8069
NN
3311 *-*-cygwin*)
3312 target_configdirs="$target_configdirs target-libtermcap target-winsup"
e8a5fa9c 3313 noconfigdirs="$noconfigdirs target-gperf target-libgloss"
b76d7de0 3314 # always build newlib if winsup directory is present.
45055374 3315 if test -d "$srcdir/winsup/cygwin"; then
b76d7de0 3316 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
ac0fa625 3317 elif test -d "$srcdir/newlib"; then
45055374 3318 echo "Warning: winsup/cygwin is missing so newlib can't be built."
b76d7de0 3319 fi
c6b750e1 3320 ;;
caeba88f
AL
3321 i[3456789]86-moss-msdos | i[3456789]86-*-moss* | \
3322 i[3456789]86-*-uwin* | i[3456789]86-*-interix* )
caeba88f 3323 ;;
ec11bdc6 3324 i[3456789]86-*-pe)
54d1c879 3325 noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj}"
a0da8069 3326 ;;
ec11bdc6 3327 i[3456789]86-*-sco3.2v5*)
a0da8069
NN
3328 # The linker does not yet know about weak symbols in COFF,
3329 # and is not configured to handle mixed ELF and COFF.
54d1c879 3330 noconfigdirs="$noconfigdirs ld target-libgloss ${libgcj}"
a0da8069 3331 ;;
ec11bdc6 3332 i[3456789]86-*-sco*)
54d1c879 3333 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3334 ;;
ec11bdc6 3335 i[3456789]86-*-solaris2*)
a0da8069
NN
3336 noconfigdirs="$noconfigdirs target-libgloss"
3337 ;;
ec11bdc6 3338 i[3456789]86-*-sysv4*)
54d1c879 3339 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
a0da8069 3340 ;;
ec11bdc6 3341 i[3456789]86-*-beos*)
54d1c879 3342 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
bba45b8b 3343 ;;
b59bea8a 3344 i[3456789]86-*-rdos*)
2429c060
PB
3345 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3346 ;;
b07c2aad 3347 m32r-*-*)
54d1c879 3348 noconfigdirs="$noconfigdirs ${libgcj}"
b07c2aad 3349 ;;
a0da8069 3350 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
54d1c879 3351 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
691bb5a1 3352 libgloss_dir=m68hc11
a0da8069
NN
3353 ;;
3354 m68k-*-elf*)
54d1c879 3355 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3356 ;;
3357 m68k-*-coff*)
54d1c879 3358 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3359 ;;
691bb5a1
DD
3360 m68*-*-* | fido-*-*)
3361 libgloss_dir=m68k
3362 ;;
a0da8069
NN
3363 mcore-*-pe*)
3364 # The EPOC C++ environment does not support exceptions or rtti,
3365 # and so building libstdc++-v3 tends not to always work.
3366 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3367 ;;
3368 mmix-*-*)
59f7ec45 3369 noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb libgloss"
096f7d00 3370 unsupported_languages="$unsupported_languages fortran java"
a0da8069
NN
3371 ;;
3372 mn10200-*-*)
54d1c879 3373 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3374 ;;
3375 mn10300-*-*)
54d1c879 3376 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069 3377 ;;
4970f871 3378 mt-*-*)
cdb9b172
AH
3379 noconfigdirs="$noconfigdirs sim"
3380 ;;
a0da8069
NN
3381 powerpc-*-aix*)
3382 # copied from rs6000-*-* entry
e8a5fa9c 3383 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3384 ;;
3385 powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
3386 target_configdirs="$target_configdirs target-winsup"
54d1c879 3387 noconfigdirs="$noconfigdirs gdb tcl tk make expect target-libgloss itcl gnuserv ${libgcj}"
a0da8069
NN
3388 # always build newlib.
3389 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3390 ;;
3391 # This is temporary until we can link against shared libraries
3392 powerpcle-*-solaris*)
54d1c879 3393 noconfigdirs="$noconfigdirs gdb sim make tcl tk expect itcl gnuserv ${libgcj}"
691bb5a1 3394 libgloss_dir=rs6000
a0da8069
NN
3395 ;;
3396 powerpc-*-beos*)
54d1c879 3397 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
a0da8069 3398 ;;
a0da8069 3399 powerpc-*-eabi)
54d1c879 3400 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3401 libgloss_dir=rs6000
caeba88f
AL
3402 ;;
3403 powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
691bb5a1 3404 libgloss_dir=rs6000
a0da8069 3405 ;;
a0da8069 3406 rs6000-*-lynxos*)
54d1c879 3407 noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
a0da8069
NN
3408 ;;
3409 rs6000-*-aix*)
e8a5fa9c 3410 noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
a0da8069
NN
3411 ;;
3412 rs6000-*-*)
54d1c879 3413 noconfigdirs="$noconfigdirs gprof ${libgcj}"
a0da8069
NN
3414 ;;
3415 m68k-apollo-*)
54d1c879 3416 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss ${libgcj}"
a0da8069 3417 ;;
25a07265 3418 microblaze*)
29821356 3419 noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
25a07265 3420 ;;
5bd8be13
RS
3421 mips*-sde-elf*)
3422 skipdirs="$skipdirs target-libiberty"
3423 noconfigdirs="$noconfigdirs ${libgcj}"
3424 if test x$with_newlib = xyes; then
3425 noconfigdirs="$noconfigdirs gprof"
3426 fi
3427 libgloss_dir=mips
3428 ;;
a0da8069 3429 mips*-*-irix5*)
54d1c879 3430 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069
NN
3431 ;;
3432 mips*-*-irix6*)
a0da8069
NN
3433 # Linking libjava exceeds command-line length limits on at least
3434 # IRIX 6.2, but not on IRIX 6.5.
3435 # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
3436 # <oldham@codesourcery.com>
54d1c879 3437 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3438 ;;
a0da8069 3439 mips*-*-bsd*)
54d1c879 3440 noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
a0da8069 3441 ;;
a0da8069
NN
3442 mips*-*-linux*)
3443 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3444 ;;
3445 mips*-*-*)
54d1c879 3446 noconfigdirs="$noconfigdirs gprof ${libgcj}"
691bb5a1 3447 libgloss_dir=mips
a0da8069
NN
3448 ;;
3449 romp-*-*)
54d1c879 3450 noconfigdirs="$noconfigdirs bfd binutils ld gas opcodes target-libgloss ${libgcj}"
a0da8069 3451 ;;
dbf85af7 3452 sh-*-* | sh64-*-*)
a0da8069 3453 case "${host}" in
ec11bdc6
DD
3454 i[3456789]86-*-vsta) ;; # don't add gprof back in
3455 i[3456789]86-*-go32*) ;; # don't add gprof back in
3456 i[3456789]86-*-msdosdjgpp*) ;; # don't add gprof back in
a0da8069
NN
3457 *) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
3458 esac
e8a5fa9c
RW
3459 case "${target}" in
3460 sh*-*-elf)
3461 noconfigdirs="$noconfigdirs ${libgcj}" ;;
3462 *)
3463 noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
3464 esac
a0da8069 3465 ;;
691bb5a1
DD
3466 sparclet-*-aout* | sparc86x-*-*)
3467 libgloss_dir=sparc
3468 ;;
a0da8069 3469 sparc-*-elf*)
54d1c879 3470 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3471 ;;
3472 sparc64-*-elf*)
54d1c879 3473 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3474 libgloss_dir=sparc
a0da8069
NN
3475 ;;
3476 sparclite-*-*)
54d1c879 3477 noconfigdirs="$noconfigdirs ${libgcj}"
691bb5a1 3478 libgloss_dir=sparc
a0da8069
NN
3479 ;;
3480 sparc-*-sunos4*)
54d1c879 3481 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3482 if test x${is_cross_compiler} != xno ; then
3483 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3484 else
3485 use_gnu_ld=no
3486 fi
3487 ;;
e3c770b1 3488 sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*)
54d1c879 3489 noconfigdirs="$noconfigdirs ${libgcj}"
e3c770b1 3490 ;;
a0da8069
NN
3491 sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
3492 ;;
619a3713
JM
3493 tic6x-*-*)
3494 noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
3495 ;;
a0da8069 3496 v810-*-*)
54d1c879 3497 noconfigdirs="$noconfigdirs bfd binutils gas gcc gdb ld target-libstdc++-v3 opcodes target-libgloss ${libgcj}"
a0da8069 3498 ;;
1cd986c5
NC
3499 v850*-*-*)
3500 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3501 ;;
3502 vax-*-vms)
54d1c879 3503 noconfigdirs="$noconfigdirs bfd binutils gdb ld target-newlib opcodes target-libgloss ${libgcj}"
a0da8069
NN
3504 ;;
3505 vax-*-*)
54d1c879 3506 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
a0da8069 3507 ;;
8b66833e 3508 xtensa*-*-*)
54d1c879 3509 noconfigdirs="$noconfigdirs ${libgcj}"
fbd1054d 3510 ;;
a0da8069 3511 ip2k-*-*)
54d1c879 3512 noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj}"
a0da8069 3513 ;;
29383458 3514 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
a0da8069
NN
3515 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3516 ;;
3517 *-*-lynxos*)
54d1c879 3518 noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
c6b750e1 3519 ;;
a0da8069 3520 *-*-*)
54d1c879 3521 noconfigdirs="$noconfigdirs ${libgcj}"
a0da8069
NN
3522 ;;
3523esac
252b5132 3524
a0da8069
NN
3525# If we aren't building newlib, then don't build libgloss, since libgloss
3526# depends upon some newlib header files.
3527case "${noconfigdirs}" in
3528 *target-libgloss*) ;;
3529 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
3530esac
3531
a0da8069
NN
3532# Work in distributions that contain no compiler tools, like Autoconf.
3533tentative_cc=""
3534host_makefile_frag=/dev/null
3535if test -d ${srcdir}/config ; then
3536case "${host}" in
3537 m68k-hp-hpux*)
3538 # Avoid "too much defining" errors from HPUX compiler.
3539 tentative_cc="cc -Wp,-H256000"
3540 # If "ar" in $PATH is GNU ar, the symbol table may need rebuilding.
3541 # If it's HP/UX ar, this should be harmless.
3542 RANLIB="ar ts"
3543 ;;
3544 m68k-apollo-sysv*)
3545 tentative_cc="cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DUSG"
3546 ;;
3547 m68k-apollo-bsd*)
3548 #None of the Apollo compilers can compile gas or binutils. The preprocessor
3549 # chokes on bfd, the compiler won't let you assign integers to enums, and
3550 # other problems. Defining CC to gcc is a questionable way to say "don't use
3551 # the apollo compiler" (the preferred version of GCC could be called cc,
3552 # or whatever), but I'm not sure leaving CC as cc is any better...
3553 #CC=cc -A ansi -A runtype,any -A systype,any -U__STDC__ -DNO_STDARG
3554 # Used to have BISON=yacc.
3555 tentative_cc=gcc
3556 ;;
3557 m88k-dg-dgux*)
3558 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
a0da8069
NN
3559 ;;
3560 m88k-harris-cxux*)
3561 # Under CX/UX, we want to tell the compiler to use ANSI mode.
3562 tentative_cc="cc -Xa"
3563 host_makefile_frag="config/mh-cxux"
3564 ;;
3565 m88k-motorola-sysv*)
3566 ;;
3567 mips*-dec-ultrix*)
3568 tentative_cc="cc -Wf,-XNg1000"
3569 host_makefile_frag="config/mh-decstation"
3570 ;;
3571 mips*-nec-sysv4*)
3572 # The C compiler on NEC MIPS SVR4 needs bigger tables.
3573 tentative_cc="cc -ZXNd=5000 -ZXNg=1000"
3574 host_makefile_frag="config/mh-necv4"
3575 ;;
3576 mips*-sgi-irix4*)
3577 # Tell compiler to use K&R C. We can't compile under the SGI Ansi
3578 # environment. Also bump switch table size so that cp-parse will
3579 # compile. Bump string length limit so linker builds.
3580 tentative_cc="cc -cckr -Wf,-XNg1500 -Wf,-XNk1000 -Wf,-XNh2000 -Wf,-XNl8192"
3581 ;;
3582 mips*-*-sysv4*)
3583 host_makefile_frag="config/mh-sysv4"
3584 ;;
3585 mips*-*-sysv*)
3586 # This is for a MIPS running RISC/os 4.52C.
3587
3588 # This is needed for GDB, but needs to be in the top-level make because
3589 # if a library is compiled with the bsd headers and gets linked with the
3590 # sysv system libraries all hell can break loose (e.g. a jmp_buf might be
3591 # a different size).
3592 # ptrace(2) apparently has problems in the BSD environment. No workaround is
3593 # known except to select the sysv environment. Could we use /proc instead?
3594 # These "sysv environments" and "bsd environments" often end up being a pain.
3595 #
3596 # This is not part of CFLAGS because perhaps not all C compilers have this
3597 # option.
3598 tentative_cc="cc -systype sysv"
3599 ;;
3600 i370-ibm-opened*)
3601 tentative_cc="c89"
3602 ;;
ec11bdc6 3603 i[3456789]86-*-sysv5*)
a0da8069
NN
3604 host_makefile_frag="config/mh-sysv5"
3605 ;;
ec11bdc6 3606 i[3456789]86-*-dgux*)
a0da8069
NN
3607 tentative_cc="gcc -Wall -ansi -D__using_DGUX"
3608 host_makefile_frag="config/mh-dgux386"
3609 ;;
ec11bdc6 3610 i[3456789]86-ncr-sysv4.3*)
a0da8069
NN
3611 # The MetaWare compiler will generate a copyright message unless you
3612 # turn it off by adding the -Hnocopyr flag.
3613 tentative_cc="cc -Hnocopyr"
3614 ;;
ec11bdc6 3615 i[3456789]86-ncr-sysv4*)
a0da8069
NN
3616 # for an NCR 3000 (i486/SVR4) system.
3617 # The NCR 3000 ships with a MetaWare compiler installed as /bin/cc.
3618 # This compiler not only emits obnoxious copyright messages every time
3619 # you run it, but it chokes and dies on a whole bunch of GNU source
3620 # files. Default to using the AT&T compiler installed in /usr/ccs/ATT/cc.
3621 tentative_cc="/usr/ccs/ATT/cc"
3622 host_makefile_frag="config/mh-ncr3000"
3623 ;;
ec11bdc6 3624 i[3456789]86-*-sco3.2v5*)
a0da8069 3625 ;;
ec11bdc6 3626 i[3456789]86-*-sco*)
a0da8069
NN
3627 # The native C compiler botches some simple uses of const. Unfortunately,
3628 # it doesn't defined anything like "__sco__" for us to test for in ansidecl.h.
3629 tentative_cc="cc -Dconst="
3630 host_makefile_frag="config/mh-sco"
3631 ;;
ec11bdc6 3632 i[3456789]86-*-udk*)
a0da8069
NN
3633 host_makefile_frag="config/mh-sysv5"
3634 ;;
ec11bdc6 3635 i[3456789]86-*-solaris2*)
a0da8069
NN
3636 host_makefile_frag="config/mh-sysv4"
3637 ;;
ec11bdc6 3638 i[3456789]86-*-msdosdjgpp*)
a0da8069
NN
3639 host_makefile_frag="config/mh-djgpp"
3640 ;;
3641 *-cygwin*)
e33b51a6 3642
81ecdfbb
RW
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3644$as_echo_n "checking to see if cat works as expected... " >&6; }
e33b51a6 3645echo a >cygwin-cat-check
1f53ca9a 3646if test `cat cygwin-cat-check` = a ; then
8ade07e9 3647 rm cygwin-cat-check
81ecdfbb
RW
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3649$as_echo "yes" >&6; }
e33b51a6 3650else
8ade07e9 3651 rm cygwin-cat-check
81ecdfbb
RW
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653$as_echo "no" >&6; }
3654 as_fn_error "The cat command does not ignore carriage return characters.
e33b51a6
NC
3655 Please either mount the build directory in binary mode or run the following
3656 commands before running any configure script:
3657set -o igncr
3658export SHELLOPTS
81ecdfbb 3659 " "$LINENO" 5
e33b51a6 3660fi
e33b51a6 3661
a0da8069
NN
3662 host_makefile_frag="config/mh-cygwin"
3663 ;;
8a1599ab 3664 *-mingw*)
84e7906e 3665 host_makefile_frag="config/mh-mingw"
2d1e8239 3666 ;;
a0da8069
NN
3667 *-interix*)
3668 host_makefile_frag="config/mh-interix"
3669 ;;
3670 vax-*-ultrix2*)
3671 # The old BSD pcc isn't up to compiling parts of gdb so use gcc
3672 tentative_cc=gcc
3673 ;;
3674 *-*-solaris2*)
3675 host_makefile_frag="config/mh-solaris"
3676 ;;
3677 m68k-sun-sunos*)
3678 # Sun's C compiler needs the -J flag to be able to compile cp-parse.c
3679 # without overflowing the jump tables (-J says to use a 32 bit table)
3680 tentative_cc="cc -J"
3681 ;;
da888c87 3682 hppa*-hp-hpux10*)
a0da8069 3683 tentative_cc="cc -Wp,-H256000"
da888c87 3684 host_makefile_frag="config/mh-pa-hpux10"
a0da8069 3685 ;;
da888c87
PB
3686 hppa*-hp-hpux* | hppa*-*-hiux*)
3687 tentative_cc="cc -Wp,-H256000"
3688 host_makefile_frag="config/mh-pa"
3689 ;;
3690 hppa*-*)
3691 host_makefile_frag="config/mh-pa"
3692 ;;
3693 *-hp-hpux* | *-*-hiux*)
a0da8069
NN
3694 tentative_cc="cc -Wp,-H256000"
3695 ;;
3696 rs6000-*-lynxos*)
3697 # /bin/cc is less than useful for our purposes. Always use GCC
3698 tentative_cc="/usr/cygnus/progressive/bin/gcc"
3699 host_makefile_frag="config/mh-lynxrs6k"
3700 ;;
0df3d27f
PB
3701 powerpc-*-darwin*)
3702 host_makefile_frag="config/mh-ppc-darwin"
3703 ;;
f6d183c0
PB
3704 powerpc-*-aix*)
3705 host_makefile_frag="config/mh-ppc-aix"
3706 ;;
3707 rs6000-*-aix*)
3708 host_makefile_frag="config/mh-ppc-aix"
3709 ;;
a0da8069
NN
3710 *-*-lynxos*)
3711 # /bin/cc is less than useful for our purposes. Always use GCC
3712 tentative_cc="/bin/gcc"
3713 ;;
3714 *-*-sysv4*)
3715 host_makefile_frag="config/mh-sysv4"
3716 ;;
fe69863c
DD
3717 # This is placed last to prevent interfering with the cases above.
3718 i[3456789]86-*-*)
3719 # Build the stage2 and stage3 compilers with -fomit-frame-pointer.
3720 host_makefile_frag="config/mh-x86omitfp"
3721 ;;
a0da8069
NN
3722esac
3723fi
3724
9e07f89d
NN
3725# If we aren't going to be using gcc, see if we can extract a definition
3726# of CC from the fragment.
3727# Actually, use the 'pre-extracted' version above.
3728if test -z "${CC}" && test "${build}" = "${host}" ; then
3729 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
3730 found=
3731 for dir in $PATH; do
3732 test -z "$dir" && dir=.
3733 if test -f $dir/gcc; then
3734 found=yes
3735 break
3736 fi
3737 done
3738 IFS="$save_ifs"
3739 if test -z "${found}" && test -n "${tentative_cc}" ; then
3740 CC=$tentative_cc
3741 fi
3742fi
3743
3744if test "${build}" != "${host}" ; then
1576798e
PB
3745 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
3746 AS_FOR_BUILD=${AS_FOR_BUILD-as}
9e07f89d 3747 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
1576798e
PB
3748 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
3749 GCJ_FOR_BUILD=${GCJ_FOR_BUILD-gcj}
3750 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
3751 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
3752 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
3753 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
3754 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
3755 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
3756 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
3757else
3758 AR_FOR_BUILD="\$(AR)"
3759 AS_FOR_BUILD="\$(AS)"
512b7dfb 3760 CC_FOR_BUILD="\$(CC)"
1576798e
PB
3761 CXX_FOR_BUILD="\$(CXX)"
3762 GCJ_FOR_BUILD="\$(GCJ)"
3763 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
3764 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
3765 LD_FOR_BUILD="\$(LD)"
3766 NM_FOR_BUILD="\$(NM)"
3767 RANLIB_FOR_BUILD="\$(RANLIB)"
3768 WINDRES_FOR_BUILD="\$(WINDRES)"
3769 WINDMC_FOR_BUILD="\$(WINDMC)"
18f6b6ee
PB
3770fi
3771
3772ac_ext=c
c6b750e1
DJ
3773ac_cpp='$CPP $CPPFLAGS'
3774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3776ac_compiler_gnu=$ac_cv_c_compiler_gnu
3777if test -n "$ac_tool_prefix"; then
3778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3779set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781$as_echo_n "checking for $ac_word... " >&6; }
3782if test "${ac_cv_prog_CC+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3784else
3785 if test -n "$CC"; then
3786 ac_cv_prog_CC="$CC" # Let the user override the test.
3787else
3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789for as_dir in $PATH
3790do
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3797 break 2
3798 fi
3799done
81ecdfbb
RW
3800 done
3801IFS=$as_save_IFS
c6b750e1
DJ
3802
3803fi
3804fi
3805CC=$ac_cv_prog_CC
3806if test -n "$CC"; then
81ecdfbb
RW
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3808$as_echo "$CC" >&6; }
c6b750e1 3809else
81ecdfbb
RW
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811$as_echo "no" >&6; }
c6b750e1
DJ
3812fi
3813
81ecdfbb 3814
c6b750e1
DJ
3815fi
3816if test -z "$ac_cv_prog_CC"; then
3817 ac_ct_CC=$CC
6a9cf61e 3818 # Extract the first word of "gcc", so it can be a program name with args.
9e07f89d 3819set dummy gcc; ac_word=$2
81ecdfbb
RW
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821$as_echo_n "checking for $ac_word... " >&6; }
3822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
c6b750e1
DJ
3824else
3825 if test -n "$ac_ct_CC"; then
3826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3827else
3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3835 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3837 break 2
3838 fi
3839done
81ecdfbb
RW
3840 done
3841IFS=$as_save_IFS
c6b750e1
DJ
3842
3843fi
3844fi
3845ac_ct_CC=$ac_cv_prog_ac_ct_CC
3846if test -n "$ac_ct_CC"; then
81ecdfbb
RW
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3848$as_echo "$ac_ct_CC" >&6; }
c6b750e1 3849else
81ecdfbb
RW
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851$as_echo "no" >&6; }
c6b750e1
DJ
3852fi
3853
81ecdfbb
RW
3854 if test "x$ac_ct_CC" = x; then
3855 CC=""
3856 else
3857 case $cross_compiling:$ac_tool_warned in
3858yes:)
3859{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3861ac_tool_warned=yes ;;
3862esac
3863 CC=$ac_ct_CC
3864 fi
c6b750e1
DJ
3865else
3866 CC="$ac_cv_prog_CC"
3867fi
3868
3869if test -z "$CC"; then
81ecdfbb
RW
3870 if test -n "$ac_tool_prefix"; then
3871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
c6b750e1 3872set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
3873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874$as_echo_n "checking for $ac_word... " >&6; }
3875if test "${ac_cv_prog_CC+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
9e07f89d
NN
3877else
3878 if test -n "$CC"; then
3879 ac_cv_prog_CC="$CC" # Let the user override the test.
3880else
c6b750e1
DJ
3881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882for as_dir in $PATH
3883do
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 3888 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 3889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3890 break 2
3891 fi
3892done
81ecdfbb
RW
3893 done
3894IFS=$as_save_IFS
c6b750e1 3895
9e07f89d
NN
3896fi
3897fi
c6b750e1 3898CC=$ac_cv_prog_CC
9e07f89d 3899if test -n "$CC"; then
81ecdfbb
RW
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3901$as_echo "$CC" >&6; }
c6b750e1 3902else
81ecdfbb
RW
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904$as_echo "no" >&6; }
c6b750e1
DJ
3905fi
3906
c6b750e1 3907
81ecdfbb 3908 fi
c6b750e1 3909fi
9e07f89d
NN
3910if test -z "$CC"; then
3911 # Extract the first word of "cc", so it can be a program name with args.
3912set dummy cc; ac_word=$2
81ecdfbb
RW
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914$as_echo_n "checking for $ac_word... " >&6; }
3915if test "${ac_cv_prog_CC+set}" = set; then :
3916 $as_echo_n "(cached) " >&6
9e07f89d
NN
3917else
3918 if test -n "$CC"; then
3919 ac_cv_prog_CC="$CC" # Let the user override the test.
3920else
9e07f89d 3921 ac_prog_rejected=no
c6b750e1
DJ
3922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923for as_dir in $PATH
3924do
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1
DJ
3929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3930 ac_prog_rejected=yes
3931 continue
3932 fi
3933 ac_cv_prog_CC="cc"
81ecdfbb 3934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
3935 break 2
3936 fi
3937done
81ecdfbb
RW
3938 done
3939IFS=$as_save_IFS
c6b750e1 3940
9e07f89d
NN
3941if test $ac_prog_rejected = yes; then
3942 # We found a bogon in the path, so make sure we never use it.
3943 set dummy $ac_cv_prog_CC
3944 shift
c6b750e1 3945 if test $# != 0; then
9e07f89d
NN
3946 # We chose a different compiler from the bogus one.
3947 # However, it has the same basename, so the bogon will be chosen
3948 # first if we set CC to just the basename; use the full file name.
3949 shift
c6b750e1 3950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
9e07f89d
NN
3951 fi
3952fi
3953fi
3954fi
c6b750e1 3955CC=$ac_cv_prog_CC
9e07f89d 3956if test -n "$CC"; then
81ecdfbb
RW
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3958$as_echo "$CC" >&6; }
9e07f89d 3959else
81ecdfbb
RW
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961$as_echo "no" >&6; }
9e07f89d
NN
3962fi
3963
81ecdfbb 3964
c6b750e1
DJ
3965fi
3966if test -z "$CC"; then
3967 if test -n "$ac_tool_prefix"; then
81ecdfbb 3968 for ac_prog in cl.exe
c6b750e1
DJ
3969 do
3970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3971set dummy $ac_tool_prefix$ac_prog; 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$ac_prog"
81ecdfbb 3988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1 3989 break 2
376a0e54 3990 fi
c6b750e1 3991done
81ecdfbb
RW
3992 done
3993IFS=$as_save_IFS
cac3d6c4 3994
c6b750e1
DJ
3995fi
3996fi
3997CC=$ac_cv_prog_CC
3998if test -n "$CC"; then
81ecdfbb
RW
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4000$as_echo "$CC" >&6; }
cac3d6c4 4001else
81ecdfbb
RW
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4003$as_echo "no" >&6; }
9e07f89d 4004fi
cac3d6c4 4005
81ecdfbb 4006
c6b750e1
DJ
4007 test -n "$CC" && break
4008 done
cac3d6c4 4009fi
c6b750e1
DJ
4010if test -z "$CC"; then
4011 ac_ct_CC=$CC
81ecdfbb 4012 for ac_prog in cl.exe
c6b750e1
DJ
4013do
4014 # Extract the first word of "$ac_prog", so it can be a program name with args.
4015set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017$as_echo_n "checking for $ac_word... " >&6; }
4018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4019 $as_echo_n "(cached) " >&6
cac3d6c4 4020else
c6b750e1
DJ
4021 if test -n "$ac_ct_CC"; then
4022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
376a0e54 4023else
c6b750e1
DJ
4024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025for as_dir in $PATH
4026do
4027 IFS=$as_save_IFS
4028 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 4031 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4033 break 2
4034 fi
4035done
81ecdfbb
RW
4036 done
4037IFS=$as_save_IFS
c6b750e1 4038
cac3d6c4
CM
4039fi
4040fi
c6b750e1
DJ
4041ac_ct_CC=$ac_cv_prog_ac_ct_CC
4042if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4044$as_echo "$ac_ct_CC" >&6; }
9e07f89d 4045else
81ecdfbb
RW
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4047$as_echo "no" >&6; }
cac3d6c4 4048fi
376a0e54 4049
81ecdfbb 4050
c6b750e1
DJ
4051 test -n "$ac_ct_CC" && break
4052done
4053
81ecdfbb
RW
4054 if test "x$ac_ct_CC" = x; then
4055 CC=""
4056 else
4057 case $cross_compiling:$ac_tool_warned in
4058yes:)
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4061ac_tool_warned=yes ;;
4062esac
4063 CC=$ac_ct_CC
4064 fi
c6b750e1
DJ
4065fi
4066
4067fi
4068
4069
81ecdfbb
RW
4070test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4072as_fn_error "no acceptable C compiler found in \$PATH
4073See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4074
4075# Provide some information about the compiler.
81ecdfbb
RW
4076$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4077set X $ac_compile
4078ac_compiler=$2
4079for ac_option in --version -v -V -qversion; do
4080 { { ac_try="$ac_compiler $ac_option >&5"
4081case "(($ac_try" in
4082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4083 *) ac_try_echo=$ac_try;;
4084esac
4085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4086$as_echo "$ac_try_echo"; } >&5
4087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
c6b750e1 4088 ac_status=$?
81ecdfbb
RW
4089 if test -s conftest.err; then
4090 sed '10a\
4091... rest of stderr output deleted ...
4092 10q' conftest.err >conftest.er1
4093 cat conftest.er1 >&5
4094 rm -f conftest.er1 conftest.err
4095 fi
4096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097 test $ac_status = 0; }
4098done
c6b750e1 4099
81ecdfbb 4100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4101/* end confdefs.h. */
4102
4103int
4104main ()
4105{
4106
4107 ;
4108 return 0;
4109}
4110_ACEOF
4111ac_clean_files_save=$ac_clean_files
81ecdfbb 4112ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
c6b750e1
DJ
4113# Try to create an executable without -o first, disregard a.out.
4114# It will help us diagnose broken compilers, and finding out an intuition
4115# of exeext.
81ecdfbb
RW
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4117$as_echo_n "checking for C compiler default output file name... " >&6; }
4118ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4119
4120# The possible output files:
4121ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4122
4123ac_rmfiles=
4124for ac_file in $ac_files
4125do
4126 case $ac_file in
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4128 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4129 esac
4130done
4131rm -f $ac_rmfiles
4132
4133if { { ac_try="$ac_link_default"
4134case "(($ac_try" in
4135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136 *) ac_try_echo=$ac_try;;
4137esac
4138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4139$as_echo "$ac_try_echo"; } >&5
4140 (eval "$ac_link_default") 2>&5
c6b750e1 4141 ac_status=$?
81ecdfbb
RW
4142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4143 test $ac_status = 0; }; then :
4144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4145# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4146# in a Makefile. We should not override ac_cv_exeext if it was cached,
4147# so that the user can short-circuit this test for compilers unknown to
4148# Autoconf.
4149for ac_file in $ac_files ''
c6b750e1
DJ
4150do
4151 test -f "$ac_file" || continue
4152 case $ac_file in
81ecdfbb 4153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
c6b750e1
DJ
4154 ;;
4155 [ab].out )
4156 # We found the default executable, but exeext='' is most
4157 # certainly right.
4158 break;;
4159 *.* )
81ecdfbb
RW
4160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4161 then :; else
4162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4163 fi
4164 # We set ac_cv_exeext here because the later test for it is not
4165 # safe: cross compilers may not add the suffix if given an `-o'
4166 # argument, so we may need to know it at that point already.
4167 # Even if this section looks crufty: it has the advantage of
4168 # actually working.
c6b750e1
DJ
4169 break;;
4170 * )
4171 break;;
4172 esac
4173done
81ecdfbb
RW
4174test "$ac_cv_exeext" = no && ac_cv_exeext=
4175
c6b750e1 4176else
81ecdfbb
RW
4177 ac_file=''
4178fi
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4180$as_echo "$ac_file" >&6; }
4181if test -z "$ac_file"; then :
4182 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4183sed 's/^/| /' conftest.$ac_ext >&5
4184
81ecdfbb
RW
4185{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4187{ as_fn_set_status 77
4188as_fn_error "C compiler cannot create executables
4189See \`config.log' for more details." "$LINENO" 5; }; }
c6b750e1 4190fi
c6b750e1 4191ac_exeext=$ac_cv_exeext
c6b750e1 4192
81ecdfbb 4193# Check that the compiler produces executables we can run. If not, either
c6b750e1 4194# the compiler is broken, or we cross compile.
81ecdfbb
RW
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4196$as_echo_n "checking whether the C compiler works... " >&6; }
c6b750e1
DJ
4197# If not cross compiling, check that we can run a simple program.
4198if test "$cross_compiling" != yes; then
4199 if { ac_try='./$ac_file'
81ecdfbb
RW
4200 { { case "(($ac_try" in
4201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202 *) ac_try_echo=$ac_try;;
4203esac
4204eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205$as_echo "$ac_try_echo"; } >&5
4206 (eval "$ac_try") 2>&5
c6b750e1 4207 ac_status=$?
81ecdfbb
RW
4208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4209 test $ac_status = 0; }; }; then
c6b750e1
DJ
4210 cross_compiling=no
4211 else
4212 if test "$cross_compiling" = maybe; then
4213 cross_compiling=yes
4214 else
81ecdfbb
RW
4215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4217as_fn_error "cannot run C compiled programs.
c6b750e1 4218If you meant to cross compile, use \`--host'.
81ecdfbb 4219See \`config.log' for more details." "$LINENO" 5; }
c6b750e1
DJ
4220 fi
4221 fi
4222fi
81ecdfbb
RW
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4224$as_echo "yes" >&6; }
c6b750e1 4225
81ecdfbb 4226rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
c6b750e1 4227ac_clean_files=$ac_clean_files_save
81ecdfbb 4228# Check that the compiler produces executables we can run. If not, either
c6b750e1 4229# the compiler is broken, or we cross compile.
81ecdfbb
RW
4230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4231$as_echo_n "checking whether we are cross compiling... " >&6; }
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4233$as_echo "$cross_compiling" >&6; }
4234
4235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4236$as_echo_n "checking for suffix of executables... " >&6; }
4237if { { ac_try="$ac_link"
4238case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241esac
4242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4243$as_echo "$ac_try_echo"; } >&5
4244 (eval "$ac_link") 2>&5
c6b750e1 4245 ac_status=$?
81ecdfbb
RW
4246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4247 test $ac_status = 0; }; then :
c6b750e1
DJ
4248 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4249# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4250# work properly (i.e., refer to `conftest.exe'), while it won't with
4251# `rm'.
4252for ac_file in conftest.exe conftest conftest.*; do
4253 test -f "$ac_file" || continue
4254 case $ac_file in
81ecdfbb 4255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
c6b750e1 4256 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
c6b750e1
DJ
4257 break;;
4258 * ) break;;
4259 esac
4260done
4261else
81ecdfbb
RW
4262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4264as_fn_error "cannot compute suffix of executables: cannot compile and link
4265See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4266fi
c6b750e1 4267rm -f conftest$ac_cv_exeext
81ecdfbb
RW
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4269$as_echo "$ac_cv_exeext" >&6; }
c6b750e1
DJ
4270
4271rm -f conftest.$ac_ext
4272EXEEXT=$ac_cv_exeext
4273ac_exeext=$EXEEXT
81ecdfbb
RW
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4275$as_echo_n "checking for suffix of object files... " >&6; }
4276if test "${ac_cv_objext+set}" = set; then :
4277 $as_echo_n "(cached) " >&6
c6b750e1 4278else
81ecdfbb 4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4280/* end confdefs.h. */
4281
4282int
4283main ()
4284{
4285
4286 ;
4287 return 0;
4288}
4289_ACEOF
4290rm -f conftest.o conftest.obj
81ecdfbb
RW
4291if { { ac_try="$ac_compile"
4292case "(($ac_try" in
4293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4294 *) ac_try_echo=$ac_try;;
4295esac
4296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4297$as_echo "$ac_try_echo"; } >&5
4298 (eval "$ac_compile") 2>&5
c6b750e1 4299 ac_status=$?
81ecdfbb
RW
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }; then :
4302 for ac_file in conftest.o conftest.obj conftest.*; do
4303 test -f "$ac_file" || continue;
c6b750e1 4304 case $ac_file in
81ecdfbb 4305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
c6b750e1
DJ
4306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4307 break;;
4308 esac
4309done
cac3d6c4 4310else
81ecdfbb 4311 $as_echo "$as_me: failed program was:" >&5
c6b750e1
DJ
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
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 compute suffix of object files: cannot compile
4317See \`config.log' for more details." "$LINENO" 5; }
c6b750e1 4318fi
c6b750e1
DJ
4319rm -f conftest.$ac_cv_objext conftest.$ac_ext
4320fi
81ecdfbb
RW
4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4322$as_echo "$ac_cv_objext" >&6; }
c6b750e1
DJ
4323OBJEXT=$ac_cv_objext
4324ac_objext=$OBJEXT
81ecdfbb
RW
4325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4326$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4327if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
c6b750e1 4329else
81ecdfbb 4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4331/* end confdefs.h. */
4332
4333int
4334main ()
4335{
4336#ifndef __GNUC__
4337 choke me
4338#endif
4339
4340 ;
4341 return 0;
4342}
4343_ACEOF
81ecdfbb 4344if ac_fn_c_try_compile "$LINENO"; then :
c6b750e1
DJ
4345 ac_compiler_gnu=yes
4346else
81ecdfbb 4347 ac_compiler_gnu=no
c6b750e1 4348fi
81ecdfbb 4349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1
DJ
4350ac_cv_c_compiler_gnu=$ac_compiler_gnu
4351
4352fi
81ecdfbb
RW
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4354$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4355if test $ac_compiler_gnu = yes; then
4356 GCC=yes
4357else
4358 GCC=
4359fi
c6b750e1
DJ
4360ac_test_CFLAGS=${CFLAGS+set}
4361ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4363$as_echo_n "checking whether $CC accepts -g... " >&6; }
4364if test "${ac_cv_prog_cc_g+set}" = set; then :
4365 $as_echo_n "(cached) " >&6
4366else
4367 ac_save_c_werror_flag=$ac_c_werror_flag
4368 ac_c_werror_flag=yes
4369 ac_cv_prog_cc_g=no
4370 CFLAGS="-g"
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4372/* end confdefs.h. */
4373
4374int
4375main ()
4376{
4377
4378 ;
4379 return 0;
4380}
4381_ACEOF
81ecdfbb 4382if ac_fn_c_try_compile "$LINENO"; then :
9e07f89d
NN
4383 ac_cv_prog_cc_g=yes
4384else
81ecdfbb
RW
4385 CFLAGS=""
4386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387/* end confdefs.h. */
4388
4389int
4390main ()
4391{
4392
4393 ;
4394 return 0;
4395}
4396_ACEOF
4397if ac_fn_c_try_compile "$LINENO"; then :
4398
4399else
4400 ac_c_werror_flag=$ac_save_c_werror_flag
4401 CFLAGS="-g"
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403/* end confdefs.h. */
cac3d6c4 4404
81ecdfbb
RW
4405int
4406main ()
4407{
4408
4409 ;
4410 return 0;
4411}
4412_ACEOF
4413if ac_fn_c_try_compile "$LINENO"; then :
4414 ac_cv_prog_cc_g=yes
4415fi
4416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
376a0e54 4417fi
81ecdfbb 4418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 4419fi
81ecdfbb
RW
4420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4421 ac_c_werror_flag=$ac_save_c_werror_flag
4422fi
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4424$as_echo "$ac_cv_prog_cc_g" >&6; }
9e07f89d 4425if test "$ac_test_CFLAGS" = set; then
c6b750e1 4426 CFLAGS=$ac_save_CFLAGS
9e07f89d
NN
4427elif test $ac_cv_prog_cc_g = yes; then
4428 if test "$GCC" = yes; then
4429 CFLAGS="-g -O2"
4430 else
4431 CFLAGS="-g"
4432 fi
4433else
4434 if test "$GCC" = yes; then
4435 CFLAGS="-O2"
4436 else
4437 CFLAGS=
4438 fi
4439fi
81ecdfbb
RW
4440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4441$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4442if test "${ac_cv_prog_cc_c89+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
c6b750e1 4444else
81ecdfbb 4445 ac_cv_prog_cc_c89=no
c6b750e1 4446ac_save_CC=$CC
81ecdfbb 4447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
4448/* end confdefs.h. */
4449#include <stdarg.h>
4450#include <stdio.h>
4451#include <sys/types.h>
4452#include <sys/stat.h>
4453/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4454struct buf { int x; };
4455FILE * (*rcsopen) (struct buf *, struct stat *, int);
4456static char *e (p, i)
4457 char **p;
4458 int i;
4459{
4460 return p[i];
4461}
4462static char *f (char * (*g) (char **, int), char **p, ...)
4463{
4464 char *s;
4465 va_list v;
4466 va_start (v,p);
4467 s = g (p, va_arg (v,int));
4468 va_end (v);
4469 return s;
4470}
4471
4472/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4473 function prototypes and stuff, but not '\xHH' hex character constants.
4474 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4475 as 'x'. The following induces an error, until -std is added to get
c6b750e1
DJ
4476 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4477 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4478 that's true only with -std. */
c6b750e1
DJ
4479int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4480
81ecdfbb
RW
4481/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4482 inside strings and character constants. */
4483#define FOO(x) 'x'
4484int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4485
c6b750e1
DJ
4486int test (int i, double x);
4487struct s1 {int (*f) (int a);};
4488struct s2 {int (*f) (double a);};
4489int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4490int argc;
4491char **argv;
4492int
4493main ()
4494{
4495return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4496 ;
4497 return 0;
4498}
4499_ACEOF
81ecdfbb
RW
4500for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4501 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
c6b750e1
DJ
4502do
4503 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4504 if ac_fn_c_try_compile "$LINENO"; then :
4505 ac_cv_prog_cc_c89=$ac_arg
c6b750e1 4506fi
81ecdfbb
RW
4507rm -f core conftest.err conftest.$ac_objext
4508 test "x$ac_cv_prog_cc_c89" != "xno" && break
c6b750e1 4509done
81ecdfbb 4510rm -f conftest.$ac_ext
c6b750e1
DJ
4511CC=$ac_save_CC
4512
4513fi
81ecdfbb
RW
4514# AC_CACHE_VAL
4515case "x$ac_cv_prog_cc_c89" in
4516 x)
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4518$as_echo "none needed" >&6; } ;;
4519 xno)
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4521$as_echo "unsupported" >&6; } ;;
c6b750e1 4522 *)
81ecdfbb
RW
4523 CC="$CC $ac_cv_prog_cc_c89"
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4525$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
c6b750e1 4526esac
81ecdfbb 4527if test "x$ac_cv_prog_cc_c89" != xno; then :
c6b750e1 4528
c6b750e1
DJ
4529fi
4530
c6b750e1
DJ
4531ac_ext=c
4532ac_cpp='$CPP $CPPFLAGS'
4533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535ac_compiler_gnu=$ac_cv_c_compiler_gnu
9e07f89d 4536
81ecdfbb 4537ac_ext=cpp
18f6b6ee
PB
4538ac_cpp='$CXXCPP $CPPFLAGS'
4539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
81ecdfbb
RW
4542if test -z "$CXX"; then
4543 if test -n "$CCC"; then
4544 CXX=$CCC
4545 else
4546 if test -n "$ac_tool_prefix"; then
4547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4548 do
4549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4550set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4552$as_echo_n "checking for $ac_word... " >&6; }
4553if test "${ac_cv_prog_CXX+set}" = set; then :
4554 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4555else
4556 if test -n "$CXX"; then
4557 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4558else
4559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560for as_dir in $PATH
4561do
4562 IFS=$as_save_IFS
4563 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4566 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
81ecdfbb 4567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee
PB
4568 break 2
4569 fi
4570done
81ecdfbb
RW
4571 done
4572IFS=$as_save_IFS
512b7dfb 4573
18f6b6ee
PB
4574fi
4575fi
4576CXX=$ac_cv_prog_CXX
4577if test -n "$CXX"; then
81ecdfbb
RW
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4579$as_echo "$CXX" >&6; }
18f6b6ee 4580else
81ecdfbb
RW
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582$as_echo "no" >&6; }
18f6b6ee
PB
4583fi
4584
81ecdfbb 4585
18f6b6ee
PB
4586 test -n "$CXX" && break
4587 done
4588fi
4589if test -z "$CXX"; then
4590 ac_ct_CXX=$CXX
81ecdfbb 4591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18f6b6ee
PB
4592do
4593 # Extract the first word of "$ac_prog", so it can be a program name with args.
4594set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596$as_echo_n "checking for $ac_word... " >&6; }
4597if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
18f6b6ee
PB
4599else
4600 if test -n "$ac_ct_CXX"; then
4601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18f6b6ee 4610 ac_cv_prog_ac_ct_CXX="$ac_prog"
81ecdfbb 4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18f6b6ee 4612 break 2
512b7dfb 4613 fi
18f6b6ee 4614done
81ecdfbb
RW
4615 done
4616IFS=$as_save_IFS
512b7dfb 4617
18f6b6ee
PB
4618fi
4619fi
4620ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4621if test -n "$ac_ct_CXX"; then
81ecdfbb
RW
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4623$as_echo "$ac_ct_CXX" >&6; }
18f6b6ee 4624else
81ecdfbb
RW
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626$as_echo "no" >&6; }
18f6b6ee
PB
4627fi
4628
81ecdfbb 4629
18f6b6ee
PB
4630 test -n "$ac_ct_CXX" && break
4631done
18f6b6ee 4632
81ecdfbb
RW
4633 if test "x$ac_ct_CXX" = x; then
4634 CXX="g++"
4635 else
4636 case $cross_compiling:$ac_tool_warned in
4637yes:)
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4640ac_tool_warned=yes ;;
4641esac
4642 CXX=$ac_ct_CXX
4643 fi
18f6b6ee
PB
4644fi
4645
81ecdfbb
RW
4646 fi
4647fi
18f6b6ee 4648# Provide some information about the compiler.
81ecdfbb
RW
4649$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4650set X $ac_compile
4651ac_compiler=$2
4652for ac_option in --version -v -V -qversion; do
4653 { { ac_try="$ac_compiler $ac_option >&5"
4654case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657esac
4658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659$as_echo "$ac_try_echo"; } >&5
4660 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18f6b6ee 4661 ac_status=$?
81ecdfbb
RW
4662 if test -s conftest.err; then
4663 sed '10a\
4664... rest of stderr output deleted ...
4665 10q' conftest.err >conftest.er1
4666 cat conftest.er1 >&5
4667 rm -f conftest.er1 conftest.err
4668 fi
4669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4670 test $ac_status = 0; }
4671done
18f6b6ee 4672
81ecdfbb
RW
4673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4674$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4675if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
18f6b6ee 4677else
81ecdfbb 4678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4679/* end confdefs.h. */
4680
4681int
4682main ()
4683{
4684#ifndef __GNUC__
4685 choke me
4686#endif
4687
4688 ;
4689 return 0;
4690}
4691_ACEOF
81ecdfbb 4692if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4693 ac_compiler_gnu=yes
4694else
81ecdfbb 4695 ac_compiler_gnu=no
18f6b6ee 4696fi
81ecdfbb 4697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18f6b6ee
PB
4698ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4699
4700fi
81ecdfbb
RW
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4702$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4703if test $ac_compiler_gnu = yes; then
4704 GXX=yes
4705else
4706 GXX=
4707fi
18f6b6ee
PB
4708ac_test_CXXFLAGS=${CXXFLAGS+set}
4709ac_save_CXXFLAGS=$CXXFLAGS
81ecdfbb
RW
4710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4711$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4712if test "${ac_cv_prog_cxx_g+set}" = set; then :
4713 $as_echo_n "(cached) " >&6
4714else
4715 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4716 ac_cxx_werror_flag=yes
4717 ac_cv_prog_cxx_g=no
4718 CXXFLAGS="-g"
4719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee
PB
4720/* end confdefs.h. */
4721
4722int
4723main ()
4724{
4725
4726 ;
4727 return 0;
4728}
4729_ACEOF
81ecdfbb 4730if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee
PB
4731 ac_cv_prog_cxx_g=yes
4732else
81ecdfbb
RW
4733 CXXFLAGS=""
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4735/* end confdefs.h. */
81ecdfbb 4736
18f6b6ee
PB
4737int
4738main ()
4739{
81ecdfbb 4740
18f6b6ee
PB
4741 ;
4742 return 0;
4743}
4744_ACEOF
81ecdfbb 4745if ac_fn_cxx_try_compile "$LINENO"; then :
18f6b6ee 4746
81ecdfbb
RW
4747else
4748 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4749 CXXFLAGS="-g"
4750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18f6b6ee 4751/* end confdefs.h. */
81ecdfbb 4752
18f6b6ee
PB
4753int
4754main ()
4755{
81ecdfbb 4756
18f6b6ee
PB
4757 ;
4758 return 0;
4759}
4760_ACEOF
81ecdfbb
RW
4761if ac_fn_cxx_try_compile "$LINENO"; then :
4762 ac_cv_prog_cxx_g=yes
18f6b6ee 4763fi
81ecdfbb
RW
4764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765fi
4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767fi
4768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4770fi
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4772$as_echo "$ac_cv_prog_cxx_g" >&6; }
4773if test "$ac_test_CXXFLAGS" = set; then
4774 CXXFLAGS=$ac_save_CXXFLAGS
4775elif test $ac_cv_prog_cxx_g = yes; then
4776 if test "$GXX" = yes; then
4777 CXXFLAGS="-g -O2"
4778 else
4779 CXXFLAGS="-g"
4780 fi
4781else
4782 if test "$GXX" = yes; then
4783 CXXFLAGS="-O2"
4784 else
4785 CXXFLAGS=
4786 fi
18f6b6ee 4787fi
18f6b6ee
PB
4788ac_ext=c
4789ac_cpp='$CPP $CPPFLAGS'
4790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4792ac_compiler_gnu=$ac_cv_c_compiler_gnu
4793
4794
4795# We must set the default linker to the linker used by gcc for the correct
4796# operation of libtool. If LD is not defined and we are using gcc, try to
4797# set the LD default to the ld used by gcc.
4798if test -z "$LD"; then
4799 if test "$GCC" = yes; then
4800 case $build in
4801 *-*-mingw*)
4802 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
4803 *)
4804 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
4805 esac
4806 case $gcc_prog_ld in
4807 # Accept absolute paths.
4808 [\\/]* | [A-Za-z]:[\\/]*)
4809 LD="$gcc_prog_ld" ;;
4810 esac
4811 fi
512b7dfb
PB
4812fi
4813
4814
4815
4816
c6b750e1 4817if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4818 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
4819set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
81ecdfbb
RW
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821$as_echo_n "checking for $ac_word... " >&6; }
4822if test "${ac_cv_prog_GNATBIND+set}" = set; then :
4823 $as_echo_n "(cached) " >&6
9e07f89d 4824else
512b7dfb
PB
4825 if test -n "$GNATBIND"; then
4826 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
9e07f89d 4827else
c6b750e1
DJ
4828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829for as_dir in $PATH
4830do
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4835 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
81ecdfbb 4836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4837 break 2
4838 fi
4839done
81ecdfbb
RW
4840 done
4841IFS=$as_save_IFS
c6b750e1 4842
9e07f89d
NN
4843fi
4844fi
512b7dfb
PB
4845GNATBIND=$ac_cv_prog_GNATBIND
4846if test -n "$GNATBIND"; then
81ecdfbb
RW
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
4848$as_echo "$GNATBIND" >&6; }
9e07f89d 4849else
81ecdfbb
RW
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851$as_echo "no" >&6; }
9e07f89d
NN
4852fi
4853
81ecdfbb 4854
c6b750e1 4855fi
512b7dfb
PB
4856if test -z "$ac_cv_prog_GNATBIND"; then
4857 ac_ct_GNATBIND=$GNATBIND
4858 # Extract the first word of "gnatbind", so it can be a program name with args.
4859set dummy gnatbind; ac_word=$2
81ecdfbb
RW
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861$as_echo_n "checking for $ac_word... " >&6; }
4862if test "${ac_cv_prog_ac_ct_GNATBIND+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
9e07f89d 4864else
512b7dfb
PB
4865 if test -n "$ac_ct_GNATBIND"; then
4866 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
9e07f89d 4867else
c6b750e1
DJ
4868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869for as_dir in $PATH
4870do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4875 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
81ecdfbb 4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
4877 break 2
4878 fi
4879done
81ecdfbb
RW
4880 done
4881IFS=$as_save_IFS
c6b750e1 4882
9e07f89d
NN
4883fi
4884fi
512b7dfb
PB
4885ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
4886if test -n "$ac_ct_GNATBIND"; then
81ecdfbb
RW
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
4888$as_echo "$ac_ct_GNATBIND" >&6; }
9e07f89d 4889else
81ecdfbb
RW
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891$as_echo "no" >&6; }
9e07f89d
NN
4892fi
4893
81ecdfbb
RW
4894 if test "x$ac_ct_GNATBIND" = x; then
4895 GNATBIND="no"
4896 else
4897 case $cross_compiling:$ac_tool_warned in
4898yes:)
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4900$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4901ac_tool_warned=yes ;;
4902esac
4903 GNATBIND=$ac_ct_GNATBIND
4904 fi
24ff9987 4905else
512b7dfb 4906 GNATBIND="$ac_cv_prog_GNATBIND"
9e07f89d
NN
4907fi
4908
7df2cd5d 4909if test -n "$ac_tool_prefix"; then
512b7dfb
PB
4910 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
4911set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
81ecdfbb
RW
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913$as_echo_n "checking for $ac_word... " >&6; }
4914if test "${ac_cv_prog_GNATMAKE+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
7df2cd5d 4916else
512b7dfb
PB
4917 if test -n "$GNATMAKE"; then
4918 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4919else
4920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921for as_dir in $PATH
4922do
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4927 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
81ecdfbb 4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4929 break 2
4930 fi
4931done
81ecdfbb
RW
4932 done
4933IFS=$as_save_IFS
7df2cd5d
PB
4934
4935fi
4936fi
512b7dfb
PB
4937GNATMAKE=$ac_cv_prog_GNATMAKE
4938if test -n "$GNATMAKE"; then
81ecdfbb
RW
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
4940$as_echo "$GNATMAKE" >&6; }
7df2cd5d 4941else
81ecdfbb
RW
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943$as_echo "no" >&6; }
7df2cd5d
PB
4944fi
4945
81ecdfbb 4946
7df2cd5d 4947fi
512b7dfb
PB
4948if test -z "$ac_cv_prog_GNATMAKE"; then
4949 ac_ct_GNATMAKE=$GNATMAKE
4950 # Extract the first word of "gnatmake", so it can be a program name with args.
4951set dummy gnatmake; ac_word=$2
81ecdfbb
RW
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953$as_echo_n "checking for $ac_word... " >&6; }
4954if test "${ac_cv_prog_ac_ct_GNATMAKE+set}" = set; then :
4955 $as_echo_n "(cached) " >&6
7df2cd5d 4956else
512b7dfb
PB
4957 if test -n "$ac_ct_GNATMAKE"; then
4958 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
7df2cd5d
PB
4959else
4960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961for as_dir in $PATH
4962do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
512b7dfb 4967 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
81ecdfbb 4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7df2cd5d
PB
4969 break 2
4970 fi
4971done
81ecdfbb
RW
4972 done
4973IFS=$as_save_IFS
7df2cd5d 4974
7df2cd5d
PB
4975fi
4976fi
512b7dfb
PB
4977ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
4978if test -n "$ac_ct_GNATMAKE"; then
81ecdfbb
RW
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
4980$as_echo "$ac_ct_GNATMAKE" >&6; }
7df2cd5d 4981else
81ecdfbb
RW
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983$as_echo "no" >&6; }
7df2cd5d
PB
4984fi
4985
81ecdfbb
RW
4986 if test "x$ac_ct_GNATMAKE" = x; then
4987 GNATMAKE="no"
4988 else
4989 case $cross_compiling:$ac_tool_warned in
4990yes:)
4991{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4993ac_tool_warned=yes ;;
4994esac
4995 GNATMAKE=$ac_ct_GNATMAKE
4996 fi
7df2cd5d 4997else
512b7dfb 4998 GNATMAKE="$ac_cv_prog_GNATMAKE"
7df2cd5d
PB
4999fi
5000
81ecdfbb
RW
5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5002$as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5003if test "${acx_cv_cc_gcc_supports_ada+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
9e07f89d
NN
5005else
5006 cat >conftest.adb <<EOF
5007procedure conftest is begin null; end conftest;
5008EOF
5009acx_cv_cc_gcc_supports_ada=no
5010# There is a bug in old released versions of GCC which causes the
5011# driver to exit successfully when the appropriate language module
5012# has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5013# Therefore we must check for the error message as well as an
5014# unsuccessful exit.
b8908782
DD
5015# Other compilers, like HP Tru64 UNIX cc, exit successfully when
5016# given a .adb file, but produce no object file. So we must check
5017# if an object file was really produced to guard against this.
9e07f89d 5018errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
b8908782 5019if test x"$errors" = x && test -f conftest.$ac_objext; then
9e07f89d 5020 acx_cv_cc_gcc_supports_ada=yes
9e07f89d
NN
5021fi
5022rm -f conftest.*
5023fi
81ecdfbb
RW
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5025$as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
9e07f89d 5026
512b7dfb 5027if test x$GNATBIND != xno && test x$GNATMAKE != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
9e07f89d
NN
5028 have_gnat=yes
5029else
5030 have_gnat=no
5031fi
5032
81ecdfbb
RW
5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5034$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5035if test "${gcc_cv_prog_cmp_skip+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
b8908782
DD
5037else
5038 echo abfoo >t1
5039 echo cdfoo >t2
5040 gcc_cv_prog_cmp_skip='tail +16c $$f1 > tmp-foo1; tail +16c $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
4b1cb4fe
DD
5041 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5042 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5043 :
5044 else
5045 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5046 fi
5047 fi
b8908782
DD
5048 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5049 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
4b1cb4fe 5050 :
b8908782
DD
5051 else
5052 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5053 fi
5054 fi
5055 rm t1 t2
5056
5057fi
81ecdfbb
RW
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5059$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
b8908782
DD
5060do_compare="$gcc_cv_prog_cmp_skip"
5061
5062
9e07f89d 5063
e8a5fa9c 5064# See if we are building gcc with C++.
81ecdfbb
RW
5065# Check whether --enable-build-with-cxx was given.
5066if test "${enable_build_with_cxx+set}" = set; then :
5067 enableval=$enable_build_with_cxx; ENABLE_BUILD_WITH_CXX=$enableval
e8a5fa9c
RW
5068else
5069 ENABLE_BUILD_WITH_CXX=no
81ecdfbb
RW
5070fi
5071
e8a5fa9c 5072
d5f2ee2e
KG
5073# Used for setting $lt_cv_objdir
5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
5075$as_echo_n "checking for objdir... " >&6; }
5076if test "${lt_cv_objdir+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5078else
5079 rm -f .libs 2>/dev/null
5080mkdir .libs 2>/dev/null
5081if test -d .libs; then
5082 lt_cv_objdir=.libs
5083else
5084 # MS-DOS does not allow filenames that begin with a dot.
5085 lt_cv_objdir=_libs
5086fi
5087rmdir .libs 2>/dev/null
5088fi
5089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
5090$as_echo "$lt_cv_objdir" >&6; }
5091objdir=$lt_cv_objdir
5092
5093
5094
5095
5096
5097cat >>confdefs.h <<_ACEOF
5098#define LT_OBJDIR "$lt_cv_objdir/"
5099_ACEOF
5100
5101
5102
e8a5fa9c 5103# Check for GMP, MPFR and MPC
d9b76ff9 5104gmplibs="-lmpc -lmpfr -lgmp"
4b1cb4fe 5105gmpinc=
4b900473 5106have_gmp=no
e8a5fa9c
RW
5107
5108# Specify a location for mpc
5109# check for this first so it ends up on the link line before mpfr.
5110
81ecdfbb
RW
5111# Check whether --with-mpc was given.
5112if test "${with_mpc+set}" = set; then :
5113 withval=$with_mpc;
5114fi
e8a5fa9c 5115
e8a5fa9c 5116
81ecdfbb
RW
5117# Check whether --with-mpc_include was given.
5118if test "${with_mpc_include+set}" = set; then :
5119 withval=$with_mpc_include;
5120fi
e8a5fa9c 5121
e8a5fa9c 5122
81ecdfbb
RW
5123# Check whether --with-mpc_lib was given.
5124if test "${with_mpc_lib+set}" = set; then :
5125 withval=$with_mpc_lib;
5126fi
e8a5fa9c 5127
e8a5fa9c
RW
5128
5129if test "x$with_mpc" != x; then
d9b76ff9
KG
5130 gmplibs="-L$with_mpc/lib $gmplibs"
5131 gmpinc="-I$with_mpc/include $gmpinc"
e8a5fa9c
RW
5132fi
5133if test "x$with_mpc_include" != x; then
d9b76ff9 5134 gmpinc="-I$with_mpc_include $gmpinc"
e8a5fa9c
RW
5135fi
5136if test "x$with_mpc_lib" != x; then
d9b76ff9 5137 gmplibs="-L$with_mpc_lib $gmplibs"
e8a5fa9c
RW
5138fi
5139if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
d5f2ee2e 5140 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
d9b76ff9 5141 gmpinc='-I$$s/mpc/src '"$gmpinc"
e8a5fa9c
RW
5142 # Do not test the mpc version. Assume that it is sufficient, since
5143 # it is in the source tree, and the library has not been built yet
5144 # but it would be included on the link line in the version check below
5145 # hence making the test fail.
d9b76ff9 5146 have_gmp=yes
e8a5fa9c 5147fi
4b900473 5148
11b04d1f
DD
5149# Specify a location for mpfr
5150# check for this first so it ends up on the link line before gmp.
c6b750e1 5151
81ecdfbb
RW
5152# Check whether --with-mpfr-dir was given.
5153if test "${with_mpfr_dir+set}" = set; then :
5154 withval=$with_mpfr_dir; as_fn_error "The --with-mpfr-dir=PATH option has been removed.
5155Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
5156fi
5157
11b04d1f
DD
5158
5159
81ecdfbb
RW
5160# Check whether --with-mpfr was given.
5161if test "${with_mpfr+set}" = set; then :
5162 withval=$with_mpfr;
5163fi
c6b750e1 5164
11b04d1f 5165
81ecdfbb
RW
5166# Check whether --with-mpfr_include was given.
5167if test "${with_mpfr_include+set}" = set; then :
5168 withval=$with_mpfr_include;
5169fi
c6b750e1 5170
8a0d8a5c 5171
81ecdfbb
RW
5172# Check whether --with-mpfr_lib was given.
5173if test "${with_mpfr_lib+set}" = set; then :
5174 withval=$with_mpfr_lib;
5175fi
8a0d8a5c 5176
11b04d1f
DD
5177
5178if test "x$with_mpfr" != x; then
5179 gmplibs="-L$with_mpfr/lib $gmplibs"
d9b76ff9 5180 gmpinc="-I$with_mpfr/include $gmpinc"
11b04d1f 5181fi
8a0d8a5c 5182if test "x$with_mpfr_include" != x; then
d9b76ff9 5183 gmpinc="-I$with_mpfr_include $gmpinc"
8a0d8a5c
PB
5184fi
5185if test "x$with_mpfr_lib" != x; then
5186 gmplibs="-L$with_mpfr_lib $gmplibs"
5187fi
4b900473 5188if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
d5f2ee2e 5189 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir $gmplibs"
4b900473 5190 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr -I$$s/mpfr '"$gmpinc"
d5f2ee2e 5191 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/'"$lt_cv_objdir"
4b900473
PB
5192 # Do not test the mpfr version. Assume that it is sufficient, since
5193 # it is in the source tree, and the library has not been built yet
5194 # but it would be included on the link line in the version check below
5195 # hence making the test fail.
5196 have_gmp=yes
5197fi
11b04d1f 5198
4b1cb4fe 5199# Specify a location for gmp
c6b750e1 5200
81ecdfbb
RW
5201# Check whether --with-gmp-dir was given.
5202if test "${with_gmp_dir+set}" = set; then :
5203 withval=$with_gmp_dir; as_fn_error "The --with-gmp-dir=PATH option has been removed.
5204Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
5205fi
5206
4b1cb4fe
DD
5207
5208
81ecdfbb
RW
5209# Check whether --with-gmp was given.
5210if test "${with_gmp+set}" = set; then :
5211 withval=$with_gmp;
5212fi
c6b750e1 5213
4b1cb4fe 5214
81ecdfbb
RW
5215# Check whether --with-gmp_include was given.
5216if test "${with_gmp_include+set}" = set; then :
5217 withval=$with_gmp_include;
5218fi
c6b750e1 5219
8a0d8a5c 5220
81ecdfbb
RW
5221# Check whether --with-gmp_lib was given.
5222if test "${with_gmp_lib+set}" = set; then :
5223 withval=$with_gmp_lib;
5224fi
8a0d8a5c
PB
5225
5226
4b1cb4fe 5227
11b04d1f
DD
5228if test "x$with_gmp" != x; then
5229 gmplibs="-L$with_gmp/lib $gmplibs"
5230 gmpinc="-I$with_gmp/include $gmpinc"
4b1cb4fe 5231fi
8a0d8a5c
PB
5232if test "x$with_gmp_include" != x; then
5233 gmpinc="-I$with_gmp_include $gmpinc"
5234fi
5235if test "x$with_gmp_lib" != x; then
5236 gmplibs="-L$with_gmp_lib $gmplibs"
5237fi
4b900473 5238if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
d5f2ee2e 5239 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
4b900473 5240 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
29821356 5241 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
d5f2ee2e 5242 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
4b900473
PB
5243 # Do not test the gmp version. Assume that it is sufficient, since
5244 # it is in the source tree, and the library has not been built yet
5245 # but it would be included on the link line in the version check below
5246 # hence making the test fail.
5247 have_gmp=yes
5248fi
4b1cb4fe 5249
ceb92e78 5250if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
4b900473
PB
5251 have_gmp=yes
5252 saved_CFLAGS="$CFLAGS"
5253 CFLAGS="$CFLAGS $gmpinc"
a6b5846e
KG
5254 # Check for the recommended and required versions of GMP.
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
5256$as_echo_n "checking for the correct version of gmp.h... " >&6; }
a009f2e7
RW
5257
5258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a6b5846e
KG
5259/* end confdefs.h. */
5260#include "gmp.h"
5261int
5262main ()
5263{
5264
5265 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5266 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5267 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0)
5268 choke me
5269 #endif
5270
5271 ;
5272 return 0;
5273}
5274_ACEOF
5275if ac_fn_c_try_compile "$LINENO"; then :
a009f2e7 5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5277/* end confdefs.h. */
a6b5846e 5278#include <gmp.h>
c6b750e1
DJ
5279int
5280main ()
5281{
4b1cb4fe 5282
a6b5846e
KG
5283 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5284 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5285 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
4b900473
PB
5286 choke me
5287 #endif
c6b750e1
DJ
5288
5289 ;
5290 return 0;
5291}
5292_ACEOF
81ecdfbb
RW
5293if ac_fn_c_try_compile "$LINENO"; then :
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5295$as_echo "yes" >&6; }
a6b5846e
KG
5296else
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5298$as_echo "buggy but acceptable" >&6; }
5299fi
5300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c6b750e1 5301else
81ecdfbb
RW
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5304fi
81ecdfbb 5305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4b1cb4fe 5306
e8a5fa9c 5307 # If we have GMP, check the MPFR version.
4b900473 5308 if test x"$have_gmp" = xyes; then
a6b5846e
KG
5309 # Check for the recommended and required versions of MPFR.
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
5311$as_echo_n "checking for the correct version of mpfr.h... " >&6; }
81ecdfbb 5312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5313/* end confdefs.h. */
9b134994 5314#include <gmp.h>
4b900473 5315 #include <mpfr.h>
c6b750e1
DJ
5316int
5317main ()
5318{
9b134994 5319
ef699244 5320 #if MPFR_VERSION < MPFR_VERSION_NUM(2,3,1)
4b900473
PB
5321 choke me
5322 #endif
c6b750e1
DJ
5323
5324 ;
5325 return 0;
5326}
5327_ACEOF
81ecdfbb
RW
5328if ac_fn_c_try_compile "$LINENO"; then :
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1 5330/* end confdefs.h. */
4b1cb4fe 5331#include <gmp.h>
4b900473 5332 #include <mpfr.h>
c6b750e1
DJ
5333int
5334main ()
5335{
9dbaa842 5336
a6b5846e 5337 #if MPFR_VERSION < MPFR_VERSION_NUM(2,4,2)
4b900473
PB
5338 choke me
5339 #endif
e8a5fa9c
RW
5340
5341 ;
5342 return 0;
5343}
5344_ACEOF
81ecdfbb
RW
5345if ac_fn_c_try_compile "$LINENO"; then :
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5347$as_echo "yes" >&6; }
e8a5fa9c 5348else
81ecdfbb
RW
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5350$as_echo "buggy but acceptable" >&6; }
e8a5fa9c 5351fi
81ecdfbb 5352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5353else
81ecdfbb
RW
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5355$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5356fi
81ecdfbb 5357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5358 fi
5359
5360 # Check for the MPC header version.
d9b76ff9 5361 if test x"$have_gmp" = xyes ; then
a6b5846e 5362 # Check for the recommended and required versions of MPC.
81ecdfbb
RW
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
5364$as_echo_n "checking for the correct version of mpc.h... " >&6; }
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c
RW
5366/* end confdefs.h. */
5367#include <mpc.h>
5368int
5369main ()
5370{
5371
a6b5846e
KG
5372 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
5373 choke me
5374 #endif
5375
5376 ;
5377 return 0;
5378}
5379_ACEOF
5380if ac_fn_c_try_compile "$LINENO"; then :
5381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h. */
5383#include <mpc.h>
5384int
5385main ()
5386{
5387
5388 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
e8a5fa9c
RW
5389 choke me
5390 #endif
5391
5392 ;
5393 return 0;
5394}
5395_ACEOF
81ecdfbb
RW
5396if ac_fn_c_try_compile "$LINENO"; then :
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
d9b76ff9 5398$as_echo "yes" >&6; }
a6b5846e
KG
5399else
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5401$as_echo "buggy but acceptable" >&6; }
5402fi
5403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c 5404else
81ecdfbb 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
d9b76ff9 5406$as_echo "no" >&6; }; have_gmp=no
e8a5fa9c 5407fi
81ecdfbb 5408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e8a5fa9c
RW
5409 fi
5410
5411 # Now check the MPFR library.
5412 if test x"$have_gmp" = xyes; then
5413 saved_LIBS="$LIBS"
5414 LIBS="$LIBS $gmplibs"
d9b76ff9
KG
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
5416$as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
81ecdfbb 5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a5fa9c 5418/* end confdefs.h. */
d9b76ff9 5419#include <mpc.h>
e8a5fa9c
RW
5420int
5421main ()
5422{
5423
5424 mpfr_t n;
5425 mpfr_t x;
d9b76ff9 5426 mpc_t c;
e8a5fa9c
RW
5427 int t;
5428 mpfr_init (n);
5429 mpfr_init (x);
5430 mpfr_atan2 (n, n, x, GMP_RNDN);
5431 mpfr_erfc (n, x, GMP_RNDN);
5432 mpfr_subnormalize (x, t, GMP_RNDN);
d9b76ff9
KG
5433 mpfr_clear(n);
5434 mpfr_clear(x);
5435 mpc_init2 (c, 53);
5436 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
5437 mpc_cosh (c, c, MPC_RNDNN);
5438 mpc_pow (c, c, c, MPC_RNDNN);
5439 mpc_acosh (c, c, MPC_RNDNN);
5440 mpc_clear (c);
c6b750e1
DJ
5441
5442 ;
5443 return 0;
5444}
5445_ACEOF
81ecdfbb
RW
5446if ac_fn_c_try_link "$LINENO"; then :
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5448$as_echo "yes" >&6; }
c6b750e1 5449else
81ecdfbb
RW
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451$as_echo "no" >&6; }; have_gmp=no
c6b750e1 5452fi
81ecdfbb
RW
5453rm -f core conftest.err conftest.$ac_objext \
5454 conftest$ac_exeext conftest.$ac_ext
e8a5fa9c
RW
5455 LIBS="$saved_LIBS"
5456 fi
5457
4b900473 5458 CFLAGS="$saved_CFLAGS"
4b1cb4fe 5459
a6b5846e
KG
5460# The library versions listed in the error message below should match
5461# the HARD-minimums enforced above.
4b900473 5462 if test x$have_gmp != xyes; then
a6b5846e 5463 as_fn_error "Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
d9b76ff9
KG
5464Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
5465their locations. Source code for these libraries can be found at
5466their respective hosting sites as well as at
5467ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also
5468http://gcc.gnu.org/install/prerequisites.html for additional info. If
5469you obtained GMP, MPFR and/or MPC from a vendor distribution package,
5470make sure that you have installed both the libraries and the header
5471files. They may be located in separate packages." "$LINENO" 5
4b900473 5472 fi
9dbaa842
DD
5473fi
5474
e8a5fa9c
RW
5475# Flags needed for both GMP, MPFR and/or MPC.
5476
5477
5478
4b1cb4fe
DD
5479
5480
5481
29383458
JM
5482# Allow host libstdc++ to be specified for static linking with PPL.
5483
81ecdfbb
RW
5484# Check whether --with-host-libstdcxx was given.
5485if test "${with_host_libstdcxx+set}" = set; then :
5486 withval=$with_host_libstdcxx;
5487fi
29383458 5488
29383458
JM
5489
5490case $with_host_libstdcxx in
5491 no|yes)
81ecdfbb 5492 as_fn_error "-with-host-libstdcxx needs an argument" "$LINENO" 5
29383458
JM
5493 ;;
5494esac
e28c595f 5495
e8a5fa9c
RW
5496# Linker flags to use for stage1 or when not boostrapping.
5497
81ecdfbb
RW
5498# Check whether --with-stage1-ldflags was given.
5499if test "${with_stage1_ldflags+set}" = set; then :
5500 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5501 stage1_ldflags=
5502 else
5503 stage1_ldflags=$withval
5504 fi
5505else
5506 stage1_ldflags=
81ecdfbb
RW
5507fi
5508
e8a5fa9c
RW
5509
5510
5511# Libraries to use for stage1 or when not bootstrapping.
5512
81ecdfbb
RW
5513# Check whether --with-stage1-libs was given.
5514if test "${with_stage1_libs+set}" = set; then :
5515 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5516 stage1_libs=
5517 else
5518 stage1_libs=$withval
5519 fi
5520else
5521 stage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5522fi
5523
e8a5fa9c
RW
5524
5525
e8a5fa9c
RW
5526# Libraries to use for stage2 and later builds. This defaults to the
5527# argument passed to --with-host-libstdcxx.
5528
81ecdfbb
RW
5529# Check whether --with-boot-libs was given.
5530if test "${with_boot_libs+set}" = set; then :
5531 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
e8a5fa9c
RW
5532 poststage1_libs=
5533 else
5534 poststage1_libs=$withval
5535 fi
5536else
5537 poststage1_libs=$with_host_libstdcxx
81ecdfbb
RW
5538fi
5539
e8a5fa9c
RW
5540
5541
143754cd
NC
5542# Linker flags to use for stage2 and later builds.
5543
5544# Check whether --with-boot-ldflags was given.
5545if test "${with_boot_ldflags+set}" = set; then :
5546 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
5547 poststage1_ldflags=
5548 else
5549 poststage1_ldflags=$withval
5550 fi
5551else
5552 poststage1_ldflags=
5553 # With --enable-build-with-cxx, default to linking libstdc++ and
5554 # libgcc statically. But if the user explicitly specified the
5555 # libraries to use, trust that they are doing what they want.
5556 if test "$ENABLE_BUILD_WITH_CXX" = "yes" -a "$poststage1_libs" = ""; then
5557 poststage1_ldflags="-static-libstdc++ -static-libgcc"
5558 fi
5559fi
5560
5561
5562
e28c595f 5563# Check for PPL
e8a5fa9c 5564ppllibs=" -lppl_c -lppl -lgmpxx"
e28c595f
JM
5565pplinc=
5566
5567
81ecdfbb
RW
5568# Check whether --with-ppl was given.
5569if test "${with_ppl+set}" = set; then :
5570 withval=$with_ppl;
81ecdfbb 5571fi
e28c595f 5572
e28c595f 5573
81ecdfbb
RW
5574# Check whether --with-ppl_include was given.
5575if test "${with_ppl_include+set}" = set; then :
5576 withval=$with_ppl_include;
5577fi
5578
e28c595f 5579
81ecdfbb
RW
5580# Check whether --with-ppl_lib was given.
5581if test "${with_ppl_lib+set}" = set; then :
5582 withval=$with_ppl_lib;
5583fi
e28c595f 5584
e28c595f 5585
29383458
JM
5586case $with_ppl in
5587 no)
5588 ppllibs=
5589 ;;
1f53ca9a
AO
5590 "" | yes)
5591 ;;
29383458 5592 *)
e8a5fa9c 5593 ppllibs="-L$with_ppl/lib -lppl_c -lppl -lgmpxx"
29383458 5594 pplinc="-I$with_ppl/include $pplinc"
29383458
JM
5595 ;;
5596esac
e28c595f
JM
5597if test "x$with_ppl_include" != x; then
5598 pplinc="-I$with_ppl_include $pplinc"
5599fi
5600if test "x$with_ppl_lib" != x; then
e8a5fa9c 5601 ppllibs="-L$with_ppl_lib -lppl_c -lppl -lgmpxx"
e28c595f
JM
5602fi
5603if test "x$with_ppl$with_ppl_include$with_ppl_lib" = x && test -d ${srcdir}/ppl; then
d5f2ee2e 5604 ppllibs='-L$$r/$(HOST_SUBDIR)/ppl/interfaces/C/'"$lt_cv_objdir"' -L$$r/$(HOST_SUBDIR)/ppl/src/'"$lt_cv_objdir"' -lppl_c -lppl -lgmpxx '
1f53ca9a
AO
5605 pplinc='-I$$r/$(HOST_SUBDIR)/ppl/src -I$$r/$(HOST_SUBDIR)/ppl/interfaces/C '
5606 enable_ppl_version_check=no
e28c595f
JM
5607fi
5608
81ecdfbb
RW
5609# Check whether --enable-ppl-version-check was given.
5610if test "${enable_ppl_version_check+set}" = set; then :
5611 enableval=$enable_ppl_version_check; ENABLE_PPL_CHECK=$enableval
e28c595f
JM
5612else
5613 ENABLE_PPL_CHECK=yes
81ecdfbb
RW
5614fi
5615
e28c595f 5616
1f53ca9a 5617if test "x$with_ppl" != "xno" -a "${ENABLE_PPL_CHECK}" = "yes"; then
e28c595f
JM
5618 saved_CFLAGS="$CFLAGS"
5619 CFLAGS="$CFLAGS $pplinc $gmpinc"
a009f2e7
RW
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.10 (or later revision) of PPL" >&5
5621$as_echo_n "checking for version 0.10 (or later revision) of PPL... " >&6; }
81ecdfbb 5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5623/* end confdefs.h. */
5624#include "ppl_c.h"
5625int
5626main ()
5627{
5628
a009f2e7 5629 #if PPL_VERSION_MAJOR != 0 || PPL_VERSION_MINOR < 10
e28c595f
JM
5630 choke me
5631 #endif
5632
5633 ;
5634 return 0;
5635}
5636_ACEOF
81ecdfbb
RW
5637if ac_fn_c_try_compile "$LINENO"; then :
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5639$as_echo "yes" >&6; }
e28c595f 5640else
81ecdfbb 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1f53ca9a 5642$as_echo "no" >&6; }; ppllibs= ; pplinc= ; with_ppl=no
e28c595f 5643fi
81ecdfbb 5644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5645 CFLAGS="$saved_CFLAGS"
5646fi
5647
5648# Flags needed for PPL
5649
5650
5651
5652
5653# Check for CLOOG
5654clooglibs=" -lcloog "
5655clooginc=" -DCLOOG_PPL_BACKEND "
5656
5657
81ecdfbb
RW
5658# Check whether --with-cloog was given.
5659if test "${with_cloog+set}" = set; then :
5660 withval=$with_cloog;
81ecdfbb
RW
5661fi
5662
e28c595f 5663
81ecdfbb
RW
5664# Check whether --with-cloog_include was given.
5665if test "${with_cloog_include+set}" = set; then :
5666 withval=$with_cloog_include;
5667fi
e28c595f 5668
e28c595f 5669
81ecdfbb
RW
5670# Check whether --with-cloog_lib was given.
5671if test "${with_cloog_lib+set}" = set; then :
5672 withval=$with_cloog_lib;
5673fi
e28c595f 5674
e28c595f 5675
1f53ca9a
AO
5676if test "x$with_ppl" = "xno"; then
5677 with_cloog=no
5678fi
5679
29383458
JM
5680case $with_cloog in
5681 no)
5682 clooglibs=
5683 clooginc=
5684 ;;
1f53ca9a
AO
5685 "" | yes)
5686 ;;
29383458
JM
5687 *)
5688 clooglibs="-L$with_cloog/lib -lcloog"
5689 clooginc="-I$with_cloog/include -DCLOOG_PPL_BACKEND "
29383458
JM
5690 ;;
5691esac
e28c595f
JM
5692if test "x$with_cloog_include" != x; then
5693 clooginc="-I$with_cloog_include -DCLOOG_PPL_BACKEND "
5694fi
5695if test "x$with_cloog_lib" != x; then
5696 clooglibs="-L$with_cloog_lib -lcloog"
e28c595f
JM
5697fi
5698if test "x$with_cloog$with_cloog_include$with_cloog_lib" = x && test -d ${srcdir}/cloog; then
d5f2ee2e 5699 clooglibs='-L$$r/$(HOST_SUBDIR)/cloog/'"$lt_cv_objdir"' -lcloog '
e28c595f 5700 clooginc='-I$$r/$(HOST_SUBDIR)/cloog/include -I$$s/cloog/include -DCLOOG_PPL_BACKEND '
1f53ca9a 5701 enable_cloog_version_check=no
e28c595f
JM
5702fi
5703
81ecdfbb
RW
5704# Check whether --enable-cloog-version-check was given.
5705if test "${enable_cloog_version_check+set}" = set; then :
5706 enableval=$enable_cloog_version_check; ENABLE_CLOOG_CHECK=$enableval
e28c595f
JM
5707else
5708 ENABLE_CLOOG_CHECK=yes
81ecdfbb
RW
5709fi
5710
e28c595f 5711
1f53ca9a 5712if test "x$with_cloog" != "xno" -a "${ENABLE_CLOOG_CHECK}" = "yes"; then
e28c595f
JM
5713 saved_CFLAGS="$CFLAGS"
5714 CFLAGS="$CFLAGS $clooginc $gmpinc $pplinc"
143754cd
NC
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version 0.15.5 (or later revision) of CLooG" >&5
5716$as_echo_n "checking for version 0.15.5 (or later revision) of CLooG... " >&6; }
81ecdfbb 5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e28c595f
JM
5718/* end confdefs.h. */
5719#include "cloog/cloog.h"
5720int
5721main ()
5722{
5723
143754cd 5724 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 5
e28c595f
JM
5725 choke me
5726 #endif
5727
5728 ;
5729 return 0;
5730}
5731_ACEOF
a009f2e7
RW
5732if ac_fn_c_try_compile "$LINENO"; then :
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734/* end confdefs.h. */
5735#include "cloog/cloog.h"
5736int
5737main ()
5738{
5739
5740 #if CLOOG_VERSION_MAJOR != 0 || CLOOG_VERSION_MINOR != 15 || CLOOG_VERSION_REVISION < 9
5741 choke me
5742 #endif
5743
5744 ;
5745 return 0;
5746}
5747_ACEOF
81ecdfbb
RW
5748if ac_fn_c_try_compile "$LINENO"; then :
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5750$as_echo "yes" >&6; }
a009f2e7
RW
5751else
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
5753$as_echo "buggy but acceptable" >&6; }
5754fi
5755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f 5756else
81ecdfbb
RW
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758$as_echo "no" >&6; }; clooglibs= ; clooginc=
e28c595f 5759fi
81ecdfbb 5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e28c595f
JM
5761 CFLAGS="$saved_CFLAGS"
5762fi
5763
5764# Flags needed for CLOOG
5765
5766
5767
700d40ca
ILT
5768# Check for LTO support.
5769# Check whether --enable-lto was given.
5770if test "${enable_lto+set}" = set; then :
5771 enableval=$enable_lto; enable_lto=$enableval
5772else
5773 enable_lto=yes; default_enable_lto=yes
5774fi
5775
5776
143754cd 5777
e49e5c92
DK
5778
5779
5780target_elf=no
5781case $target in
5782 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
5783 *-msdosdjgpp* | *-netware* | *-vms* | *-wince* | *-*-pe* | \
a009f2e7 5784 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux*)
e49e5c92
DK
5785 target_elf=no
5786 ;;
5787 *)
5788 target_elf=yes
5789 ;;
5790esac
5791
5792if test $target_elf = yes; then :
74cea91b
DK
5793 # ELF platforms build the lto-plugin always.
5794 build_lto_plugin=yes
e49e5c92 5795
e49e5c92
DK
5796else
5797 if test x"$default_enable_lto" = x"yes" ; then
29821356 5798 case $target in
a8eb3f0a 5799 *-apple-darwin* | *-cygwin* | *-mingw*) ;;
74cea91b 5800 # On other non-ELF platforms, LTO has yet to be validated.
29821356
RW
5801 *) enable_lto=no ;;
5802 esac
e49e5c92 5803 else
29821356
RW
5804 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
5805 # It would also be nice to check the binutils support, but we don't
e49e5c92
DK
5806 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
5807 # warn during gcc/ subconfigure; unless you're bootstrapping with
5808 # -flto it won't be needed until after installation anyway.
5809 case $target in
a8eb3f0a 5810 *-cygwin* | *-mingw* | *-apple-darwin*) ;;
e49e5c92
DK
5811 *) if test x"$enable_lto" = x"yes"; then
5812 as_fn_error "LTO support is not enabled for this target." "$LINENO" 5
5813 fi
5814 ;;
5815 esac
5816 fi
a8eb3f0a 5817 # Among non-ELF, only Windows platforms support the lto-plugin so far.
74cea91b 5818 # Build it unless LTO was explicitly disabled.
a8eb3f0a 5819 case $target in
74cea91b 5820 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
a8eb3f0a
DK
5821 *) ;;
5822 esac
74cea91b 5823
e49e5c92
DK
5824fi
5825
700d40ca 5826
e28c595f 5827
947f426e 5828# By default, C is the only stage 1 language.
9b134994 5829stage1_languages=,c,
1d39f329 5830
e8a5fa9c 5831# Target libraries that we bootstrap.
2aa2364a 5832bootstrap_target_libs=,target-libgcc,
e8a5fa9c 5833
9e07f89d
NN
5834# Figure out what language subdirectories are present.
5835# Look if the user specified --enable-languages="..."; if not, use
5836# the environment variable $LANGUAGES if defined. $LANGUAGES might
5837# go away some day.
5838# NB: embedded tabs in this IF block -- do not untabify
5839if test -d ${srcdir}/gcc; then
5840 if test x"${enable_languages+set}" != xset; then
5841 if test x"${LANGUAGES+set}" = xset; then
5842 enable_languages="${LANGUAGES}"
5843 echo configure.in: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
5844 else
5845 enable_languages=all
5846 fi
5847 else
5848 if test x"${enable_languages}" = x ||
5849 test x"${enable_languages}" = xyes;
5850 then
5851 echo configure.in: --enable-languages needs at least one language argument 1>&2
5852 exit 1
5853 fi
5854 fi
5855 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
5856
096f7d00
DE
5857 # 'f95' is the old name for the 'fortran' language. We issue a warning
5858 # and make the substitution.
5859 case ,${enable_languages}, in
5860 *,f95,*)
5861 echo configure.in: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
5862 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
5863 ;;
5864 esac
5865
9e07f89d
NN
5866 # First scan to see if an enabled language requires some other language.
5867 # We assume that a given config-lang.in will list all the language
5868 # front ends it requires, even if some are required indirectly.
5869 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5870 case ${lang_frag} in
5871 ..) ;;
5872 # The odd quoting in the next line works around
5873 # an apparent bug in bash 1.12 on linux.
5874 ${srcdir}/gcc/[*]/config-lang.in) ;;
5875 *)
5876 # From the config-lang.in, get $language, $lang_requires
5877 language=
5878 lang_requires=
5879 . ${lang_frag}
5880 for other in ${lang_requires} ; do
5881 case ,${enable_languages}, in
5882 *,$other,*) ;;
5883 *,all,*) ;;
5884 *,$language,*)
5885 echo " \`$other' language required by \`$language'; enabling" 1>&2
5886 enable_languages="${enable_languages},${other}"
5887 ;;
5888 esac
5889 done
5890 ;;
5891 esac
5892 done
5893
9b134994 5894 new_enable_languages=,c,
700d40ca
ILT
5895
5896 # If LTO is enabled, add the LTO front end.
5897 extra_host_libiberty_configure_flags=
5898 if test "$enable_lto" = "yes" ; then
6811fb56
RW
5899 case ,${enable_languages}, in
5900 *,lto,*) ;;
5901 *) enable_languages="${enable_languages},lto" ;;
5902 esac
a8eb3f0a 5903 if test "${build_lto_plugin}" = "yes" ; then
700d40ca
ILT
5904 configdirs="$configdirs lto-plugin"
5905 extra_host_libiberty_configure_flags=--enable-shared
5906 fi
5907 fi
5908
5909
9e07f89d 5910 missing_languages=`echo ",$enable_languages," | sed -e s/,all,/,/ -e s/,c,/,/ `
9b134994 5911 potential_languages=,c,
9e07f89d
NN
5912
5913 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
5914 case ${lang_frag} in
5915 ..) ;;
5916 # The odd quoting in the next line works around
5917 # an apparent bug in bash 1.12 on linux.
5918 ${srcdir}/gcc/[*]/config-lang.in) ;;
5919 *)
c6b750e1 5920 # From the config-lang.in, get $language, $target_libs,
1d39f329 5921 # $lang_dirs, $boot_language, and $build_by_default
9e07f89d
NN
5922 language=
5923 target_libs=
5924 lang_dirs=
64ce424c 5925 subdir_requires=
9b134994
PB
5926 boot_language=no
5927 build_by_default=yes
9e07f89d 5928 . ${lang_frag}
9b134994
PB
5929 if test x${language} = x; then
5930 echo "${lang_frag} doesn't set \$language." 1>&2
5931 exit 1
5932 fi
5933
1f53ca9a
AO
5934 if test "$language" = "c++" \
5935 && test "$ENABLE_BUILD_WITH_CXX" = "yes"; then
e8a5fa9c
RW
5936 boot_language=yes
5937 fi
5938
9b134994
PB
5939 case ,${enable_languages}, in
5940 *,${language},*)
9e07f89d
NN
5941 # Language was explicitly selected; include it.
5942 add_this_lang=yes
5943 ;;
9b134994
PB
5944 *,all,*)
5945 # 'all' was selected, select it if it is a default language
5946 add_this_lang=${build_by_default}
9e07f89d
NN
5947 ;;
5948 *)
5949 add_this_lang=no
5950 ;;
5951 esac
4b1cb4fe 5952
64ce424c 5953 # Disable languages that need other directories if these aren't available.
1f3f1bbf 5954 for i in $subdir_requires; do
3d3adb43 5955 test -f "$srcdir/gcc/$i/config-lang.in" && continue
64ce424c
PB
5956 case ,${enable_languages}, in
5957 *,${language},*)
5958 # Specifically requested language; tell them.
81ecdfbb 5959 as_fn_error "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
64ce424c
PB
5960 ;;
5961 *)
5962 # Silently disable.
9b134994 5963 add_this_lang=unsupported
64ce424c
PB
5964 ;;
5965 esac
5966 done
5967
9b134994
PB
5968 # Disable Ada if no preexisting GNAT is available.
5969 case ,${enable_languages},:${language}:${have_gnat} in
5970 *,${language},*:ada:no)
5971 # Specifically requested language; tell them.
81ecdfbb 5972 as_fn_error "GNAT is required to build $language" "$LINENO" 5
9b134994
PB
5973 ;;
5974 *:ada:no)
5975 # Silently disable.
5976 add_this_lang=unsupported
5977 ;;
5978 esac
5979
59f7ec45
HPN
5980 # Disable a language that is unsupported by the target.
5981 case " $unsupported_languages " in
5982 *" $language "*)
9b134994 5983 add_this_lang=unsupported
59f7ec45
HPN
5984 ;;
5985 esac
5986
4b1cb4fe 5987 case $add_this_lang in
9b134994 5988 unsupported)
9e07f89d 5989 # Remove language-dependent dirs.
1d39f329
NN
5990 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5991 ;;
9b134994
PB
5992 no)
5993 # Remove language-dependent dirs; still show language as supported.
5994 eval noconfigdirs='"$noconfigdirs "'\"$target_libs $lang_dirs\"
5995 potential_languages="${potential_languages}${language},"
5996 ;;
5997 yes)
5998 new_enable_languages="${new_enable_languages}${language},"
5999 potential_languages="${potential_languages}${language},"
1d39f329 6000 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
f8dc745f
RW
6001 case "${boot_language}:,$enable_stage1_languages," in
6002 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
4fa63067 6003 # Add to (comma-separated) list of stage 1 languages.
f8dc745f
RW
6004 case ",$stage1_languages," in
6005 *,$language,* | ,yes, | ,all,) ;;
6006 *) stage1_languages="${stage1_languages}${language}," ;;
6007 esac
e8a5fa9c
RW
6008 # We need to bootstrap any supporting libraries.
6009 bootstrap_target_libs="${bootstrap_target_libs}${target_libs},"
1d39f329
NN
6010 ;;
6011 esac
6012 ;;
9e07f89d
NN
6013 esac
6014 ;;
6015 esac
6016 done
6017
81ecdfbb
RW
6018 # Check whether --enable-stage1-languages was given.
6019if test "${enable_stage1_languages+set}" = set; then :
6020 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9b134994
PB
6021 ,no,|,,)
6022 # Set it to something that will have no effect in the loop below
6023 enable_stage1_languages=c ;;
6024 ,yes,)
6025 enable_stage1_languages=`echo $new_enable_languages | \
6026 sed -e "s/^,//" -e "s/,$//" ` ;;
6027 *,all,*)
6028 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
6029 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
6030 esac
6031
6032 # Add "good" languages from enable_stage1_languages to stage1_languages,
6033 # while "bad" languages go in missing_languages. Leave no duplicates.
6034 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
6035 case $potential_languages in
6036 *,$i,*)
6037 case $stage1_languages in
6038 *,$i,*) ;;
6039 *) stage1_languages="$stage1_languages$i," ;;
6040 esac ;;
6041 *)
6042 case $missing_languages in
6043 *,$i,*) ;;
6044 *) missing_languages="$missing_languages$i," ;;
6045 esac ;;
6046 esac
6047 done
81ecdfbb
RW
6048fi
6049
9b134994
PB
6050
6051 # Remove leading/trailing commas that were added for simplicity
6052 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
4b0ac75d 6053 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9b134994
PB
6054 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
6055 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
6056
9e07f89d 6057 if test "x$missing_languages" != x; then
81ecdfbb 6058 as_fn_error "
27258dd4 6059The following requested languages could not be built: ${missing_languages}
81ecdfbb 6060Supported languages are: ${potential_languages}" "$LINENO" 5
9e07f89d 6061 fi
9e07f89d
NN
6062 if test "x$new_enable_languages" != "x$enable_languages"; then
6063 echo The following languages will be built: ${new_enable_languages}
9b134994 6064 enable_languages="$new_enable_languages"
9e07f89d 6065 fi
9b134994 6066
c6b750e1 6067
81ec575a 6068 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9e07f89d
NN
6069fi
6070
a6df5a19
PB
6071# Handle --disable-<component> generically.
6072for dir in $configdirs $build_configdirs $target_configdirs ; do
6073 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9cc8ae67
PB
6074 varname=`echo $dirname | sed -e s/+/_/g`
6075 if eval test x\${enable_${varname}} "=" xno ; then
a6df5a19
PB
6076 noconfigdirs="$noconfigdirs $dir"
6077 fi
6078done
6079
4f0ef2d8 6080# Check for Boehm's garbage collector
81ecdfbb
RW
6081# Check whether --enable-objc-gc was given.
6082if test "${enable_objc_gc+set}" = set; then :
6083 enableval=$enable_objc_gc; case ,${enable_languages},:${enable_objc_gc}:${noconfigdirs} in
4f0ef2d8 6084 *,objc,*:*:yes:*target-boehm-gc*)
81ecdfbb 6085 as_fn_error "Boehm's garbage collector was requested yet not supported in this configuration" "$LINENO" 5
4f0ef2d8
CD
6086 ;;
6087esac
81ecdfbb
RW
6088fi
6089
4f0ef2d8
CD
6090
6091# Make sure we only build Boehm's garbage collector if required.
d42c4017
DA
6092case ,${enable_languages},:${enable_objc_gc} in
6093 *,objc,*:yes)
4f0ef2d8
CD
6094 # Keep target-boehm-gc if requested for Objective-C.
6095 ;;
4f0ef2d8 6096 *)
d42c4017
DA
6097 # Otherwise remove target-boehm-gc depending on target-libjava.
6098 if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
6099 noconfigdirs="$noconfigdirs target-boehm-gc"
6100 fi
4f0ef2d8
CD
6101 ;;
6102esac
6103
caeba88f
AL
6104# Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
6105# $build_configdirs and $target_configdirs.
9e07f89d
NN
6106# If we have the source for $noconfigdirs entries, add them to $notsupp.
6107
6108notsupp=""
6109for dir in . $skipdirs $noconfigdirs ; do
caeba88f 6110 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9e07f89d
NN
6111 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6112 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
6113 if test -r $srcdir/$dirname/configure ; then
6114 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6115 true
6116 else
6117 notsupp="$notsupp $dir"
6118 fi
6119 fi
6120 fi
caeba88f
AL
6121 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6122 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
6123 if test -r $srcdir/$dirname/configure ; then
6124 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6125 true
6126 else
6127 notsupp="$notsupp $dir"
6128 fi
6129 fi
6130 fi
9e07f89d
NN
6131 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6132 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
6133 if test -r $srcdir/$dirname/configure ; then
6134 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6135 true
6136 else
6137 notsupp="$notsupp $dir"
6138 fi
6139 fi
6140 fi
6141done
6142
6143# Sometimes the tools are distributed with libiberty but with no other
6144# libraries. In that case, we don't want to build target-libiberty.
f86e35b8 6145# Don't let libgcc imply libiberty either.
9e07f89d 6146if test -n "${target_configdirs}" ; then
f86e35b8 6147 libgcc=
9e07f89d
NN
6148 others=
6149 for i in `echo ${target_configdirs} | sed -e s/target-//g` ; do
f86e35b8
NC
6150 if test "$i" = "libgcc"; then
6151 libgcc=target-libgcc
6152 elif test "$i" != "libiberty" ; then
9e07f89d
NN
6153 if test -r $srcdir/$i/configure ; then
6154 others=yes;
6155 break;
6156 fi
6157 fi
6158 done
6159 if test -z "${others}" ; then
f86e35b8 6160 target_configdirs=$libgcc
9e07f89d
NN
6161 fi
6162fi
6163
6164# Quietly strip out all directories which aren't configurable in this tree.
6165# This relies on all configurable subdirectories being autoconfiscated, which
6166# is now the case.
6a9cf61e
PB
6167build_configdirs_all="$build_configdirs"
6168build_configdirs=
6169for i in ${build_configdirs_all} ; do
c6b750e1 6170 j=`echo $i | sed -e s/build-//g`
6a9cf61e
PB
6171 if test -f ${srcdir}/$j/configure ; then
6172 build_configdirs="${build_configdirs} $i"
6173 fi
6174done
6175
9e07f89d
NN
6176configdirs_all="$configdirs"
6177configdirs=
6178for i in ${configdirs_all} ; do
6179 if test -f ${srcdir}/$i/configure ; then
6180 configdirs="${configdirs} $i"
6181 fi
6182done
6a9cf61e 6183
9e07f89d
NN
6184target_configdirs_all="$target_configdirs"
6185target_configdirs=
6186for i in ${target_configdirs_all} ; do
c6b750e1 6187 j=`echo $i | sed -e s/target-//g`
9e07f89d
NN
6188 if test -f ${srcdir}/$j/configure ; then
6189 target_configdirs="${target_configdirs} $i"
6190 fi
6191done
6192
6193# Produce a warning message for the subdirs we can't configure.
6194# This isn't especially interesting in the Cygnus tree, but in the individual
6195# FSF releases, it's important to let people know when their machine isn't
6196# supported by the one or two programs in a package.
6197
6198if test -n "${notsupp}" && test -z "${norecursion}" ; then
6199 # If $appdirs is non-empty, at least one of those directories must still
6200 # be configured, or we error out. (E.g., if the gas release supports a
6201 # specified target in some subdirs but not the gas subdir, we shouldn't
6202 # pretend that all is well.)
6203 if test -n "$appdirs" ; then
6204 for dir in $appdirs ; do
6205 if test -r $dir/Makefile.in ; then
6206 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
6207 appdirs=""
6208 break
6209 fi
6a9cf61e 6210 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9e07f89d
NN
6211 appdirs=""
6212 break
6213 fi
6214 fi
6215 done
6216 if test -n "$appdirs" ; then
6217 echo "*** This configuration is not supported by this package." 1>&2
6218 exit 1
6219 fi
6220 fi
6221 # Okay, some application will build, or we don't care to check. Still
6222 # notify of subdirs not getting built.
6223 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
6224 echo " ${notsupp}" 1>&2
6225 echo " (Any other directories should still work fine.)" 1>&2
6226fi
6227
6228case "$host" in
6229 *msdosdjgpp*)
6230 enable_gdbtk=no ;;
6231esac
6232
18f6b6ee
PB
6233# To find our prefix, in gcc_cv_tool_prefix.
6234
6235# The user is always right.
6236if test "${PATH_SEPARATOR+set}" != set; then
6237 echo "#! /bin/sh" >conf$$.sh
6238 echo "exit 0" >>conf$$.sh
6239 chmod +x conf$$.sh
6240 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6241 PATH_SEPARATOR=';'
6242 else
6243 PATH_SEPARATOR=:
6244 fi
6245 rm -f conf$$.sh
6246fi
6247
6248
6249
6250if test "x$exec_prefix" = xNONE; then
6251 if test "x$prefix" = xNONE; then
6252 gcc_cv_tool_prefix=$ac_default_prefix
6253 else
6254 gcc_cv_tool_prefix=$prefix
6255 fi
6256else
6257 gcc_cv_tool_prefix=$exec_prefix
6258fi
6259
6260# If there is no compiler in the tree, use the PATH only. In any
6261# case, if there is no compiler in the tree nobody should use
6262# AS_FOR_TARGET and LD_FOR_TARGET.
6263if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
6264 gcc_version=`cat $srcdir/gcc/BASE-VER`
6265 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6266 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
6267 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6268 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
6269 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
6270 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
6271else
6272 gcc_cv_tool_dirs=
6273fi
6274
6275if test x$build = x$target && test -n "$md_exec_prefix"; then
6276 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
6277fi
6278
6279
6280
9e07f89d
NN
6281copy_dirs=
6282
c6b750e1 6283
81ecdfbb
RW
6284# Check whether --with-build-sysroot was given.
6285if test "${with_build_sysroot+set}" = set; then :
6286 withval=$with_build_sysroot; if test x"$withval" != x ; then
a19b6204
MM
6287 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
6288 fi
6289else
6290 SYSROOT_CFLAGS_FOR_TARGET=
81ecdfbb 6291fi
a19b6204
MM
6292
6293
8a6ee3ab 6294
81ecdfbb
RW
6295
6296# Check whether --with-debug-prefix-map was given.
6297if test "${with_debug_prefix_map+set}" = set; then :
6298 withval=$with_debug_prefix_map; if test x"$withval" != x; then
8a6ee3ab
JM
6299 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
6300 for debug_map in $withval; do
6301 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
6302 done
6303 fi
6304else
6305 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
81ecdfbb
RW
6306fi
6307
8a6ee3ab
JM
6308
6309
7f6ef0c0
PB
6310# During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
6311# might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
6312# might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
6313# We want to ensure that TARGET libraries (which we know are built with
6314# gcc) are built with "-O2 -g", so include those options when setting
6315# CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
6316if test "x$CFLAGS_FOR_TARGET" = x; then
6317 CFLAGS_FOR_TARGET=$CFLAGS
6318 case " $CFLAGS " in
6319 *" -O2 "*) ;;
6320 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS" ;;
6321 esac
6322 case " $CFLAGS " in
6323 *" -g "* | *" -g3 "*) ;;
6324 *) CFLAGS_FOR_TARGET="-g $CFLAGS" ;;
6325 esac
6326fi
6327
6328
6329if test "x$CXXFLAGS_FOR_TARGET" = x; then
6330 CXXFLAGS_FOR_TARGET=$CXXFLAGS
6331 case " $CXXFLAGS " in
6332 *" -O2 "*) ;;
6333 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS" ;;
6334 esac
6335 case " $CXXFLAGS " in
6336 *" -g "* | *" -g3 "*) ;;
6337 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS" ;;
6338 esac
6339fi
6340
6341
9e07f89d
NN
6342# Handle --with-headers=XXX. If the value is not "yes", the contents of
6343# the named directory are copied to $(tooldir)/sys-include.
6344if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
6345 if test x${is_cross_compiler} = xno ; then
6346 echo 1>&2 '***' --with-headers is only supported when cross compiling
6347 exit 1
6348 fi
6349 if test x"${with_headers}" != xyes ; then
18f6b6ee 6350 x=${gcc_cv_tool_prefix}
c6b750e1 6351 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9e07f89d
NN
6352 fi
6353fi
6354
6355# Handle --with-libs=XXX. If the value is not "yes", the contents of
6356# the name directories are copied to $(tooldir)/lib. Multiple directories
6357# are permitted.
6358if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
6359 if test x${is_cross_compiler} = xno ; then
6360 echo 1>&2 '***' --with-libs is only supported when cross compiling
6361 exit 1
6362 fi
6363 if test x"${with_libs}" != xyes ; then
6364 # Copy the libraries in reverse order, so that files in the first named
6365 # library override files in subsequent libraries.
18f6b6ee 6366 x=${gcc_cv_tool_prefix}
9e07f89d 6367 for l in ${with_libs}; do
c6b750e1 6368 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9e07f89d
NN
6369 done
6370 fi
6371fi
6372
700d40ca 6373# Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
2429c060
PB
6374#
6375# This is done by determining whether or not the appropriate directory
6376# is available, and by checking whether or not specific configurations
6377# have requested that this magic not happen.
c6b750e1
DJ
6378#
6379# The command line options always override the explicit settings in
2429c060
PB
6380# configure.in, and the settings in configure.in override this magic.
6381#
c6b750e1 6382# If the default for a toolchain is to use GNU as and ld, and you don't
2429c060 6383# want to do that, then you should use the --without-gnu-as and
700d40ca
ILT
6384# --without-gnu-ld options for the configure script. Similarly, if
6385# the default is to use the included zlib and you don't want to do that,
6386# you should use the --with-system-zlib option for the configure script.
2429c060
PB
6387
6388if test x${use_gnu_as} = x &&
6389 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
6390 with_gnu_as=yes
6391 extra_host_args="$extra_host_args --with-gnu-as"
6392fi
6393
6394if test x${use_gnu_ld} = x &&
93f9b408 6395 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
2429c060
PB
6396 with_gnu_ld=yes
6397 extra_host_args="$extra_host_args --with-gnu-ld"
6398fi
6399
700d40ca
ILT
6400if test x${use_included_zlib} = x &&
6401 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
6402 :
6403else
6404 with_system_zlib=yes
6405 extra_host_args="$extra_host_args --with-system-zlib"
6406fi
6407
2429c060
PB
6408# If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
6409# can detect this case.
6410
6411if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
6412 with_newlib=yes
6413 extra_host_args="$extra_host_args --with-newlib"
6414fi
6415
9e07f89d
NN
6416# Handle ${copy_dirs}
6417set fnord ${copy_dirs}
6418shift
6419while test $# != 0 ; do
6420 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
6421 :
6422 else
6423 echo Copying $1 to $2
6424
6425 # Use the install script to create the directory and all required
6426 # parent directories.
6427 if test -d $2 ; then
6428 :
6429 else
6430 echo >config.temp
6431 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
6432 fi
6433
6434 # Copy the directory, assuming we have tar.
6435 # FIXME: Should we use B in the second tar? Not all systems support it.
6436 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
6437
6438 # It is the responsibility of the user to correctly adjust all
6439 # symlinks. If somebody can figure out how to handle them correctly
6440 # here, feel free to add the code.
6441
6442 echo $1 > $2/COPIED
6443 fi
6444 shift; shift
6445done
6446
2429c060
PB
6447# Determine a target-dependent exec_prefix that the installed
6448# gcc will search in. Keep this list sorted by triplet, with
6449# the *-*-osname triplets last.
6450md_exec_prefix=
6451case "${target}" in
6452 alpha*-*-*vms*)
6453 md_exec_prefix=/gnu/lib/gcc-lib
6454 ;;
521ec477 6455 i[34567]86-pc-msdosdjgpp*)
2429c060
PB
6456 md_exec_prefix=/dev/env/DJDIR/bin
6457 ;;
521ec477 6458 i[34567]86-*-sco3.2v5*)
2429c060
PB
6459 if test $with_gnu_as = yes; then
6460 md_exec_prefix=/usr/gnu/bin
6461 else
6462 md_exec_prefix=/usr/ccs/bin/elf
6463 fi
6464 ;;
6465
6466 mn10300-*-* | \
6467 powerpc-*-chorusos* | \
6468 powerpc*-*-eabi* | \
6469 powerpc*-*-sysv* | \
6470 powerpc*-*-kaos* | \
6471 s390x-ibm-tpf*)
6472 md_exec_prefix=/usr/ccs/bin
6473 ;;
6474 sparc64-*-elf*)
6475 ;;
6476 v850*-*-*)
6477 md_exec_prefix=/usr/ccs/bin
6478 ;;
8b66833e 6479 xtensa*-*-elf*)
2429c060
PB
6480 ;;
6481
6482 *-*-beos* | \
6483 *-*-elf* | \
6484 *-*-hpux* | \
6485 *-*-netware* | \
6486 *-*-nto-qnx* | \
6487 *-*-rtems* | \
6488 *-*-solaris2* | \
521ec477 6489 *-*-sysv[45]* | \
2429c060
PB
6490 *-*-vxworks* | \
6491 *-wrs-windiss)
6492 md_exec_prefix=/usr/ccs/bin
6493 ;;
6494esac
6495
a0da8069
NN
6496extra_arflags_for_target=
6497extra_nmflags_for_target=
6498extra_ranlibflags_for_target=
6499target_makefile_frag=/dev/null
6500case "${target}" in
4e206d7e
DB
6501 mep*-*-*)
6502 target_makefile_frag="config/mt-mep"
6503 ;;
77d7106f
AM
6504 spu-*-*)
6505 target_makefile_frag="config/mt-spu"
6506 ;;
429acdec
RS
6507 mips*-sde-elf*)
6508 target_makefile_frag="config/mt-sde"
6509 ;;
f3b1e08e
RS
6510 mipsisa*-*-elfoabi*)
6511 target_makefile_frag="config/mt-mips-elfoabi"
6512 ;;
e7c8859c
RS
6513 mips*-*-*linux* | mips*-*-gnu*)
6514 target_makefile_frag="config/mt-mips-gnu"
6515 ;;
2a3124ca 6516 *-*-netware*)
a0da8069
NN
6517 target_makefile_frag="config/mt-netware"
6518 ;;
29383458 6519 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3d6dfe0f 6520 target_makefile_frag="config/mt-gnu"
a0da8069
NN
6521 ;;
6522 *-*-aix4.[3456789]* | *-*-aix[56789].*)
c6b750e1 6523 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
a0da8069
NN
6524 # commands to handle both 32-bit and 64-bit objects. These flags are
6525 # harmless if we're using GNU nm or ar.
6526 extra_arflags_for_target=" -X32_64"
6527 extra_nmflags_for_target=" -B -X32_64"
6528 ;;
92f4e989
JM
6529 *-*-darwin[3-9]*)
6530 # ranlib before Darwin10 requires the -c flag to look at common symbols.
a0da8069
NN
6531 extra_ranlibflags_for_target=" -c"
6532 ;;
6533 mips*-*-pe | sh*-*-pe | *arm-wince-pe)
6534 target_makefile_frag="config/mt-wince"
6535 ;;
6536esac
6537
6538alphaieee_frag=/dev/null
6539case $target in
6540 alpha*-*-*)
6541 # This just makes sure to use the -mieee option to build target libs.
6542 # This should probably be set individually by each library.
6543 alphaieee_frag="config/mt-alphaieee"
6544 ;;
6545esac
6546
6547# If --enable-target-optspace always use -Os instead of -O2 to build
6548# the target libraries, similarly if it is not specified, use -Os
6549# on selected platforms.
6550ospace_frag=/dev/null
6551case "${enable_target_optspace}:${target}" in
6552 yes:*)
6553 ospace_frag="config/mt-ospace"
6554 ;;
6555 :d30v-*)
6556 ospace_frag="config/mt-d30v"
6557 ;;
6558 :m32r-* | :d10v-* | :fr30-*)
6559 ospace_frag="config/mt-ospace"
6560 ;;
6561 no:* | :*)
6562 ;;
6563 *)
6564 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
6565 ;;
6566esac
6567
a0da8069
NN
6568# Default to using --with-stabs for certain targets.
6569if test x${with_stabs} = x ; then
6570 case "${target}" in
e31d1ea3 6571 mips*-*-irix[56]*)
a0da8069
NN
6572 ;;
6573 mips*-*-* | alpha*-*-osf*)
6574 with_stabs=yes;
6575 extra_host_args="${extra_host_args} --with-stabs"
6576 ;;
6577 esac
6578fi
6579
6580# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
6581# them automatically.
6582case "${host}" in
c6b750e1 6583 hppa*64*-*-hpux11*)
a0da8069
NN
6584 extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
6585 ;;
6586esac
6587
a0da8069
NN
6588# Some systems (e.g., one of the i386-aix systems the gas testers are
6589# using) don't handle "\$" correctly, so don't use it here.
c6b750e1 6590tooldir='${exec_prefix}'/${target_noncanonical}
a0da8069
NN
6591build_tooldir=${tooldir}
6592
a0da8069
NN
6593# Create a .gdbinit file which runs the one in srcdir
6594# and tells GDB to look there for source files.
6595
6596if test -r ${srcdir}/.gdbinit ; then
6597 case ${srcdir} in
6598 .) ;;
6599 *) cat > ./.gdbinit <<EOF
6600# ${NO_EDIT}
6601dir ${srcdir}
6602dir .
6603source ${srcdir}/.gdbinit
6604EOF
6605 ;;
6606 esac
6607fi
6608
a0da8069
NN
6609# Make sure that the compiler is able to generate an executable. If it
6610# can't, we are probably in trouble. We don't care whether we can run the
6611# executable--we might be using a cross compiler--we only care whether it
6612# can be created. At this point the main configure script has set CC.
6613we_are_ok=no
6614echo "int main () { return 0; }" > conftest.c
6615${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
6616if test $? = 0 ; then
6617 if test -s conftest || test -s conftest.exe ; then
6618 we_are_ok=yes
6619 fi
c6b750e1 6620fi
a0da8069
NN
6621case $we_are_ok in
6622 no)
6623 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
6624 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
6625 rm -f conftest*
6626 exit 1
6627 ;;
6628esac
6629rm -f conftest*
6630
6631# The Solaris /usr/ucb/cc compiler does not appear to work.
6632case "${host}" in
6633 sparc-sun-solaris2*)
6634 CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
6635 if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
6636 could_use=
6637 test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
6638 if test -d /opt/cygnus/bin ; then
6639 if test "$could_use" = "" ; then
6640 could_use="/opt/cygnus/bin"
6641 else
6642 could_use="$could_use or /opt/cygnus/bin"
6643 fi
6644 fi
6645 if test "$could_use" = "" ; then
6646 echo "Warning: compilation may fail because you're using"
6647 echo "/usr/ucb/cc. You should change your PATH or CC "
6648 echo "variable and rerun configure."
6649 else
6650 echo "Warning: compilation may fail because you're using"
6651 echo "/usr/ucb/cc, when you should use the C compiler from"
6652 echo "$could_use. You should change your"
6653 echo "PATH or CC variable and rerun configure."
6654 fi
6655 fi
6656 ;;
6657esac
6658
3bbd2f8f 6659# Decide which environment variable is used to find dynamic libraries.
a0da8069
NN
6660case "${host}" in
6661 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9a237d9e 6662 *-*-darwin* | *-*-rhapsody* ) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
3bbd2f8f 6663 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
a0da8069
NN
6664 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
6665esac
6666
3bbd2f8f 6667# On systems where the dynamic library environment variable is PATH,
e28c595f
JM
6668# gcc/ will put dynamic libraries into a subdirectory to avoid adding
6669# built executables to PATH.
3bbd2f8f
AL
6670if test "$RPATH_ENVVAR" = PATH; then
6671 GCC_SHLIB_SUBDIR=/shlib
6672else
6673 GCC_SHLIB_SUBDIR=
6674fi
6675
a0da8069
NN
6676# Record target_configdirs and the configure arguments for target and
6677# build configuration in Makefile.
6678target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
6a9cf61e 6679build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
a0da8069 6680
2aa2364a
JR
6681# If we are building libgomp, bootstrap it.
6682if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
6683 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
6684fi
6685
a0da8069
NN
6686# Determine whether gdb needs tk/tcl or not.
6687# Use 'maybe' since enable_gdbtk might be true even if tk isn't available
6688# and in that case we want gdb to be built without tk. Ugh!
6689# In fact I believe gdb is the *only* package directly dependent on tk,
6690# so we should be able to put the 'maybe's in unconditionally and
6691# leave out the maybe dependencies when enable_gdbtk is false. I'm not
6692# 100% sure that that's safe though.
c180f501 6693
675c6968 6694gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
a0da8069
NN
6695case "$enable_gdbtk" in
6696 no)
6697 GDB_TK="" ;;
c180f501
AC
6698 yes)
6699 GDB_TK="${gdb_tk}" ;;
a0da8069 6700 *)
c180f501
AC
6701 # Only add the dependency on gdbtk when GDBtk is part of the gdb
6702 # distro. Eventually someone will fix this and move Insight, nee
6703 # gdbtk to a separate directory.
6704 if test -d ${srcdir}/gdb/gdbtk ; then
6705 GDB_TK="${gdb_tk}"
6706 else
6707 GDB_TK=""
6708 fi
6709 ;;
a0da8069 6710esac
907be67c
DJ
6711CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
6712INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
a0da8069 6713
6bd3dfaa 6714# Strip out unwanted targets.
dd12c3a8
NN
6715
6716# While at that, we remove Makefiles if we were started for recursive
6717# configuration, so that the top-level Makefile reconfigures them,
6718# like we used to do when configure itself was recursive.
dd12c3a8 6719
06a51eac
RW
6720# Loop over modules. We used to use the "$extrasub" feature from Autoconf
6721# but now we're fixing up the Makefile ourselves with the additional
6722# commands passed to AC_CONFIG_FILES. Use separate variables
6723# extrasub-{build,host,target} not because there is any reason to split
6724# the substitutions up that way, but only to remain below the limit of
6725# 99 commands in a script, for HP-UX sed.
6726# Do not nest @if/@endif pairs, because configure will not warn you at all.
dd12c3a8 6727
81ecdfbb
RW
6728# Check whether --enable-bootstrap was given.
6729if test "${enable_bootstrap+set}" = set; then :
6730 enableval=$enable_bootstrap;
319cab08 6731else
9cb3fa6f 6732 enable_bootstrap=default
81ecdfbb
RW
6733fi
6734
319cab08 6735
9cb3fa6f
PB
6736# Issue errors and warnings for invalid/strange bootstrap combinations.
6737case "$configdirs" in
6738 *gcc*) have_compiler=yes ;;
6739 *) have_compiler=no ;;
6740esac
6741
6742case "$have_compiler:$host:$target:$enable_bootstrap" in
6743 *:*:*:no) ;;
6744
0aed8855 6745 # Default behavior. Enable bootstrap if we have a compiler
9cb3fa6f
PB
6746 # and we are in a native configuration.
6747 yes:$build:$build:default)
0aed8855 6748 enable_bootstrap=yes ;;
9cb3fa6f
PB
6749
6750 *:*:*:default)
6751 enable_bootstrap=no ;;
6752
6753 # We have a compiler and we are in a native configuration, bootstrap is ok
80911fe1 6754 yes:$build:$build:yes)
9cb3fa6f
PB
6755 ;;
6756
6757 # Other configurations, but we have a compiler. Assume the user knows
6758 # what he's doing.
80911fe1 6759 yes:*:*:yes)
81ecdfbb
RW
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
6761$as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
9cb3fa6f
PB
6762 ;;
6763
6764 # No compiler: if they passed --enable-bootstrap explicitly, fail
80911fe1 6765 no:*:*:yes)
81ecdfbb 6766 as_fn_error "cannot bootstrap without a compiler" "$LINENO" 5 ;;
9cb3fa6f
PB
6767
6768 # Fail if wrong command line
6769 *)
81ecdfbb 6770 as_fn_error "invalid option for --enable-bootstrap" "$LINENO" 5
9cb3fa6f
PB
6771 ;;
6772esac
6773
4385ad3c
RW
6774case ",$enable_languages,:$ENABLE_BUILD_WITH_CXX:$enable_bootstrap" in
6775 *,c++,*:yes:yes) ;;
6776 *:yes:yes)
6777 as_fn_error "bootstrapping with --enable-build-with-cxx requires c++ in --enable-languages" "$LINENO" 5
6778 ;;
6779esac
6780
16b1ad29
RW
6781case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
6782 yes:yes:*\ gold\ *:*,c++,*) ;;
6783 yes:yes:*\ gold\ *:*)
6784 as_fn_error "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
6785 ;;
6786esac
6787
9cb3fa6f 6788# Adjust the toplevel makefile according to whether bootstrap was selected.
96655cc4 6789case $enable_bootstrap in
319cab08 6790 yes)
96655cc4
AO
6791 bootstrap_suffix=bootstrap
6792 BUILD_CONFIG=bootstrap-debug
6793 ;;
319cab08 6794 no)
96655cc4
AO
6795 bootstrap_suffix=no-bootstrap
6796 BUILD_CONFIG=
6797 ;;
319cab08
PB
6798esac
6799
96655cc4
AO
6800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
6801$as_echo_n "checking for default BUILD_CONFIG... " >&6; }
6802
6803
6804# Check whether --with-build-config was given.
6805if test "${with_build_config+set}" = set; then :
6806 withval=$with_build_config; case $with_build_config in
6807 yes) with_build_config= ;;
6808 no) with_build_config= BUILD_CONFIG= ;;
6809 esac
6810fi
6811
6812
6813if test "x${with_build_config}" != x; then
6814 BUILD_CONFIG=$with_build_config
6815else
6816 case $BUILD_CONFIG in
6817 bootstrap-debug)
6818 if echo "int f (void) { return 0; }" > conftest.c &&
6819 ${CC} -c conftest.c &&
6820 mv conftest.o conftest.o.g0 &&
6821 ${CC} -c -g conftest.c &&
6822 mv conftest.o conftest.o.g &&
a009f2e7 6823 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
96655cc4
AO
6824 :
6825 else
6826 BUILD_CONFIG=
6827 fi
6828 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
6829 ;;
6830 esac
6831fi
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
6833$as_echo "$BUILD_CONFIG" >&6; }
6834
6835
06a51eac 6836extrasub_build=
6a9cf61e 6837for module in ${build_configdirs} ; do
498d4a71
CF
6838 if test -z "${no_recursion}" \
6839 && test -f ${build_subdir}/${module}/Makefile; then
6840 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
6841 rm -f ${build_subdir}/${module}/Makefile
6842 fi
06a51eac 6843 extrasub_build="$extrasub_build
498d4a71
CF
6844/^@if build-$module\$/d
6845/^@endif build-$module\$/d
6846/^@if build-$module-$bootstrap_suffix\$/d
6847/^@endif build-$module-$bootstrap_suffix\$/d"
6848done
06a51eac 6849extrasub_host=
498d4a71 6850for module in ${configdirs} ; do
80911fe1 6851 if test -z "${no_recursion}"; then
8cf39b1b 6852 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
80911fe1
PB
6853 if test -f ${file}; then
6854 echo 1>&2 "*** removing ${file} to force reconfigure"
6855 rm -f ${file}
6856 fi
6857 done
498d4a71 6858 fi
06a51eac 6859 extrasub_host="$extrasub_host
498d4a71
CF
6860/^@if $module\$/d
6861/^@endif $module\$/d
6862/^@if $module-$bootstrap_suffix\$/d
6863/^@endif $module-$bootstrap_suffix\$/d"
6864done
06a51eac 6865extrasub_target=
498d4a71
CF
6866for module in ${target_configdirs} ; do
6867 if test -z "${no_recursion}" \
6868 && test -f ${target_subdir}/${module}/Makefile; then
6869 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
6870 rm -f ${target_subdir}/${module}/Makefile
6871 fi
e8a5fa9c
RW
6872
6873 # We only bootstrap target libraries listed in bootstrap_target_libs.
6874 case $bootstrap_target_libs in
6875 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
6876 *) target_bootstrap_suffix=no-bootstrap ;;
6877 esac
6878
06a51eac 6879 extrasub_target="$extrasub_target
498d4a71
CF
6880/^@if target-$module\$/d
6881/^@endif target-$module\$/d
e8a5fa9c
RW
6882/^@if target-$module-$target_bootstrap_suffix\$/d
6883/^@endif target-$module-$target_bootstrap_suffix\$/d"
498d4a71
CF
6884done
6885
06a51eac
RW
6886# Do the final fixup along with target modules.
6887extrasub_target="$extrasub_target
6bd3dfaa 6888/^@if /,/^@endif /d"
a0da8069
NN
6889
6890# Create the serialization dependencies. This uses a temporary file.
6891
81ecdfbb
RW
6892# Check whether --enable-serial-configure was given.
6893if test "${enable_serial_configure+set}" = set; then :
6894 enableval=$enable_serial_configure;
6895fi
e6bfb94a
AO
6896
6897
1047cb91
DD
6898case ${enable_serial_configure} in
6899 yes)
6900 enable_serial_build_configure=yes
6901 enable_serial_host_configure=yes
6902 enable_serial_target_configure=yes
6903 ;;
6904esac
6905
a0da8069
NN
6906# These force 'configure's to be done one at a time, to avoid problems
6907# with contention over a shared config.cache.
6908rm -f serdep.tmp
e6bfb94a 6909echo '# serdep.tmp' > serdep.tmp
a0da8069 6910olditem=
1047cb91 6911test "x${enable_serial_build_configure}" = xyes &&
a0da8069
NN
6912for item in ${build_configdirs} ; do
6913 case ${olditem} in
6914 "") ;;
e6bfb94a 6915 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6916 esac
6917 olditem=${item}
6918done
6919olditem=
1047cb91 6920test "x${enable_serial_host_configure}" = xyes &&
a0da8069
NN
6921for item in ${configdirs} ; do
6922 case ${olditem} in
6923 "") ;;
e6bfb94a 6924 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6925 esac
6926 olditem=${item}
6927done
6928olditem=
1047cb91 6929test "x${enable_serial_target_configure}" = xyes &&
a0da8069
NN
6930for item in ${target_configdirs} ; do
6931 case ${olditem} in
6932 "") ;;
e6bfb94a 6933 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
a0da8069
NN
6934 esac
6935 olditem=${item}
6936done
6937serialization_dependencies=serdep.tmp
6938
6939
e6bfb94a 6940# Base args. Strip norecursion, cache-file, srcdir, host, build,
c6b750e1 6941# target, nonopt, and variable assignments. These are the ones we
30167e0a
NC
6942# might not want to pass down to subconfigures. The exception being
6943# --cache-file=/dev/null, which is used to turn off the use of cache
6944# files altogether, and which should be passed on to subconfigures.
6945# Also strip program-prefix, program-suffix, and program-transform-name,
6946# so that we can pass down a consistent program-transform-name.
c6b750e1
DJ
6947baseargs=
6948keep_next=no
6949skip_next=no
6950eval "set -- $ac_configure_args"
18f6b6ee
PB
6951for ac_arg
6952do
c6b750e1
DJ
6953 if test X"$skip_next" = X"yes"; then
6954 skip_next=no
6955 continue
6956 fi
6957 if test X"$keep_next" = X"yes"; then
6958 case $ac_arg in
6959 *\'*)
6960 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
6961 esac
6962 baseargs="$baseargs '$ac_arg'"
6963 keep_next=no
6964 continue
6965 fi
6966
6967 # Handle separated arguments. Based on the logic generated by
6968 # autoconf 2.59.
6969 case $ac_arg in
6970 *=* | --config-cache | -C | -disable-* | --disable-* \
6971 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
6972 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
6973 | -with-* | --with-* | -without-* | --without-* | --x)
6974 separate_arg=no
6975 ;;
6976 -*)
6977 separate_arg=yes
6978 ;;
6979 *)
6980 separate_arg=no
6981 ;;
6982 esac
6983
6984 case "$ac_arg" in
30167e0a
NC
6985 --cache-file=/dev/null | \
6986 -cache-file=/dev/null )
6987 # Handled here to avoid the test to skip args below.
6988 baseargs="$baseargs '$ac_arg'"
6989 # Assert: $separate_arg should always be no.
6990 keep_next=$separate_arg
6991 ;;
c6b750e1
DJ
6992 --no*)
6993 continue
6994 ;;
6995 --c* | \
6996 --sr* | \
6997 --ho* | \
6998 --bu* | \
6999 --t* | \
7000 --program-* | \
7001 -cache_file* | \
7002 -srcdir* | \
7003 -host* | \
7004 -build* | \
7005 -target* | \
7006 -program-prefix* | \
7007 -program-suffix* | \
7008 -program-transform-name* )
7009 skip_next=$separate_arg
7010 continue
7011 ;;
7012 -*)
7013 # An option. Add it.
7014 case $ac_arg in
7015 *\'*)
7016 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
7017 esac
7018 baseargs="$baseargs '$ac_arg'"
7019 keep_next=$separate_arg
7020 ;;
7021 *)
7022 # Either a variable assignment, or a nonopt (triplet). Don't
7023 # pass it down; let the Makefile handle this.
7024 continue
7025 ;;
7026 esac
7027done
7028# Remove the initial space we just introduced and, as these will be
7029# expanded by make, quote '$'.
7030baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
a0da8069 7031
f27d4f92
DJ
7032# Add in --program-transform-name, after --program-prefix and
7033# --program-suffix have been applied to it. Autoconf has already
7034# doubled dollar signs and backslashes in program_transform_name; we want
7035# the backslashes un-doubled, and then the entire thing wrapped in single
c6b750e1 7036# quotes, because this will be expanded first by make and then by the shell.
f27d4f92
DJ
7037# Also, because we want to override the logic in subdir configure scripts to
7038# choose program_transform_name, replace any s,x,x, with s,y,y,.
7039sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
7040${program_transform_name}
7041EOF_SED
7042gcc_transform_name=`cat conftestsed.out`
7043rm -f conftestsed.out
7044baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
2444379b
BE
7045if test "$silent" = yes; then
7046 baseargs="$baseargs --silent"
7047fi
34a0f3cf 7048baseargs="$baseargs --disable-option-checking"
f27d4f92 7049
4074d5f2
RW
7050# Record and document user additions to sub configure arguments.
7051
7052
7053
7054
a0da8069
NN
7055# For the build-side libraries, we just need to pretend we're native,
7056# and not use the same cache file. Multilibs are neither needed nor
7057# desired.
4074d5f2 7058build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
a0da8069
NN
7059
7060# For host modules, accept cache file option, or specification as blank.
7061case "${cache_file}" in
7062"") # empty
7063 cache_file_option="" ;;
7064/* | [A-Za-z]:[\\/]* ) # absolute path
7065 cache_file_option="--cache-file=${cache_file}" ;;
7066*) # relative path
7067 cache_file_option="--cache-file=../${cache_file}" ;;
7068esac
7069
82252c06
NN
7070# Host dirs don't like to share a cache file either, horribly enough.
7071# This seems to be due to autoconf 2.5x stupidity.
4074d5f2 7072host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
a0da8069 7073
4074d5f2 7074target_configargs="$target_configargs ${baseargs}"
a0da8069
NN
7075
7076# Passing a --with-cross-host argument lets the target libraries know
7077# whether they are being built with a cross-compiler or being built
7078# native. However, it would be better to use other mechanisms to make the
7079# sorts of decisions they want to make on this basis. Please consider
7080# this option to be deprecated. FIXME.
7081if test x${is_cross_compiler} = xyes ; then
c6b750e1 7082 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
a0da8069
NN
7083fi
7084
938d2b74
RW
7085# Default to --enable-multilib.
7086if test x${enable_multilib} = x ; then
a0da8069 7087 target_configargs="--enable-multilib ${target_configargs}"
938d2b74 7088fi
a0da8069
NN
7089
7090# Pass --with-newlib if appropriate. Note that target_configdirs has
7091# changed from the earlier setting of with_newlib.
7092if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
7093 target_configargs="--with-newlib ${target_configargs}"
7094fi
7095
95036d20
NN
7096# Different target subdirs use different values of certain variables
7097# (notably CXX). Worse, multilibs use *lots* of different values.
7098# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
7099# it doesn't automatically accept command-line overrides of them.
7100# This means it's not safe for target subdirs to share a cache file,
7101# which is disgusting, but there you have it. Hopefully this can be
7102# fixed in future. It's still worthwhile to use a cache file for each
7103# directory. I think.
7104
ae380b45
MS
7105# Pass the appropriate --build, --host, --target and --cache-file arguments.
7106# We need to pass --target, as newer autoconf's requires consistency
7107# for target_alias and gcc doesn't manage it consistently.
4b900473 7108target_configargs="--cache-file=./config.cache ${target_configargs}"
a0da8069 7109
a0da8069
NN
7110FLAGS_FOR_TARGET=
7111case " $target_configdirs " in
7112 *" newlib "*)
7113 case " $target_configargs " in
7114 *" --with-newlib "*)
7115 case "$target" in
1f53ca9a
AO
7116 *-cygwin*)
7117 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'
7118 ;;
a0da8069
NN
7119 esac
7120
7121 # If we're not building GCC, don't discard standard headers.
7122 if test -d ${srcdir}/gcc; then
7123 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
7124
7125 if test "${build}" != "${host}"; then
7126 # On Canadian crosses, CC_FOR_TARGET will have already been set
7127 # by `configure', so we won't have an opportunity to add -Bgcc/
7128 # to it. This is right: we don't want to search that directory
7129 # for binaries, but we want the header files in there, so add
7130 # them explicitly.
b00612cc 7131 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include'
a0da8069
NN
7132
7133 # Someone might think of using the pre-installed headers on
7134 # Canadian crosses, in case the installed compiler is not fully
7135 # compatible with the compiler being built. In this case, it
7136 # would be better to flag an error than risking having
7137 # incompatible object files being constructed. We can't
7138 # guarantee that an error will be flagged, but let's hope the
7139 # compiler will do it, when presented with incompatible header
7140 # files.
7141 fi
7142 fi
7143
7144 case "${target}-${is_cross_compiler}" in
ec11bdc6 7145 i[3456789]86-*-linux*-no)
a0da8069
NN
7146 # Here host == target, so we don't need to build gcc,
7147 # so we don't want to discard standard headers.
7148 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
7149 ;;
7150 *)
7151 # If we're building newlib, use its generic headers last, but search
7152 # for any libc-related directories first (so make it the last -B
7153 # switch).
7154 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
7155
7156 # If we're building libgloss, find the startup file, simulator library
7157 # and linker script.
7158 case " $target_configdirs " in
7159 *" libgloss "*)
7160 # Look for startup file, simulator library and maybe linker script.
7161 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
7162 # Look for libnosys.a in case the target needs it.
7163 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
7164 # Most targets have the linker script in the source directory.
7165 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
7166 ;;
7167 esac
a0da8069
NN
7168 ;;
7169 esac
7170 ;;
7171 esac
7172 ;;
7173esac
1f53ca9a 7174
45055374 7175case "$target" in
1f53ca9a
AO
7176 x86_64-*mingw* | *-w64-mingw*)
7177 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
7178 # however, use a symlink named 'mingw' in ${prefix} .
7179 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
7180 ;;
7181 *-mingw*)
7182 # MinGW can't be handled as Cygwin above since it does not use newlib.
7183 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'
7184 ;;
45055374 7185esac
a0da8069 7186
5fbad20a
DD
7187# Allow the user to override the flags for
7188# our build compiler if desired.
c66487f8
NC
7189if test x"${build}" = x"${host}" ; then
7190 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
7191 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
7192 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
7193fi
5fbad20a 7194
a0da8069
NN
7195# On Canadian crosses, we'll be searching the right directories for
7196# the previously-installed cross compiler, so don't bother to add
7197# flags for directories within the install tree of the compiler
7198# being built; programs in there won't even run.
7199if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
7200 # Search for pre-installed headers if nothing else fits.
bba45b8b 7201 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
7202fi
7203
7204if test "x${use_gnu_ld}" = x &&
7205 echo " ${configdirs} " | grep " ld " > /dev/null ; then
7206 # Arrange for us to find uninstalled linker scripts.
b00612cc 7207 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
a0da8069
NN
7208fi
7209
a481dbb7
DD
7210# Search for other target-specific linker scripts and such.
7211case "${target}" in
4e206d7e
DB
7212 mep*)
7213 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
7214 ;;
7215esac
7216
a0da8069 7217# Makefile fragments.
3e707e94
PB
7218for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
7219do
7220 eval fragval=\$$frag
7221 if test $fragval != /dev/null; then
7222 eval $frag=${srcdir}/$fragval
7223 fi
7224done
a0da8069
NN
7225
7226
7227
7228
7229
7230# Miscellanea: directories, flags, etc.
7231
7232
7233
7234
7235
7236
7237
3bbd2f8f 7238
6a9cf61e 7239# Build module lists & subconfigure args.
a0da8069
NN
7240
7241
7242
be01d343
PB
7243# Host module lists & subconfigure args.
7244
7245
7246
911e63d0 7247
be01d343
PB
7248# Target module lists & subconfigure args.
7249
7250
7251
7252# Build tools.
7253
7254
7255
1576798e
PB
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
be01d343
PB
7270# Generate default definitions for YACC, M4, LEX and other programs that run
7271# on the build machine. These are used if the Makefile can't locate these
7272# programs in objdir.
7273MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
7274
7275for ac_prog in 'bison -y' byacc yacc
7276do
c6b750e1 7277 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7278set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7280$as_echo_n "checking for $ac_word... " >&6; }
7281if test "${ac_cv_prog_YACC+set}" = set; then :
7282 $as_echo_n "(cached) " >&6
be01d343
PB
7283else
7284 if test -n "$YACC"; then
7285 ac_cv_prog_YACC="$YACC" # Let the user override the test.
7286else
c6b750e1
DJ
7287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7288for as_dir in $PATH
7289do
7290 IFS=$as_save_IFS
7291 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7294 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 7295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7296 break 2
7297 fi
7298done
81ecdfbb
RW
7299 done
7300IFS=$as_save_IFS
c6b750e1 7301
be01d343
PB
7302fi
7303fi
c6b750e1 7304YACC=$ac_cv_prog_YACC
be01d343 7305if test -n "$YACC"; then
81ecdfbb
RW
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
7307$as_echo "$YACC" >&6; }
be01d343 7308else
81ecdfbb
RW
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310$as_echo "no" >&6; }
be01d343
PB
7311fi
7312
81ecdfbb 7313
c6b750e1 7314 test -n "$YACC" && break
be01d343
PB
7315done
7316test -n "$YACC" || YACC="$MISSING bison -y"
7317
7318case " $build_configdirs " in
7319 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
7320 *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
7321esac
7322
7323for ac_prog in bison
7324do
c6b750e1 7325 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7326set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7328$as_echo_n "checking for $ac_word... " >&6; }
7329if test "${ac_cv_prog_BISON+set}" = set; then :
7330 $as_echo_n "(cached) " >&6
be01d343
PB
7331else
7332 if test -n "$BISON"; then
7333 ac_cv_prog_BISON="$BISON" # Let the user override the test.
7334else
c6b750e1
DJ
7335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7336for as_dir in $PATH
7337do
7338 IFS=$as_save_IFS
7339 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7340 for ac_exec_ext in '' $ac_executable_extensions; do
7341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7342 ac_cv_prog_BISON="$ac_prog"
81ecdfbb 7343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7344 break 2
7345 fi
7346done
81ecdfbb
RW
7347 done
7348IFS=$as_save_IFS
c6b750e1 7349
be01d343
PB
7350fi
7351fi
c6b750e1 7352BISON=$ac_cv_prog_BISON
be01d343 7353if test -n "$BISON"; then
81ecdfbb
RW
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
7355$as_echo "$BISON" >&6; }
be01d343 7356else
81ecdfbb
RW
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7358$as_echo "no" >&6; }
be01d343
PB
7359fi
7360
81ecdfbb 7361
c6b750e1 7362 test -n "$BISON" && break
be01d343
PB
7363done
7364test -n "$BISON" || BISON="$MISSING bison"
7365
7366case " $build_configdirs " in
7367 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
7368esac
7369
7370for ac_prog in gm4 gnum4 m4
7371do
c6b750e1 7372 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7373set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375$as_echo_n "checking for $ac_word... " >&6; }
7376if test "${ac_cv_prog_M4+set}" = set; then :
7377 $as_echo_n "(cached) " >&6
be01d343
PB
7378else
7379 if test -n "$M4"; then
7380 ac_cv_prog_M4="$M4" # Let the user override the test.
7381else
c6b750e1
DJ
7382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH
7384do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7389 ac_cv_prog_M4="$ac_prog"
81ecdfbb 7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7391 break 2
7392 fi
7393done
81ecdfbb
RW
7394 done
7395IFS=$as_save_IFS
c6b750e1 7396
be01d343
PB
7397fi
7398fi
c6b750e1 7399M4=$ac_cv_prog_M4
be01d343 7400if test -n "$M4"; then
81ecdfbb
RW
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
7402$as_echo "$M4" >&6; }
be01d343 7403else
81ecdfbb
RW
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405$as_echo "no" >&6; }
be01d343
PB
7406fi
7407
81ecdfbb 7408
c6b750e1 7409 test -n "$M4" && break
be01d343
PB
7410done
7411test -n "$M4" || M4="$MISSING m4"
7412
7413case " $build_configdirs " in
7414 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
7415esac
7416
7417for ac_prog in flex lex
7418do
c6b750e1 7419 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7420set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7422$as_echo_n "checking for $ac_word... " >&6; }
7423if test "${ac_cv_prog_LEX+set}" = set; then :
7424 $as_echo_n "(cached) " >&6
be01d343
PB
7425else
7426 if test -n "$LEX"; then
7427 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7428else
c6b750e1
DJ
7429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430for as_dir in $PATH
7431do
7432 IFS=$as_save_IFS
7433 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7434 for ac_exec_ext in '' $ac_executable_extensions; do
7435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7436 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 7437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7438 break 2
7439 fi
7440done
81ecdfbb
RW
7441 done
7442IFS=$as_save_IFS
c6b750e1 7443
be01d343
PB
7444fi
7445fi
c6b750e1 7446LEX=$ac_cv_prog_LEX
be01d343 7447if test -n "$LEX"; then
81ecdfbb
RW
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7449$as_echo "$LEX" >&6; }
be01d343 7450else
81ecdfbb
RW
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452$as_echo "no" >&6; }
be01d343
PB
7453fi
7454
81ecdfbb 7455
c6b750e1 7456 test -n "$LEX" && break
be01d343
PB
7457done
7458test -n "$LEX" || LEX="$MISSING flex"
7459
7460case " $build_configdirs " in
7461 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7462 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
7463esac
7464
7465for ac_prog in flex
7466do
c6b750e1 7467 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7468set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7470$as_echo_n "checking for $ac_word... " >&6; }
7471if test "${ac_cv_prog_FLEX+set}" = set; then :
7472 $as_echo_n "(cached) " >&6
be01d343
PB
7473else
7474 if test -n "$FLEX"; then
7475 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
7476else
c6b750e1
DJ
7477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7478for as_dir in $PATH
7479do
7480 IFS=$as_save_IFS
7481 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7484 ac_cv_prog_FLEX="$ac_prog"
81ecdfbb 7485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7486 break 2
7487 fi
7488done
81ecdfbb
RW
7489 done
7490IFS=$as_save_IFS
c6b750e1 7491
be01d343
PB
7492fi
7493fi
c6b750e1 7494FLEX=$ac_cv_prog_FLEX
be01d343 7495if test -n "$FLEX"; then
81ecdfbb
RW
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
7497$as_echo "$FLEX" >&6; }
be01d343 7498else
81ecdfbb
RW
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7500$as_echo "no" >&6; }
be01d343
PB
7501fi
7502
81ecdfbb 7503
c6b750e1 7504 test -n "$FLEX" && break
be01d343
PB
7505done
7506test -n "$FLEX" || FLEX="$MISSING flex"
7507
7508case " $build_configdirs " in
7509 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
7510esac
7511
7512for ac_prog in makeinfo
7513do
c6b750e1 7514 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7515set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517$as_echo_n "checking for $ac_word... " >&6; }
7518if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
be01d343
PB
7520else
7521 if test -n "$MAKEINFO"; then
7522 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
7523else
c6b750e1
DJ
7524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525for as_dir in $PATH
7526do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7531 ac_cv_prog_MAKEINFO="$ac_prog"
81ecdfbb 7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7533 break 2
7534 fi
7535done
81ecdfbb
RW
7536 done
7537IFS=$as_save_IFS
c6b750e1 7538
be01d343
PB
7539fi
7540fi
c6b750e1 7541MAKEINFO=$ac_cv_prog_MAKEINFO
be01d343 7542if test -n "$MAKEINFO"; then
81ecdfbb
RW
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
7544$as_echo "$MAKEINFO" >&6; }
be01d343 7545else
81ecdfbb
RW
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547$as_echo "no" >&6; }
be01d343
PB
7548fi
7549
81ecdfbb 7550
c6b750e1 7551 test -n "$MAKEINFO" && break
be01d343
PB
7552done
7553test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
7554
7555case " $build_configdirs " in
7556 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
7557 *)
7558
10ad8ef3 7559 # For an installed makeinfo, we require it to be from texinfo 4.7 or
be01d343
PB
7560 # higher, else we use the "missing" dummy.
7561 if ${MAKEINFO} --version \
10ad8ef3 7562 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
be01d343
PB
7563 :
7564 else
7565 MAKEINFO="$MISSING makeinfo"
7566 fi
7567 ;;
7568
7569esac
a0da8069 7570
be01d343 7571# FIXME: expect and dejagnu may become build tools?
a0da8069 7572
be01d343
PB
7573for ac_prog in expect
7574do
c6b750e1 7575 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7576set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7578$as_echo_n "checking for $ac_word... " >&6; }
7579if test "${ac_cv_prog_EXPECT+set}" = set; then :
7580 $as_echo_n "(cached) " >&6
be01d343
PB
7581else
7582 if test -n "$EXPECT"; then
7583 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
7584else
c6b750e1
DJ
7585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7586for as_dir in $PATH
7587do
7588 IFS=$as_save_IFS
7589 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7590 for ac_exec_ext in '' $ac_executable_extensions; do
7591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7592 ac_cv_prog_EXPECT="$ac_prog"
81ecdfbb 7593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7594 break 2
7595 fi
7596done
81ecdfbb
RW
7597 done
7598IFS=$as_save_IFS
c6b750e1 7599
be01d343
PB
7600fi
7601fi
c6b750e1 7602EXPECT=$ac_cv_prog_EXPECT
be01d343 7603if test -n "$EXPECT"; then
81ecdfbb
RW
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
7605$as_echo "$EXPECT" >&6; }
be01d343 7606else
81ecdfbb
RW
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7608$as_echo "no" >&6; }
be01d343 7609fi
a0da8069 7610
81ecdfbb 7611
c6b750e1 7612 test -n "$EXPECT" && break
be01d343
PB
7613done
7614test -n "$EXPECT" || EXPECT="expect"
a0da8069 7615
be01d343
PB
7616case " $configdirs " in
7617 *" expect "*)
7618 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
7619 ;;
7620esac
a0da8069 7621
be01d343
PB
7622for ac_prog in runtest
7623do
c6b750e1 7624 # Extract the first word of "$ac_prog", so it can be a program name with args.
be01d343 7625set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627$as_echo_n "checking for $ac_word... " >&6; }
7628if test "${ac_cv_prog_RUNTEST+set}" = set; then :
7629 $as_echo_n "(cached) " >&6
be01d343
PB
7630else
7631 if test -n "$RUNTEST"; then
7632 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
7633else
c6b750e1
DJ
7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH
7636do
7637 IFS=$as_save_IFS
7638 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7641 ac_cv_prog_RUNTEST="$ac_prog"
81ecdfbb 7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7643 break 2
7644 fi
7645done
81ecdfbb
RW
7646 done
7647IFS=$as_save_IFS
c6b750e1 7648
be01d343
PB
7649fi
7650fi
c6b750e1 7651RUNTEST=$ac_cv_prog_RUNTEST
be01d343 7652if test -n "$RUNTEST"; then
81ecdfbb
RW
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7654$as_echo "$RUNTEST" >&6; }
be01d343 7655else
81ecdfbb
RW
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657$as_echo "no" >&6; }
be01d343 7658fi
a0da8069 7659
81ecdfbb 7660
c6b750e1 7661 test -n "$RUNTEST" && break
be01d343
PB
7662done
7663test -n "$RUNTEST" || RUNTEST="runtest"
a0da8069 7664
be01d343
PB
7665case " $configdirs " in
7666 *" dejagnu "*)
6b89cc21 7667 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
be01d343
PB
7668 ;;
7669esac
a0da8069
NN
7670
7671
a0da8069 7672# Host tools.
859789af
AC
7673ncn_tool_prefix=
7674test -n "$host_alias" && ncn_tool_prefix=$host_alias-
7675ncn_target_tool_prefix=
7676test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
7677
9a819804
AO
7678
7679
7680if test -n "$AR"; then
7681 ac_cv_prog_AR=$AR
7682elif test -n "$ac_cv_prog_AR"; then
7683 AR=$ac_cv_prog_AR
7684fi
7685
7686if test -n "$ac_cv_prog_AR"; then
7687 for ncn_progname in ar; do
7688 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7689set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7691$as_echo_n "checking for $ac_word... " >&6; }
7692if test "${ac_cv_prog_AR+set}" = set; then :
7693 $as_echo_n "(cached) " >&6
9a819804
AO
7694else
7695 if test -n "$AR"; then
7696 ac_cv_prog_AR="$AR" # Let the user override the test.
7697else
7698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7699for as_dir in $PATH
7700do
7701 IFS=$as_save_IFS
7702 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7703 for ac_exec_ext in '' $ac_executable_extensions; do
7704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7705 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7707 break 2
7708 fi
7709done
81ecdfbb
RW
7710 done
7711IFS=$as_save_IFS
9a819804
AO
7712
7713fi
7714fi
7715AR=$ac_cv_prog_AR
7716if test -n "$AR"; then
81ecdfbb
RW
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7718$as_echo "$AR" >&6; }
9a819804 7719else
81ecdfbb
RW
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721$as_echo "no" >&6; }
9a819804
AO
7722fi
7723
81ecdfbb 7724
9a819804
AO
7725 done
7726fi
7727
7728for ncn_progname in ar; do
05cbd757
PB
7729 if test -n "$ncn_tool_prefix"; then
7730 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7731set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7733$as_echo_n "checking for $ac_word... " >&6; }
7734if test "${ac_cv_prog_AR+set}" = set; then :
7735 $as_echo_n "(cached) " >&6
859789af
AC
7736else
7737 if test -n "$AR"; then
7738 ac_cv_prog_AR="$AR" # Let the user override the test.
7739else
c6b750e1
DJ
7740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741for as_dir in $PATH
7742do
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7747 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7749 break 2
7750 fi
7751done
81ecdfbb
RW
7752 done
7753IFS=$as_save_IFS
c6b750e1 7754
859789af
AC
7755fi
7756fi
c6b750e1 7757AR=$ac_cv_prog_AR
859789af 7758if test -n "$AR"; then
81ecdfbb
RW
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7760$as_echo "$AR" >&6; }
859789af 7761else
81ecdfbb
RW
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763$as_echo "no" >&6; }
859789af
AC
7764fi
7765
81ecdfbb 7766
05cbd757
PB
7767 fi
7768 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
7769 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7770set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7772$as_echo_n "checking for $ac_word... " >&6; }
7773if test "${ac_cv_prog_AR+set}" = set; then :
7774 $as_echo_n "(cached) " >&6
859789af 7775else
05cbd757
PB
7776 if test -n "$AR"; then
7777 ac_cv_prog_AR="$AR" # Let the user override the test.
859789af 7778else
c6b750e1
DJ
7779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780for as_dir in $PATH
7781do
7782 IFS=$as_save_IFS
7783 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7786 ac_cv_prog_AR="${ncn_progname}"
81ecdfbb 7787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7788 break 2
7789 fi
7790done
81ecdfbb
RW
7791 done
7792IFS=$as_save_IFS
c6b750e1 7793
859789af
AC
7794fi
7795fi
c6b750e1 7796AR=$ac_cv_prog_AR
05cbd757 7797if test -n "$AR"; then
81ecdfbb
RW
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7799$as_echo "$AR" >&6; }
859789af 7800else
81ecdfbb
RW
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7802$as_echo "no" >&6; }
859789af 7803fi
c6b750e1 7804
81ecdfbb 7805
05cbd757
PB
7806 fi
7807 test -n "$ac_cv_prog_AR" && break
7808done
7809
7810if test -z "$ac_cv_prog_AR" ; then
7811 set dummy ar
7812 if test $build = $host ; then
7813 AR="$2"
859789af 7814 else
05cbd757 7815 AR="${ncn_tool_prefix}$2"
859789af 7816 fi
859789af
AC
7817fi
7818
9a819804
AO
7819
7820
7821if test -n "$AS"; then
7822 ac_cv_prog_AS=$AS
7823elif test -n "$ac_cv_prog_AS"; then
7824 AS=$ac_cv_prog_AS
7825fi
7826
7827if test -n "$ac_cv_prog_AS"; then
7828 for ncn_progname in as; do
7829 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7830set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832$as_echo_n "checking for $ac_word... " >&6; }
7833if test "${ac_cv_prog_AS+set}" = set; then :
7834 $as_echo_n "(cached) " >&6
9a819804
AO
7835else
7836 if test -n "$AS"; then
7837 ac_cv_prog_AS="$AS" # Let the user override the test.
7838else
7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7846 ac_cv_prog_AS="${ncn_progname}"
81ecdfbb 7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7848 break 2
7849 fi
7850done
81ecdfbb
RW
7851 done
7852IFS=$as_save_IFS
9a819804
AO
7853
7854fi
7855fi
7856AS=$ac_cv_prog_AS
7857if test -n "$AS"; then
81ecdfbb
RW
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7859$as_echo "$AS" >&6; }
9a819804 7860else
81ecdfbb
RW
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
9a819804
AO
7863fi
7864
81ecdfbb 7865
9a819804
AO
7866 done
7867fi
7868
7869for ncn_progname in as; do
05cbd757
PB
7870 if test -n "$ncn_tool_prefix"; then
7871 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
7872set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
7873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874$as_echo_n "checking for $ac_word... " >&6; }
7875if test "${ac_cv_prog_AS+set}" = set; then :
7876 $as_echo_n "(cached) " >&6
859789af
AC
7877else
7878 if test -n "$AS"; then
7879 ac_cv_prog_AS="$AS" # Let the user override the test.
c6b750e1
DJ
7880else
7881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882for as_dir in $PATH
7883do
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 7888 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
7890 break 2
7891 fi
7892done
81ecdfbb
RW
7893 done
7894IFS=$as_save_IFS
c6b750e1 7895
859789af
AC
7896fi
7897fi
c6b750e1 7898AS=$ac_cv_prog_AS
859789af 7899if test -n "$AS"; then
81ecdfbb
RW
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7901$as_echo "$AS" >&6; }
859789af 7902else
81ecdfbb
RW
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904$as_echo "no" >&6; }
859789af
AC
7905fi
7906
81ecdfbb 7907
05cbd757
PB
7908 fi
7909 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
7910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7911set dummy ${ncn_progname}; 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_AS+set}" = set; then :
7915 $as_echo_n "(cached) " >&6
859789af 7916else
05cbd757
PB
7917 if test -n "$AS"; then
7918 ac_cv_prog_AS="$AS" # Let the user override the test.
859789af 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_AS="${ncn_progname}"
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
859789af
AC
7935fi
7936fi
c6b750e1 7937AS=$ac_cv_prog_AS
05cbd757 7938if test -n "$AS"; then
81ecdfbb
RW
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7940$as_echo "$AS" >&6; }
859789af 7941else
81ecdfbb
RW
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943$as_echo "no" >&6; }
859789af 7944fi
c6b750e1 7945
81ecdfbb 7946
05cbd757
PB
7947 fi
7948 test -n "$ac_cv_prog_AS" && break
7949done
7950
7951if test -z "$ac_cv_prog_AS" ; then
7952 set dummy as
7953 if test $build = $host ; then
7954 AS="$2"
859789af 7955 else
05cbd757 7956 AS="${ncn_tool_prefix}$2"
859789af 7957 fi
859789af
AC
7958fi
7959
9a819804
AO
7960
7961
7962if test -n "$DLLTOOL"; then
7963 ac_cv_prog_DLLTOOL=$DLLTOOL
7964elif test -n "$ac_cv_prog_DLLTOOL"; then
7965 DLLTOOL=$ac_cv_prog_DLLTOOL
7966fi
7967
7968if test -n "$ac_cv_prog_DLLTOOL"; then
7969 for ncn_progname in dlltool; do
7970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7971set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
7972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973$as_echo_n "checking for $ac_word... " >&6; }
7974if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7975 $as_echo_n "(cached) " >&6
9a819804
AO
7976else
7977 if test -n "$DLLTOOL"; then
7978 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7979else
7980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981for as_dir in $PATH
7982do
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 7987 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
7989 break 2
7990 fi
7991done
81ecdfbb
RW
7992 done
7993IFS=$as_save_IFS
9a819804
AO
7994
7995fi
7996fi
7997DLLTOOL=$ac_cv_prog_DLLTOOL
7998if test -n "$DLLTOOL"; then
81ecdfbb
RW
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8000$as_echo "$DLLTOOL" >&6; }
9a819804 8001else
81ecdfbb
RW
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003$as_echo "no" >&6; }
9a819804
AO
8004fi
8005
81ecdfbb 8006
9a819804
AO
8007 done
8008fi
8009
8010for ncn_progname in dlltool; do
05cbd757
PB
8011 if test -n "$ncn_tool_prefix"; then
8012 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8013set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015$as_echo_n "checking for $ac_word... " >&6; }
8016if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8017 $as_echo_n "(cached) " >&6
859789af
AC
8018else
8019 if test -n "$DLLTOOL"; then
8020 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8021else
c6b750e1
DJ
8022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8023for as_dir in $PATH
8024do
8025 IFS=$as_save_IFS
8026 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8027 for ac_exec_ext in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8029 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8031 break 2
8032 fi
8033done
81ecdfbb
RW
8034 done
8035IFS=$as_save_IFS
c6b750e1 8036
859789af
AC
8037fi
8038fi
c6b750e1 8039DLLTOOL=$ac_cv_prog_DLLTOOL
859789af 8040if test -n "$DLLTOOL"; then
81ecdfbb
RW
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8042$as_echo "$DLLTOOL" >&6; }
859789af 8043else
81ecdfbb
RW
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045$as_echo "no" >&6; }
859789af
AC
8046fi
8047
81ecdfbb 8048
05cbd757
PB
8049 fi
8050 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
8051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8052set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054$as_echo_n "checking for $ac_word... " >&6; }
8055if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
859789af 8057else
05cbd757
PB
8058 if test -n "$DLLTOOL"; then
8059 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
859789af 8060else
c6b750e1
DJ
8061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062for as_dir in $PATH
8063do
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8068 ac_cv_prog_DLLTOOL="${ncn_progname}"
81ecdfbb 8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8070 break 2
8071 fi
8072done
81ecdfbb
RW
8073 done
8074IFS=$as_save_IFS
c6b750e1 8075
859789af
AC
8076fi
8077fi
c6b750e1 8078DLLTOOL=$ac_cv_prog_DLLTOOL
05cbd757 8079if test -n "$DLLTOOL"; then
81ecdfbb
RW
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8081$as_echo "$DLLTOOL" >&6; }
859789af 8082else
81ecdfbb
RW
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084$as_echo "no" >&6; }
859789af 8085fi
c6b750e1 8086
81ecdfbb 8087
05cbd757
PB
8088 fi
8089 test -n "$ac_cv_prog_DLLTOOL" && break
8090done
8091
8092if test -z "$ac_cv_prog_DLLTOOL" ; then
8093 set dummy dlltool
8094 if test $build = $host ; then
8095 DLLTOOL="$2"
859789af 8096 else
05cbd757 8097 DLLTOOL="${ncn_tool_prefix}$2"
859789af 8098 fi
859789af
AC
8099fi
8100
9a819804
AO
8101
8102
8103if test -n "$LD"; then
8104 ac_cv_prog_LD=$LD
8105elif test -n "$ac_cv_prog_LD"; then
8106 LD=$ac_cv_prog_LD
8107fi
8108
8109if test -n "$ac_cv_prog_LD"; then
8110 for ncn_progname in ld; do
8111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8112set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114$as_echo_n "checking for $ac_word... " >&6; }
8115if test "${ac_cv_prog_LD+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
9a819804
AO
8117else
8118 if test -n "$LD"; then
8119 ac_cv_prog_LD="$LD" # Let the user override the test.
8120else
8121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122for as_dir in $PATH
8123do
8124 IFS=$as_save_IFS
8125 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8128 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8130 break 2
8131 fi
8132done
81ecdfbb
RW
8133 done
8134IFS=$as_save_IFS
9a819804
AO
8135
8136fi
8137fi
8138LD=$ac_cv_prog_LD
8139if test -n "$LD"; then
81ecdfbb
RW
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8141$as_echo "$LD" >&6; }
9a819804 8142else
81ecdfbb
RW
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144$as_echo "no" >&6; }
9a819804
AO
8145fi
8146
81ecdfbb 8147
9a819804
AO
8148 done
8149fi
8150
8151for ncn_progname in ld; do
05cbd757
PB
8152 if test -n "$ncn_tool_prefix"; then
8153 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8154set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8156$as_echo_n "checking for $ac_word... " >&6; }
8157if test "${ac_cv_prog_LD+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
859789af
AC
8159else
8160 if test -n "$LD"; then
8161 ac_cv_prog_LD="$LD" # Let the user override the test.
8162else
c6b750e1
DJ
8163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8164for as_dir in $PATH
8165do
8166 IFS=$as_save_IFS
8167 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8168 for ac_exec_ext in '' $ac_executable_extensions; do
8169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8170 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8172 break 2
8173 fi
8174done
81ecdfbb
RW
8175 done
8176IFS=$as_save_IFS
c6b750e1 8177
859789af
AC
8178fi
8179fi
c6b750e1 8180LD=$ac_cv_prog_LD
859789af 8181if test -n "$LD"; then
81ecdfbb
RW
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8183$as_echo "$LD" >&6; }
859789af 8184else
81ecdfbb
RW
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186$as_echo "no" >&6; }
859789af
AC
8187fi
8188
81ecdfbb 8189
05cbd757
PB
8190 fi
8191 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
8192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8193set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195$as_echo_n "checking for $ac_word... " >&6; }
8196if test "${ac_cv_prog_LD+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
859789af 8198else
05cbd757
PB
8199 if test -n "$LD"; then
8200 ac_cv_prog_LD="$LD" # Let the user override the test.
376a0e54 8201else
c6b750e1
DJ
8202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203for as_dir in $PATH
8204do
8205 IFS=$as_save_IFS
8206 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8209 ac_cv_prog_LD="${ncn_progname}"
81ecdfbb 8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8211 break 2
8212 fi
8213done
81ecdfbb
RW
8214 done
8215IFS=$as_save_IFS
c6b750e1 8216
859789af
AC
8217fi
8218fi
c6b750e1 8219LD=$ac_cv_prog_LD
05cbd757 8220if test -n "$LD"; then
81ecdfbb
RW
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8222$as_echo "$LD" >&6; }
859789af 8223else
81ecdfbb
RW
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8225$as_echo "no" >&6; }
859789af 8226fi
c6b750e1 8227
81ecdfbb 8228
05cbd757
PB
8229 fi
8230 test -n "$ac_cv_prog_LD" && break
8231done
8232
8233if test -z "$ac_cv_prog_LD" ; then
8234 set dummy ld
8235 if test $build = $host ; then
8236 LD="$2"
859789af 8237 else
05cbd757 8238 LD="${ncn_tool_prefix}$2"
859789af 8239 fi
859789af
AC
8240fi
8241
9a819804
AO
8242
8243
8244if test -n "$LIPO"; then
8245 ac_cv_prog_LIPO=$LIPO
8246elif test -n "$ac_cv_prog_LIPO"; then
8247 LIPO=$ac_cv_prog_LIPO
8248fi
8249
8250if test -n "$ac_cv_prog_LIPO"; then
8251 for ncn_progname in lipo; do
8252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8253set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8255$as_echo_n "checking for $ac_word... " >&6; }
8256if test "${ac_cv_prog_LIPO+set}" = set; then :
8257 $as_echo_n "(cached) " >&6
9a819804
AO
8258else
8259 if test -n "$LIPO"; then
8260 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8261else
8262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8263for as_dir in $PATH
8264do
8265 IFS=$as_save_IFS
8266 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8267 for ac_exec_ext in '' $ac_executable_extensions; do
8268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8269 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8271 break 2
8272 fi
8273done
81ecdfbb
RW
8274 done
8275IFS=$as_save_IFS
9a819804
AO
8276
8277fi
8278fi
8279LIPO=$ac_cv_prog_LIPO
8280if test -n "$LIPO"; then
81ecdfbb
RW
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8282$as_echo "$LIPO" >&6; }
9a819804 8283else
81ecdfbb
RW
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8285$as_echo "no" >&6; }
9a819804
AO
8286fi
8287
81ecdfbb 8288
9a819804
AO
8289 done
8290fi
8291
8292for ncn_progname in lipo; do
be01d343
PB
8293 if test -n "$ncn_tool_prefix"; then
8294 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8295set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297$as_echo_n "checking for $ac_word... " >&6; }
8298if test "${ac_cv_prog_LIPO+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
be01d343
PB
8300else
8301 if test -n "$LIPO"; then
8302 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8303else
c6b750e1
DJ
8304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305for as_dir in $PATH
8306do
8307 IFS=$as_save_IFS
8308 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8311 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8313 break 2
8314 fi
8315done
81ecdfbb
RW
8316 done
8317IFS=$as_save_IFS
c6b750e1 8318
be01d343
PB
8319fi
8320fi
c6b750e1 8321LIPO=$ac_cv_prog_LIPO
be01d343 8322if test -n "$LIPO"; then
81ecdfbb
RW
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8324$as_echo "$LIPO" >&6; }
be01d343 8325else
81ecdfbb
RW
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327$as_echo "no" >&6; }
be01d343
PB
8328fi
8329
81ecdfbb 8330
be01d343
PB
8331 fi
8332 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
8333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8334set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336$as_echo_n "checking for $ac_word... " >&6; }
8337if test "${ac_cv_prog_LIPO+set}" = set; then :
8338 $as_echo_n "(cached) " >&6
be01d343
PB
8339else
8340 if test -n "$LIPO"; then
8341 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8342else
c6b750e1
DJ
8343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344for as_dir in $PATH
8345do
8346 IFS=$as_save_IFS
8347 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8350 ac_cv_prog_LIPO="${ncn_progname}"
81ecdfbb 8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8352 break 2
8353 fi
8354done
81ecdfbb
RW
8355 done
8356IFS=$as_save_IFS
c6b750e1 8357
be01d343
PB
8358fi
8359fi
c6b750e1 8360LIPO=$ac_cv_prog_LIPO
be01d343 8361if test -n "$LIPO"; then
81ecdfbb
RW
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8363$as_echo "$LIPO" >&6; }
be01d343 8364else
81ecdfbb
RW
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366$as_echo "no" >&6; }
be01d343 8367fi
c6b750e1 8368
81ecdfbb 8369
be01d343
PB
8370 fi
8371 test -n "$ac_cv_prog_LIPO" && break
8372done
8373
8374if test -z "$ac_cv_prog_LIPO" ; then
8375 set dummy lipo
8376 if test $build = $host ; then
8377 LIPO="$2"
8378 else
8379 LIPO="${ncn_tool_prefix}$2"
8380 fi
8381fi
8382
9a819804
AO
8383
8384
8385if test -n "$NM"; then
8386 ac_cv_prog_NM=$NM
8387elif test -n "$ac_cv_prog_NM"; then
8388 NM=$ac_cv_prog_NM
8389fi
8390
8391if test -n "$ac_cv_prog_NM"; then
8392 for ncn_progname in nm; do
8393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8394set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8396$as_echo_n "checking for $ac_word... " >&6; }
8397if test "${ac_cv_prog_NM+set}" = set; then :
8398 $as_echo_n "(cached) " >&6
859789af
AC
8399else
8400 if test -n "$NM"; then
8401 ac_cv_prog_NM="$NM" # Let the user override the test.
8402else
c6b750e1
DJ
8403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404for as_dir in $PATH
8405do
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8410 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8412 break 2
8413 fi
8414done
81ecdfbb
RW
8415 done
8416IFS=$as_save_IFS
c6b750e1 8417
859789af
AC
8418fi
8419fi
c6b750e1 8420NM=$ac_cv_prog_NM
859789af 8421if test -n "$NM"; then
81ecdfbb
RW
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8423$as_echo "$NM" >&6; }
859789af 8424else
81ecdfbb
RW
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426$as_echo "no" >&6; }
859789af
AC
8427fi
8428
81ecdfbb 8429
9a819804
AO
8430 done
8431fi
8432
8433for ncn_progname in nm; do
8434 if test -n "$ncn_tool_prefix"; then
8435 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8436set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438$as_echo_n "checking for $ac_word... " >&6; }
8439if test "${ac_cv_prog_NM+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
859789af 8441else
05cbd757
PB
8442 if test -n "$NM"; then
8443 ac_cv_prog_NM="$NM" # Let the user override the test.
859789af 8444else
c6b750e1
DJ
8445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446for as_dir in $PATH
8447do
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8452 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8454 break 2
8455 fi
8456done
81ecdfbb
RW
8457 done
8458IFS=$as_save_IFS
c6b750e1 8459
859789af
AC
8460fi
8461fi
c6b750e1 8462NM=$ac_cv_prog_NM
05cbd757 8463if test -n "$NM"; then
81ecdfbb
RW
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8465$as_echo "$NM" >&6; }
859789af 8466else
81ecdfbb
RW
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468$as_echo "no" >&6; }
859789af 8469fi
c6b750e1 8470
81ecdfbb 8471
05cbd757 8472 fi
9a819804
AO
8473 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
8474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8475set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477$as_echo_n "checking for $ac_word... " >&6; }
8478if test "${ac_cv_prog_NM+set}" = set; then :
8479 $as_echo_n "(cached) " >&6
9a819804
AO
8480else
8481 if test -n "$NM"; then
8482 ac_cv_prog_NM="$NM" # Let the user override the test.
8483else
8484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485for as_dir in $PATH
8486do
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8489 for ac_exec_ext in '' $ac_executable_extensions; do
8490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8491 ac_cv_prog_NM="${ncn_progname}"
81ecdfbb 8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8493 break 2
8494 fi
8495done
81ecdfbb
RW
8496 done
8497IFS=$as_save_IFS
9a819804
AO
8498
8499fi
8500fi
8501NM=$ac_cv_prog_NM
8502if test -n "$NM"; then
81ecdfbb
RW
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8504$as_echo "$NM" >&6; }
9a819804 8505else
81ecdfbb
RW
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507$as_echo "no" >&6; }
9a819804
AO
8508fi
8509
81ecdfbb 8510
9a819804
AO
8511 fi
8512 test -n "$ac_cv_prog_NM" && break
8513done
8514
8515if test -z "$ac_cv_prog_NM" ; then
8516 set dummy nm
8517 if test $build = $host ; then
8518 NM="$2"
8519 else
8520 NM="${ncn_tool_prefix}$2"
8521 fi
8522fi
8523
8524
8525
8526if test -n "$RANLIB"; then
8527 ac_cv_prog_RANLIB=$RANLIB
8528elif test -n "$ac_cv_prog_RANLIB"; then
8529 RANLIB=$ac_cv_prog_RANLIB
8530fi
8531
8532if test -n "$ac_cv_prog_RANLIB"; then
8533 for ncn_progname in ranlib; do
8534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8535set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537$as_echo_n "checking for $ac_word... " >&6; }
8538if test "${ac_cv_prog_RANLIB+set}" = set; then :
8539 $as_echo_n "(cached) " >&6
9a819804
AO
8540else
8541 if test -n "$RANLIB"; then
8542 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8543else
8544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8545for as_dir in $PATH
8546do
8547 IFS=$as_save_IFS
8548 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8551 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8553 break 2
8554 fi
8555done
81ecdfbb
RW
8556 done
8557IFS=$as_save_IFS
9a819804
AO
8558
8559fi
8560fi
8561RANLIB=$ac_cv_prog_RANLIB
8562if test -n "$RANLIB"; then
81ecdfbb
RW
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8564$as_echo "$RANLIB" >&6; }
9a819804 8565else
81ecdfbb
RW
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567$as_echo "no" >&6; }
9a819804
AO
8568fi
8569
81ecdfbb 8570
9a819804
AO
8571 done
8572fi
859789af 8573
9a819804 8574for ncn_progname in ranlib; do
05cbd757
PB
8575 if test -n "$ncn_tool_prefix"; then
8576 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8577set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579$as_echo_n "checking for $ac_word... " >&6; }
8580if test "${ac_cv_prog_RANLIB+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
859789af
AC
8582else
8583 if test -n "$RANLIB"; then
8584 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8585else
c6b750e1
DJ
8586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8587for as_dir in $PATH
8588do
8589 IFS=$as_save_IFS
8590 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8591 for ac_exec_ext in '' $ac_executable_extensions; do
8592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8593 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8595 break 2
8596 fi
8597done
81ecdfbb
RW
8598 done
8599IFS=$as_save_IFS
c6b750e1 8600
859789af
AC
8601fi
8602fi
c6b750e1 8603RANLIB=$ac_cv_prog_RANLIB
859789af 8604if test -n "$RANLIB"; then
81ecdfbb
RW
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8606$as_echo "$RANLIB" >&6; }
859789af 8607else
81ecdfbb
RW
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8609$as_echo "no" >&6; }
859789af
AC
8610fi
8611
81ecdfbb 8612
05cbd757
PB
8613 fi
8614 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
8615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8616set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8618$as_echo_n "checking for $ac_word... " >&6; }
8619if test "${ac_cv_prog_RANLIB+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
859789af 8621else
05cbd757
PB
8622 if test -n "$RANLIB"; then
8623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
859789af 8624else
c6b750e1
DJ
8625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626for as_dir in $PATH
8627do
8628 IFS=$as_save_IFS
8629 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8630 for ac_exec_ext in '' $ac_executable_extensions; do
8631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8632 ac_cv_prog_RANLIB="${ncn_progname}"
81ecdfbb 8633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8634 break 2
8635 fi
8636done
81ecdfbb
RW
8637 done
8638IFS=$as_save_IFS
c6b750e1 8639
859789af
AC
8640fi
8641fi
c6b750e1 8642RANLIB=$ac_cv_prog_RANLIB
05cbd757 8643if test -n "$RANLIB"; then
81ecdfbb
RW
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8645$as_echo "$RANLIB" >&6; }
859789af 8646else
81ecdfbb
RW
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8648$as_echo "no" >&6; }
859789af 8649fi
c6b750e1 8650
81ecdfbb 8651
859789af 8652 fi
05cbd757
PB
8653 test -n "$ac_cv_prog_RANLIB" && break
8654done
8655
8656if test -z "$ac_cv_prog_RANLIB" ; then
ba98da75 8657 RANLIB="true"
859789af
AC
8658fi
8659
9a819804
AO
8660
8661
8662if test -n "$STRIP"; then
8663 ac_cv_prog_STRIP=$STRIP
8664elif test -n "$ac_cv_prog_STRIP"; then
8665 STRIP=$ac_cv_prog_STRIP
8666fi
8667
8668if test -n "$ac_cv_prog_STRIP"; then
8669 for ncn_progname in strip; do
8670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8671set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673$as_echo_n "checking for $ac_word... " >&6; }
8674if test "${ac_cv_prog_STRIP+set}" = set; then :
8675 $as_echo_n "(cached) " >&6
9a819804
AO
8676else
8677 if test -n "$STRIP"; then
8678 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8679else
8680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681for as_dir in $PATH
8682do
8683 IFS=$as_save_IFS
8684 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8687 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8689 break 2
8690 fi
8691done
81ecdfbb
RW
8692 done
8693IFS=$as_save_IFS
9a819804
AO
8694
8695fi
8696fi
8697STRIP=$ac_cv_prog_STRIP
8698if test -n "$STRIP"; then
81ecdfbb
RW
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8700$as_echo "$STRIP" >&6; }
9a819804 8701else
81ecdfbb
RW
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8703$as_echo "no" >&6; }
9a819804
AO
8704fi
8705
81ecdfbb 8706
9a819804
AO
8707 done
8708fi
8709
8710for ncn_progname in strip; do
be01d343
PB
8711 if test -n "$ncn_tool_prefix"; then
8712 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8713set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715$as_echo_n "checking for $ac_word... " >&6; }
8716if test "${ac_cv_prog_STRIP+set}" = set; then :
8717 $as_echo_n "(cached) " >&6
be01d343
PB
8718else
8719 if test -n "$STRIP"; then
8720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8721else
c6b750e1
DJ
8722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723for as_dir in $PATH
8724do
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8729 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8731 break 2
8732 fi
8733done
81ecdfbb
RW
8734 done
8735IFS=$as_save_IFS
c6b750e1 8736
be01d343
PB
8737fi
8738fi
c6b750e1 8739STRIP=$ac_cv_prog_STRIP
be01d343 8740if test -n "$STRIP"; then
81ecdfbb
RW
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8742$as_echo "$STRIP" >&6; }
be01d343 8743else
81ecdfbb
RW
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745$as_echo "no" >&6; }
be01d343
PB
8746fi
8747
81ecdfbb 8748
be01d343
PB
8749 fi
8750 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
8751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8752set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8754$as_echo_n "checking for $ac_word... " >&6; }
8755if test "${ac_cv_prog_STRIP+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
be01d343
PB
8757else
8758 if test -n "$STRIP"; then
8759 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8760else
c6b750e1
DJ
8761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8762for as_dir in $PATH
8763do
8764 IFS=$as_save_IFS
8765 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8766 for ac_exec_ext in '' $ac_executable_extensions; do
8767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8768 ac_cv_prog_STRIP="${ncn_progname}"
81ecdfbb 8769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8770 break 2
8771 fi
8772done
81ecdfbb
RW
8773 done
8774IFS=$as_save_IFS
c6b750e1 8775
be01d343
PB
8776fi
8777fi
c6b750e1 8778STRIP=$ac_cv_prog_STRIP
be01d343 8779if test -n "$STRIP"; then
81ecdfbb
RW
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8781$as_echo "$STRIP" >&6; }
be01d343 8782else
81ecdfbb
RW
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8784$as_echo "no" >&6; }
be01d343 8785fi
c6b750e1 8786
81ecdfbb 8787
be01d343
PB
8788 fi
8789 test -n "$ac_cv_prog_STRIP" && break
8790done
8791
8792if test -z "$ac_cv_prog_STRIP" ; then
ba98da75 8793 STRIP="true"
be01d343
PB
8794fi
8795
9a819804
AO
8796
8797
8798if test -n "$WINDRES"; then
8799 ac_cv_prog_WINDRES=$WINDRES
8800elif test -n "$ac_cv_prog_WINDRES"; then
8801 WINDRES=$ac_cv_prog_WINDRES
8802fi
8803
8804if test -n "$ac_cv_prog_WINDRES"; then
8805 for ncn_progname in windres; do
8806 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8807set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809$as_echo_n "checking for $ac_word... " >&6; }
8810if test "${ac_cv_prog_WINDRES+set}" = set; then :
8811 $as_echo_n "(cached) " >&6
9a819804
AO
8812else
8813 if test -n "$WINDRES"; then
8814 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8815else
8816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817for as_dir in $PATH
8818do
8819 IFS=$as_save_IFS
8820 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 8823 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
8825 break 2
8826 fi
8827done
81ecdfbb
RW
8828 done
8829IFS=$as_save_IFS
9a819804
AO
8830
8831fi
8832fi
8833WINDRES=$ac_cv_prog_WINDRES
8834if test -n "$WINDRES"; then
81ecdfbb
RW
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8836$as_echo "$WINDRES" >&6; }
9a819804 8837else
81ecdfbb
RW
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839$as_echo "no" >&6; }
9a819804
AO
8840fi
8841
81ecdfbb 8842
9a819804
AO
8843 done
8844fi
8845
8846for ncn_progname in windres; do
05cbd757
PB
8847 if test -n "$ncn_tool_prefix"; then
8848 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8849set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8851$as_echo_n "checking for $ac_word... " >&6; }
8852if test "${ac_cv_prog_WINDRES+set}" = set; then :
8853 $as_echo_n "(cached) " >&6
859789af
AC
8854else
8855 if test -n "$WINDRES"; then
8856 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
8857else
c6b750e1
DJ
8858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8859for as_dir in $PATH
8860do
8861 IFS=$as_save_IFS
8862 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8863 for ac_exec_ext in '' $ac_executable_extensions; do
8864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8865 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 8866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8867 break 2
8868 fi
8869done
81ecdfbb
RW
8870 done
8871IFS=$as_save_IFS
c6b750e1 8872
859789af
AC
8873fi
8874fi
c6b750e1 8875WINDRES=$ac_cv_prog_WINDRES
859789af 8876if test -n "$WINDRES"; then
81ecdfbb
RW
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8878$as_echo "$WINDRES" >&6; }
859789af 8879else
81ecdfbb
RW
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881$as_echo "no" >&6; }
859789af
AC
8882fi
8883
81ecdfbb 8884
05cbd757
PB
8885 fi
8886 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
8887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8888set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8890$as_echo_n "checking for $ac_word... " >&6; }
8891if test "${ac_cv_prog_WINDRES+set}" = set; then :
8892 $as_echo_n "(cached) " >&6
859789af 8893else
05cbd757
PB
8894 if test -n "$WINDRES"; then
8895 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
859789af 8896else
c6b750e1
DJ
8897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8898for as_dir in $PATH
8899do
8900 IFS=$as_save_IFS
8901 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8902 for ac_exec_ext in '' $ac_executable_extensions; do
8903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 8904 ac_cv_prog_WINDRES="${ncn_progname}"
81ecdfbb 8905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
8906 break 2
8907 fi
8908done
81ecdfbb
RW
8909 done
8910IFS=$as_save_IFS
c6b750e1 8911
859789af
AC
8912fi
8913fi
c6b750e1 8914WINDRES=$ac_cv_prog_WINDRES
05cbd757 8915if test -n "$WINDRES"; then
81ecdfbb
RW
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
8917$as_echo "$WINDRES" >&6; }
859789af 8918else
81ecdfbb
RW
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920$as_echo "no" >&6; }
859789af 8921fi
c6b750e1 8922
81ecdfbb 8923
05cbd757
PB
8924 fi
8925 test -n "$ac_cv_prog_WINDRES" && break
8926done
8927
8928if test -z "$ac_cv_prog_WINDRES" ; then
8929 set dummy windres
8930 if test $build = $host ; then
8931 WINDRES="$2"
859789af 8932 else
05cbd757 8933 WINDRES="${ncn_tool_prefix}$2"
859789af 8934 fi
859789af
AC
8935fi
8936
9a819804
AO
8937
8938
0c24b341
NC
8939if test -n "$WINDMC"; then
8940 ac_cv_prog_WINDMC=$WINDMC
8941elif test -n "$ac_cv_prog_WINDMC"; then
8942 WINDMC=$ac_cv_prog_WINDMC
8943fi
8944
8945if test -n "$ac_cv_prog_WINDMC"; then
8946 for ncn_progname in windmc; do
8947 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
8948set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8950$as_echo_n "checking for $ac_word... " >&6; }
8951if test "${ac_cv_prog_WINDMC+set}" = set; then :
8952 $as_echo_n "(cached) " >&6
0c24b341
NC
8953else
8954 if test -n "$WINDMC"; then
8955 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8956else
8957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8958for as_dir in $PATH
8959do
8960 IFS=$as_save_IFS
8961 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
8962 for ac_exec_ext in '' $ac_executable_extensions; do
8963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 8964 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 8965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
8966 break 2
8967 fi
8968done
81ecdfbb
RW
8969 done
8970IFS=$as_save_IFS
0c24b341
NC
8971
8972fi
8973fi
8974WINDMC=$ac_cv_prog_WINDMC
8975if test -n "$WINDMC"; then
81ecdfbb
RW
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
8977$as_echo "$WINDMC" >&6; }
0c24b341 8978else
81ecdfbb
RW
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980$as_echo "no" >&6; }
0c24b341
NC
8981fi
8982
81ecdfbb 8983
0c24b341
NC
8984 done
8985fi
8986
8987for ncn_progname in windmc; do
8988 if test -n "$ncn_tool_prefix"; then
8989 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
8990set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
8991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8992$as_echo_n "checking for $ac_word... " >&6; }
8993if test "${ac_cv_prog_WINDMC+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
0c24b341
NC
8995else
8996 if test -n "$WINDMC"; then
8997 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
8998else
8999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000for as_dir in $PATH
9001do
9002 IFS=$as_save_IFS
9003 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9004 for ac_exec_ext in '' $ac_executable_extensions; do
9005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9006 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9008 break 2
9009 fi
9010done
81ecdfbb
RW
9011 done
9012IFS=$as_save_IFS
0c24b341
NC
9013
9014fi
9015fi
9016WINDMC=$ac_cv_prog_WINDMC
9017if test -n "$WINDMC"; then
81ecdfbb
RW
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9019$as_echo "$WINDMC" >&6; }
0c24b341 9020else
81ecdfbb
RW
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9022$as_echo "no" >&6; }
0c24b341
NC
9023fi
9024
81ecdfbb 9025
0c24b341
NC
9026 fi
9027 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
9028 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9029set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9031$as_echo_n "checking for $ac_word... " >&6; }
9032if test "${ac_cv_prog_WINDMC+set}" = set; then :
9033 $as_echo_n "(cached) " >&6
0c24b341
NC
9034else
9035 if test -n "$WINDMC"; then
9036 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
9037else
9038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9039for as_dir in $PATH
9040do
9041 IFS=$as_save_IFS
9042 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9043 for ac_exec_ext in '' $ac_executable_extensions; do
9044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 9045 ac_cv_prog_WINDMC="${ncn_progname}"
81ecdfbb 9046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
9047 break 2
9048 fi
9049done
81ecdfbb
RW
9050 done
9051IFS=$as_save_IFS
0c24b341
NC
9052
9053fi
9054fi
9055WINDMC=$ac_cv_prog_WINDMC
9056if test -n "$WINDMC"; then
81ecdfbb
RW
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
9058$as_echo "$WINDMC" >&6; }
0c24b341 9059else
81ecdfbb
RW
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9061$as_echo "no" >&6; }
0c24b341
NC
9062fi
9063
81ecdfbb 9064
0c24b341
NC
9065 fi
9066 test -n "$ac_cv_prog_WINDMC" && break
9067done
9068
9069if test -z "$ac_cv_prog_WINDMC" ; then
9070 set dummy windmc
9071 if test $build = $host ; then
9072 WINDMC="$2"
9073 else
9074 WINDMC="${ncn_tool_prefix}$2"
9075 fi
9076fi
9077
9078
9079
9a819804
AO
9080if test -n "$OBJCOPY"; then
9081 ac_cv_prog_OBJCOPY=$OBJCOPY
9082elif test -n "$ac_cv_prog_OBJCOPY"; then
9083 OBJCOPY=$ac_cv_prog_OBJCOPY
9084fi
9085
9086if test -n "$ac_cv_prog_OBJCOPY"; then
9087 for ncn_progname in objcopy; do
9088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9089set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091$as_echo_n "checking for $ac_word... " >&6; }
9092if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9093 $as_echo_n "(cached) " >&6
9a819804
AO
9094else
9095 if test -n "$OBJCOPY"; then
9096 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9097else
9098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099for as_dir in $PATH
9100do
9101 IFS=$as_save_IFS
9102 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9103 for ac_exec_ext in '' $ac_executable_extensions; do
9104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9105 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9107 break 2
9108 fi
9109done
81ecdfbb
RW
9110 done
9111IFS=$as_save_IFS
9a819804
AO
9112
9113fi
9114fi
9115OBJCOPY=$ac_cv_prog_OBJCOPY
9116if test -n "$OBJCOPY"; then
81ecdfbb
RW
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9118$as_echo "$OBJCOPY" >&6; }
9a819804 9119else
81ecdfbb
RW
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121$as_echo "no" >&6; }
9a819804
AO
9122fi
9123
81ecdfbb 9124
9a819804
AO
9125 done
9126fi
9127
9128for ncn_progname in objcopy; do
05cbd757
PB
9129 if test -n "$ncn_tool_prefix"; then
9130 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9131set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133$as_echo_n "checking for $ac_word... " >&6; }
9134if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
859789af
AC
9136else
9137 if test -n "$OBJCOPY"; then
9138 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
9139else
c6b750e1
DJ
9140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141for as_dir in $PATH
9142do
9143 IFS=$as_save_IFS
9144 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9145 for ac_exec_ext in '' $ac_executable_extensions; do
9146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9147 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9149 break 2
9150 fi
9151done
81ecdfbb
RW
9152 done
9153IFS=$as_save_IFS
c6b750e1 9154
859789af
AC
9155fi
9156fi
c6b750e1 9157OBJCOPY=$ac_cv_prog_OBJCOPY
859789af 9158if test -n "$OBJCOPY"; then
81ecdfbb
RW
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9160$as_echo "$OBJCOPY" >&6; }
859789af 9161else
81ecdfbb
RW
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163$as_echo "no" >&6; }
859789af
AC
9164fi
9165
81ecdfbb 9166
05cbd757
PB
9167 fi
9168 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
9169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9170set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9172$as_echo_n "checking for $ac_word... " >&6; }
9173if test "${ac_cv_prog_OBJCOPY+set}" = set; then :
9174 $as_echo_n "(cached) " >&6
859789af 9175else
05cbd757
PB
9176 if test -n "$OBJCOPY"; then
9177 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
859789af 9178else
c6b750e1
DJ
9179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9180for as_dir in $PATH
9181do
9182 IFS=$as_save_IFS
9183 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9184 for ac_exec_ext in '' $ac_executable_extensions; do
9185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9186 ac_cv_prog_OBJCOPY="${ncn_progname}"
81ecdfbb 9187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9188 break 2
9189 fi
9190done
81ecdfbb
RW
9191 done
9192IFS=$as_save_IFS
c6b750e1 9193
859789af
AC
9194fi
9195fi
c6b750e1 9196OBJCOPY=$ac_cv_prog_OBJCOPY
05cbd757 9197if test -n "$OBJCOPY"; then
81ecdfbb
RW
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
9199$as_echo "$OBJCOPY" >&6; }
859789af 9200else
81ecdfbb
RW
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202$as_echo "no" >&6; }
859789af 9203fi
c6b750e1 9204
81ecdfbb 9205
05cbd757
PB
9206 fi
9207 test -n "$ac_cv_prog_OBJCOPY" && break
9208done
9209
9210if test -z "$ac_cv_prog_OBJCOPY" ; then
9211 set dummy objcopy
9212 if test $build = $host ; then
9213 OBJCOPY="$2"
859789af 9214 else
05cbd757 9215 OBJCOPY="${ncn_tool_prefix}$2"
859789af 9216 fi
859789af
AC
9217fi
9218
9a819804
AO
9219
9220
9221if test -n "$OBJDUMP"; then
9222 ac_cv_prog_OBJDUMP=$OBJDUMP
9223elif test -n "$ac_cv_prog_OBJDUMP"; then
9224 OBJDUMP=$ac_cv_prog_OBJDUMP
9225fi
9226
9227if test -n "$ac_cv_prog_OBJDUMP"; then
9228 for ncn_progname in objdump; do
9229 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9230set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9232$as_echo_n "checking for $ac_word... " >&6; }
9233if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9234 $as_echo_n "(cached) " >&6
9a819804
AO
9235else
9236 if test -n "$OBJDUMP"; then
9237 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9238else
9239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240for as_dir in $PATH
9241do
9242 IFS=$as_save_IFS
9243 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9246 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9248 break 2
9249 fi
9250done
81ecdfbb
RW
9251 done
9252IFS=$as_save_IFS
9a819804
AO
9253
9254fi
9255fi
9256OBJDUMP=$ac_cv_prog_OBJDUMP
9257if test -n "$OBJDUMP"; then
81ecdfbb
RW
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9259$as_echo "$OBJDUMP" >&6; }
9a819804 9260else
81ecdfbb
RW
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9262$as_echo "no" >&6; }
9a819804
AO
9263fi
9264
81ecdfbb 9265
9a819804
AO
9266 done
9267fi
9268
9269for ncn_progname in objdump; do
05cbd757
PB
9270 if test -n "$ncn_tool_prefix"; then
9271 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
9272set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9274$as_echo_n "checking for $ac_word... " >&6; }
9275if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9276 $as_echo_n "(cached) " >&6
859789af
AC
9277else
9278 if test -n "$OBJDUMP"; then
9279 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9280else
c6b750e1
DJ
9281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282for as_dir in $PATH
9283do
9284 IFS=$as_save_IFS
9285 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9288 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
81ecdfbb 9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9290 break 2
9291 fi
9292done
81ecdfbb
RW
9293 done
9294IFS=$as_save_IFS
c6b750e1 9295
859789af
AC
9296fi
9297fi
c6b750e1 9298OBJDUMP=$ac_cv_prog_OBJDUMP
859789af 9299if test -n "$OBJDUMP"; then
81ecdfbb
RW
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9301$as_echo "$OBJDUMP" >&6; }
859789af 9302else
81ecdfbb
RW
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9304$as_echo "no" >&6; }
859789af
AC
9305fi
9306
81ecdfbb 9307
05cbd757
PB
9308 fi
9309 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
9310 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9311set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9313$as_echo_n "checking for $ac_word... " >&6; }
9314if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9315 $as_echo_n "(cached) " >&6
859789af 9316else
05cbd757
PB
9317 if test -n "$OBJDUMP"; then
9318 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
859789af 9319else
c6b750e1
DJ
9320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9321for as_dir in $PATH
9322do
9323 IFS=$as_save_IFS
9324 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9325 for ac_exec_ext in '' $ac_executable_extensions; do
9326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9327 ac_cv_prog_OBJDUMP="${ncn_progname}"
81ecdfbb 9328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9329 break 2
9330 fi
9331done
81ecdfbb
RW
9332 done
9333IFS=$as_save_IFS
c6b750e1 9334
859789af
AC
9335fi
9336fi
c6b750e1 9337OBJDUMP=$ac_cv_prog_OBJDUMP
05cbd757 9338if test -n "$OBJDUMP"; then
81ecdfbb
RW
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9340$as_echo "$OBJDUMP" >&6; }
859789af 9341else
81ecdfbb
RW
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9343$as_echo "no" >&6; }
859789af 9344fi
c6b750e1 9345
81ecdfbb 9346
05cbd757
PB
9347 fi
9348 test -n "$ac_cv_prog_OBJDUMP" && break
9349done
9350
9351if test -z "$ac_cv_prog_OBJDUMP" ; then
9352 set dummy objdump
9353 if test $build = $host ; then
9354 OBJDUMP="$2"
859789af 9355 else
05cbd757 9356 OBJDUMP="${ncn_tool_prefix}$2"
859789af 9357 fi
859789af
AC
9358fi
9359
a0da8069
NN
9360
9361
9362
9363
9364
be01d343 9365# Target tools.
c6b750e1 9366
81ecdfbb
RW
9367# Check whether --with-build-time-tools was given.
9368if test "${with_build_time_tools+set}" = set; then :
9369 withval=$with_build_time_tools; case x"$withval" in
2429c060
PB
9370 x/*) ;;
9371 *)
9372 with_build_time_tools=
81ecdfbb
RW
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
9374$as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
2429c060
PB
9375 ;;
9376 esac
859789af 9377else
2429c060 9378 with_build_time_tools=
81ecdfbb
RW
9379fi
9380
859789af 9381
9a819804
AO
9382
9383
9384if test -n "$CC_FOR_TARGET"; then
9385 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
9386elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9387 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9388fi
9389
9390if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
9391 for ncn_progname in cc gcc; do
9392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9393set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395$as_echo_n "checking for $ac_word... " >&6; }
9396if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
9a819804
AO
9398else
9399 if test -n "$CC_FOR_TARGET"; then
9400 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9401else
9402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403for as_dir in $PATH
9404do
9405 IFS=$as_save_IFS
9406 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9407 for ac_exec_ext in '' $ac_executable_extensions; do
9408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9409 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9411 break 2
9412 fi
9413done
81ecdfbb
RW
9414 done
9415IFS=$as_save_IFS
9a819804
AO
9416
9417fi
9418fi
9419CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
9420if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9422$as_echo "$CC_FOR_TARGET" >&6; }
9a819804 9423else
81ecdfbb
RW
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425$as_echo "no" >&6; }
9a819804
AO
9426fi
9427
81ecdfbb 9428
9a819804
AO
9429 done
9430fi
9431
9432if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9433 for ncn_progname in cc gcc; do
81ecdfbb
RW
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9435$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9436 if test -x $with_build_time_tools/${ncn_progname}; then
9437 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9439$as_echo "yes" >&6; }
cac3d6c4 9440 break
2429c060 9441 else
81ecdfbb
RW
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443$as_echo "no" >&6; }
cac3d6c4
CM
9444 fi
9445 done
55db4b87
PB
9446fi
9447
2429c060
PB
9448if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
9449 for ncn_progname in cc gcc; do
9450 if test -n "$ncn_target_tool_prefix"; then
9451 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9452set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9454$as_echo_n "checking for $ac_word... " >&6; }
9455if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9456 $as_echo_n "(cached) " >&6
55db4b87
PB
9457else
9458 if test -n "$CC_FOR_TARGET"; then
9459 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
9460else
c6b750e1
DJ
9461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9462for as_dir in $PATH
9463do
9464 IFS=$as_save_IFS
9465 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9466 for ac_exec_ext in '' $ac_executable_extensions; do
9467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9468 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9470 break 2
9471 fi
9472done
81ecdfbb
RW
9473 done
9474IFS=$as_save_IFS
c6b750e1 9475
55db4b87
PB
9476fi
9477fi
c6b750e1 9478CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
55db4b87 9479if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9481$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9482else
81ecdfbb
RW
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9484$as_echo "no" >&6; }
55db4b87
PB
9485fi
9486
81ecdfbb 9487
2429c060
PB
9488 fi
9489 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
9490 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9491set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9493$as_echo_n "checking for $ac_word... " >&6; }
9494if test "${ac_cv_prog_CC_FOR_TARGET+set}" = set; then :
9495 $as_echo_n "(cached) " >&6
55db4b87 9496else
05cbd757
PB
9497 if test -n "$CC_FOR_TARGET"; then
9498 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
55db4b87 9499else
c6b750e1
DJ
9500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501for as_dir in $PATH
9502do
9503 IFS=$as_save_IFS
9504 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9507 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9509 break 2
9510 fi
9511done
81ecdfbb
RW
9512 done
9513IFS=$as_save_IFS
c6b750e1 9514
55db4b87
PB
9515fi
9516fi
c6b750e1 9517CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
05cbd757 9518if test -n "$CC_FOR_TARGET"; then
81ecdfbb
RW
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
9520$as_echo "$CC_FOR_TARGET" >&6; }
55db4b87 9521else
81ecdfbb
RW
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9523$as_echo "no" >&6; }
55db4b87 9524fi
c6b750e1 9525
81ecdfbb 9526
2429c060
PB
9527 fi
9528 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
9529 done
9530fi
c6b750e1 9531
05cbd757
PB
9532if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
9533 set dummy cc gcc
9534 if test $build = $target ; then
9535 CC_FOR_TARGET="$2"
55db4b87 9536 else
05cbd757 9537 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9538 fi
d3f5afc4
MS
9539else
9540 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
55db4b87
PB
9541fi
9542
9a819804
AO
9543
9544
9545if test -n "$CXX_FOR_TARGET"; then
9546 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
9547elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9548 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9549fi
9550
9551if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
9552 for ncn_progname in c++ g++ cxx gxx; do
9553 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9554set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9556$as_echo_n "checking for $ac_word... " >&6; }
9557if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9558 $as_echo_n "(cached) " >&6
9a819804
AO
9559else
9560 if test -n "$CXX_FOR_TARGET"; then
9561 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
9562else
9563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564for as_dir in $PATH
9565do
9566 IFS=$as_save_IFS
9567 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9568 for ac_exec_ext in '' $ac_executable_extensions; do
9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9570 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9572 break 2
9573 fi
9574done
81ecdfbb
RW
9575 done
9576IFS=$as_save_IFS
9a819804
AO
9577
9578fi
9579fi
9580CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
9581if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9583$as_echo "$CXX_FOR_TARGET" >&6; }
9a819804 9584else
81ecdfbb
RW
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586$as_echo "no" >&6; }
9a819804
AO
9587fi
9588
81ecdfbb 9589
9a819804
AO
9590 done
9591fi
9592
9593if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9594 for ncn_progname in c++ g++ cxx gxx; do
81ecdfbb
RW
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9596$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9597 if test -x $with_build_time_tools/${ncn_progname}; then
9598 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9600$as_echo "yes" >&6; }
2429c060
PB
9601 break
9602 else
81ecdfbb
RW
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604$as_echo "no" >&6; }
2429c060
PB
9605 fi
9606 done
9607fi
9608
9609if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
9610 for ncn_progname in c++ g++ cxx gxx; do
9611 if test -n "$ncn_target_tool_prefix"; then
9612 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9613set dummy ${ncn_target_tool_prefix}${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_CXX_FOR_TARGET+set}" = set; then :
9617 $as_echo_n "(cached) " >&6
55db4b87
PB
9618else
9619 if test -n "$CXX_FOR_TARGET"; then
9620 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
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_CXX_FOR_TARGET="${ncn_target_tool_prefix}${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
55db4b87
PB
9637fi
9638fi
c6b750e1 9639CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
55db4b87 9640if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9642$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9643else
81ecdfbb
RW
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645$as_echo "no" >&6; }
55db4b87
PB
9646fi
9647
81ecdfbb 9648
2429c060
PB
9649 fi
9650 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
9651 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9652set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9654$as_echo_n "checking for $ac_word... " >&6; }
9655if test "${ac_cv_prog_CXX_FOR_TARGET+set}" = set; then :
9656 $as_echo_n "(cached) " >&6
55db4b87 9657else
05cbd757
PB
9658 if test -n "$CXX_FOR_TARGET"; then
9659 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
55db4b87 9660else
c6b750e1
DJ
9661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9662for as_dir in $PATH
9663do
9664 IFS=$as_save_IFS
9665 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9666 for ac_exec_ext in '' $ac_executable_extensions; do
9667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9668 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
81ecdfbb 9669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9670 break 2
9671 fi
9672done
81ecdfbb
RW
9673 done
9674IFS=$as_save_IFS
c6b750e1 9675
55db4b87
PB
9676fi
9677fi
c6b750e1 9678CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
05cbd757 9679if test -n "$CXX_FOR_TARGET"; then
81ecdfbb
RW
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
9681$as_echo "$CXX_FOR_TARGET" >&6; }
55db4b87 9682else
81ecdfbb
RW
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9684$as_echo "no" >&6; }
55db4b87 9685fi
c6b750e1 9686
81ecdfbb 9687
2429c060
PB
9688 fi
9689 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
9690 done
9691fi
c6b750e1 9692
05cbd757
PB
9693if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
9694 set dummy c++ g++ cxx gxx
9695 if test $build = $target ; then
9696 CXX_FOR_TARGET="$2"
55db4b87 9697 else
05cbd757 9698 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 9699 fi
d3f5afc4
MS
9700else
9701 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
859789af
AC
9702fi
9703
9a819804
AO
9704
9705
9706if test -n "$GCC_FOR_TARGET"; then
9707 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
9708elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9709 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9710fi
9711
9712if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
9713 for ncn_progname in gcc; do
9714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9715set dummy ${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_GCC_FOR_TARGET+set}" = set; then :
9719 $as_echo_n "(cached) " >&6
9a819804
AO
9720else
9721 if test -n "$GCC_FOR_TARGET"; then
9722 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
9723else
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
9a819804 9731 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9733 break 2
9734 fi
9735done
81ecdfbb
RW
9736 done
9737IFS=$as_save_IFS
9a819804
AO
9738
9739fi
9740fi
9741GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
9742if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9744$as_echo "$GCC_FOR_TARGET" >&6; }
9a819804 9745else
81ecdfbb
RW
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9747$as_echo "no" >&6; }
9a819804
AO
9748fi
9749
81ecdfbb 9750
9a819804
AO
9751 done
9752fi
9753
9754if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9755 for ncn_progname in gcc; do
81ecdfbb
RW
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9757$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9758 if test -x $with_build_time_tools/${ncn_progname}; then
9759 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9761$as_echo "yes" >&6; }
2429c060
PB
9762 break
9763 else
81ecdfbb
RW
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765$as_echo "no" >&6; }
2429c060
PB
9766 fi
9767 done
9768fi
9769
9770if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
9771 for ncn_progname in gcc; do
9772 if test -n "$ncn_target_tool_prefix"; then
9773 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9774set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9776$as_echo_n "checking for $ac_word... " >&6; }
9777if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9778 $as_echo_n "(cached) " >&6
859789af 9779else
2429c060
PB
9780 if test -n "$GCC_FOR_TARGET"; then
9781 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9782else
c6b750e1
DJ
9783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784for as_dir in $PATH
9785do
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9790 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9792 break 2
9793 fi
9794done
81ecdfbb
RW
9795 done
9796IFS=$as_save_IFS
c6b750e1 9797
55db4b87
PB
9798fi
9799fi
c6b750e1 9800GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
55db4b87 9801if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9803$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 9804else
81ecdfbb
RW
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806$as_echo "no" >&6; }
55db4b87
PB
9807fi
9808
81ecdfbb 9809
2429c060
PB
9810 fi
9811 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
9812 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 9813set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9815$as_echo_n "checking for $ac_word... " >&6; }
9816if test "${ac_cv_prog_GCC_FOR_TARGET+set}" = set; then :
9817 $as_echo_n "(cached) " >&6
55db4b87 9818else
05cbd757
PB
9819 if test -n "$GCC_FOR_TARGET"; then
9820 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
55db4b87 9821else
c6b750e1
DJ
9822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9827 for ac_exec_ext in '' $ac_executable_extensions; do
9828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9829 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
81ecdfbb 9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9831 break 2
9832 fi
9833done
81ecdfbb
RW
9834 done
9835IFS=$as_save_IFS
c6b750e1 9836
55db4b87
PB
9837fi
9838fi
c6b750e1 9839GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
05cbd757 9840if test -n "$GCC_FOR_TARGET"; then
81ecdfbb
RW
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
9842$as_echo "$GCC_FOR_TARGET" >&6; }
55db4b87 9843else
81ecdfbb
RW
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845$as_echo "no" >&6; }
55db4b87 9846fi
c6b750e1 9847
81ecdfbb 9848
2429c060
PB
9849 fi
9850 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
9851 done
9852fi
c6b750e1 9853
05cbd757
PB
9854if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
9855 GCC_FOR_TARGET="${CC_FOR_TARGET}"
d3f5afc4
MS
9856else
9857 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
55db4b87
PB
9858fi
9859
9a819804
AO
9860
9861
9862if test -n "$GCJ_FOR_TARGET"; then
9863 ac_cv_prog_GCJ_FOR_TARGET=$GCJ_FOR_TARGET
9864elif test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9865 GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9866fi
9867
9868if test -n "$ac_cv_prog_GCJ_FOR_TARGET"; then
9869 for ncn_progname in gcj; do
9870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9871set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9873$as_echo_n "checking for $ac_word... " >&6; }
9874if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9875 $as_echo_n "(cached) " >&6
9a819804
AO
9876else
9877 if test -n "$GCJ_FOR_TARGET"; then
9878 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9879else
9880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9881for as_dir in $PATH
9882do
9883 IFS=$as_save_IFS
9884 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9885 for ac_exec_ext in '' $ac_executable_extensions; do
9886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9887 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 9888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9889 break 2
9890 fi
9891done
81ecdfbb
RW
9892 done
9893IFS=$as_save_IFS
9a819804
AO
9894
9895fi
9896fi
9897GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9898if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9900$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9901else
81ecdfbb
RW
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9903$as_echo "no" >&6; }
9a819804
AO
9904fi
9905
81ecdfbb 9906
9a819804
AO
9907 done
9908fi
9909
9910if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 9911 for ncn_progname in gcj; do
81ecdfbb
RW
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
9913$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
9914 if test -x $with_build_time_tools/${ncn_progname}; then
9915 ac_cv_prog_GCJ_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9917$as_echo "yes" >&6; }
2429c060
PB
9918 break
9919 else
81ecdfbb
RW
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9921$as_echo "no" >&6; }
2429c060
PB
9922 fi
9923 done
9924fi
9925
9926if test -z "$ac_cv_prog_GCJ_FOR_TARGET"; then
9927 for ncn_progname in gcj; do
9928 if test -n "$ncn_target_tool_prefix"; then
9929 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 9930set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9932$as_echo_n "checking for $ac_word... " >&6; }
9933if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9934 $as_echo_n "(cached) " >&6
55db4b87
PB
9935else
9936 if test -n "$GCJ_FOR_TARGET"; then
9937 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9938else
c6b750e1
DJ
9939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940for as_dir in $PATH
9941do
9942 IFS=$as_save_IFS
9943 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9944 for ac_exec_ext in '' $ac_executable_extensions; do
9945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 9946 ac_cv_prog_GCJ_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
9948 break 2
9949 fi
9950done
81ecdfbb
RW
9951 done
9952IFS=$as_save_IFS
c6b750e1 9953
55db4b87
PB
9954fi
9955fi
9a819804
AO
9956GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9957if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9959$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9960else
81ecdfbb
RW
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962$as_echo "no" >&6; }
9a819804
AO
9963fi
9964
81ecdfbb 9965
9a819804
AO
9966 fi
9967 if test -z "$ac_cv_prog_GCJ_FOR_TARGET" && test $build = $target ; then
9968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
9969set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
9970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971$as_echo_n "checking for $ac_word... " >&6; }
9972if test "${ac_cv_prog_GCJ_FOR_TARGET+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
9a819804
AO
9974else
9975 if test -n "$GCJ_FOR_TARGET"; then
9976 ac_cv_prog_GCJ_FOR_TARGET="$GCJ_FOR_TARGET" # Let the user override the test.
9977else
9978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9979for as_dir in $PATH
9980do
9981 IFS=$as_save_IFS
9982 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
9983 for ac_exec_ext in '' $ac_executable_extensions; do
9984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 9985 ac_cv_prog_GCJ_FOR_TARGET="${ncn_progname}"
81ecdfbb 9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
9987 break 2
9988 fi
9989done
81ecdfbb
RW
9990 done
9991IFS=$as_save_IFS
9a819804
AO
9992
9993fi
9994fi
9995GCJ_FOR_TARGET=$ac_cv_prog_GCJ_FOR_TARGET
9996if test -n "$GCJ_FOR_TARGET"; then
81ecdfbb
RW
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ_FOR_TARGET" >&5
9998$as_echo "$GCJ_FOR_TARGET" >&6; }
9a819804 9999else
81ecdfbb
RW
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001$as_echo "no" >&6; }
9a819804
AO
10002fi
10003
81ecdfbb 10004
9a819804
AO
10005 fi
10006 test -n "$ac_cv_prog_GCJ_FOR_TARGET" && break
10007 done
10008fi
10009
10010if test -z "$ac_cv_prog_GCJ_FOR_TARGET" ; then
10011 set dummy gcj
10012 if test $build = $target ; then
10013 GCJ_FOR_TARGET="$2"
10014 else
10015 GCJ_FOR_TARGET="${ncn_target_tool_prefix}$2"
10016 fi
d3f5afc4
MS
10017else
10018 GCJ_FOR_TARGET="$ac_cv_prog_GCJ_FOR_TARGET"
9a819804
AO
10019fi
10020
10021
10022
10023if test -n "$GFORTRAN_FOR_TARGET"; then
10024 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
10025elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10026 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87
PB
10027fi
10028
9a819804
AO
10029if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10030 for ncn_progname in gfortran; do
10031 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10032set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10034$as_echo_n "checking for $ac_word... " >&6; }
10035if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10036 $as_echo_n "(cached) " >&6
55db4b87 10037else
9a819804
AO
10038 if test -n "$GFORTRAN_FOR_TARGET"; then
10039 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
55db4b87 10040else
c6b750e1
DJ
10041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10042for as_dir in $PATH
10043do
10044 IFS=$as_save_IFS
10045 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10046 for ac_exec_ext in '' $ac_executable_extensions; do
10047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10048 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10050 break 2
10051 fi
10052done
81ecdfbb
RW
10053 done
10054IFS=$as_save_IFS
c6b750e1 10055
55db4b87
PB
10056fi
10057fi
9a819804
AO
10058GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
10059if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10061$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10062else
81ecdfbb
RW
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10064$as_echo "no" >&6; }
55db4b87 10065fi
c6b750e1 10066
81ecdfbb 10067
2429c060
PB
10068 done
10069fi
c6b750e1 10070
9a819804 10071if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10072 for ncn_progname in gfortran; do
81ecdfbb
RW
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10074$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10075 if test -x $with_build_time_tools/${ncn_progname}; then
10076 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10078$as_echo "yes" >&6; }
2429c060
PB
10079 break
10080 else
81ecdfbb
RW
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10082$as_echo "no" >&6; }
2429c060
PB
10083 fi
10084 done
10085fi
10086
10087if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
10088 for ncn_progname in gfortran; do
10089 if test -n "$ncn_target_tool_prefix"; then
10090 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10091set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10093$as_echo_n "checking for $ac_word... " >&6; }
10094if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10095 $as_echo_n "(cached) " >&6
55db4b87
PB
10096else
10097 if test -n "$GFORTRAN_FOR_TARGET"; then
10098 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10099else
c6b750e1
DJ
10100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10101for as_dir in $PATH
10102do
10103 IFS=$as_save_IFS
10104 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10105 for ac_exec_ext in '' $ac_executable_extensions; do
10106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10107 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10109 break 2
10110 fi
10111done
81ecdfbb
RW
10112 done
10113IFS=$as_save_IFS
c6b750e1 10114
55db4b87
PB
10115fi
10116fi
c6b750e1 10117GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
55db4b87 10118if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10120$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10121else
81ecdfbb
RW
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10123$as_echo "no" >&6; }
55db4b87
PB
10124fi
10125
81ecdfbb 10126
2429c060
PB
10127 fi
10128 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
10129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 10130set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10132$as_echo_n "checking for $ac_word... " >&6; }
10133if test "${ac_cv_prog_GFORTRAN_FOR_TARGET+set}" = set; then :
10134 $as_echo_n "(cached) " >&6
55db4b87 10135else
05cbd757 10136 if test -n "$GFORTRAN_FOR_TARGET"; then
c6b750e1
DJ
10137 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
10138else
10139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140for as_dir in $PATH
10141do
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10144 for ac_exec_ext in '' $ac_executable_extensions; do
10145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10146 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
81ecdfbb 10147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10148 break 2
10149 fi
10150done
81ecdfbb
RW
10151 done
10152IFS=$as_save_IFS
c6b750e1 10153
55db4b87
PB
10154fi
10155fi
c6b750e1 10156GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
05cbd757 10157if test -n "$GFORTRAN_FOR_TARGET"; then
81ecdfbb
RW
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
10159$as_echo "$GFORTRAN_FOR_TARGET" >&6; }
55db4b87 10160else
81ecdfbb
RW
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10162$as_echo "no" >&6; }
55db4b87 10163fi
c6b750e1 10164
81ecdfbb 10165
2429c060
PB
10166 fi
10167 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
10168 done
10169fi
c6b750e1 10170
05cbd757
PB
10171if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
10172 set dummy gfortran
10173 if test $build = $target ; then
10174 GFORTRAN_FOR_TARGET="$2"
55db4b87 10175 else
05cbd757 10176 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
55db4b87 10177 fi
d3f5afc4
MS
10178else
10179 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
859789af
AC
10180fi
10181
2429c060
PB
10182
10183
2429c060
PB
10184cat > conftest.c << \EOF
10185#ifdef __GNUC__
10186 gcc_yay;
10187#endif
10188EOF
10189if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
10190 have_gcc_for_target=yes
859789af 10191else
2429c060
PB
10192 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
10193 have_gcc_for_target=no
859789af 10194fi
2429c060
PB
10195rm conftest.c
10196
10197
10198
859789af 10199
2429c060
PB
10200if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
10201 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
10203$as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10204 if test -x $with_build_time_tools/ar; then
10205 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
10206 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
81ecdfbb
RW
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
10208$as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
3a35eeb3 10209 else
81ecdfbb
RW
10210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10211$as_echo "no" >&6; }
3a35eeb3 10212 fi
2429c060
PB
10213 elif test $build != $host && test $have_gcc_for_target = yes; then
10214 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
d3f5afc4
MS
10215 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
10216 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
05cbd757 10217 fi
2429c060 10218fi
c6b750e1 10219if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10220 # Extract the first word of "ar", so it can be a program name with args.
10221set dummy ar; ac_word=$2
81ecdfbb
RW
10222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223$as_echo_n "checking for $ac_word... " >&6; }
10224if test "${ac_cv_path_AR_FOR_TARGET+set}" = set; then :
10225 $as_echo_n "(cached) " >&6
859789af 10226else
c6b750e1
DJ
10227 case $AR_FOR_TARGET in
10228 [\\/]* | ?:[\\/]*)
2429c060
PB
10229 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
10230 ;;
2429c060 10231 *)
c6b750e1
DJ
10232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233for as_dir in $gcc_cv_tool_dirs
10234do
10235 IFS=$as_save_IFS
10236 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10237 for ac_exec_ext in '' $ac_executable_extensions; do
10238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10239 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10241 break 2
10242 fi
10243done
81ecdfbb
RW
10244 done
10245IFS=$as_save_IFS
c6b750e1 10246
2429c060
PB
10247 ;;
10248esac
859789af 10249fi
c6b750e1 10250AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060 10251if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10253$as_echo "$AR_FOR_TARGET" >&6; }
859789af 10254else
81ecdfbb
RW
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10256$as_echo "no" >&6; }
859789af 10257fi
05cbd757 10258
81ecdfbb 10259
2429c060
PB
10260fi
10261if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
9a819804
AO
10262
10263
10264if test -n "$AR_FOR_TARGET"; then
10265 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
10266elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10267 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10268fi
10269
10270if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
10271 for ncn_progname in ar; do
10272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10273set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10275$as_echo_n "checking for $ac_word... " >&6; }
10276if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10277 $as_echo_n "(cached) " >&6
9a819804
AO
10278else
10279 if test -n "$AR_FOR_TARGET"; then
10280 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
10281else
10282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10283for as_dir in $PATH
10284do
10285 IFS=$as_save_IFS
10286 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10287 for ac_exec_ext in '' $ac_executable_extensions; do
10288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10289 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10291 break 2
10292 fi
10293done
81ecdfbb
RW
10294 done
10295IFS=$as_save_IFS
9a819804
AO
10296
10297fi
10298fi
10299AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
10300if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10302$as_echo "$AR_FOR_TARGET" >&6; }
9a819804 10303else
81ecdfbb
RW
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10305$as_echo "no" >&6; }
9a819804
AO
10306fi
10307
81ecdfbb 10308
9a819804
AO
10309 done
10310fi
10311
10312if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10313 for ncn_progname in ar; do
81ecdfbb
RW
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10315$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10316 if test -x $with_build_time_tools/${ncn_progname}; then
10317 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10319$as_echo "yes" >&6; }
2429c060
PB
10320 break
10321 else
81ecdfbb
RW
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10323$as_echo "no" >&6; }
2429c060
PB
10324 fi
10325 done
859789af
AC
10326fi
10327
2429c060
PB
10328if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
10329 for ncn_progname in ar; do
10330 if test -n "$ncn_target_tool_prefix"; then
10331 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 10332set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10334$as_echo_n "checking for $ac_word... " >&6; }
10335if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10336 $as_echo_n "(cached) " >&6
7e0f7140 10337else
2429c060
PB
10338 if test -n "$AR_FOR_TARGET"; then
10339 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
7e0f7140 10340else
c6b750e1
DJ
10341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10342for as_dir in $PATH
10343do
10344 IFS=$as_save_IFS
10345 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10346 for ac_exec_ext in '' $ac_executable_extensions; do
10347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10348 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10350 break 2
10351 fi
10352done
81ecdfbb
RW
10353 done
10354IFS=$as_save_IFS
c6b750e1 10355
7e0f7140
GK
10356fi
10357fi
c6b750e1 10358AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10359if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10361$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10362else
81ecdfbb
RW
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10364$as_echo "no" >&6; }
7e0f7140
GK
10365fi
10366
81ecdfbb 10367
2429c060
PB
10368 fi
10369 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
10370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 10371set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10373$as_echo_n "checking for $ac_word... " >&6; }
10374if test "${ac_cv_prog_AR_FOR_TARGET+set}" = set; then :
10375 $as_echo_n "(cached) " >&6
7e0f7140 10376else
2429c060
PB
10377 if test -n "$AR_FOR_TARGET"; then
10378 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
cac3d6c4 10379else
c6b750e1
DJ
10380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381for as_dir in $PATH
10382do
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10387 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
81ecdfbb 10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10389 break 2
10390 fi
10391done
81ecdfbb
RW
10392 done
10393IFS=$as_save_IFS
c6b750e1 10394
7e0f7140
GK
10395fi
10396fi
c6b750e1 10397AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
2429c060 10398if test -n "$AR_FOR_TARGET"; then
81ecdfbb
RW
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
10400$as_echo "$AR_FOR_TARGET" >&6; }
7e0f7140 10401else
81ecdfbb
RW
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10403$as_echo "no" >&6; }
7e0f7140 10404fi
c6b750e1 10405
81ecdfbb 10406
2429c060
PB
10407 fi
10408 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
10409 done
10410fi
c6b750e1 10411
2429c060
PB
10412if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
10413 set dummy ar
7e0f7140 10414 if test $build = $target ; then
2429c060 10415 AR_FOR_TARGET="$2"
7e0f7140 10416 else
2429c060 10417 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
7e0f7140 10418 fi
d3f5afc4
MS
10419else
10420 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
7e0f7140
GK
10421fi
10422
3a35eeb3
PB
10423else
10424 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
2429c060
PB
10425fi
10426
10427
10428
10429
10430if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
10431 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
10433$as_echo_n "checking for as in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10434 if test -x $with_build_time_tools/as; then
10435 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
10436 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
81ecdfbb
RW
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
10438$as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
3a35eeb3 10439 else
81ecdfbb
RW
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441$as_echo "no" >&6; }
3a35eeb3 10442 fi
2429c060
PB
10443 elif test $build != $host && test $have_gcc_for_target = yes; then
10444 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
d3f5afc4
MS
10445 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
10446 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
2429c060
PB
10447 fi
10448fi
c6b750e1 10449if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10450 # Extract the first word of "as", so it can be a program name with args.
10451set dummy as; ac_word=$2
81ecdfbb
RW
10452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453$as_echo_n "checking for $ac_word... " >&6; }
10454if test "${ac_cv_path_AS_FOR_TARGET+set}" = set; then :
10455 $as_echo_n "(cached) " >&6
2429c060 10456else
c6b750e1
DJ
10457 case $AS_FOR_TARGET in
10458 [\\/]* | ?:[\\/]*)
2429c060
PB
10459 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
10460 ;;
2429c060 10461 *)
c6b750e1
DJ
10462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10463for as_dir in $gcc_cv_tool_dirs
10464do
10465 IFS=$as_save_IFS
10466 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10467 for ac_exec_ext in '' $ac_executable_extensions; do
10468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10469 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10471 break 2
10472 fi
10473done
81ecdfbb
RW
10474 done
10475IFS=$as_save_IFS
c6b750e1 10476
2429c060
PB
10477 ;;
10478esac
10479fi
c6b750e1 10480AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060 10481if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10483$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10484else
81ecdfbb
RW
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10486$as_echo "no" >&6; }
2429c060
PB
10487fi
10488
81ecdfbb 10489
2429c060
PB
10490fi
10491if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
9a819804
AO
10492
10493
10494if test -n "$AS_FOR_TARGET"; then
10495 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
10496elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10497 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10498fi
10499
10500if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
10501 for ncn_progname in as; do
10502 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10503set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10505$as_echo_n "checking for $ac_word... " >&6; }
10506if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10507 $as_echo_n "(cached) " >&6
9a819804
AO
10508else
10509 if test -n "$AS_FOR_TARGET"; then
10510 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10511else
10512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10513for as_dir in $PATH
10514do
10515 IFS=$as_save_IFS
10516 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10517 for ac_exec_ext in '' $ac_executable_extensions; do
10518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10519 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10521 break 2
10522 fi
10523done
81ecdfbb
RW
10524 done
10525IFS=$as_save_IFS
9a819804
AO
10526
10527fi
10528fi
10529AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
10530if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10532$as_echo "$AS_FOR_TARGET" >&6; }
9a819804 10533else
81ecdfbb
RW
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10535$as_echo "no" >&6; }
9a819804
AO
10536fi
10537
81ecdfbb 10538
9a819804
AO
10539 done
10540fi
10541
10542if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10543 for ncn_progname in as; do
81ecdfbb
RW
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10545$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10546 if test -x $with_build_time_tools/${ncn_progname}; then
10547 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10549$as_echo "yes" >&6; }
2429c060
PB
10550 break
10551 else
81ecdfbb
RW
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553$as_echo "no" >&6; }
2429c060
PB
10554 fi
10555 done
10556fi
10557
10558if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
10559 for ncn_progname in as; do
10560 if test -n "$ncn_target_tool_prefix"; then
10561 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10562set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10564$as_echo_n "checking for $ac_word... " >&6; }
10565if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10566 $as_echo_n "(cached) " >&6
2429c060
PB
10567else
10568 if test -n "$AS_FOR_TARGET"; then
10569 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10570else
c6b750e1
DJ
10571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10572for as_dir in $PATH
10573do
10574 IFS=$as_save_IFS
10575 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10576 for ac_exec_ext in '' $ac_executable_extensions; do
10577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10578 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10580 break 2
10581 fi
10582done
81ecdfbb
RW
10583 done
10584IFS=$as_save_IFS
c6b750e1 10585
2429c060
PB
10586fi
10587fi
c6b750e1 10588AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10589if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10591$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10592else
81ecdfbb
RW
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10594$as_echo "no" >&6; }
2429c060
PB
10595fi
10596
81ecdfbb 10597
2429c060
PB
10598 fi
10599 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
10600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10601set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10603$as_echo_n "checking for $ac_word... " >&6; }
10604if test "${ac_cv_prog_AS_FOR_TARGET+set}" = set; then :
10605 $as_echo_n "(cached) " >&6
2429c060
PB
10606else
10607 if test -n "$AS_FOR_TARGET"; then
10608 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
10609else
c6b750e1
DJ
10610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611for as_dir in $PATH
10612do
10613 IFS=$as_save_IFS
10614 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10615 for ac_exec_ext in '' $ac_executable_extensions; do
10616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10617 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
81ecdfbb 10618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10619 break 2
10620 fi
10621done
81ecdfbb
RW
10622 done
10623IFS=$as_save_IFS
c6b750e1 10624
2429c060
PB
10625fi
10626fi
c6b750e1 10627AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
2429c060 10628if test -n "$AS_FOR_TARGET"; then
81ecdfbb
RW
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
10630$as_echo "$AS_FOR_TARGET" >&6; }
2429c060 10631else
81ecdfbb
RW
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10633$as_echo "no" >&6; }
2429c060 10634fi
c6b750e1 10635
81ecdfbb 10636
2429c060
PB
10637 fi
10638 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
10639 done
10640fi
c6b750e1 10641
2429c060
PB
10642if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
10643 set dummy as
10644 if test $build = $target ; then
10645 AS_FOR_TARGET="$2"
10646 else
10647 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
10648 fi
d3f5afc4
MS
10649else
10650 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
2429c060
PB
10651fi
10652
3a35eeb3
PB
10653else
10654 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
2429c060
PB
10655fi
10656
10657
10658
10659
10660if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
10661 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
10663$as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10664 if test -x $with_build_time_tools/dlltool; then
10665 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
10666 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
81ecdfbb
RW
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
10668$as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
3a35eeb3 10669 else
81ecdfbb
RW
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10671$as_echo "no" >&6; }
3a35eeb3 10672 fi
2429c060
PB
10673 elif test $build != $host && test $have_gcc_for_target = yes; then
10674 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
d3f5afc4
MS
10675 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
10676 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
2429c060
PB
10677 fi
10678fi
c6b750e1 10679if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10680 # Extract the first word of "dlltool", so it can be a program name with args.
10681set dummy dlltool; ac_word=$2
81ecdfbb
RW
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10683$as_echo_n "checking for $ac_word... " >&6; }
10684if test "${ac_cv_path_DLLTOOL_FOR_TARGET+set}" = set; then :
10685 $as_echo_n "(cached) " >&6
2429c060 10686else
c6b750e1
DJ
10687 case $DLLTOOL_FOR_TARGET in
10688 [\\/]* | ?:[\\/]*)
2429c060
PB
10689 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
10690 ;;
2429c060 10691 *)
c6b750e1
DJ
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693for as_dir in $gcc_cv_tool_dirs
10694do
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10699 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10701 break 2
10702 fi
10703done
81ecdfbb
RW
10704 done
10705IFS=$as_save_IFS
c6b750e1 10706
2429c060
PB
10707 ;;
10708esac
10709fi
c6b750e1 10710DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060 10711if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10713$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10714else
81ecdfbb
RW
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716$as_echo "no" >&6; }
2429c060
PB
10717fi
10718
81ecdfbb 10719
2429c060
PB
10720fi
10721if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
9a819804
AO
10722
10723
10724if test -n "$DLLTOOL_FOR_TARGET"; then
10725 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
10726elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10727 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10728fi
10729
10730if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10731 for ncn_progname in dlltool; do
10732 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10733set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10735$as_echo_n "checking for $ac_word... " >&6; }
10736if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10737 $as_echo_n "(cached) " >&6
9a819804
AO
10738else
10739 if test -n "$DLLTOOL_FOR_TARGET"; then
10740 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10741else
10742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10743for as_dir in $PATH
10744do
10745 IFS=$as_save_IFS
10746 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10747 for ac_exec_ext in '' $ac_executable_extensions; do
10748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10749 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10751 break 2
10752 fi
10753done
81ecdfbb
RW
10754 done
10755IFS=$as_save_IFS
9a819804
AO
10756
10757fi
10758fi
10759DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
10760if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10762$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
9a819804 10763else
81ecdfbb
RW
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10765$as_echo "no" >&6; }
9a819804
AO
10766fi
10767
81ecdfbb 10768
9a819804
AO
10769 done
10770fi
10771
10772if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 10773 for ncn_progname in dlltool; do
81ecdfbb
RW
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
10775$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10776 if test -x $with_build_time_tools/${ncn_progname}; then
10777 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10779$as_echo "yes" >&6; }
2429c060
PB
10780 break
10781 else
81ecdfbb
RW
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10783$as_echo "no" >&6; }
2429c060
PB
10784 fi
10785 done
10786fi
10787
10788if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
10789 for ncn_progname in dlltool; do
10790 if test -n "$ncn_target_tool_prefix"; then
10791 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
10792set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
10793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10794$as_echo_n "checking for $ac_word... " >&6; }
10795if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
2429c060
PB
10797else
10798 if test -n "$DLLTOOL_FOR_TARGET"; then
10799 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10800else
c6b750e1
DJ
10801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10802for as_dir in $PATH
10803do
10804 IFS=$as_save_IFS
10805 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10806 for ac_exec_ext in '' $ac_executable_extensions; do
10807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10808 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 10809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10810 break 2
10811 fi
10812done
81ecdfbb
RW
10813 done
10814IFS=$as_save_IFS
c6b750e1 10815
2429c060
PB
10816fi
10817fi
c6b750e1 10818DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10819if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10821$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10822else
81ecdfbb
RW
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10824$as_echo "no" >&6; }
2429c060
PB
10825fi
10826
81ecdfbb 10827
2429c060
PB
10828 fi
10829 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
10830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10831set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10833$as_echo_n "checking for $ac_word... " >&6; }
10834if test "${ac_cv_prog_DLLTOOL_FOR_TARGET+set}" = set; then :
10835 $as_echo_n "(cached) " >&6
2429c060
PB
10836else
10837 if test -n "$DLLTOOL_FOR_TARGET"; then
10838 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
10839else
c6b750e1
DJ
10840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10841for as_dir in $PATH
10842do
10843 IFS=$as_save_IFS
10844 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10845 for ac_exec_ext in '' $ac_executable_extensions; do
10846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10847 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
81ecdfbb 10848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10849 break 2
10850 fi
10851done
81ecdfbb
RW
10852 done
10853IFS=$as_save_IFS
c6b750e1 10854
2429c060
PB
10855fi
10856fi
c6b750e1 10857DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
2429c060 10858if test -n "$DLLTOOL_FOR_TARGET"; then
81ecdfbb
RW
10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
10860$as_echo "$DLLTOOL_FOR_TARGET" >&6; }
2429c060 10861else
81ecdfbb
RW
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10863$as_echo "no" >&6; }
2429c060 10864fi
c6b750e1 10865
81ecdfbb 10866
2429c060
PB
10867 fi
10868 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
10869 done
10870fi
c6b750e1 10871
2429c060
PB
10872if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
10873 set dummy dlltool
10874 if test $build = $target ; then
10875 DLLTOOL_FOR_TARGET="$2"
10876 else
10877 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
10878 fi
d3f5afc4
MS
10879else
10880 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
2429c060
PB
10881fi
10882
3a35eeb3
PB
10883else
10884 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
2429c060
PB
10885fi
10886
10887
10888
10889
10890if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
10891 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
10893$as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
3a35eeb3
PB
10894 if test -x $with_build_time_tools/ld; then
10895 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
10896 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
81ecdfbb
RW
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
10898$as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
3a35eeb3 10899 else
81ecdfbb
RW
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10901$as_echo "no" >&6; }
3a35eeb3 10902 fi
2429c060
PB
10903 elif test $build != $host && test $have_gcc_for_target = yes; then
10904 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
d3f5afc4
MS
10905 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
10906 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
2429c060
PB
10907 fi
10908fi
c6b750e1 10909if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
10910 # Extract the first word of "ld", so it can be a program name with args.
10911set dummy ld; ac_word=$2
81ecdfbb
RW
10912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10913$as_echo_n "checking for $ac_word... " >&6; }
10914if test "${ac_cv_path_LD_FOR_TARGET+set}" = set; then :
10915 $as_echo_n "(cached) " >&6
2429c060 10916else
c6b750e1
DJ
10917 case $LD_FOR_TARGET in
10918 [\\/]* | ?:[\\/]*)
2429c060
PB
10919 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
10920 ;;
2429c060 10921 *)
c6b750e1
DJ
10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923for as_dir in $gcc_cv_tool_dirs
10924do
10925 IFS=$as_save_IFS
10926 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 10929 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 10930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
10931 break 2
10932 fi
10933done
81ecdfbb
RW
10934 done
10935IFS=$as_save_IFS
c6b750e1 10936
2429c060
PB
10937 ;;
10938esac
10939fi
c6b750e1 10940LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060 10941if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10943$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 10944else
81ecdfbb
RW
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10946$as_echo "no" >&6; }
2429c060
PB
10947fi
10948
81ecdfbb 10949
2429c060
PB
10950fi
10951if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
9a819804
AO
10952
10953
10954if test -n "$LD_FOR_TARGET"; then
10955 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
10956elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10957 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10958fi
10959
10960if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
10961 for ncn_progname in ld; do
10962 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10963set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
10964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10965$as_echo_n "checking for $ac_word... " >&6; }
10966if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
10967 $as_echo_n "(cached) " >&6
9a819804
AO
10968else
10969 if test -n "$LD_FOR_TARGET"; then
10970 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
10971else
10972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10973for as_dir in $PATH
10974do
10975 IFS=$as_save_IFS
10976 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
10977 for ac_exec_ext in '' $ac_executable_extensions; do
10978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 10979 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 10980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
10981 break 2
10982 fi
10983done
81ecdfbb
RW
10984 done
10985IFS=$as_save_IFS
9a819804
AO
10986
10987fi
10988fi
10989LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
10990if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
10992$as_echo "$LD_FOR_TARGET" >&6; }
9a819804 10993else
81ecdfbb
RW
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10995$as_echo "no" >&6; }
9a819804
AO
10996fi
10997
81ecdfbb 10998
9a819804
AO
10999 done
11000fi
11001
11002if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11003 for ncn_progname in ld; do
81ecdfbb
RW
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11005$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11006 if test -x $with_build_time_tools/${ncn_progname}; then
11007 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11009$as_echo "yes" >&6; }
2429c060
PB
11010 break
11011 else
81ecdfbb
RW
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11013$as_echo "no" >&6; }
2429c060
PB
11014 fi
11015 done
11016fi
11017
11018if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
11019 for ncn_progname in ld; do
11020 if test -n "$ncn_target_tool_prefix"; then
11021 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11022set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11024$as_echo_n "checking for $ac_word... " >&6; }
11025if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11026 $as_echo_n "(cached) " >&6
2429c060
PB
11027else
11028 if test -n "$LD_FOR_TARGET"; then
11029 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11030else
c6b750e1
DJ
11031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032for as_dir in $PATH
11033do
11034 IFS=$as_save_IFS
11035 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11038 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11040 break 2
11041 fi
11042done
81ecdfbb
RW
11043 done
11044IFS=$as_save_IFS
c6b750e1 11045
2429c060
PB
11046fi
11047fi
c6b750e1 11048LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11049if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11051$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11052else
81ecdfbb
RW
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11054$as_echo "no" >&6; }
2429c060
PB
11055fi
11056
81ecdfbb 11057
2429c060
PB
11058 fi
11059 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
11060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11061set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11063$as_echo_n "checking for $ac_word... " >&6; }
11064if test "${ac_cv_prog_LD_FOR_TARGET+set}" = set; then :
11065 $as_echo_n "(cached) " >&6
2429c060
PB
11066else
11067 if test -n "$LD_FOR_TARGET"; then
11068 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
11069else
c6b750e1
DJ
11070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11071for as_dir in $PATH
11072do
11073 IFS=$as_save_IFS
11074 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11075 for ac_exec_ext in '' $ac_executable_extensions; do
11076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11077 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
81ecdfbb 11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11079 break 2
11080 fi
11081done
81ecdfbb
RW
11082 done
11083IFS=$as_save_IFS
c6b750e1 11084
2429c060
PB
11085fi
11086fi
c6b750e1 11087LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
2429c060 11088if test -n "$LD_FOR_TARGET"; then
81ecdfbb
RW
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
11090$as_echo "$LD_FOR_TARGET" >&6; }
2429c060 11091else
81ecdfbb
RW
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11093$as_echo "no" >&6; }
2429c060 11094fi
c6b750e1 11095
81ecdfbb 11096
2429c060
PB
11097 fi
11098 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
11099 done
11100fi
c6b750e1 11101
2429c060
PB
11102if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
11103 set dummy ld
11104 if test $build = $target ; then
11105 LD_FOR_TARGET="$2"
11106 else
11107 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
11108 fi
d3f5afc4
MS
11109else
11110 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
2429c060
PB
11111fi
11112
3a35eeb3
PB
11113else
11114 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
2429c060
PB
11115fi
11116
11117
11118
11119
11120if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11121 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
11123$as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11124 if test -x $with_build_time_tools/lipo; then
11125 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
11126 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
81ecdfbb
RW
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
11128$as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
3a35eeb3 11129 else
81ecdfbb
RW
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11131$as_echo "no" >&6; }
3a35eeb3 11132 fi
2429c060
PB
11133 elif test $build != $host && test $have_gcc_for_target = yes; then
11134 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
d3f5afc4
MS
11135 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
11136 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
2429c060
PB
11137 fi
11138fi
9a819804
AO
11139if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
11140 # Extract the first word of "lipo", so it can be a program name with args.
11141set dummy lipo; ac_word=$2
81ecdfbb
RW
11142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11143$as_echo_n "checking for $ac_word... " >&6; }
11144if test "${ac_cv_path_LIPO_FOR_TARGET+set}" = set; then :
11145 $as_echo_n "(cached) " >&6
9a819804
AO
11146else
11147 case $LIPO_FOR_TARGET in
11148 [\\/]* | ?:[\\/]*)
11149 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
11150 ;;
11151 *)
11152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11153for as_dir in $gcc_cv_tool_dirs
11154do
11155 IFS=$as_save_IFS
11156 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11157 for ac_exec_ext in '' $ac_executable_extensions; do
11158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11159 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11161 break 2
11162 fi
11163done
81ecdfbb
RW
11164 done
11165IFS=$as_save_IFS
9a819804
AO
11166
11167 ;;
11168esac
11169fi
11170LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
9a819804 11171if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11173$as_echo "$LIPO_FOR_TARGET" >&6; }
9a819804 11174else
81ecdfbb
RW
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11176$as_echo "no" >&6; }
9a819804
AO
11177fi
11178
81ecdfbb 11179
9a819804
AO
11180fi
11181if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
11182
11183
11184if test -n "$LIPO_FOR_TARGET"; then
11185 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
11186elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11187 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
11188fi
11189
11190if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
11191 for ncn_progname in lipo; do
11192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11193set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11195$as_echo_n "checking for $ac_word... " >&6; }
11196if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11197 $as_echo_n "(cached) " >&6
2429c060 11198else
9a819804
AO
11199 if test -n "$LIPO_FOR_TARGET"; then
11200 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11201else
11202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11203for as_dir in $PATH
c6b750e1
DJ
11204do
11205 IFS=$as_save_IFS
11206 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11207 for ac_exec_ext in '' $ac_executable_extensions; do
11208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11209 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11211 break 2
11212 fi
11213done
81ecdfbb
RW
11214 done
11215IFS=$as_save_IFS
c6b750e1 11216
2429c060 11217fi
9a819804
AO
11218fi
11219LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11220if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11222$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11223else
81ecdfbb
RW
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11225$as_echo "no" >&6; }
2429c060
PB
11226fi
11227
81ecdfbb 11228
9a819804 11229 done
2429c060 11230fi
9a819804
AO
11231
11232if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11233 for ncn_progname in lipo; do
81ecdfbb
RW
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11235$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11236 if test -x $with_build_time_tools/${ncn_progname}; then
11237 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11239$as_echo "yes" >&6; }
2429c060
PB
11240 break
11241 else
81ecdfbb
RW
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243$as_echo "no" >&6; }
2429c060
PB
11244 fi
11245 done
11246fi
11247
11248if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
11249 for ncn_progname in lipo; do
11250 if test -n "$ncn_target_tool_prefix"; then
11251 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
11252set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11254$as_echo_n "checking for $ac_word... " >&6; }
11255if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11256 $as_echo_n "(cached) " >&6
2429c060
PB
11257else
11258 if test -n "$LIPO_FOR_TARGET"; then
11259 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11260else
c6b750e1
DJ
11261as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11262for as_dir in $PATH
11263do
11264 IFS=$as_save_IFS
11265 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11266 for ac_exec_ext in '' $ac_executable_extensions; do
11267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11268 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11270 break 2
11271 fi
11272done
81ecdfbb
RW
11273 done
11274IFS=$as_save_IFS
c6b750e1 11275
2429c060
PB
11276fi
11277fi
c6b750e1 11278LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11279if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11281$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11282else
81ecdfbb
RW
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11284$as_echo "no" >&6; }
2429c060
PB
11285fi
11286
81ecdfbb 11287
2429c060
PB
11288 fi
11289 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
11290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11291set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11293$as_echo_n "checking for $ac_word... " >&6; }
11294if test "${ac_cv_prog_LIPO_FOR_TARGET+set}" = set; then :
11295 $as_echo_n "(cached) " >&6
2429c060
PB
11296else
11297 if test -n "$LIPO_FOR_TARGET"; then
11298 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
11299else
c6b750e1
DJ
11300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11301for as_dir in $PATH
11302do
11303 IFS=$as_save_IFS
11304 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11305 for ac_exec_ext in '' $ac_executable_extensions; do
11306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11307 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
81ecdfbb 11308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11309 break 2
11310 fi
11311done
81ecdfbb
RW
11312 done
11313IFS=$as_save_IFS
c6b750e1 11314
2429c060
PB
11315fi
11316fi
c6b750e1 11317LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
2429c060 11318if test -n "$LIPO_FOR_TARGET"; then
81ecdfbb
RW
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
11320$as_echo "$LIPO_FOR_TARGET" >&6; }
2429c060 11321else
81ecdfbb
RW
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11323$as_echo "no" >&6; }
2429c060 11324fi
c6b750e1 11325
81ecdfbb 11326
2429c060
PB
11327 fi
11328 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
11329 done
11330fi
c6b750e1 11331
2429c060
PB
11332if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
11333 set dummy lipo
11334 if test $build = $target ; then
11335 LIPO_FOR_TARGET="$2"
11336 else
11337 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
11338 fi
d3f5afc4
MS
11339else
11340 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
2429c060
PB
11341fi
11342
3a35eeb3
PB
11343else
11344 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
2429c060
PB
11345fi
11346
11347
11348
11349
11350if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
11351 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
11353$as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11354 if test -x $with_build_time_tools/nm; then
11355 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
11356 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
81ecdfbb
RW
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
11358$as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
3a35eeb3 11359 else
81ecdfbb
RW
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361$as_echo "no" >&6; }
3a35eeb3 11362 fi
2429c060
PB
11363 elif test $build != $host && test $have_gcc_for_target = yes; then
11364 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
d3f5afc4
MS
11365 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
11366 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
2429c060
PB
11367 fi
11368fi
c6b750e1 11369if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11370 # Extract the first word of "nm", so it can be a program name with args.
11371set dummy nm; ac_word=$2
81ecdfbb
RW
11372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373$as_echo_n "checking for $ac_word... " >&6; }
11374if test "${ac_cv_path_NM_FOR_TARGET+set}" = set; then :
11375 $as_echo_n "(cached) " >&6
2429c060 11376else
c6b750e1
DJ
11377 case $NM_FOR_TARGET in
11378 [\\/]* | ?:[\\/]*)
2429c060
PB
11379 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
11380 ;;
2429c060 11381 *)
c6b750e1
DJ
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383for as_dir in $gcc_cv_tool_dirs
11384do
11385 IFS=$as_save_IFS
11386 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11387 for ac_exec_ext in '' $ac_executable_extensions; do
11388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11389 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11391 break 2
11392 fi
11393done
81ecdfbb
RW
11394 done
11395IFS=$as_save_IFS
c6b750e1 11396
2429c060
PB
11397 ;;
11398esac
11399fi
c6b750e1 11400NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060 11401if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11403$as_echo "$NM_FOR_TARGET" >&6; }
2429c060 11404else
81ecdfbb
RW
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11406$as_echo "no" >&6; }
2429c060
PB
11407fi
11408
81ecdfbb 11409
2429c060
PB
11410fi
11411if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
9a819804
AO
11412
11413
11414if test -n "$NM_FOR_TARGET"; then
11415 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
11416elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11417 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11418fi
11419
11420if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
11421 for ncn_progname in nm; do
11422 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11423set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425$as_echo_n "checking for $ac_word... " >&6; }
11426if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11427 $as_echo_n "(cached) " >&6
9a819804
AO
11428else
11429 if test -n "$NM_FOR_TARGET"; then
11430 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
11431else
11432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433for as_dir in $PATH
11434do
11435 IFS=$as_save_IFS
11436 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11439 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11441 break 2
11442 fi
11443done
81ecdfbb
RW
11444 done
11445IFS=$as_save_IFS
9a819804
AO
11446
11447fi
11448fi
11449NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
11450if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11452$as_echo "$NM_FOR_TARGET" >&6; }
9a819804 11453else
81ecdfbb
RW
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11455$as_echo "no" >&6; }
9a819804
AO
11456fi
11457
81ecdfbb 11458
9a819804
AO
11459 done
11460fi
11461
11462if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11463 for ncn_progname in nm; do
81ecdfbb
RW
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11465$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11466 if test -x $with_build_time_tools/${ncn_progname}; then
11467 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11469$as_echo "yes" >&6; }
2429c060
PB
11470 break
11471 else
81ecdfbb
RW
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473$as_echo "no" >&6; }
2429c060
PB
11474 fi
11475 done
11476fi
11477
11478if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
11479 for ncn_progname in nm; do
11480 if test -n "$ncn_target_tool_prefix"; then
11481 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 11482set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11484$as_echo_n "checking for $ac_word... " >&6; }
11485if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11486 $as_echo_n "(cached) " >&6
859789af 11487else
55db4b87
PB
11488 if test -n "$NM_FOR_TARGET"; then
11489 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11490else
c6b750e1
DJ
11491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492for as_dir in $PATH
11493do
11494 IFS=$as_save_IFS
11495 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11496 for ac_exec_ext in '' $ac_executable_extensions; do
11497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11498 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11500 break 2
11501 fi
11502done
81ecdfbb
RW
11503 done
11504IFS=$as_save_IFS
c6b750e1 11505
859789af
AC
11506fi
11507fi
c6b750e1 11508NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
55db4b87 11509if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11511$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11512else
81ecdfbb
RW
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11514$as_echo "no" >&6; }
859789af
AC
11515fi
11516
81ecdfbb 11517
2429c060
PB
11518 fi
11519 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
11520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11521set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11523$as_echo_n "checking for $ac_word... " >&6; }
11524if test "${ac_cv_prog_NM_FOR_TARGET+set}" = set; then :
11525 $as_echo_n "(cached) " >&6
859789af 11526else
05cbd757
PB
11527 if test -n "$NM_FOR_TARGET"; then
11528 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
859789af 11529else
c6b750e1
DJ
11530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11531for as_dir in $PATH
11532do
11533 IFS=$as_save_IFS
11534 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11535 for ac_exec_ext in '' $ac_executable_extensions; do
11536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11537 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
81ecdfbb 11538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11539 break 2
11540 fi
11541done
81ecdfbb
RW
11542 done
11543IFS=$as_save_IFS
c6b750e1 11544
859789af
AC
11545fi
11546fi
c6b750e1 11547NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
05cbd757 11548if test -n "$NM_FOR_TARGET"; then
81ecdfbb
RW
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
11550$as_echo "$NM_FOR_TARGET" >&6; }
859789af 11551else
81ecdfbb
RW
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553$as_echo "no" >&6; }
859789af 11554fi
c6b750e1 11555
81ecdfbb 11556
2429c060
PB
11557 fi
11558 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
11559 done
11560fi
c6b750e1 11561
05cbd757
PB
11562if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
11563 set dummy nm
11564 if test $build = $target ; then
11565 NM_FOR_TARGET="$2"
859789af 11566 else
05cbd757 11567 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 11568 fi
d3f5afc4
MS
11569else
11570 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
859789af
AC
11571fi
11572
3a35eeb3
PB
11573else
11574 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
2429c060
PB
11575fi
11576
11577
11578
11579
11580if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
11581 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
11583$as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11584 if test -x $with_build_time_tools/objdump; then
11585 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
11586 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
81ecdfbb
RW
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
11588$as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
3a35eeb3 11589 else
81ecdfbb
RW
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11591$as_echo "no" >&6; }
3a35eeb3 11592 fi
2429c060
PB
11593 elif test $build != $host && test $have_gcc_for_target = yes; then
11594 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
d3f5afc4
MS
11595 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
11596 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
2429c060
PB
11597 fi
11598fi
c6b750e1 11599if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11600 # Extract the first word of "objdump", so it can be a program name with args.
11601set dummy objdump; ac_word=$2
81ecdfbb
RW
11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11603$as_echo_n "checking for $ac_word... " >&6; }
11604if test "${ac_cv_path_OBJDUMP_FOR_TARGET+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
2429c060 11606else
c6b750e1
DJ
11607 case $OBJDUMP_FOR_TARGET in
11608 [\\/]* | ?:[\\/]*)
2429c060
PB
11609 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
11610 ;;
2429c060 11611 *)
c6b750e1
DJ
11612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613for as_dir in $gcc_cv_tool_dirs
11614do
11615 IFS=$as_save_IFS
11616 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11617 for ac_exec_ext in '' $ac_executable_extensions; do
11618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11619 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11621 break 2
11622 fi
11623done
81ecdfbb
RW
11624 done
11625IFS=$as_save_IFS
c6b750e1 11626
2429c060
PB
11627 ;;
11628esac
11629fi
c6b750e1 11630OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060 11631if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11633$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
2429c060 11634else
81ecdfbb
RW
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636$as_echo "no" >&6; }
2429c060
PB
11637fi
11638
81ecdfbb 11639
2429c060
PB
11640fi
11641if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
9a819804
AO
11642
11643
11644if test -n "$OBJDUMP_FOR_TARGET"; then
11645 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
11646elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11647 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11648fi
11649
11650if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11651 for ncn_progname in objdump; do
11652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11653set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655$as_echo_n "checking for $ac_word... " >&6; }
11656if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11657 $as_echo_n "(cached) " >&6
9a819804
AO
11658else
11659 if test -n "$OBJDUMP_FOR_TARGET"; then
11660 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11661else
11662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663for as_dir in $PATH
11664do
11665 IFS=$as_save_IFS
11666 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11667 for ac_exec_ext in '' $ac_executable_extensions; do
11668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11669 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11671 break 2
11672 fi
11673done
81ecdfbb
RW
11674 done
11675IFS=$as_save_IFS
9a819804
AO
11676
11677fi
11678fi
11679OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
11680if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11682$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
9a819804 11683else
81ecdfbb
RW
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685$as_echo "no" >&6; }
9a819804
AO
11686fi
11687
81ecdfbb 11688
9a819804
AO
11689 done
11690fi
11691
11692if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11693 for ncn_progname in objdump; do
81ecdfbb
RW
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11695$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11696 if test -x $with_build_time_tools/${ncn_progname}; then
11697 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11699$as_echo "yes" >&6; }
2429c060
PB
11700 break
11701 else
81ecdfbb
RW
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11703$as_echo "no" >&6; }
2429c060
PB
11704 fi
11705 done
11706fi
11707
11708if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
11709 for ncn_progname in objdump; do
11710 if test -n "$ncn_target_tool_prefix"; then
11711 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 11712set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11714$as_echo_n "checking for $ac_word... " >&6; }
11715if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11716 $as_echo_n "(cached) " >&6
5ae72758
DJ
11717else
11718 if test -n "$OBJDUMP_FOR_TARGET"; then
11719 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11720else
c6b750e1
DJ
11721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11722for as_dir in $PATH
11723do
11724 IFS=$as_save_IFS
11725 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11726 for ac_exec_ext in '' $ac_executable_extensions; do
11727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11728 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11730 break 2
11731 fi
11732done
81ecdfbb
RW
11733 done
11734IFS=$as_save_IFS
c6b750e1 11735
5ae72758
DJ
11736fi
11737fi
c6b750e1 11738OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11739if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11741$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 11742else
81ecdfbb
RW
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11744$as_echo "no" >&6; }
5ae72758
DJ
11745fi
11746
81ecdfbb 11747
2429c060
PB
11748 fi
11749 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
11750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
5ae72758 11751set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11753$as_echo_n "checking for $ac_word... " >&6; }
11754if test "${ac_cv_prog_OBJDUMP_FOR_TARGET+set}" = set; then :
11755 $as_echo_n "(cached) " >&6
5ae72758
DJ
11756else
11757 if test -n "$OBJDUMP_FOR_TARGET"; then
11758 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
11759else
c6b750e1
DJ
11760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11761for as_dir in $PATH
11762do
11763 IFS=$as_save_IFS
11764 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11765 for ac_exec_ext in '' $ac_executable_extensions; do
11766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11767 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
81ecdfbb 11768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11769 break 2
11770 fi
11771done
81ecdfbb
RW
11772 done
11773IFS=$as_save_IFS
c6b750e1 11774
5ae72758
DJ
11775fi
11776fi
c6b750e1 11777OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
5ae72758 11778if test -n "$OBJDUMP_FOR_TARGET"; then
81ecdfbb
RW
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
11780$as_echo "$OBJDUMP_FOR_TARGET" >&6; }
5ae72758 11781else
81ecdfbb
RW
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11783$as_echo "no" >&6; }
5ae72758 11784fi
c6b750e1 11785
81ecdfbb 11786
2429c060
PB
11787 fi
11788 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
11789 done
11790fi
c6b750e1 11791
5ae72758
DJ
11792if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
11793 set dummy objdump
11794 if test $build = $target ; then
11795 OBJDUMP_FOR_TARGET="$2"
11796 else
11797 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
11798 fi
d3f5afc4
MS
11799else
11800 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
5ae72758
DJ
11801fi
11802
3a35eeb3
PB
11803else
11804 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
2429c060
PB
11805fi
11806
11807
11808
11809
11810if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
11811 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
11813$as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11814 if test -x $with_build_time_tools/ranlib; then
11815 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
11816 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
81ecdfbb
RW
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
11818$as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
3a35eeb3 11819 else
81ecdfbb
RW
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11821$as_echo "no" >&6; }
3a35eeb3 11822 fi
2429c060
PB
11823 elif test $build != $host && test $have_gcc_for_target = yes; then
11824 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
d3f5afc4
MS
11825 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
11826 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
2429c060
PB
11827 fi
11828fi
c6b750e1 11829if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
11830 # Extract the first word of "ranlib", so it can be a program name with args.
11831set dummy ranlib; ac_word=$2
81ecdfbb
RW
11832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833$as_echo_n "checking for $ac_word... " >&6; }
11834if test "${ac_cv_path_RANLIB_FOR_TARGET+set}" = set; then :
11835 $as_echo_n "(cached) " >&6
2429c060 11836else
c6b750e1
DJ
11837 case $RANLIB_FOR_TARGET in
11838 [\\/]* | ?:[\\/]*)
2429c060
PB
11839 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
11840 ;;
2429c060 11841 *)
c6b750e1
DJ
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843for as_dir in $gcc_cv_tool_dirs
11844do
11845 IFS=$as_save_IFS
11846 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11847 for ac_exec_ext in '' $ac_executable_extensions; do
11848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11849 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 11850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11851 break 2
11852 fi
11853done
81ecdfbb
RW
11854 done
11855IFS=$as_save_IFS
c6b750e1 11856
2429c060
PB
11857 ;;
11858esac
11859fi
c6b750e1 11860RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
2429c060 11861if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11863$as_echo "$RANLIB_FOR_TARGET" >&6; }
2429c060 11864else
81ecdfbb
RW
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866$as_echo "no" >&6; }
2429c060
PB
11867fi
11868
81ecdfbb 11869
2429c060
PB
11870fi
11871if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
9a819804
AO
11872
11873
11874if test -n "$RANLIB_FOR_TARGET"; then
11875 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
11876elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11877 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11878fi
11879
11880if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11881 for ncn_progname in ranlib; do
11882 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11883set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885$as_echo_n "checking for $ac_word... " >&6; }
11886if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
9a819804
AO
11888else
11889 if test -n "$RANLIB_FOR_TARGET"; then
11890 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
11891else
11892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893for as_dir in $PATH
11894do
11895 IFS=$as_save_IFS
11896 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 11899 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
11901 break 2
11902 fi
11903done
81ecdfbb
RW
11904 done
11905IFS=$as_save_IFS
9a819804
AO
11906
11907fi
11908fi
11909RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
11910if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11912$as_echo "$RANLIB_FOR_TARGET" >&6; }
9a819804 11913else
81ecdfbb
RW
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915$as_echo "no" >&6; }
9a819804
AO
11916fi
11917
81ecdfbb 11918
9a819804
AO
11919 done
11920fi
11921
11922if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 11923 for ncn_progname in ranlib; do
81ecdfbb
RW
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
11925$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
11926 if test -x $with_build_time_tools/${ncn_progname}; then
11927 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11929$as_echo "yes" >&6; }
2429c060
PB
11930 break
11931 else
81ecdfbb
RW
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933$as_echo "no" >&6; }
2429c060
PB
11934 fi
11935 done
11936fi
11937
11938if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
11939 for ncn_progname in ranlib; do
11940 if test -n "$ncn_target_tool_prefix"; then
11941 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
5ae72758 11942set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11944$as_echo_n "checking for $ac_word... " >&6; }
11945if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11946 $as_echo_n "(cached) " >&6
859789af 11947else
55db4b87
PB
11948 if test -n "$RANLIB_FOR_TARGET"; then
11949 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11950else
c6b750e1
DJ
11951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952for as_dir in $PATH
11953do
11954 IFS=$as_save_IFS
11955 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11958 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 11959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11960 break 2
11961 fi
11962done
81ecdfbb
RW
11963 done
11964IFS=$as_save_IFS
c6b750e1 11965
859789af
AC
11966fi
11967fi
c6b750e1 11968RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
55db4b87 11969if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
11971$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 11972else
81ecdfbb
RW
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11974$as_echo "no" >&6; }
859789af
AC
11975fi
11976
81ecdfbb 11977
2429c060
PB
11978 fi
11979 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
11980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 11981set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
11982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11983$as_echo_n "checking for $ac_word... " >&6; }
11984if test "${ac_cv_prog_RANLIB_FOR_TARGET+set}" = set; then :
11985 $as_echo_n "(cached) " >&6
859789af 11986else
05cbd757
PB
11987 if test -n "$RANLIB_FOR_TARGET"; then
11988 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
859789af 11989else
c6b750e1
DJ
11990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991for as_dir in $PATH
11992do
11993 IFS=$as_save_IFS
11994 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 11997 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
81ecdfbb 11998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
11999 break 2
12000 fi
12001done
81ecdfbb
RW
12002 done
12003IFS=$as_save_IFS
c6b750e1 12004
859789af
AC
12005fi
12006fi
c6b750e1 12007RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
05cbd757 12008if test -n "$RANLIB_FOR_TARGET"; then
81ecdfbb
RW
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
12010$as_echo "$RANLIB_FOR_TARGET" >&6; }
859789af 12011else
81ecdfbb
RW
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12013$as_echo "no" >&6; }
859789af 12014fi
c6b750e1 12015
81ecdfbb 12016
2429c060
PB
12017 fi
12018 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
12019 done
12020fi
c6b750e1 12021
2429c060
PB
12022if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
12023 set dummy ranlib
12024 if test $build = $target ; then
12025 RANLIB_FOR_TARGET="$2"
12026 else
12027 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12028 fi
d3f5afc4
MS
12029else
12030 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
2429c060 12031fi
05cbd757 12032
3a35eeb3
PB
12033else
12034 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
859789af
AC
12035fi
12036
2429c060
PB
12037
12038
12039
12040if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
12041 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
12043$as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12044 if test -x $with_build_time_tools/strip; then
12045 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
12046 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
81ecdfbb
RW
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
12048$as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
3a35eeb3 12049 else
81ecdfbb
RW
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12051$as_echo "no" >&6; }
3a35eeb3 12052 fi
2429c060
PB
12053 elif test $build != $host && test $have_gcc_for_target = yes; then
12054 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
d3f5afc4
MS
12055 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
12056 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
2429c060
PB
12057 fi
12058fi
c6b750e1 12059if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12060 # Extract the first word of "strip", so it can be a program name with args.
12061set dummy strip; ac_word=$2
81ecdfbb
RW
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12063$as_echo_n "checking for $ac_word... " >&6; }
12064if test "${ac_cv_path_STRIP_FOR_TARGET+set}" = set; then :
12065 $as_echo_n "(cached) " >&6
2429c060 12066else
c6b750e1
DJ
12067 case $STRIP_FOR_TARGET in
12068 [\\/]* | ?:[\\/]*)
2429c060
PB
12069 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
12070 ;;
2429c060 12071 *)
c6b750e1
DJ
12072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12073for as_dir in $gcc_cv_tool_dirs
12074do
12075 IFS=$as_save_IFS
12076 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12077 for ac_exec_ext in '' $ac_executable_extensions; do
12078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12079 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12081 break 2
12082 fi
12083done
81ecdfbb
RW
12084 done
12085IFS=$as_save_IFS
c6b750e1 12086
2429c060
PB
12087 ;;
12088esac
12089fi
c6b750e1 12090STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060 12091if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12093$as_echo "$STRIP_FOR_TARGET" >&6; }
2429c060 12094else
81ecdfbb
RW
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12096$as_echo "no" >&6; }
2429c060
PB
12097fi
12098
81ecdfbb 12099
2429c060
PB
12100fi
12101if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
9a819804
AO
12102
12103
12104if test -n "$STRIP_FOR_TARGET"; then
12105 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
12106elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12107 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12108fi
12109
12110if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
12111 for ncn_progname in strip; do
12112 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12113set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12115$as_echo_n "checking for $ac_word... " >&6; }
12116if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12117 $as_echo_n "(cached) " >&6
9a819804
AO
12118else
12119 if test -n "$STRIP_FOR_TARGET"; then
12120 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12121else
12122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123for as_dir in $PATH
12124do
12125 IFS=$as_save_IFS
12126 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12129 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12131 break 2
12132 fi
12133done
81ecdfbb
RW
12134 done
12135IFS=$as_save_IFS
9a819804
AO
12136
12137fi
12138fi
12139STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
12140if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12142$as_echo "$STRIP_FOR_TARGET" >&6; }
9a819804 12143else
81ecdfbb
RW
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145$as_echo "no" >&6; }
9a819804
AO
12146fi
12147
81ecdfbb 12148
9a819804
AO
12149 done
12150fi
12151
12152if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12153 for ncn_progname in strip; do
81ecdfbb
RW
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12155$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12156 if test -x $with_build_time_tools/${ncn_progname}; then
12157 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12159$as_echo "yes" >&6; }
2429c060
PB
12160 break
12161 else
81ecdfbb
RW
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163$as_echo "no" >&6; }
2429c060
PB
12164 fi
12165 done
12166fi
12167
12168if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
12169 for ncn_progname in strip; do
12170 if test -n "$ncn_target_tool_prefix"; then
12171 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
7e0f7140 12172set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12174$as_echo_n "checking for $ac_word... " >&6; }
12175if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12176 $as_echo_n "(cached) " >&6
7e0f7140
GK
12177else
12178 if test -n "$STRIP_FOR_TARGET"; then
12179 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
c6b750e1
DJ
12180else
12181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12182for as_dir in $PATH
12183do
12184 IFS=$as_save_IFS
12185 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12186 for ac_exec_ext in '' $ac_executable_extensions; do
12187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12188 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12190 break 2
12191 fi
12192done
81ecdfbb
RW
12193 done
12194IFS=$as_save_IFS
c6b750e1 12195
7e0f7140
GK
12196fi
12197fi
c6b750e1 12198STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12199if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12201$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12202else
81ecdfbb
RW
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12204$as_echo "no" >&6; }
7e0f7140
GK
12205fi
12206
81ecdfbb 12207
2429c060
PB
12208 fi
12209 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
12210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
7e0f7140 12211set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12213$as_echo_n "checking for $ac_word... " >&6; }
12214if test "${ac_cv_prog_STRIP_FOR_TARGET+set}" = set; then :
12215 $as_echo_n "(cached) " >&6
7e0f7140
GK
12216else
12217 if test -n "$STRIP_FOR_TARGET"; then
12218 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
12219else
c6b750e1
DJ
12220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12221for as_dir in $PATH
12222do
12223 IFS=$as_save_IFS
12224 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12225 for ac_exec_ext in '' $ac_executable_extensions; do
12226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12227 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
81ecdfbb 12228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12229 break 2
12230 fi
12231done
81ecdfbb
RW
12232 done
12233IFS=$as_save_IFS
c6b750e1 12234
7e0f7140
GK
12235fi
12236fi
c6b750e1 12237STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
7e0f7140 12238if test -n "$STRIP_FOR_TARGET"; then
81ecdfbb
RW
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
12240$as_echo "$STRIP_FOR_TARGET" >&6; }
7e0f7140 12241else
81ecdfbb
RW
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12243$as_echo "no" >&6; }
7e0f7140 12244fi
c6b750e1 12245
81ecdfbb 12246
2429c060
PB
12247 fi
12248 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
12249 done
12250fi
c6b750e1 12251
7e0f7140
GK
12252if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
12253 set dummy strip
12254 if test $build = $target ; then
12255 STRIP_FOR_TARGET="$2"
12256 else
12257 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
12258 fi
d3f5afc4
MS
12259else
12260 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
7e0f7140
GK
12261fi
12262
3a35eeb3
PB
12263else
12264 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
2429c060
PB
12265fi
12266
12267
12268
12269
12270if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
12271 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
12273$as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12274 if test -x $with_build_time_tools/windres; then
12275 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
12276 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
81ecdfbb
RW
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
12278$as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
3a35eeb3 12279 else
81ecdfbb
RW
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281$as_echo "no" >&6; }
3a35eeb3 12282 fi
2429c060
PB
12283 elif test $build != $host && test $have_gcc_for_target = yes; then
12284 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
d3f5afc4
MS
12285 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
12286 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
2429c060
PB
12287 fi
12288fi
c6b750e1 12289if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
2429c060
PB
12290 # Extract the first word of "windres", so it can be a program name with args.
12291set dummy windres; ac_word=$2
81ecdfbb
RW
12292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12293$as_echo_n "checking for $ac_word... " >&6; }
12294if test "${ac_cv_path_WINDRES_FOR_TARGET+set}" = set; then :
12295 $as_echo_n "(cached) " >&6
2429c060 12296else
c6b750e1
DJ
12297 case $WINDRES_FOR_TARGET in
12298 [\\/]* | ?:[\\/]*)
2429c060
PB
12299 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
12300 ;;
2429c060 12301 *)
c6b750e1
DJ
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303for as_dir in $gcc_cv_tool_dirs
12304do
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12309 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12311 break 2
12312 fi
12313done
81ecdfbb
RW
12314 done
12315IFS=$as_save_IFS
c6b750e1 12316
2429c060
PB
12317 ;;
12318esac
12319fi
c6b750e1 12320WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060 12321if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12323$as_echo "$WINDRES_FOR_TARGET" >&6; }
2429c060 12324else
81ecdfbb
RW
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12326$as_echo "no" >&6; }
2429c060
PB
12327fi
12328
81ecdfbb 12329
2429c060
PB
12330fi
12331if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
9a819804
AO
12332
12333
12334if test -n "$WINDRES_FOR_TARGET"; then
12335 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
12336elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12337 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12338fi
12339
12340if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12341 for ncn_progname in windres; do
12342 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12343set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12345$as_echo_n "checking for $ac_word... " >&6; }
12346if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
9a819804
AO
12348else
12349 if test -n "$WINDRES_FOR_TARGET"; then
12350 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
12351else
12352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12353for as_dir in $PATH
12354do
12355 IFS=$as_save_IFS
12356 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12357 for ac_exec_ext in '' $ac_executable_extensions; do
12358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9a819804 12359 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9a819804
AO
12361 break 2
12362 fi
12363done
81ecdfbb
RW
12364 done
12365IFS=$as_save_IFS
9a819804
AO
12366
12367fi
12368fi
12369WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
12370if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12372$as_echo "$WINDRES_FOR_TARGET" >&6; }
9a819804 12373else
81ecdfbb
RW
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12375$as_echo "no" >&6; }
9a819804
AO
12376fi
12377
81ecdfbb 12378
9a819804
AO
12379 done
12380fi
12381
12382if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
2429c060 12383 for ncn_progname in windres; do
81ecdfbb
RW
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12385$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
3a35eeb3
PB
12386 if test -x $with_build_time_tools/${ncn_progname}; then
12387 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389$as_echo "yes" >&6; }
2429c060
PB
12390 break
12391 else
81ecdfbb
RW
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12393$as_echo "no" >&6; }
2429c060
PB
12394 fi
12395 done
12396fi
12397
12398if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
12399 for ncn_progname in windres; do
12400 if test -n "$ncn_target_tool_prefix"; then
12401 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
05cbd757 12402set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404$as_echo_n "checking for $ac_word... " >&6; }
12405if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12406 $as_echo_n "(cached) " >&6
859789af 12407else
55db4b87
PB
12408 if test -n "$WINDRES_FOR_TARGET"; then
12409 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12410else
c6b750e1
DJ
12411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412for as_dir in $PATH
12413do
12414 IFS=$as_save_IFS
12415 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12416 for ac_exec_ext in '' $ac_executable_extensions; do
12417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12418 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12420 break 2
12421 fi
12422done
81ecdfbb
RW
12423 done
12424IFS=$as_save_IFS
c6b750e1 12425
859789af
AC
12426fi
12427fi
c6b750e1 12428WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
55db4b87 12429if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12431$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12432else
81ecdfbb
RW
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434$as_echo "no" >&6; }
859789af
AC
12435fi
12436
81ecdfbb 12437
2429c060
PB
12438 fi
12439 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
12440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
05cbd757 12441set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12443$as_echo_n "checking for $ac_word... " >&6; }
12444if test "${ac_cv_prog_WINDRES_FOR_TARGET+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
859789af 12446else
05cbd757
PB
12447 if test -n "$WINDRES_FOR_TARGET"; then
12448 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
859789af 12449else
c6b750e1
DJ
12450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451for as_dir in $PATH
12452do
12453 IFS=$as_save_IFS
12454 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12455 for ac_exec_ext in '' $ac_executable_extensions; do
12456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
c6b750e1 12457 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
81ecdfbb 12458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
c6b750e1
DJ
12459 break 2
12460 fi
12461done
81ecdfbb
RW
12462 done
12463IFS=$as_save_IFS
c6b750e1 12464
859789af
AC
12465fi
12466fi
c6b750e1 12467WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
05cbd757 12468if test -n "$WINDRES_FOR_TARGET"; then
81ecdfbb
RW
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
12470$as_echo "$WINDRES_FOR_TARGET" >&6; }
859789af 12471else
81ecdfbb
RW
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473$as_echo "no" >&6; }
859789af 12474fi
c6b750e1 12475
81ecdfbb 12476
2429c060
PB
12477 fi
12478 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
12479 done
12480fi
c6b750e1 12481
05cbd757
PB
12482if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
12483 set dummy windres
12484 if test $build = $target ; then
12485 WINDRES_FOR_TARGET="$2"
859789af 12486 else
05cbd757 12487 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
859789af 12488 fi
d3f5afc4
MS
12489else
12490 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
859789af
AC
12491fi
12492
3a35eeb3
PB
12493else
12494 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
2429c060
PB
12495fi
12496
852e5f18 12497
0c24b341
NC
12498
12499
12500if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12501 if test -n "$with_build_time_tools"; then
81ecdfbb
RW
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
12503$as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
0c24b341
NC
12504 if test -x $with_build_time_tools/windmc; then
12505 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
12506 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
81ecdfbb
RW
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
12508$as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
0c24b341 12509 else
81ecdfbb
RW
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12511$as_echo "no" >&6; }
0c24b341
NC
12512 fi
12513 elif test $build != $host && test $have_gcc_for_target = yes; then
12514 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
12515 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
12516 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12517 fi
12518fi
12519if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
12520 # Extract the first word of "windmc", so it can be a program name with args.
12521set dummy windmc; ac_word=$2
81ecdfbb
RW
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523$as_echo_n "checking for $ac_word... " >&6; }
12524if test "${ac_cv_path_WINDMC_FOR_TARGET+set}" = set; then :
12525 $as_echo_n "(cached) " >&6
0c24b341
NC
12526else
12527 case $WINDMC_FOR_TARGET in
12528 [\\/]* | ?:[\\/]*)
12529 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
12530 ;;
12531 *)
12532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12533for as_dir in $gcc_cv_tool_dirs
12534do
12535 IFS=$as_save_IFS
12536 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12537 for ac_exec_ext in '' $ac_executable_extensions; do
12538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12539 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 12540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12541 break 2
12542 fi
12543done
81ecdfbb
RW
12544 done
12545IFS=$as_save_IFS
0c24b341
NC
12546
12547 ;;
12548esac
12549fi
12550WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
0c24b341 12551if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12553$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12554else
81ecdfbb
RW
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556$as_echo "no" >&6; }
0c24b341
NC
12557fi
12558
81ecdfbb 12559
0c24b341
NC
12560fi
12561if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
12562
12563
12564if test -n "$WINDMC_FOR_TARGET"; then
12565 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
12566elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12567 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12568fi
12569
12570if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12571 for ncn_progname in windmc; do
12572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12573set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12575$as_echo_n "checking for $ac_word... " >&6; }
12576if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12577 $as_echo_n "(cached) " >&6
0c24b341
NC
12578else
12579 if test -n "$WINDMC_FOR_TARGET"; then
12580 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12581else
12582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583for as_dir in $PATH
12584do
12585 IFS=$as_save_IFS
12586 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12589 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 12590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12591 break 2
12592 fi
12593done
81ecdfbb
RW
12594 done
12595IFS=$as_save_IFS
0c24b341
NC
12596
12597fi
12598fi
12599WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12600if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12602$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12603else
81ecdfbb
RW
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605$as_echo "no" >&6; }
0c24b341
NC
12606fi
12607
81ecdfbb 12608
0c24b341
NC
12609 done
12610fi
12611
12612if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12613 for ncn_progname in windmc; do
81ecdfbb
RW
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12615$as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
0c24b341
NC
12616 if test -x $with_build_time_tools/${ncn_progname}; then
12617 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
81ecdfbb
RW
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12619$as_echo "yes" >&6; }
0c24b341
NC
12620 break
12621 else
81ecdfbb
RW
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12623$as_echo "no" >&6; }
0c24b341
NC
12624 fi
12625 done
12626fi
12627
12628if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
12629 for ncn_progname in windmc; do
12630 if test -n "$ncn_target_tool_prefix"; then
12631 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12632set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
81ecdfbb
RW
12633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12634$as_echo_n "checking for $ac_word... " >&6; }
12635if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12636 $as_echo_n "(cached) " >&6
0c24b341
NC
12637else
12638 if test -n "$WINDMC_FOR_TARGET"; then
12639 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12640else
12641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12642for as_dir in $PATH
12643do
12644 IFS=$as_save_IFS
12645 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12646 for ac_exec_ext in '' $ac_executable_extensions; do
12647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12648 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
81ecdfbb 12649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12650 break 2
12651 fi
12652done
81ecdfbb
RW
12653 done
12654IFS=$as_save_IFS
0c24b341
NC
12655
12656fi
12657fi
12658WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12659if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12661$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12662else
81ecdfbb
RW
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12664$as_echo "no" >&6; }
0c24b341
NC
12665fi
12666
81ecdfbb 12667
0c24b341
NC
12668 fi
12669 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
12670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12671set dummy ${ncn_progname}; ac_word=$2
81ecdfbb
RW
12672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12673$as_echo_n "checking for $ac_word... " >&6; }
12674if test "${ac_cv_prog_WINDMC_FOR_TARGET+set}" = set; then :
12675 $as_echo_n "(cached) " >&6
0c24b341
NC
12676else
12677 if test -n "$WINDMC_FOR_TARGET"; then
12678 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
12679else
12680as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12681for as_dir in $PATH
12682do
12683 IFS=$as_save_IFS
12684 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
12685 for ac_exec_ext in '' $ac_executable_extensions; do
12686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
0c24b341 12687 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
81ecdfbb 12688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
0c24b341
NC
12689 break 2
12690 fi
12691done
81ecdfbb
RW
12692 done
12693IFS=$as_save_IFS
0c24b341
NC
12694
12695fi
12696fi
12697WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
12698if test -n "$WINDMC_FOR_TARGET"; then
81ecdfbb
RW
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
12700$as_echo "$WINDMC_FOR_TARGET" >&6; }
0c24b341 12701else
81ecdfbb
RW
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12703$as_echo "no" >&6; }
0c24b341
NC
12704fi
12705
81ecdfbb 12706
0c24b341
NC
12707 fi
12708 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
12709 done
12710fi
12711
12712if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
12713 set dummy windmc
12714 if test $build = $target ; then
12715 WINDMC_FOR_TARGET="$2"
12716 else
12717 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12718 fi
12719else
12720 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
12721fi
12722
12723else
12724 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
12725fi
12726
12727
be01d343
PB
12728RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
12729
81ecdfbb
RW
12730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
12731$as_echo_n "checking where to find the target ar... " >&6; }
be01d343 12732if test "x${build}" != "x${host}" ; then
2429c060
PB
12733 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12734 # We already found the complete path
b8025f34 12735 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12737$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12738 else
12739 # Canadian cross, just use what we found
81ecdfbb
RW
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12741$as_echo "pre-installed" >&6; }
2429c060 12742 fi
be01d343
PB
12743else
12744 ok=yes
12745 case " ${configdirs} " in
12746 *" binutils "*) ;;
12747 *) ok=no ;;
12748 esac
c6b750e1 12749
be01d343
PB
12750 if test $ok = yes; then
12751 # An in-tree tool is available and we can use it
12752 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
81ecdfbb
RW
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12754$as_echo "just compiled" >&6; }
2429c060
PB
12755 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
12756 # We already found the complete path
b8025f34 12757 ac_dir=`dirname $AR_FOR_TARGET`
81ecdfbb
RW
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12759$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12760 elif test "x$target" = "x$host"; then
12761 # We can use an host tool
12762 AR_FOR_TARGET='$(AR)'
81ecdfbb
RW
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12764$as_echo "host tool" >&6; }
be01d343
PB
12765 else
12766 # We need a cross tool
81ecdfbb
RW
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12768$as_echo "pre-installed" >&6; }
be01d343
PB
12769 fi
12770fi
4b900473 12771
81ecdfbb
RW
12772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
12773$as_echo_n "checking where to find the target as... " >&6; }
be01d343 12774if test "x${build}" != "x${host}" ; then
2429c060
PB
12775 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12776 # We already found the complete path
b8025f34 12777 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12779$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12780 else
12781 # Canadian cross, just use what we found
81ecdfbb
RW
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12783$as_echo "pre-installed" >&6; }
2429c060 12784 fi
be01d343
PB
12785else
12786 ok=yes
12787 case " ${configdirs} " in
12788 *" gas "*) ;;
12789 *) ok=no ;;
12790 esac
c6b750e1 12791
be01d343
PB
12792 if test $ok = yes; then
12793 # An in-tree tool is available and we can use it
12794 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
81ecdfbb
RW
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12796$as_echo "just compiled" >&6; }
2429c060
PB
12797 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
12798 # We already found the complete path
b8025f34 12799 ac_dir=`dirname $AS_FOR_TARGET`
81ecdfbb
RW
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12801$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12802 elif test "x$target" = "x$host"; then
12803 # We can use an host tool
12804 AS_FOR_TARGET='$(AS)'
81ecdfbb
RW
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12806$as_echo "host tool" >&6; }
be01d343
PB
12807 else
12808 # We need a cross tool
81ecdfbb
RW
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12810$as_echo "pre-installed" >&6; }
be01d343
PB
12811 fi
12812fi
4b900473 12813
81ecdfbb
RW
12814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
12815$as_echo_n "checking where to find the target cc... " >&6; }
be01d343 12816if test "x${build}" != "x${host}" ; then
2429c060
PB
12817 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12818 # We already found the complete path
b8025f34 12819 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12821$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12822 else
12823 # Canadian cross, just use what we found
81ecdfbb
RW
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12825$as_echo "pre-installed" >&6; }
2429c060 12826 fi
be01d343
PB
12827else
12828 ok=yes
12829 case " ${configdirs} " in
12830 *" gcc "*) ;;
12831 *) ok=no ;;
12832 esac
c6b750e1 12833
be01d343
PB
12834 if test $ok = yes; then
12835 # An in-tree tool is available and we can use it
12836 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12838$as_echo "just compiled" >&6; }
2429c060
PB
12839 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
12840 # We already found the complete path
b8025f34 12841 ac_dir=`dirname $CC_FOR_TARGET`
81ecdfbb
RW
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12843$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12844 elif test "x$target" = "x$host"; then
12845 # We can use an host tool
12846 CC_FOR_TARGET='$(CC)'
81ecdfbb
RW
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12848$as_echo "host tool" >&6; }
be01d343
PB
12849 else
12850 # We need a cross tool
81ecdfbb
RW
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12852$as_echo "pre-installed" >&6; }
be01d343
PB
12853 fi
12854fi
4b900473 12855
81ecdfbb
RW
12856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
12857$as_echo_n "checking where to find the target c++... " >&6; }
be01d343 12858if test "x${build}" != "x${host}" ; then
2429c060
PB
12859 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12860 # We already found the complete path
b8025f34 12861 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12863$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12864 else
12865 # Canadian cross, just use what we found
81ecdfbb
RW
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12867$as_echo "pre-installed" >&6; }
2429c060 12868 fi
be01d343
PB
12869else
12870 ok=yes
12871 case " ${configdirs} " in
12872 *" gcc "*) ;;
12873 *) ok=no ;;
12874 esac
12875 case ,${enable_languages}, in
12876 *,c++,*) ;;
12877 *) ok=no ;;
12878 esac
12879 if test $ok = yes; then
12880 # An in-tree tool is available and we can use it
12881 CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `test ! -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags || $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
81ecdfbb
RW
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12883$as_echo "just compiled" >&6; }
2429c060
PB
12884 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
12885 # We already found the complete path
b8025f34 12886 ac_dir=`dirname $CXX_FOR_TARGET`
81ecdfbb
RW
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12888$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12889 elif test "x$target" = "x$host"; then
12890 # We can use an host tool
12891 CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12893$as_echo "host tool" >&6; }
be01d343
PB
12894 else
12895 # We need a cross tool
81ecdfbb
RW
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12897$as_echo "pre-installed" >&6; }
be01d343
PB
12898 fi
12899fi
4b900473 12900
81ecdfbb
RW
12901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
12902$as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
be01d343 12903if test "x${build}" != "x${host}" ; then
2429c060
PB
12904 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12905 # We already found the complete path
b8025f34 12906 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12908$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12909 else
12910 # Canadian cross, just use what we found
81ecdfbb
RW
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12912$as_echo "pre-installed" >&6; }
2429c060 12913 fi
be01d343
PB
12914else
12915 ok=yes
12916 case " ${configdirs} " in
12917 *" gcc "*) ;;
12918 *) ok=no ;;
12919 esac
12920 case ,${enable_languages}, in
12921 *,c++,*) ;;
12922 *) ok=no ;;
12923 esac
12924 if test $ok = yes; then
12925 # An in-tree tool is available and we can use it
12926 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
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12928$as_echo "just compiled" >&6; }
2429c060
PB
12929 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
12930 # We already found the complete path
b8025f34 12931 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
81ecdfbb
RW
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12933$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12934 elif test "x$target" = "x$host"; then
12935 # We can use an host tool
12936 RAW_CXX_FOR_TARGET='$(CXX)'
81ecdfbb
RW
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12938$as_echo "host tool" >&6; }
be01d343
PB
12939 else
12940 # We need a cross tool
81ecdfbb
RW
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12942$as_echo "pre-installed" >&6; }
be01d343
PB
12943 fi
12944fi
4b900473 12945
81ecdfbb
RW
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
12947$as_echo_n "checking where to find the target dlltool... " >&6; }
be01d343 12948if test "x${build}" != "x${host}" ; then
2429c060
PB
12949 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12950 # We already found the complete path
b8025f34 12951 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12953$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12954 else
12955 # Canadian cross, just use what we found
81ecdfbb
RW
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12957$as_echo "pre-installed" >&6; }
2429c060 12958 fi
be01d343
PB
12959else
12960 ok=yes
12961 case " ${configdirs} " in
12962 *" binutils "*) ;;
12963 *) ok=no ;;
12964 esac
c6b750e1 12965
be01d343
PB
12966 if test $ok = yes; then
12967 # An in-tree tool is available and we can use it
12968 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
81ecdfbb
RW
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
12970$as_echo "just compiled" >&6; }
2429c060
PB
12971 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
12972 # We already found the complete path
b8025f34 12973 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
81ecdfbb
RW
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12975$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
12976 elif test "x$target" = "x$host"; then
12977 # We can use an host tool
12978 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
81ecdfbb
RW
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
12980$as_echo "host tool" >&6; }
be01d343
PB
12981 else
12982 # We need a cross tool
81ecdfbb
RW
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12984$as_echo "pre-installed" >&6; }
be01d343
PB
12985 fi
12986fi
4b900473 12987
81ecdfbb
RW
12988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
12989$as_echo_n "checking where to find the target gcc... " >&6; }
be01d343 12990if test "x${build}" != "x${host}" ; then
2429c060
PB
12991 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
12992 # We already found the complete path
b8025f34 12993 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
12995$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
12996 else
12997 # Canadian cross, just use what we found
81ecdfbb
RW
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
12999$as_echo "pre-installed" >&6; }
2429c060 13000 fi
be01d343
PB
13001else
13002 ok=yes
13003 case " ${configdirs} " in
13004 *" gcc "*) ;;
13005 *) ok=no ;;
13006 esac
c6b750e1 13007
be01d343
PB
13008 if test $ok = yes; then
13009 # An in-tree tool is available and we can use it
13010 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13012$as_echo "just compiled" >&6; }
2429c060
PB
13013 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
13014 # We already found the complete path
b8025f34 13015 ac_dir=`dirname $GCC_FOR_TARGET`
81ecdfbb
RW
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13017$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13018 elif test "x$target" = "x$host"; then
13019 # We can use an host tool
13020 GCC_FOR_TARGET='$()'
81ecdfbb
RW
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13022$as_echo "host tool" >&6; }
be01d343
PB
13023 else
13024 # We need a cross tool
81ecdfbb
RW
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13026$as_echo "pre-installed" >&6; }
be01d343
PB
13027 fi
13028fi
4b900473 13029
81ecdfbb
RW
13030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcj" >&5
13031$as_echo_n "checking where to find the target gcj... " >&6; }
be01d343 13032if test "x${build}" != "x${host}" ; then
2429c060
PB
13033 if expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13034 # We already found the complete path
b8025f34 13035 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13037$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13038 else
13039 # Canadian cross, just use what we found
81ecdfbb
RW
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13041$as_echo "pre-installed" >&6; }
2429c060 13042 fi
be01d343
PB
13043else
13044 ok=yes
13045 case " ${configdirs} " in
13046 *" gcc "*) ;;
13047 *) ok=no ;;
13048 esac
13049 case ,${enable_languages}, in
13050 *,java,*) ;;
13051 *) ok=no ;;
13052 esac
13053 if test $ok = yes; then
13054 # An in-tree tool is available and we can use it
13055 GCJ_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gcj -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13057$as_echo "just compiled" >&6; }
2429c060
PB
13058 elif expr "x$GCJ_FOR_TARGET" : "x/" > /dev/null; then
13059 # We already found the complete path
b8025f34 13060 ac_dir=`dirname $GCJ_FOR_TARGET`
81ecdfbb
RW
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13062$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13063 elif test "x$target" = "x$host"; then
13064 # We can use an host tool
13065 GCJ_FOR_TARGET='$(GCJ)'
81ecdfbb
RW
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13067$as_echo "host tool" >&6; }
be01d343
PB
13068 else
13069 # We need a cross tool
81ecdfbb
RW
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13071$as_echo "pre-installed" >&6; }
be01d343
PB
13072 fi
13073fi
4b900473 13074
81ecdfbb
RW
13075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
13076$as_echo_n "checking where to find the target gfortran... " >&6; }
be01d343 13077if test "x${build}" != "x${host}" ; then
2429c060
PB
13078 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13079 # We already found the complete path
b8025f34 13080 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13082$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13083 else
13084 # Canadian cross, just use what we found
81ecdfbb
RW
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13086$as_echo "pre-installed" >&6; }
2429c060 13087 fi
be01d343
PB
13088else
13089 ok=yes
13090 case " ${configdirs} " in
13091 *" gcc "*) ;;
13092 *) ok=no ;;
13093 esac
13094 case ,${enable_languages}, in
13095 *,fortran,*) ;;
13096 *) ok=no ;;
13097 esac
13098 if test $ok = yes; then
13099 # An in-tree tool is available and we can use it
13100 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
81ecdfbb
RW
13101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13102$as_echo "just compiled" >&6; }
2429c060
PB
13103 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
13104 # We already found the complete path
b8025f34 13105 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
81ecdfbb
RW
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13107$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13108 elif test "x$target" = "x$host"; then
13109 # We can use an host tool
13110 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
81ecdfbb
RW
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13112$as_echo "host tool" >&6; }
be01d343
PB
13113 else
13114 # We need a cross tool
81ecdfbb
RW
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13116$as_echo "pre-installed" >&6; }
be01d343
PB
13117 fi
13118fi
4b900473 13119
81ecdfbb
RW
13120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
13121$as_echo_n "checking where to find the target ld... " >&6; }
be01d343 13122if test "x${build}" != "x${host}" ; then
2429c060
PB
13123 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13124 # We already found the complete path
b8025f34 13125 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13127$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13128 else
13129 # Canadian cross, just use what we found
81ecdfbb
RW
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13131$as_echo "pre-installed" >&6; }
2429c060 13132 fi
be01d343
PB
13133else
13134 ok=yes
13135 case " ${configdirs} " in
13136 *" ld "*) ;;
13137 *) ok=no ;;
13138 esac
c6b750e1 13139
be01d343
PB
13140 if test $ok = yes; then
13141 # An in-tree tool is available and we can use it
13142 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
81ecdfbb
RW
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13144$as_echo "just compiled" >&6; }
2429c060
PB
13145 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
13146 # We already found the complete path
b8025f34 13147 ac_dir=`dirname $LD_FOR_TARGET`
81ecdfbb
RW
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13149$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13150 elif test "x$target" = "x$host"; then
13151 # We can use an host tool
13152 LD_FOR_TARGET='$(LD)'
81ecdfbb
RW
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13154$as_echo "host tool" >&6; }
be01d343
PB
13155 else
13156 # We need a cross tool
81ecdfbb
RW
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13158$as_echo "pre-installed" >&6; }
be01d343
PB
13159 fi
13160fi
4b900473 13161
81ecdfbb
RW
13162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target lipo" >&5
13163$as_echo_n "checking where to find the target lipo... " >&6; }
be01d343 13164if test "x${build}" != "x${host}" ; then
2429c060
PB
13165 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13166 # We already found the complete path
b8025f34 13167 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13169$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13170 else
13171 # Canadian cross, just use what we found
81ecdfbb
RW
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13173$as_echo "pre-installed" >&6; }
2429c060 13174 fi
be01d343 13175else
2429c060
PB
13176 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
13177 # We already found the complete path
b8025f34 13178 ac_dir=`dirname $LIPO_FOR_TARGET`
81ecdfbb
RW
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13180$as_echo "pre-installed in $ac_dir" >&6; }
2429c060 13181 elif test "x$target" = "x$host"; then
be01d343
PB
13182 # We can use an host tool
13183 LIPO_FOR_TARGET='$(LIPO)'
81ecdfbb
RW
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13185$as_echo "host tool" >&6; }
be01d343
PB
13186 else
13187 # We need a cross tool
81ecdfbb
RW
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13189$as_echo "pre-installed" >&6; }
be01d343
PB
13190 fi
13191fi
4b900473 13192
81ecdfbb
RW
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
13194$as_echo_n "checking where to find the target nm... " >&6; }
be01d343 13195if test "x${build}" != "x${host}" ; then
2429c060
PB
13196 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13197 # We already found the complete path
b8025f34 13198 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13200$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13201 else
13202 # Canadian cross, just use what we found
81ecdfbb
RW
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13204$as_echo "pre-installed" >&6; }
2429c060 13205 fi
be01d343
PB
13206else
13207 ok=yes
13208 case " ${configdirs} " in
13209 *" binutils "*) ;;
13210 *) ok=no ;;
13211 esac
c6b750e1 13212
be01d343
PB
13213 if test $ok = yes; then
13214 # An in-tree tool is available and we can use it
13215 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
81ecdfbb
RW
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13217$as_echo "just compiled" >&6; }
2429c060
PB
13218 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
13219 # We already found the complete path
b8025f34 13220 ac_dir=`dirname $NM_FOR_TARGET`
81ecdfbb
RW
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13222$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13223 elif test "x$target" = "x$host"; then
13224 # We can use an host tool
13225 NM_FOR_TARGET='$(NM)'
81ecdfbb
RW
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13227$as_echo "host tool" >&6; }
be01d343
PB
13228 else
13229 # We need a cross tool
81ecdfbb
RW
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13231$as_echo "pre-installed" >&6; }
be01d343
PB
13232 fi
13233fi
4b900473 13234
81ecdfbb
RW
13235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
13236$as_echo_n "checking where to find the target objdump... " >&6; }
be01d343 13237if test "x${build}" != "x${host}" ; then
2429c060
PB
13238 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13239 # We already found the complete path
b8025f34 13240 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13242$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13243 else
13244 # Canadian cross, just use what we found
81ecdfbb
RW
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13246$as_echo "pre-installed" >&6; }
2429c060 13247 fi
be01d343
PB
13248else
13249 ok=yes
13250 case " ${configdirs} " in
13251 *" binutils "*) ;;
13252 *) ok=no ;;
13253 esac
c6b750e1 13254
be01d343
PB
13255 if test $ok = yes; then
13256 # An in-tree tool is available and we can use it
13257 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
81ecdfbb
RW
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13259$as_echo "just compiled" >&6; }
2429c060
PB
13260 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
13261 # We already found the complete path
b8025f34 13262 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
81ecdfbb
RW
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13264$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13265 elif test "x$target" = "x$host"; then
13266 # We can use an host tool
13267 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
81ecdfbb
RW
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13269$as_echo "host tool" >&6; }
be01d343
PB
13270 else
13271 # We need a cross tool
81ecdfbb
RW
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13273$as_echo "pre-installed" >&6; }
be01d343
PB
13274 fi
13275fi
4b900473 13276
81ecdfbb
RW
13277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
13278$as_echo_n "checking where to find the target ranlib... " >&6; }
be01d343 13279if test "x${build}" != "x${host}" ; then
2429c060
PB
13280 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13281 # We already found the complete path
b8025f34 13282 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13284$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13285 else
13286 # Canadian cross, just use what we found
81ecdfbb
RW
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13288$as_echo "pre-installed" >&6; }
2429c060 13289 fi
be01d343
PB
13290else
13291 ok=yes
13292 case " ${configdirs} " in
13293 *" binutils "*) ;;
13294 *) ok=no ;;
13295 esac
c6b750e1 13296
be01d343
PB
13297 if test $ok = yes; then
13298 # An in-tree tool is available and we can use it
13299 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
81ecdfbb
RW
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13301$as_echo "just compiled" >&6; }
2429c060
PB
13302 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
13303 # We already found the complete path
b8025f34 13304 ac_dir=`dirname $RANLIB_FOR_TARGET`
81ecdfbb
RW
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13306$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13307 elif test "x$target" = "x$host"; then
13308 # We can use an host tool
13309 RANLIB_FOR_TARGET='$(RANLIB)'
81ecdfbb
RW
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13311$as_echo "host tool" >&6; }
be01d343
PB
13312 else
13313 # We need a cross tool
81ecdfbb
RW
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13315$as_echo "pre-installed" >&6; }
be01d343
PB
13316 fi
13317fi
4b900473 13318
81ecdfbb
RW
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
13320$as_echo_n "checking where to find the target strip... " >&6; }
be01d343 13321if test "x${build}" != "x${host}" ; then
2429c060
PB
13322 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13323 # We already found the complete path
b8025f34 13324 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13326$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13327 else
13328 # Canadian cross, just use what we found
81ecdfbb
RW
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13330$as_echo "pre-installed" >&6; }
2429c060 13331 fi
be01d343
PB
13332else
13333 ok=yes
13334 case " ${configdirs} " in
13335 *" binutils "*) ;;
13336 *) ok=no ;;
13337 esac
c6b750e1 13338
be01d343
PB
13339 if test $ok = yes; then
13340 # An in-tree tool is available and we can use it
13341 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip'
81ecdfbb
RW
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13343$as_echo "just compiled" >&6; }
2429c060
PB
13344 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
13345 # We already found the complete path
b8025f34 13346 ac_dir=`dirname $STRIP_FOR_TARGET`
81ecdfbb
RW
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13348$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13349 elif test "x$target" = "x$host"; then
13350 # We can use an host tool
13351 STRIP_FOR_TARGET='$(STRIP)'
81ecdfbb
RW
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13353$as_echo "host tool" >&6; }
be01d343
PB
13354 else
13355 # We need a cross tool
81ecdfbb
RW
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13357$as_echo "pre-installed" >&6; }
be01d343
PB
13358 fi
13359fi
4b900473 13360
81ecdfbb
RW
13361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
13362$as_echo_n "checking where to find the target windres... " >&6; }
be01d343 13363if test "x${build}" != "x${host}" ; then
2429c060
PB
13364 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13365 # We already found the complete path
b8025f34 13366 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13368$as_echo "pre-installed in $ac_dir" >&6; }
2429c060
PB
13369 else
13370 # Canadian cross, just use what we found
81ecdfbb
RW
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13372$as_echo "pre-installed" >&6; }
2429c060 13373 fi
be01d343
PB
13374else
13375 ok=yes
13376 case " ${configdirs} " in
13377 *" binutils "*) ;;
13378 *) ok=no ;;
13379 esac
c6b750e1 13380
be01d343
PB
13381 if test $ok = yes; then
13382 # An in-tree tool is available and we can use it
13383 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
81ecdfbb
RW
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13385$as_echo "just compiled" >&6; }
2429c060
PB
13386 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
13387 # We already found the complete path
b8025f34 13388 ac_dir=`dirname $WINDRES_FOR_TARGET`
81ecdfbb
RW
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13390$as_echo "pre-installed in $ac_dir" >&6; }
be01d343
PB
13391 elif test "x$target" = "x$host"; then
13392 # We can use an host tool
13393 WINDRES_FOR_TARGET='$(WINDRES)'
81ecdfbb
RW
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13395$as_echo "host tool" >&6; }
be01d343
PB
13396 else
13397 # We need a cross tool
81ecdfbb
RW
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13399$as_echo "pre-installed" >&6; }
be01d343 13400 fi
a0da8069 13401fi
54752a6b 13402
81ecdfbb
RW
13403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
13404$as_echo_n "checking where to find the target windmc... " >&6; }
0c24b341
NC
13405if test "x${build}" != "x${host}" ; then
13406 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13407 # We already found the complete path
13408 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13410$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13411 else
13412 # Canadian cross, just use what we found
81ecdfbb
RW
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13414$as_echo "pre-installed" >&6; }
0c24b341
NC
13415 fi
13416else
13417 ok=yes
13418 case " ${configdirs} " in
13419 *" binutils "*) ;;
13420 *) ok=no ;;
13421 esac
13422
13423 if test $ok = yes; then
13424 # An in-tree tool is available and we can use it
13425 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
81ecdfbb
RW
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
13427$as_echo "just compiled" >&6; }
0c24b341
NC
13428 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
13429 # We already found the complete path
13430 ac_dir=`dirname $WINDMC_FOR_TARGET`
81ecdfbb
RW
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
13432$as_echo "pre-installed in $ac_dir" >&6; }
0c24b341
NC
13433 elif test "x$target" = "x$host"; then
13434 # We can use an host tool
13435 WINDMC_FOR_TARGET='$(WINDMC)'
81ecdfbb
RW
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
13437$as_echo "host tool" >&6; }
0c24b341
NC
13438 else
13439 # We need a cross tool
81ecdfbb
RW
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
13441$as_echo "pre-installed" >&6; }
0c24b341
NC
13442 fi
13443fi
13444
54752a6b
NN
13445
13446
be01d343 13447
4b900473 13448
a0da8069
NN
13449# Certain tools may need extra flags.
13450AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
13451RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
13452NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
13453
be01d343
PB
13454# When building target libraries, except in a Canadian cross, we use
13455# the same toolchain as the compiler we just built.
13456COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
13457COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
13458COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
13459if test $host = $build; then
13460 case " $configdirs " in
13461 *" gcc "*)
13462 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
13463 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
13464 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
13465 ;;
13466 esac
13467fi
13468
13469
13470
13471
13472
81ecdfbb
RW
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13474$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13475# Check whether --enable-maintainer-mode was given.
13476if test "${enable_maintainer_mode+set}" = set; then :
13477 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3d5e36ae
AO
13478else
13479 USE_MAINTAINER_MODE=no
81ecdfbb
RW
13480fi
13481
13482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13483$as_echo "$USE_MAINTAINER_MODE" >&6; }
3d5e36ae
AO
13484
13485
13486if test "$USE_MAINTAINER_MODE" = yes; then
13487 MAINTAINER_MODE_TRUE=
13488 MAINTAINER_MODE_FALSE='#'
13489else
13490 MAINTAINER_MODE_TRUE='#'
13491 MAINTAINER_MODE_FALSE=
c6b750e1 13492fi
3d5e36ae
AO
13493MAINT=$MAINTAINER_MODE_TRUE
13494
1d39f329
NN
13495# ---------------------
13496# GCC bootstrap support
13497# ---------------------
13498
13499# Stage specific cflags for build.
13500stage1_cflags="-g"
13501case $build in
13502 vax-*-*)
13503 case ${GCC} in
13504 yes) stage1_cflags="-g -Wa,-J" ;;
13505 *) stage1_cflags="-g -J" ;;
13506 esac ;;
1d39f329
NN
13507esac
13508
1d89b610 13509# This is aimed to mimic bootstrap with a non-GCC compiler to catch problems.
e8a5fa9c 13510if test "$GCC" = yes -a "$ENABLE_BUILD_WITH_CXX" != yes; then
1d89b610
PB
13511 saved_CFLAGS="$CFLAGS"
13512
13513 # Pass -fkeep-inline-functions for stage 1 if the GCC version supports it.
13514 CFLAGS="$CFLAGS -fkeep-inline-functions"
81ecdfbb
RW
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -fkeep-inline-functions is supported" >&5
13516$as_echo_n "checking whether -fkeep-inline-functions is supported... " >&6; }
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
c6b750e1
DJ
13518/* end confdefs.h. */
13519
2038f525
PB
13520#if (__GNUC__ < 3) \
13521 || (__GNUC__ == 3 && (__GNUC_MINOR__ < 3 \
13522 || (__GNUC_MINOR__ == 3 && __GNUC_PATCHLEVEL__ < 1)))
13523#error http://gcc.gnu.org/PR29382
13524#endif
13525
c6b750e1
DJ
13526int
13527main ()
13528{
13529
13530 ;
13531 return 0;
13532}
13533_ACEOF
81ecdfbb
RW
13534if ac_fn_c_try_compile "$LINENO"; then :
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13536$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions"
c6b750e1 13537else
81ecdfbb
RW
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13539$as_echo "no" >&6; }
c6b750e1 13540fi
81ecdfbb 13541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1d89b610
PB
13542
13543 CFLAGS="$saved_CFLAGS"
13544fi
13545
13546
1d39f329 13547
8a0d8a5c 13548# Enable --enable-checking in stage1 of the compiler.
81ecdfbb
RW
13549# Check whether --enable-stage1-checking was given.
13550if test "${enable_stage1_checking+set}" = set; then :
13551 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
8a0d8a5c 13552else
5566c1fa 13553 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
2abc4e65 13554 stage1_checking=--enable-checking=yes,types
8a0d8a5c 13555else
5566c1fa 13556 stage1_checking=--enable-checking=$enable_checking,types
8a0d8a5c 13557fi
81ecdfbb 13558fi
8a0d8a5c
PB
13559
13560
c6b750e1 13561
81ecdfbb
RW
13562# Enable -Werror in bootstrap stage2 and later.
13563# Check whether --enable-werror was given.
13564if test "${enable_werror+set}" = set; then :
13565 enableval=$enable_werror;
1d39f329 13566else
a0323144 13567 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
1d39f329 13568 enable_werror=yes
79fcd0ec
PB
13569else
13570 enable_werror=no
13571fi
81ecdfbb
RW
13572fi
13573
1a6f2dc7
NN
13574case ${enable_werror} in
13575 yes) stage2_werror_flag="--enable-werror-always" ;;
13576 *) stage2_werror_flag="" ;;
1d39f329
NN
13577esac
13578
13579
e8a5fa9c
RW
13580# Specify what files to not compare during bootstrap.
13581
13582compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
13583case "$target" in
13584 hppa*64*-*-hpux*) ;;
13585 hppa*-*-hpux*) compare_exclusions="gcc/cc*-checksum\$(objext) | */libgcc/lib2funcs* | gcc/ada/*tools/*" ;;
13586esac
1f53ca9a
AO
13587case " $configdirs " in
13588*" ppl "*) compare_exclusions="$compare_exclusions | ppl/src/ppl-config.o" ;;
13589esac
e8a5fa9c
RW
13590
13591
81ecdfbb
RW
13592ac_config_files="$ac_config_files Makefile"
13593
c6b750e1 13594cat >confcache <<\_ACEOF
a0da8069
NN
13595# This file is a shell script that caches the results of configure
13596# tests run on this system so they can be shared between configure
c6b750e1
DJ
13597# scripts and configure runs, see configure's option --config-cache.
13598# It is not useful on other systems. If it contains results you don't
13599# want to keep, you may remove or edit it.
a0da8069 13600#
c6b750e1
DJ
13601# config.status only pays attention to the cache file if you give it
13602# the --recheck option to rerun configure.
a0da8069 13603#
c6b750e1
DJ
13604# `ac_cv_env_foo' variables (set or unset) will be overridden when
13605# loading this file, other *unset* `ac_cv_foo' will be assigned the
13606# following values.
13607
13608_ACEOF
13609
a0da8069
NN
13610# The following way of writing the cache mishandles newlines in values,
13611# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 13612# So, we kill variables containing newlines.
a0da8069
NN
13613# Ultrix sh set writes to stderr and can't be redirected directly,
13614# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
13615(
13616 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13617 eval ac_val=\$$ac_var
13618 case $ac_val in #(
13619 *${as_nl}*)
13620 case $ac_var in #(
13621 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13622$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13623 esac
13624 case $ac_var in #(
13625 _ | IFS | as_nl) ;; #(
13626 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13627 *) { eval $ac_var=; unset $ac_var;} ;;
13628 esac ;;
13629 esac
13630 done
13631
c6b750e1 13632 (set) 2>&1 |
81ecdfbb
RW
13633 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13634 *${as_nl}ac_space=\ *)
13635 # `set' does not quote correctly, so add quotes: double-quote
13636 # substitution turns \\\\ into \\, and sed turns \\ into \.
c6b750e1
DJ
13637 sed -n \
13638 "s/'/'\\\\''/g;
13639 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 13640 ;; #(
c6b750e1
DJ
13641 *)
13642 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 13643 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
c6b750e1 13644 ;;
81ecdfbb
RW
13645 esac |
13646 sort
13647) |
c6b750e1 13648 sed '
81ecdfbb 13649 /^ac_cv_env_/b end
c6b750e1 13650 t clear
81ecdfbb 13651 :clear
c6b750e1
DJ
13652 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13653 t end
81ecdfbb
RW
13654 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13655 :end' >>confcache
13656if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13657 if test -w "$cache_file"; then
13658 test "x$cache_file" != "x/dev/null" &&
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13660$as_echo "$as_me: updating cache $cache_file" >&6;}
c6b750e1 13661 cat confcache >$cache_file
a0da8069 13662 else
81ecdfbb
RW
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13664$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
a0da8069 13665 fi
852e5f18 13666fi
a0da8069 13667rm -f confcache
852e5f18 13668
a0da8069
NN
13669test "x$prefix" = xNONE && prefix=$ac_default_prefix
13670# Let make expand exec_prefix.
13671test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
852e5f18 13672
a0da8069
NN
13673# Transform confdefs.h into DEFS.
13674# Protect against shell expansion while executing Makefile rules.
13675# Protect against Makefile macro expansion.
c6b750e1
DJ
13676#
13677# If the first sed substitution is executed (which looks for macros that
81ecdfbb 13678# take arguments), then branch to the quote section. Otherwise,
c6b750e1 13679# look for a macro that doesn't take arguments.
81ecdfbb
RW
13680ac_script='
13681:mline
13682/\\$/{
13683 N
13684 s,\\\n,,
13685 b mline
13686}
c6b750e1 13687t clear
81ecdfbb
RW
13688:clear
13689s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 13690t quote
81ecdfbb 13691s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
c6b750e1 13692t quote
81ecdfbb
RW
13693b any
13694:quote
13695s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
13696s/\[/\\&/g
13697s/\]/\\&/g
13698s/\$/$$/g
13699H
13700:any
13701${
13702 g
13703 s/^\n//
13704 s/\n/ /g
13705 p
13706}
13707'
13708DEFS=`sed -n "$ac_script" confdefs.h`
c6b750e1
DJ
13709
13710
13711ac_libobjs=
13712ac_ltlibobjs=
13713for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13714 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
13715 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13716 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13717 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13718 # will be set to the directory where LIBOBJS objects are built.
13719 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13720 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
c6b750e1
DJ
13721done
13722LIBOBJS=$ac_libobjs
852e5f18 13723
c6b750e1 13724LTLIBOBJS=$ac_ltlibobjs
376a0e54 13725
cac3d6c4 13726
c6b750e1
DJ
13727
13728: ${CONFIG_STATUS=./config.status}
81ecdfbb 13729ac_write_fail=0
c6b750e1
DJ
13730ac_clean_files_save=$ac_clean_files
13731ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13733$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13734as_write_fail=0
13735cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
c6b750e1
DJ
13736#! $SHELL
13737# Generated by $as_me.
a0da8069 13738# Run this file to recreate the current configuration.
a0da8069 13739# Compiler output produced by configure, useful for debugging
c6b750e1 13740# configure, is in config.log if it exists.
376a0e54 13741
c6b750e1
DJ
13742debug=false
13743ac_cs_recheck=false
13744ac_cs_silent=false
c6b750e1 13745
81ecdfbb
RW
13746SHELL=\${CONFIG_SHELL-$SHELL}
13747export SHELL
13748_ASEOF
13749cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13750## -------------------- ##
13751## M4sh Initialization. ##
13752## -------------------- ##
13753
13754# Be more Bourne compatible
13755DUALCASE=1; export DUALCASE # for MKS sh
13756if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
c6b750e1
DJ
13757 emulate sh
13758 NULLCMD=:
81ecdfbb 13759 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
c6b750e1
DJ
13760 # is contrary to our usage. Disable this feature.
13761 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
13762 setopt NO_GLOB_SUBST
13763else
13764 case `(set -o) 2>/dev/null` in #(
13765 *posix*) :
13766 set -o posix ;; #(
13767 *) :
13768 ;;
13769esac
c6b750e1 13770fi
c6b750e1 13771
81ecdfbb
RW
13772
13773as_nl='
13774'
13775export as_nl
13776# Printing a long string crashes Solaris 7 /usr/bin/printf.
13777as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13778as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13779as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13780# Prefer a ksh shell builtin over an external printf program on Solaris,
13781# but without wasting forks for bash or zsh.
13782if test -z "$BASH_VERSION$ZSH_VERSION" \
13783 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13784 as_echo='print -r --'
13785 as_echo_n='print -rn --'
13786elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13787 as_echo='printf %s\n'
13788 as_echo_n='printf %s'
13789else
13790 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13791 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13792 as_echo_n='/usr/ucb/echo -n'
13793 else
13794 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13795 as_echo_n_body='eval
13796 arg=$1;
13797 case $arg in #(
13798 *"$as_nl"*)
13799 expr "X$arg" : "X\\(.*\\)$as_nl";
13800 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13801 esac;
13802 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13803 '
13804 export as_echo_n_body
13805 as_echo_n='sh -c $as_echo_n_body as_echo'
13806 fi
13807 export as_echo_body
13808 as_echo='sh -c $as_echo_body as_echo'
c6b750e1
DJ
13809fi
13810
81ecdfbb
RW
13811# The user is always right.
13812if test "${PATH_SEPARATOR+set}" != set; then
13813 PATH_SEPARATOR=:
13814 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13815 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13816 PATH_SEPARATOR=';'
13817 }
13818fi
13819
13820
13821# IFS
13822# We need space, tab and new line, in precisely that order. Quoting is
13823# there to prevent editors from complaining about space-tab.
13824# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13825# splitting by setting IFS to empty value.)
13826IFS=" "" $as_nl"
13827
13828# Find who we are. Look in the path if we contain no directory separator.
13829case $0 in #((
13830 *[\\/]* ) as_myself=$0 ;;
13831 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13832for as_dir in $PATH
13833do
13834 IFS=$as_save_IFS
13835 test -z "$as_dir" && as_dir=.
13836 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13837 done
13838IFS=$as_save_IFS
13839
13840 ;;
13841esac
13842# We did not find ourselves, most probably we were run as `sh COMMAND'
13843# in which case we are not to be found in the path.
13844if test "x$as_myself" = x; then
13845 as_myself=$0
13846fi
13847if test ! -f "$as_myself"; then
13848 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13849 exit 1
13850fi
c6b750e1 13851
81ecdfbb
RW
13852# Unset variables that we do not need and which cause bugs (e.g. in
13853# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13854# suppresses any "Segmentation fault" message there. '((' could
13855# trigger a bug in pdksh 5.2.14.
13856for as_var in BASH_ENV ENV MAIL MAILPATH
13857do eval test x\${$as_var+set} = xset \
13858 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13859done
c6b750e1
DJ
13860PS1='$ '
13861PS2='> '
13862PS4='+ '
13863
13864# NLS nuisances.
81ecdfbb
RW
13865LC_ALL=C
13866export LC_ALL
13867LANGUAGE=C
13868export LANGUAGE
13869
13870# CDPATH.
13871(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13872
13873
13874# as_fn_error ERROR [LINENO LOG_FD]
13875# ---------------------------------
13876# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13877# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13878# script with status $?, using 1 if that was 0.
13879as_fn_error ()
13880{
13881 as_status=$?; test $as_status -eq 0 && as_status=1
13882 if test "$3"; then
13883 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13884 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
c6b750e1 13885 fi
81ecdfbb
RW
13886 $as_echo "$as_me: error: $1" >&2
13887 as_fn_exit $as_status
13888} # as_fn_error
13889
13890
13891# as_fn_set_status STATUS
13892# -----------------------
13893# Set $? to STATUS, without forking.
13894as_fn_set_status ()
13895{
13896 return $1
13897} # as_fn_set_status
13898
13899# as_fn_exit STATUS
13900# -----------------
13901# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13902as_fn_exit ()
13903{
13904 set +e
13905 as_fn_set_status $1
13906 exit $1
13907} # as_fn_exit
13908
13909# as_fn_unset VAR
13910# ---------------
13911# Portably unset VAR.
13912as_fn_unset ()
13913{
13914 { eval $1=; unset $1;}
13915}
13916as_unset=as_fn_unset
13917# as_fn_append VAR VALUE
13918# ----------------------
13919# Append the text in VALUE to the end of the definition contained in VAR. Take
13920# advantage of any shell optimizations that allow amortized linear growth over
13921# repeated appends, instead of the typical quadratic growth present in naive
13922# implementations.
13923if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13924 eval 'as_fn_append ()
13925 {
13926 eval $1+=\$2
13927 }'
13928else
13929 as_fn_append ()
13930 {
13931 eval $1=\$$1\$2
13932 }
13933fi # as_fn_append
13934
13935# as_fn_arith ARG...
13936# ------------------
13937# Perform arithmetic evaluation on the ARGs, and store the result in the
13938# global $as_val. Take advantage of shells that can avoid forks. The arguments
13939# must be portable across $(()) and expr.
13940if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13941 eval 'as_fn_arith ()
13942 {
13943 as_val=$(( $* ))
13944 }'
13945else
13946 as_fn_arith ()
13947 {
13948 as_val=`expr "$@" || test $? -eq 1`
13949 }
13950fi # as_fn_arith
13951
c6b750e1 13952
81ecdfbb
RW
13953if expr a : '\(a\)' >/dev/null 2>&1 &&
13954 test "X`expr 00001 : '.*\(...\)'`" = X001; then
c6b750e1
DJ
13955 as_expr=expr
13956else
13957 as_expr=false
13958fi
13959
81ecdfbb 13960if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
c6b750e1
DJ
13961 as_basename=basename
13962else
13963 as_basename=false
13964fi
13965
81ecdfbb
RW
13966if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13967 as_dirname=dirname
13968else
13969 as_dirname=false
13970fi
c6b750e1 13971
81ecdfbb 13972as_me=`$as_basename -- "$0" ||
c6b750e1
DJ
13973$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13974 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
13975 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13976$as_echo X/"$0" |
13977 sed '/^.*\/\([^/][^/]*\)\/*$/{
13978 s//\1/
13979 q
13980 }
13981 /^X\/\(\/\/\)$/{
13982 s//\1/
13983 q
13984 }
13985 /^X\/\(\/\).*/{
13986 s//\1/
13987 q
13988 }
13989 s/.*/./; q'`
c6b750e1 13990
c6b750e1
DJ
13991# Avoid depending upon Character Ranges.
13992as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13993as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13994as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13995as_cr_digits='0123456789'
13996as_cr_alnum=$as_cr_Letters$as_cr_digits
13997
81ecdfbb
RW
13998ECHO_C= ECHO_N= ECHO_T=
13999case `echo -n x` in #(((((
14000-n*)
14001 case `echo 'xy\c'` in
14002 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14003 xy) ECHO_C='\c';;
14004 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14005 ECHO_T=' ';;
14006 esac;;
14007*)
14008 ECHO_N='-n';;
c6b750e1
DJ
14009esac
14010
81ecdfbb
RW
14011rm -f conf$$ conf$$.exe conf$$.file
14012if test -d conf$$.dir; then
14013 rm -f conf$$.dir/conf$$.file
c6b750e1 14014else
81ecdfbb
RW
14015 rm -f conf$$.dir
14016 mkdir conf$$.dir 2>/dev/null
c6b750e1 14017fi
81ecdfbb
RW
14018if (echo >conf$$.file) 2>/dev/null; then
14019 if ln -s conf$$.file conf$$ 2>/dev/null; then
c6b750e1 14020 as_ln_s='ln -s'
81ecdfbb
RW
14021 # ... but there are two gotchas:
14022 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14023 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14024 # In both cases, we have to default to `cp -p'.
14025 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14026 as_ln_s='cp -p'
14027 elif ln conf$$.file conf$$ 2>/dev/null; then
14028 as_ln_s=ln
14029 else
14030 as_ln_s='cp -p'
c6b750e1 14031 fi
c6b750e1
DJ
14032else
14033 as_ln_s='cp -p'
14034fi
81ecdfbb
RW
14035rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14036rmdir conf$$.dir 2>/dev/null
14037
14038
14039# as_fn_mkdir_p
14040# -------------
14041# Create "$as_dir" as a directory, including parents if necessary.
14042as_fn_mkdir_p ()
14043{
14044
14045 case $as_dir in #(
14046 -*) as_dir=./$as_dir;;
14047 esac
14048 test -d "$as_dir" || eval $as_mkdir_p || {
14049 as_dirs=
14050 while :; do
14051 case $as_dir in #(
14052 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14053 *) as_qdir=$as_dir;;
14054 esac
14055 as_dirs="'$as_qdir' $as_dirs"
14056 as_dir=`$as_dirname -- "$as_dir" ||
14057$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14058 X"$as_dir" : 'X\(//\)[^/]' \| \
14059 X"$as_dir" : 'X\(//\)$' \| \
14060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14061$as_echo X"$as_dir" |
14062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14063 s//\1/
14064 q
14065 }
14066 /^X\(\/\/\)[^/].*/{
14067 s//\1/
14068 q
14069 }
14070 /^X\(\/\/\)$/{
14071 s//\1/
14072 q
14073 }
14074 /^X\(\/\).*/{
14075 s//\1/
14076 q
14077 }
14078 s/.*/./; q'`
14079 test -d "$as_dir" && break
14080 done
14081 test -z "$as_dirs" || eval "mkdir $as_dirs"
14082 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14083
c6b750e1 14084
81ecdfbb 14085} # as_fn_mkdir_p
c6b750e1 14086if mkdir -p . 2>/dev/null; then
81ecdfbb 14087 as_mkdir_p='mkdir -p "$as_dir"'
c6b750e1
DJ
14088else
14089 test -d ./-p && rmdir ./-p
14090 as_mkdir_p=false
14091fi
14092
81ecdfbb
RW
14093if test -x / >/dev/null 2>&1; then
14094 as_test_x='test -x'
14095else
14096 if ls -dL / >/dev/null 2>&1; then
14097 as_ls_L_option=L
14098 else
14099 as_ls_L_option=
14100 fi
14101 as_test_x='
14102 eval sh -c '\''
14103 if test -d "$1"; then
14104 test -d "$1/.";
14105 else
14106 case $1 in #(
14107 -*)set "./$1";;
14108 esac;
14109 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14110 ???[sx]*):;;*)false;;esac;fi
14111 '\'' sh
14112 '
14113fi
14114as_executable_p=$as_test_x
c6b750e1
DJ
14115
14116# Sed expression to map a string onto a valid CPP name.
14117as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14118
14119# Sed expression to map a string onto a valid variable name.
14120as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14121
14122
c6b750e1 14123exec 6>&1
81ecdfbb
RW
14124## ----------------------------------- ##
14125## Main body of $CONFIG_STATUS script. ##
14126## ----------------------------------- ##
14127_ASEOF
14128test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14129
14130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14131# Save the log message, to keep $0 and so on meaningful, and to
c6b750e1 14132# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
14133# values after options handling.
14134ac_log="
c6b750e1 14135This file was extended by $as_me, which was
81ecdfbb 14136generated by GNU Autoconf 2.64. Invocation command line was
c6b750e1
DJ
14137
14138 CONFIG_FILES = $CONFIG_FILES
14139 CONFIG_HEADERS = $CONFIG_HEADERS
14140 CONFIG_LINKS = $CONFIG_LINKS
14141 CONFIG_COMMANDS = $CONFIG_COMMANDS
14142 $ $0 $@
14143
81ecdfbb
RW
14144on `(hostname || uname -n) 2>/dev/null | sed 1q`
14145"
14146
c6b750e1
DJ
14147_ACEOF
14148
81ecdfbb
RW
14149case $ac_config_files in *"
14150"*) set x $ac_config_files; shift; ac_config_files=$*;;
14151esac
c6b750e1 14152
c6b750e1 14153
c6b750e1 14154
81ecdfbb
RW
14155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14156# Files that config.status was made for.
14157config_files="$ac_config_files"
c6b750e1 14158
81ecdfbb 14159_ACEOF
c6b750e1 14160
81ecdfbb 14161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14162ac_cs_usage="\
81ecdfbb
RW
14163\`$as_me' instantiates files and other configuration actions
14164from templates according to the current configuration. Unless the files
14165and actions are specified as TAGs, all are instantiated by default.
c6b750e1 14166
81ecdfbb 14167Usage: $0 [OPTION]... [TAG]...
c6b750e1
DJ
14168
14169 -h, --help print this help, then exit
81ecdfbb
RW
14170 -V, --version print version number and configuration settings, then exit
14171 -q, --quiet, --silent
14172 do not print progress messages
c6b750e1
DJ
14173 -d, --debug don't remove temporary files
14174 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
14175 --file=FILE[:TEMPLATE]
14176 instantiate the configuration file FILE
c6b750e1
DJ
14177
14178Configuration files:
14179$config_files
14180
81ecdfbb 14181Report bugs to the package provider."
c6b750e1 14182
81ecdfbb
RW
14183_ACEOF
14184cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1
DJ
14185ac_cs_version="\\
14186config.status
81ecdfbb
RW
14187configured by $0, generated by GNU Autoconf 2.64,
14188 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
c6b750e1 14189
81ecdfbb 14190Copyright (C) 2009 Free Software Foundation, Inc.
c6b750e1
DJ
14191This config.status script is free software; the Free Software Foundation
14192gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
14193
14194ac_pwd='$ac_pwd'
14195srcdir='$srcdir'
14196INSTALL='$INSTALL'
8e957354 14197AWK='$AWK'
81ecdfbb 14198test -n "\$AWK" || AWK=awk
c6b750e1
DJ
14199_ACEOF
14200
81ecdfbb
RW
14201cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14202# The default lists apply if the user does not specify any file.
c6b750e1
DJ
14203ac_need_defaults=:
14204while test $# != 0
a0da8069 14205do
c6b750e1
DJ
14206 case $1 in
14207 --*=*)
81ecdfbb
RW
14208 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14209 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
c6b750e1
DJ
14210 ac_shift=:
14211 ;;
81ecdfbb 14212 *)
c6b750e1
DJ
14213 ac_option=$1
14214 ac_optarg=$2
14215 ac_shift=shift
14216 ;;
c6b750e1
DJ
14217 esac
14218
14219 case $ac_option in
14220 # Handling of the options.
a0da8069 14221 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
c6b750e1 14222 ac_cs_recheck=: ;;
81ecdfbb
RW
14223 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14224 $as_echo "$ac_cs_version"; exit ;;
14225 --debug | --debu | --deb | --de | --d | -d )
c6b750e1
DJ
14226 debug=: ;;
14227 --file | --fil | --fi | --f )
14228 $ac_shift
81ecdfbb
RW
14229 case $ac_optarg in
14230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14231 esac
14232 as_fn_append CONFIG_FILES " '$ac_optarg'"
c6b750e1 14233 ac_need_defaults=false;;
81ecdfbb
RW
14234 --he | --h | --help | --hel | -h )
14235 $as_echo "$ac_cs_usage"; exit ;;
c6b750e1
DJ
14236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14237 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14238 ac_cs_silent=: ;;
14239
14240 # This is an error.
81ecdfbb
RW
14241 -*) as_fn_error "unrecognized option: \`$1'
14242Try \`$0 --help' for more information." ;;
c6b750e1 14243
81ecdfbb
RW
14244 *) as_fn_append ac_config_targets " $1"
14245 ac_need_defaults=false ;;
c6b750e1 14246
376a0e54 14247 esac
c6b750e1 14248 shift
376a0e54
CM
14249done
14250
c6b750e1 14251ac_configure_extra_args=
376a0e54 14252
c6b750e1
DJ
14253if $ac_cs_silent; then
14254 exec 6>/dev/null
14255 ac_configure_extra_args="$ac_configure_extra_args --silent"
14256fi
376a0e54 14257
c6b750e1 14258_ACEOF
81ecdfbb 14259cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
c6b750e1 14260if \$ac_cs_recheck; then
81ecdfbb
RW
14261 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14262 shift
14263 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14264 CONFIG_SHELL='$SHELL'
14265 export CONFIG_SHELL
14266 exec "\$@"
c6b750e1
DJ
14267fi
14268
14269_ACEOF
81ecdfbb
RW
14270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14271exec 5>>config.log
14272{
14273 echo
14274 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14275## Running $as_me. ##
14276_ASBOX
14277 $as_echo "$ac_log"
14278} >&5
c6b750e1 14279
81ecdfbb
RW
14280_ACEOF
14281cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
06a51eac
RW
14282#
14283# INIT-COMMANDS
14284#
14285extrasub_build="$extrasub_build"
14286 extrasub_host="$extrasub_host"
14287 extrasub_target="$extrasub_target"
14288
81ecdfbb 14289_ACEOF
c6b750e1 14290
81ecdfbb 14291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1 14292
81ecdfbb 14293# Handling of arguments.
c6b750e1
DJ
14294for ac_config_target in $ac_config_targets
14295do
81ecdfbb
RW
14296 case $ac_config_target in
14297 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14298
14299 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c6b750e1
DJ
14300 esac
14301done
14302
81ecdfbb 14303
c6b750e1
DJ
14304# If the user did not use the arguments to specify the items to instantiate,
14305# then the envvar interface is used. Set only those that are not.
14306# We use the long form for the default assignment because of an extremely
14307# bizarre bug on SunOS 4.1.3.
14308if $ac_need_defaults; then
14309 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14310fi
14311
14312# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 14313# simply because there is no reason against having it here, and in addition,
c6b750e1 14314# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
14315# Hook for its removal unless debugging.
14316# Note that there is a small window in which the directory will not be cleaned:
14317# after its creation but before its name has been assigned to `$tmp'.
c6b750e1
DJ
14318$debug ||
14319{
81ecdfbb
RW
14320 tmp=
14321 trap 'exit_status=$?
14322 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14323' 0
14324 trap 'as_fn_exit 1' 1 2 13 15
c6b750e1 14325}
c6b750e1
DJ
14326# Create a (secure) tmp directory for tmp files.
14327
14328{
81ecdfbb 14329 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
c6b750e1
DJ
14330 test -n "$tmp" && test -d "$tmp"
14331} ||
14332{
81ecdfbb
RW
14333 tmp=./conf$$-$RANDOM
14334 (umask 077 && mkdir "$tmp")
14335} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14336
14337# Set up the scripts for CONFIG_FILES section.
14338# No need to generate them if there are no CONFIG_FILES.
14339# This happens for instance with `./config.status config.h'.
14340if test -n "$CONFIG_FILES"; then
14341
14342if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14343 ac_cs_awk_getline=:
14344 ac_cs_awk_pipe_init=
14345 ac_cs_awk_read_file='
14346 while ((getline aline < (F[key])) > 0)
14347 print(aline)
14348 close(F[key])'
14349 ac_cs_awk_pipe_fini=
14350else
14351 ac_cs_awk_getline=false
14352 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14353 ac_cs_awk_read_file='
14354 print "|#_!!_#|"
14355 print "cat " F[key] " &&"
14356 '$ac_cs_awk_pipe_init
14357 # The final `:' finishes the AND list.
14358 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14359fi
14360ac_cr=`echo X | tr X '\015'`
14361# On cygwin, bash can eat \r inside `` if the user requested igncr.
14362# But we know of no other shell where ac_cr would be empty at this
14363# point, so we can use a bashism as a fallback.
14364if test "x$ac_cr" = x; then
14365 eval ac_cr=\$\'\\r\'
14366fi
14367ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14368if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14369 ac_cs_awk_cr='\r'
14370else
14371 ac_cs_awk_cr=$ac_cr
14372fi
14373
14374echo 'BEGIN {' >"$tmp/subs1.awk" &&
14375_ACEOF
14376
14377# Create commands to substitute file output variables.
c6b750e1 14378{
81ecdfbb
RW
14379 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
14380 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
14381 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14382 echo "_ACAWK" &&
14383 echo "_ACEOF"
14384} >conf$$files.sh &&
14385. ./conf$$files.sh ||
14386 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14387rm -f conf$$files.sh
c6b750e1 14388
81ecdfbb
RW
14389{
14390 echo "cat >conf$$subs.awk <<_ACEOF" &&
14391 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14392 echo "_ACEOF"
14393} >conf$$subs.sh ||
14394 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14395ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14396ac_delim='%!_!# '
14397for ac_last_try in false false false false false :; do
14398 . ./conf$$subs.sh ||
14399 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14400
14401 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14402 if test $ac_delim_n = $ac_delim_num; then
14403 break
14404 elif $ac_last_try; then
14405 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14406 else
14407 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14408 fi
14409done
14410rm -f conf$$subs.sh
14411
14412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14413cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
c6b750e1 14414_ACEOF
81ecdfbb
RW
14415sed -n '
14416h
14417s/^/S["/; s/!.*/"]=/
14418p
14419g
14420s/^[^!]*!//
14421:repl
14422t repl
14423s/'"$ac_delim"'$//
14424t delim
14425:nl
14426h
14427s/\(.\{148\}\).*/\1/
14428t more1
14429s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14430p
14431n
14432b repl
14433:more1
14434s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14435p
14436g
14437s/.\{148\}//
14438t nl
14439:delim
14440h
14441s/\(.\{148\}\).*/\1/
14442t more2
14443s/["\\]/\\&/g; s/^/"/; s/$/"/
14444p
14445b
14446:more2
14447s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14448p
14449g
14450s/.\{148\}//
14451t delim
14452' <conf$$subs.awk | sed '
14453/^[^""]/{
14454 N
14455 s/\n//
14456}
14457' >>$CONFIG_STATUS || ac_write_fail=1
14458rm -f conf$$subs.awk
14459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14460_ACAWK
14461cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14462 for (key in S) S_is_set[key] = 1
14463 FS = "\a"
14464 \$ac_cs_awk_pipe_init
14465}
14466{
14467 line = $ 0
14468 nfields = split(line, field, "@")
14469 substed = 0
14470 len = length(field[1])
14471 for (i = 2; i < nfields; i++) {
14472 key = field[i]
14473 keylen = length(key)
14474 if (S_is_set[key]) {
14475 value = S[key]
14476 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14477 len += length(value) + length(field[++i])
14478 substed = 1
14479 } else
14480 len += 1 + keylen
14481 }
14482 if (nfields == 3 && !substed) {
14483 key = field[2]
14484 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14485 \$ac_cs_awk_read_file
14486 next
14487 }
14488 }
14489 print line
14490}
14491\$ac_cs_awk_pipe_fini
14492_ACAWK
14493_ACEOF
14494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14495if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14496 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14497else
14498 cat
14499fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14500 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14501_ACEOF
14502
14503# VPATH may cause trouble with some makes, so we remove $(srcdir),
14504# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14505# trailing colons and then remove the whole line if VPATH becomes empty
14506# (actually we leave an empty line to preserve line numbers).
14507if test "x$srcdir" = x.; then
14508 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14509s/:*\$(srcdir):*/:/
14510s/:*\${srcdir}:*/:/
14511s/:*@srcdir@:*/:/
14512s/^\([^=]*=[ ]*\):*/\1/
14513s/:*$//
14514s/^[^=]*=[ ]*$//
14515}'
14516fi
c6b750e1 14517
81ecdfbb
RW
14518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14519fi # test -n "$CONFIG_FILES"
c6b750e1 14520
c6b750e1 14521
81ecdfbb
RW
14522eval set X " :F $CONFIG_FILES "
14523shift
14524for ac_tag
14525do
14526 case $ac_tag in
14527 :[FHLC]) ac_mode=$ac_tag; continue;;
14528 esac
14529 case $ac_mode$ac_tag in
14530 :[FHL]*:*);;
14531 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14532 :[FH]-) ac_tag=-:-;;
14533 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14534 esac
14535 ac_save_IFS=$IFS
14536 IFS=:
14537 set x $ac_tag
14538 IFS=$ac_save_IFS
14539 shift
14540 ac_file=$1
14541 shift
252b5132 14542
81ecdfbb
RW
14543 case $ac_mode in
14544 :L) ac_source=$1;;
14545 :[FH])
14546 ac_file_inputs=
14547 for ac_f
14548 do
14549 case $ac_f in
14550 -) ac_f="$tmp/stdin";;
14551 *) # Look for the file first in the build tree, then in the source tree
14552 # (if the path is not absolute). The absolute path cannot be DOS-style,
14553 # because $ac_f cannot contain `:'.
14554 test -f "$ac_f" ||
14555 case $ac_f in
14556 [\\/$]*) false;;
14557 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14558 esac ||
14559 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14560 esac
14561 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14562 as_fn_append ac_file_inputs " '$ac_f'"
14563 done
c6b750e1 14564
81ecdfbb
RW
14565 # Let's still pretend it is `configure' which instantiates (i.e., don't
14566 # use $as_me), people would be surprised to read:
14567 # /* config.h. Generated by config.status. */
14568 configure_input='Generated from '`
14569 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14570 `' by configure.'
14571 if test x"$ac_file" != x-; then
14572 configure_input="$ac_file. $configure_input"
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14574$as_echo "$as_me: creating $ac_file" >&6;}
a0da8069 14575 fi
81ecdfbb
RW
14576 # Neutralize special characters interpreted by sed in replacement strings.
14577 case $configure_input in #(
14578 *\&* | *\|* | *\\* )
14579 ac_sed_conf_input=`$as_echo "$configure_input" |
14580 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14581 *) ac_sed_conf_input=$configure_input;;
14582 esac
cac3d6c4 14583
81ecdfbb
RW
14584 case $ac_tag in
14585 *:-:* | *:-) cat >"$tmp/stdin" \
14586 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14587 esac
14588 ;;
a0da8069 14589 esac
252b5132 14590
81ecdfbb 14591 ac_dir=`$as_dirname -- "$ac_file" ||
c6b750e1
DJ
14592$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14593 X"$ac_file" : 'X\(//\)[^/]' \| \
14594 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
14595 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14596$as_echo X"$ac_file" |
14597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14598 s//\1/
14599 q
14600 }
14601 /^X\(\/\/\)[^/].*/{
14602 s//\1/
14603 q
14604 }
14605 /^X\(\/\/\)$/{
14606 s//\1/
14607 q
14608 }
14609 /^X\(\/\).*/{
14610 s//\1/
14611 q
14612 }
14613 s/.*/./; q'`
14614 as_dir="$ac_dir"; as_fn_mkdir_p
c6b750e1 14615 ac_builddir=.
252b5132 14616
81ecdfbb
RW
14617case "$ac_dir" in
14618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14619*)
14620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14621 # A ".." for each directory in $ac_dir_suffix.
14622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14623 case $ac_top_builddir_sub in
14624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14626 esac ;;
14627esac
14628ac_abs_top_builddir=$ac_pwd
14629ac_abs_builddir=$ac_pwd$ac_dir_suffix
14630# for backward compatibility:
14631ac_top_builddir=$ac_top_build_prefix
c6b750e1
DJ
14632
14633case $srcdir in
81ecdfbb 14634 .) # We are building in place.
c6b750e1 14635 ac_srcdir=.
81ecdfbb
RW
14636 ac_top_srcdir=$ac_top_builddir_sub
14637 ac_abs_top_srcdir=$ac_pwd ;;
14638 [\\/]* | ?:[\\/]* ) # Absolute name.
c6b750e1 14639 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
14640 ac_top_srcdir=$srcdir
14641 ac_abs_top_srcdir=$srcdir ;;
14642 *) # Relative name.
14643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14644 ac_top_srcdir=$ac_top_build_prefix$srcdir
14645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
c6b750e1 14646esac
81ecdfbb 14647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
252b5132 14648
252b5132 14649
81ecdfbb
RW
14650 case $ac_mode in
14651 :F)
14652 #
14653 # CONFIG_FILE
14654 #
c6b750e1
DJ
14655
14656 case $INSTALL in
14657 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb 14658 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
a0da8069 14659 esac
81ecdfbb 14660_ACEOF
252b5132 14661
81ecdfbb
RW
14662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14663# If the template does not know about datarootdir, expand it.
14664# FIXME: This hack should be removed a few years after 2.60.
14665ac_datarootdir_hack=; ac_datarootdir_seen=
14666ac_sed_dataroot='
14667/datarootdir/ {
14668 p
14669 q
14670}
14671/@datadir@/p
14672/@docdir@/p
14673/@infodir@/p
14674/@localedir@/p
14675/@mandir@/p'
14676case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14677*datarootdir*) ac_datarootdir_seen=yes;;
14678*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14680$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
c6b750e1 14681_ACEOF
81ecdfbb
RW
14682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14683 ac_datarootdir_hack='
14684 s&@datadir@&$datadir&g
14685 s&@docdir@&$docdir&g
14686 s&@infodir@&$infodir&g
14687 s&@localedir@&$localedir&g
14688 s&@mandir@&$mandir&g
14689 s&\\\${datarootdir}&$datarootdir&g' ;;
14690esac
14691_ACEOF
14692
14693# Neutralize VPATH when `$srcdir' = `.'.
14694# Shell code in configure.ac might set extrasub.
14695# FIXME: do we really want to maintain this feature?
14696cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14697ac_sed_extra="$ac_vpsub
c6b750e1
DJ
14698$extrasub
14699_ACEOF
81ecdfbb 14700cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c6b750e1
DJ
14701:t
14702/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
14703s|@configure_input@|$ac_sed_conf_input|;t t
14704s&@top_builddir@&$ac_top_builddir_sub&;t t
14705s&@top_build_prefix@&$ac_top_build_prefix&;t t
14706s&@srcdir@&$ac_srcdir&;t t
14707s&@abs_srcdir@&$ac_abs_srcdir&;t t
14708s&@top_srcdir@&$ac_top_srcdir&;t t
14709s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14710s&@builddir@&$ac_builddir&;t t
14711s&@abs_builddir@&$ac_abs_builddir&;t t
14712s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14713s&@INSTALL@&$ac_INSTALL&;t t
14714$ac_datarootdir_hack
14715"
14716eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14717if $ac_cs_awk_getline; then
14718 $AWK -f "$tmp/subs.awk"
14719else
14720 $AWK -f "$tmp/subs.awk" | $SHELL
14721fi >$tmp/out \
14722 || as_fn_error "could not create $ac_file" "$LINENO" 5
14723
14724test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14725 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14726 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14728which seems to be undefined. Please make sure it is defined." >&5
14729$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14730which seems to be undefined. Please make sure it is defined." >&2;}
14731
14732 rm -f "$tmp/stdin"
14733 case $ac_file in
14734 -) cat "$tmp/out" && rm -f "$tmp/out";;
14735 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14736 esac \
14737 || as_fn_error "could not create $ac_file" "$LINENO" 5
14738 ;;
c148b4cb 14739
c148b4cb 14740
c148b4cb 14741
81ecdfbb
RW
14742 esac
14743
06a51eac
RW
14744
14745 case $ac_file$ac_mode in
14746 "Makefile":F) sed "$extrasub_build" Makefile |
14747 sed "$extrasub_host" |
14748 sed "$extrasub_target" > mf$$
14749 mv -f mf$$ Makefile ;;
14750
14751 esac
81ecdfbb
RW
14752done # for ac_tag
14753
14754
14755as_fn_exit 0
c6b750e1 14756_ACEOF
c6b750e1
DJ
14757ac_clean_files=$ac_clean_files_save
14758
81ecdfbb
RW
14759test $ac_write_fail = 0 ||
14760 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14761
c6b750e1
DJ
14762
14763# configure is writing to config.log, and then calls config.status.
14764# config.status does its own redirection, appending to config.log.
14765# Unfortunately, on DOS this fails, as config.log is still kept open
14766# by configure, so config.status won't be able to write to it; its
14767# output is simply discarded. So we exec the FD to /dev/null,
14768# effectively closing config.log, so it can be properly (re)opened and
14769# appended to by config.status. When coming back to configure, we
14770# need to make the FD available again.
14771if test "$no_create" != yes; then
14772 ac_cs_success=:
14773 ac_config_status_args=
14774 test "$silent" = yes &&
14775 ac_config_status_args="$ac_config_status_args --quiet"
14776 exec 5>/dev/null
14777 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14778 exec 5>>config.log
14779 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14780 # would make configure fail if this is the last instruction.
81ecdfbb
RW
14781 $ac_cs_success || as_fn_exit $?
14782fi
14783if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14785$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
c6b750e1 14786fi
c148b4cb 14787
This page took 1.462384 seconds and 4 git commands to generate.